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

    Interface RoutedAgentConfig

    Configuration for the RoutingAgent.

    interface RoutedAgentConfig {
        afterAgentCallback?: AfterAgentCallback;
        agents:
            | BaseAgent<BaseAgentConfig>[]
            | Readonly<Record<string, BaseAgent<BaseAgentConfig>>>;
        beforeAgentCallback?: BeforeAgentCallback;
        description?: string;
        name: string;
        parentAgent?: BaseAgent<BaseAgentConfig>;
        router: AgentRouter;
        subAgents?: BaseAgent<BaseAgentConfig>[];
    }

    Hierarchy (View Summary)

    Properties

    afterAgentCallback?: AfterAgentCallback
    agents:
        | BaseAgent<BaseAgentConfig>[]
        | Readonly<Record<string, BaseAgent<BaseAgentConfig>>>

    The set of agents to route to. Can be an array of agents or a Record of keys to agents. If an array is provided, the agent names will be used as keys.

    beforeAgentCallback?: BeforeAgentCallback
    description?: string
    name: string
    parentAgent?: BaseAgent<BaseAgentConfig>
    router: AgentRouter

    The function to select which agent to run.

    subAgents?: BaseAgent<BaseAgentConfig>[]