Interface LLMChainInput<T, Model>

Interface for the input parameters of the LLMChain class.

interface LLMChainInput<T, Model> {
    callbackManager?: CallbackManager;
    callbacks?: Callbacks;
    llm: Model;
    llmKwargs?: CallOptionsIfAvailable<Model>;
    memory?: BaseMemory;
    metadata?: Record<string, unknown>;
    outputKey?: string;
    outputParser?: BaseLLMOutputParser<T>;
    prompt: BasePromptTemplate<any, BasePromptValueInterface, any>;
    tags?: string[];
    verbose?: boolean;
}

Type Parameters

  • T extends string | object = string
  • Model extends LLMType = LLMType

Hierarchy (view full)

Implemented by

Properties

callbackManager?: CallbackManager

Use callbacks instead

callbacks?: Callbacks
llm: Model

LLM Wrapper to use

llmKwargs?: CallOptionsIfAvailable<Model>

Kwargs to pass to LLM

memory?: BaseMemory
metadata?: Record<string, unknown>
outputKey?: string

Key to use for output, defaults to text

outputParser?: BaseLLMOutputParser<T>

OutputParser to use

prompt: BasePromptTemplate<any, BasePromptValueInterface, any>

Prompt object to use

tags?: string[]
verbose?: boolean