Quick Start
Sending a Message
Receiving Messages (A2A Bridge)
When you seta2a=True on @hexr_agent, the bridge is automatic:
A2AClient
Methods
async method
Fetch the remote agent’s Agent Card.Returns:
AgentCardasync method
Send a message to the remote agent. Blocks until the task reaches a terminal state.Returns:
Taskasync method
Poll a task’s current state.
async method
Request cooperative cancellation of a task.
Data Models
Message
Task States
AgentCard
Patterns
Fan-Out / Fan-In (Orchestrator)
Pipeline (Sequential)
Discovery
Agents are discovered via DNS + Agent Cards:Task State Storage
Tasks are stored in Valkey (Redis-compatible) with:- SETNX for idempotent task creation
- TTL for automatic cleanup (configurable, default 24h)
- Task Reaper background goroutine for stuck tasks
- Cooperative cancellation via cancel flags