StructuredOutputChainInput<T>: {
    callbackManager?: undefined | CallbackManager;
    callbacks?: undefined | Callbacks;
    llm?: undefined | BaseChatModel<BaseFunctionCallOptions, BaseMessageChunk>;
    llmKwargs: any;
    memory?: undefined | BaseMemory;
    metadata?: undefined | Record<string, unknown>;
    outputKey: undefined | string;
    outputSchema?: undefined | JsonSchema7Type;
    prompt: BasePromptTemplate<any, BasePromptValueInterface, any>;
    tags?: undefined | string[];
    verbose?: undefined | boolean;
    zodSchema?: undefined | 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

  • OptionalcallbackManager?: undefined | CallbackManager

    Use callbacks instead

  • Optionalcallbacks?: undefined | Callbacks
  • Optionalllm?: undefined | BaseChatModel<BaseFunctionCallOptions, BaseMessageChunk>
  • llmKwargs: any
  • Optionalmemory?: undefined | BaseMemory
  • Optionalmetadata?: undefined | Record<string, unknown>
  • outputKey: undefined | string
  • OptionaloutputSchema?: undefined | JsonSchema7Type
  • prompt: BasePromptTemplate<any, BasePromptValueInterface, any>

    Prompt object to use

  • Optionaltags?: undefined | string[]
  • Optionalverbose?: undefined | boolean
  • OptionalzodSchema?: undefined | T