Skip to main content
Read the Agent card from the entity-scoped discovery route with both the synchronous and asynchronous first-party client methods. The example prints stable identity and endpoint fields from the running server.
agent_card.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

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