Interface ConstitutionalChainInput

Interface for the input of a ConstitutionalChain. Extends ChainInputs.

interface ConstitutionalChainInput {
    callbackManager?: CallbackManager;
    callbacks?: Callbacks;
    chain: LLMChain<string, LLMType>;
    constitutionalPrinciples: ConstitutionalPrinciple[];
    critiqueChain: LLMChain<string, LLMType>;
    memory?: BaseMemory;
    metadata?: Record<string, unknown>;
    revisionChain: LLMChain<string, LLMType>;
    tags?: string[];
    verbose?: boolean;
}

Hierarchy (view full)

Implemented by

Properties

callbackManager?: CallbackManager

Use callbacks instead

callbacks?: Callbacks
chain: LLMChain<string, LLMType>
constitutionalPrinciples: ConstitutionalPrinciple[]
critiqueChain: LLMChain<string, LLMType>
memory?: BaseMemory
metadata?: Record<string, unknown>
revisionChain: LLMChain<string, LLMType>
tags?: string[]
verbose?: boolean