Skip to main content
Serve a trip-planning Agent whose async tools call the weather and Airbnb specialists through the first-party A2AClient. TaskResult.content is the already-unwrapped downstream response.
trip_planning_a2a_client.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

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