Interface that extends ZeroShotCreatePromptArgs and adds an optional topK parameter for specifying the number of results to return.

interface SqlCreatePromptArgs {
    inputVariables?: string[];
    prefix?: string;
    suffix?: string;
    topK?: number;
}

Hierarchy (view full)

Properties

inputVariables?: string[]

List of input variables the final prompt will expect.

prefix?: string

String to put before the list of tools.

suffix?: string

String to put after the list of tools.

topK?: number

Number of results to return.