Interface that extends the ChainInputs interface and defines additional fields specific to a SQL database chain. It represents the input fields for a SQL database chain.

interface SqlDatabaseChainInput {
    callbackManager?: CallbackManager;
    callbacks?: Callbacks;
    database: SqlDatabase;
    inputKey?: string;
    llm: BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>;
    memory?: BaseMemory;
    metadata?: Record<string, unknown>;
    outputKey?: string;
    prompt?: PromptTemplate<any, any>;
    sqlOutputKey?: string;
    tags?: string[];
    topK?: number;
    verbose?: boolean;
}

Hierarchy (view full)

Properties

callbackManager?: CallbackManager

Use callbacks instead

callbacks?: Callbacks
database: SqlDatabase
inputKey?: string
llm: BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>
memory?: BaseMemory
metadata?: Record<string, unknown>
outputKey?: string
prompt?: PromptTemplate<any, any>
sqlOutputKey?: string
tags?: string[]
topK?: number
verbose?: boolean