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

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

Hierarchy

Implemented by

Properties

apiAnswerChain: LLMChain<string, LLMType>
apiDocs: string
apiRequestChain: LLMChain<string, LLMType>
callbackManager?: CallbackManager

⚠️ Deprecated ⚠️

Use callbacks instead

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

It is not recommended for use.

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

Key to use for output, defaults to output

Generated using TypeDoc