A2AClient
Client for interacting with an A2A (Agent-to-Agent) server.
This client provides methods for all operations supported by the A2A protocol, including sending tasks, getting tasks, canceling tasks, and managing push notifications. It also supports streaming operations for real-time task updates.
The A2A protocol enables communication between AI agents, allowing them to work together on complex tasks. This client implementation handles the HTTP communication details and data serialization/deserialization required by the protocol.
Inheritors
Functions
Cancels a task on the server using a pre-constructed request object.
Cancels a task on the server.
Gets the agent card from the server.
Gets a task from the server using a pre-constructed request object.
Gets a task from the server.
Gets the push notification configuration for a task using a pre-constructed request object.
Gets the push notification configuration for a task.
Resubscribes to streaming updates for a task.
Sends a message to an agent using the A2A protocol's message/send method.
Sends a message to an agent using a pre-constructed request object.
Sends a message to an agent with streaming updates using the A2A protocol's message/stream method.
Sends a message to an agent with streaming updates using a pre-constructed request object.
Sets push notification configuration for a task using a pre-constructed request object.
Sets push notification configuration for a task.