Interface: LoopOptions
@providerprotocol/agents / index / LoopOptions
Interface: LoopOptions
Section titled “Interface: LoopOptions”Defined in: src/execution/types.ts:356
Configuration options for the loop execution strategy.
The loop strategy is the simplest execution pattern, equivalent to the native tool loop behavior in UPP. It sends input to the LLM, executes any tool calls, and repeats until no more tools are called.
Example
Section titled “Example”const agent = createAgent({ // ... other config strategy: loop({ maxIterations: 5 }),});Properties
Section titled “Properties”maxIterations?
Section titled “maxIterations?”
optionalmaxIterations:number
Defined in: src/execution/types.ts:361
Maximum number of tool execution rounds before stopping.
Default Value
Section titled “Default Value”Infinity (no limit)