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
| Property | Modifier | Type | Defined in |
|---|---|---|---|
id | readonly | string | packages/agent/src/types.ts:409 |
Methods
verify()
ts
verify(ctx):
| VerifierResult
| Promise<VerifierResult>;Defined in: packages/agent/src/types.ts:410
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | { output: string; state: RunState; stepNumber: number; } | - |
ctx.output | string | The model's terminal text output (raw, pre-structured-parse). |
ctx.state | RunState | - |
ctx.stepNumber | number | - |
Returns
| VerifierResult | Promise<VerifierResult>