Interface that extends ChainInputs and defines additional input parameters specific to an APIChain.

interface APIChainInput {
    apiAnswerChain: LLMChain<string, any>;
    apiDocs: string;
    apiRequestChain: LLMChain<string, any>;
    callbackManager?: any;
    headers?: Record<string, string>;
    inputKey?: string;
    outputKey?: string;
}

Hierarchy

Implemented by

Properties

apiAnswerChain: LLMChain<string, any>
apiDocs: string
apiRequestChain: LLMChain<string, any>
callbackManager?: any

Use callbacks instead

headers?: Record<string, string>
inputKey?: string
outputKey?: string

Key to use for output, defaults to output