Creates the appropriate content-based output parser for a schema. Use this for jsonMode/jsonSchema methods where the LLM returns JSON text.
createContentParser<
RunOutput extends Record<string, any> = Record<string, any>
>(
schema: Record<string, any> | InteropZodType<RunOutput> | SerializableSchema<RunOutput>
): BaseOutputParser<RunOutput>| Name | Type | Description |
|---|---|---|
schema* | Record<string, any> | InteropZodType<RunOutput> | SerializableSchema<RunOutput> |