• Type Parameters

    • T extends AnyZodObject = AnyZodObject

    Parameters

    • input: StructuredOutputChainInput<T>

      Object that includes all LLMChainInput fields except "outputParser" as well as an additional required "outputSchema" JSON Schema object.

    Returns LLMChain<any, BaseChatModel<BaseFunctionCallOptions, BaseMessageChunk> | ChatOpenAI<BaseFunctionCallOptions>>

    OpenAPIChain

    Use createStructuredOutputRunnable instead Create a chain that returns output matching a JSON Schema.