CLI
praisonai serve a2a runs the agents YAML workflow in --file for every message/send request (the same YAML path praisonai serve agents uses). The message text becomes the workflow topic.
A missing
--file is rejected at startup with exit code EXIT_VALIDATION_ERROR and the error Agents file not found: <path>. The server no longer starts a stub that only echoed Received: <text>.Security
praisonai serve a2a runs your agents (and their tools) for every request, so binding it to a non-localhost interface without authentication is refused.
Authorization: Bearer … or X-API-Key: …. Only /, /status and /.well-known/agent.json are public; POST /a2a always needs the key when one is set.
Python
agents.yaml
The CLI commandpraisonai serve a2a --file agents.yaml runs the YAML workflow via praisonai.arun(...) for each message/send request. The Python A2A(agent=...) path above serves a single in-process Agent and does not read YAML.
A2A Endpoints
A2A Parameters
Authentication
Authorization: Bearer sk-my-secret-key. Discovery (/.well-known/agent.json) stays public per A2A spec.
Send A2A Message
JSON-RPC Errors
Python Client
Troubleshooting
Related
- A2A API Reference - Full A2A endpoint documentation
- AGUI Server - Deploy as AGUI server
- Agents Server - Deploy as HTTP server

