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

    Class A2AAgentExecutor

    AgentExecutor invokes an ADK agent and translates session events to A2A events.

    Implements

    • AgentExecutor

    Constructors

    Methods

    • Method to explicitly cancel a running task. The implementation should handle the logic of stopping the execution and publishing the final 'canceled' status event on the provided event bus.

      Parameters

      • _taskId: string

      Returns Promise<void>

    • Executes the agent logic based on the request context and publishes events.

      Parameters

      • ctx: RequestContext
      • eventBus: ExecutionEventBus

        The bus to publish execution events to.

      Returns Promise<void>