import { ... } from "@langchain/core/language_models/structured_output";Pipes an LLM through an output parser, optionally wrapping the result to include the raw LLM response alongside the parsed output.
When includeRaw is true, returns { raw: BaseMessage, parsed: RunOutput }.
If parsing fails, parsed falls back to null.
Creates the appropriate content-based output parser for a schema. Use this for jsonMode/jsonSchema methods where the LLM returns JSON text.
Creates the appropriate tool-calling output parser for a schema. Use this for function calling / tool use methods where the LLM returns structured tool calls.