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.
createFunctionCallingParser<
RunOutput extends Record<string, any> = Record<string, any>
>(
schema: Record<string, any> | InteropZodType<RunOutput> | SerializableSchema<RunOutput>,
keyName: string,
ParserClass: FunctionCallingParserConstructor<RunOutput>
): BaseLLMOutputParser<RunOutput>| Name | Type | Description |
|---|---|---|
schema* | Record<string, any> | InteropZodType<RunOutput> | SerializableSchema<RunOutput> | |
keyName* | string | |
ParserClass | FunctionCallingParserConstructor<RunOutput> |