Conversation
17ec781 to
74b7121
Compare
examples/a2a/server.py
Outdated
| 1. Ensure you have gradient-adk and a2a-sdk installed: | ||
| pip install gradient-adk[a2a] | ||
| 2. Run: gradient agent run | ||
| 3. The agent will be available at http://localhost:8080 with both Gradient and A2A protocols |
There was a problem hiding this comment.
How does it work for App Platform deployment here? Since you don't know the URL prior to the deployment.
There was a problem hiding this comment.
base_url now reads from the A2A_BASE_URL environment variable at server startup, falling back to http://localhost:8000 for local development. On App Platform, set A2A_BASE_URL to your app's public URL. The example docstring has been updated to document this.
0a7c8d6 to
ae32bf3
Compare
|
Addressed both review comments:
Additional improvements in this update:
|
Wrap any @entrypoint agent as an A2A v0.3.0 server with a single call to create_a2a_server(). Implements message/send, tasks/get, tasks/cancel and agent discovery via /.well-known/agent-card.json. - Hexagonal architecture: domain validation/transformation, adapters, infrastructure - Text-only MVP; streaming, push notifications, and authenticated extended cards explicitly disabled via AgentCard capability flags - base_url reads from A2A_BASE_URL env var for deployment flexibility - 45 tests (unit + integration), including cancel-race coverage - README documentation with protocol flow and deployment guide - New optional dependency: pip install gradient-adk[a2a] Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ae32bf3 to
8dd643d
Compare
Summary
create_a2a_server()to wrap any@entrypointagent with A2A protocolmessage/send,tasks/get,tasks/cancel, and agent card discoveryNew dependency
a2a-sdk[http-server]>=0.3.0(optional,pip install gradient-adk[a2a])Test plan
pytest tests/test_a2a/ -v(33 tests)pytest tests/ -v(no regressions — 294 passed, 16 skipped)🤖 Generated with Claude Code