Function createStructuredOutputChain
- createStructuredOutputChain<T>(input): LLMChain<any, BaseChatModel<BaseFunctionCallOptions> | ChatOpenAI<BaseFunctionCallOptions>>
-
Type Parameters
-
T extends ZodObject<any, any, any, {}, {}, T> = AnyZodObject
Returns LLMChain<any, BaseChatModel<BaseFunctionCallOptions> | ChatOpenAI<BaseFunctionCallOptions>>
OpenAPIChain
Create a chain that returns output matching a JSON Schema.