Skip to main content
Expose one persistent Agent through AgentOS’s built-in A2A interface. The a2a_interface=True shorthand exposes every registered entity; use an explicit interfaces=[A2A(agents=[...])] when you need to select which entities are exposed or customize interface tags.
basic.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 basic.py, then run:
Full source: cookbook/05_agent_os/15_a2a/basic.py