Creates an instance of TaskDelegationService.
The repository for persisting task status.
Optionalconfig: TaskDelegationConfig = {}Configuration for the service.
Cancels a delegated task on the remote agent.
The A2A task to cancel
OptionaltraceId: stringOptional trace ID for request tracking
Promise resolving to whether cancellation was successful
Checks the status of a delegated task from the remote agent.
The A2A task to check status for
OptionaltraceId: stringOptional trace ID for request tracking
Promise resolving to the current task status
Delegates a list of A2A tasks to suitable remote agents. For each task, finds the best agent and submits the task.
Array of A2A tasks to delegate
OptionaltraceId: stringOptional trace ID for request tracking
Promise resolving to array of successfully delegated tasks
Updates a local A2A task based on remote status information.
The local A2A task to update
The status response from the remote agent
OptionaltraceId: stringOptional trace ID for request tracking
Promise resolving to the updated task
Service responsible for delegating A2A tasks to remote agents. Implements the A2A protocol for task submission, tracking, and completion.
This service handles: