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