Interface for the input of a ConstitutionalChain. Extends ChainInputs.

interface ConstitutionalChainInput {
    chain: LLMChain<string, LLMType>;
    constitutionalPrinciples: ConstitutionalPrinciple[];
    critiqueChain: LLMChain<string, LLMType>;
    revisionChain: LLMChain<string, LLMType>;
    callbackManager?: CallbackManager;
    memory?: BaseMemory;
}

Hierarchy (view full)

Implemented by

Properties

chain: LLMChain<string, LLMType>
constitutionalPrinciples: ConstitutionalPrinciple[]
critiqueChain: LLMChain<string, LLMType>
revisionChain: 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.

memory?: BaseMemory

Generated using TypeDoc