Interface for the input of a ConstitutionalChain. Extends ChainInputs.

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

Hierarchy (view full)

Implemented by

Properties

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

Generated using TypeDoc