Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/agent / / ResponseVerifier

Interface: ResponseVerifier

Defined in: packages/agent/src/types.ts:408

A deterministic check over the model's terminal response (C3). Runs when the loop is about to complete; ok: false feeds feedback back to the model (as a user message prefixed [verifier:<id>]) and the loop continues for up to AgentConfig.maxVerifierRounds extra rounds.

A verifier that THROWS is treated as passed (the verifier.result event still fires with ok: true): a buggy verifier must never take down a run.

Stable

Properties

PropertyModifierTypeDefined in
idreadonlystringpackages/agent/src/types.ts:409

Methods

verify()

ts
verify(ctx): 
  | VerifierResult
| Promise<VerifierResult>;

Defined in: packages/agent/src/types.ts:410

Parameters

ParameterTypeDescription
ctx{ output: string; state: RunState; stepNumber: number; }-
ctx.outputstringThe model's terminal text output (raw, pre-structured-parse).
ctx.stateRunState-
ctx.stepNumbernumber-

Returns

| VerifierResult | Promise&lt;VerifierResult&gt;