ADK for TypeScript: API Reference
    Preparing search index...

    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)

    Properties

    afterAgentCallback?: AfterAgentCallback
    beforeAgentCallback?: BeforeAgentCallback
    description?: string
    maxIterations?: number

    The maximum number of iterations the loop agent will run.

    If not provided, the loop agent will run indefinitely.

    name: string
    parentAgent?: BaseAgent
    subAgents?: BaseAgent[]