Function createStructuredOutputChain
- createStructuredOutputChain<T>(input): LLMChain<any, BaseChatModel<BaseFunctionCallOptions, AIMessageChunk> | ChatOpenAI<BaseFunctionCallOptions>>
Type Parameters
- T extends AnyZodObject = AnyZodObject
Returns LLMChain<any, BaseChatModel<BaseFunctionCallOptions, AIMessageChunk> | ChatOpenAI<BaseFunctionCallOptions>>
OpenAPIChain
Object that includes all LLMChainInput fields except "outputParser" as well as an additional required "outputSchema" JSON Schema object.