Function createStructuredOutputChain

  • Create a chain that returns output matching a JSON Schema.

    Type Parameters

    • T extends ZodObject<any, any, any, {}, {}, T> = AnyZodObject

    Parameters

    • input: StructuredOutputChainInput

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

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

    OpenAPIChain

Generated using TypeDoc