Skip to content

Interface: LoopOptions

@providerprotocol/agents


@providerprotocol/agents / index / 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.

const agent = createAgent({
// ... other config
strategy: loop({ maxIterations: 5 }),
});

optional maxIterations: number

Defined in: src/execution/types.ts:361

Maximum number of tool execution rounds before stopping.

Infinity (no limit)