Skip to main content
Use A2AClient to send a message, thread a returned context_id into a follow-up, stream another turn, and handle an unavailable server. The client base URL is the entity root; it appends the message routes itself.
client.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as client.py, then run:
Full source: cookbook/05_agent_os/15_a2a/client.py