Skip to main content

Code

a2a_basic.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

3

Install dependencies

4

Run Example

Key Features

  • A2A Endpoints: Serves the protocol routes POST /a2a/agents/{id}/v1/message:send and message:stream
  • Markdown Support: Rich text formatting in responses
  • DateTime Context: Time-aware responses
  • Open Protocol: Compatible with A2A frontends
This example runs without authorization. With authorization=True on the AgentOS, A2A requests need a Bearer JWT carrying the agents:run scope. See A2A authorization.