Skip to main content

LoopTermination

Agent Runtimes


Agent Runtimes / types/loops / LoopTermination

Interface: LoopTermination

Defined in: src/types/loops.ts:23

When and how an agent execution loop stops iterating.

Properties

failureCriteria

failureCriteria: string[]

Defined in: src/types/loops.ts:29

Conditions that mark the loop as failed


maxIterations

maxIterations: number

Defined in: src/types/loops.ts:25

Maximum iterations before the loop is stopped


onBlocked

onBlocked: string

Defined in: src/types/loops.ts:31

What to do when blocked: ask-human, retry, or abort


successCriteria

successCriteria: string[]

Defined in: src/types/loops.ts:27

Conditions that mark the goal as reached