Interface for the input parameters of the SequentialChain class.

Deprecated

Switch to expression language: https://js.langchain.com/docs/expression_language/ Will be removed in 0.2.0

interface SequentialChainInput {
    chains: BaseChain<ChainValues, ChainValues>[];
    inputVariables: string[];
    callbackManager?: any;
    memory?: any;
    outputVariables?: string[];
    returnAll?: boolean;
}

Hierarchy (view full)

Implemented by

Properties

chains: BaseChain<ChainValues, ChainValues>[]

Array of chains to run as a sequence. The chains are run in order they appear in the array.

inputVariables: string[]

Defines which variables should be passed as initial input to the first chain.

callbackManager?: any

⚠️ Deprecated ⚠️

Use callbacks instead

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

It is not recommended for use.

memory?: any
outputVariables?: string[]

Which variables should be returned as a result of executing the chain. If not specified, output of the last of the chains is used.

returnAll?: boolean

Whether or not to return all intermediate outputs and variables (excluding initial input variables).

Generated using TypeDoc