StructuredOutputChainInput<T>: Omit<LLMChainInput, "outputParser" | "llm"> & {
    prompt: BasePromptTemplate;
    llm?: BaseChatModel<BaseFunctionCallOptions>;
    outputSchema?: JsonSchema7Type;
    zodSchema?: T;
}

Type representing the input for creating a structured output chain. It extends the LLMChainInput type and includes an additional 'outputSchema' field representing the JSON schema for the expected output.

Type Parameters

  • T extends z.AnyZodObject = z.AnyZodObject

Type declaration

  • prompt: BasePromptTemplate
  • Optional llm?: BaseChatModel<BaseFunctionCallOptions>
  • Optional outputSchema?: JsonSchema7Type
  • Optional zodSchema?: T

Generated using TypeDoc