Skip to content

verifier ​

The verifier derives criteria, uses tools to check the work, and returns Feedback findings. You can supply known criteria as well. It has shell execution tools, so the caller's handlers decide which commands may run. Use reviewAgent to judge text without running it.

A stopped run may return saved partial findings. A failed verification returns no findings, so an empty list alone does not prove the work passed.

Functions ​

buildTools ​

ts
buildTools(): any[]

Return the verifier's file inspection, command execution, and Agency check tools.

Returns: any[]

(source)

verifierAgent ​

ts
verifierAgent(
  task: string,
  criteria: string[] = [],
  maxCost: number = $20.00,
  maxTime: number = 15m,
  model: string = "",
  provider: string = "",
  session: string = "",
  extraTools: any[] = [],
): Result<Feedback[]>

Check work on disk against task criteria with tools and return findings. A failed verification returns no findings.

Parameters:

NameTypeDefaultDescription
taskstring
criteriastring[][]Known criteria to check alongside those derived from the task.
maxCostnumber$20.00Cost budget in USD.
maxTimenumber15mTime budget in milliseconds.
modelstring""Model override, or "" for the ambient model.
providerstring""Provider for the model override, ignored when model is empty.
sessionstring""Name a conversation to reuse across calls, or "" for an isolated thread.
extraToolsany[][]Tools available to criteria generation and verification.

Returns: Result<Feedback[]>

Throws: std::guard

(source)