Skip to content

Interface: JudgeChain

Defined in: packages/core/src/presenter/JudgeChain.ts:113

A compiled judge chain — call evaluate(prompt) to run.

Properties

config

ts
readonly config: Readonly<Required<JudgeChainConfig>>;

Defined in: packages/core/src/presenter/JudgeChain.ts:118

The underlying configuration

Methods

evaluate()

ts
evaluate(prompt): Promise<JudgeChainResult>;

Defined in: packages/core/src/presenter/JudgeChain.ts:115

Execute the chain with the given prompt

Parameters

ParameterType
promptstring

Returns

Promise<JudgeChainResult>