Skip to content
Tracon

LoopCriterion

← All HTTP schemas

One declarative stop criterion of the harness loop (see LoopSettings).

Shape: object

Property Required Type Description Rules
kind yes string Gets the criterion kind: completionMarker, todoCompletion, aiJudge, backgroundTaskCompletion, or a kind registered in code with AddLoopEvaluator.
marker no string Gets the completion marker text. Read by completionMarker only, where it is required.
judgeCriteria no array of string Gets the criteria the judge model scores the answer against. Read by aiJudge only, where at least one entry is required.
judgeInstructions no string Gets the extra instructions handed to the judge model. Read by aiJudge only.
modes no array of string Gets the agent modes the criterion applies to. Read by todoCompletion only.