# Interface LoopAgentConfig

The configuration options for creating a loop agent.

interface LoopAgentConfig {
afterAgentCallback?: AfterAgentCallback;
beforeAgentCallback?: BeforeAgentCallback;
description?: string;
maxIterations?: number;
name: string;
parentAgent?: BaseAgent;
subAgents?: BaseAgent[];
}

#### Hierarchy (View Summary)

- BaseAgentConfig
  - LoopAgentConfig

- Defined in agents/loop_agent.ts:15

## Properties

### `Optional` afterAgentCallback

afterAgentCallback?: AfterAgentCallback

Inherited from BaseAgentConfig.afterAgentCallback

- Defined in agents/base_agent.ts:48

### `Optional` beforeAgentCallback

beforeAgentCallback?: BeforeAgentCallback

Inherited from BaseAgentConfig.beforeAgentCallback

- Defined in agents/base_agent.ts:47

### `Optional` description

description?: string

Inherited from BaseAgentConfig.description

- Defined in agents/base_agent.ts:44

### `Optional` maxIterations

maxIterations?: number

The maximum number of iterations the loop agent will run.

If not provided, the loop agent will run indefinitely.

- Defined in agents/loop_agent.ts:21

### name

name: string

Inherited from BaseAgentConfig.name

- Defined in agents/base_agent.ts:43

### `Optional` parentAgent

parentAgent?: BaseAgent

Inherited from BaseAgentConfig.parentAgent

- Defined in agents/base_agent.ts:45

### `Optional` subAgents

subAgents?: BaseAgent[]

Inherited from BaseAgentConfig.subAgents

- Defined in agents/base_agent.ts:46