feat: add A2A protocol support to seller and buyer agents #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
poetry run agent-a2awith standard agent card discovery at/.well-known/agent.jsonand payment-protected JSON-RPC messaging viaPaymentsA2AServerdiscover_agentandpurchase_a2atools plus a scriptedpoetry run client-a2ademoPaymentsRequestHandler(seller tools are plain@tool, no@requires_payment)Files changed
seller/pyproject.tomla2aextra to strands-agents, addagent-a2ascriptseller/src/strands_agent_plain.py@toolversions (no@requires_payment) for A2A modeseller/src/agent_a2a.pyPaymentsA2AServerseller/.env.exampleA2A_PORTbuyer/pyproject.tomla2aextra to payments-py, addclient-a2ascriptbuyer/src/tools/discover_a2a.pybuyer/src/tools/purchase_a2a.pyPaymentsClientbuyer/src/strands_agent.pydiscover_agentandpurchase_a2atools + updated system promptbuyer/src/client_a2a.pybuyer/.env.exampleSELLER_A2A_URLTest plan
cd agents/seller-simple-agent && poetry install && poetry run agent-a2astarts without errorscurl -s http://localhost:9000/.well-known/agent.jsonreturns agent card withurn:nevermined:paymentextensioncd agents/buyer-simple-agent && poetry install && poetry run client-a2adiscovers agent card and sends A2A messagepoetry run agent/poetry run client) still works unchangedpoetry run agent) has both HTTP and A2A tools available🤖 Generated with Claude Code