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 {
    database: SqlDatabase;
    llm: BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>;
    callbackManager?: CallbackManager;
    inputKey?: string;
    memory?: BaseMemory;
    outputKey?: string;
    prompt?: PromptTemplate<any, any>;
    sqlOutputKey?: string;
    topK?: number;
}

Hierarchy (view full)

Properties

database: SqlDatabase
llm: BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>
callbackManager?: CallbackManager

⚠️ Deprecated ⚠️

Use callbacks instead

This feature is deprecated and will be removed in the future.

It is not recommended for use.

inputKey?: string
memory?: BaseMemory
outputKey?: string
prompt?: PromptTemplate<any, any>
sqlOutputKey?: string
topK?: number

Generated using TypeDoc