chore(signing-and-veryfing): python sample A2A 1.0.3 update#622
chore(signing-and-veryfing): python sample A2A 1.0.3 update#622Iwaniukooo11 wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the signing and verifying agent sample to use standard Python virtual environments and pip instead of uv, refactors the server setup to use standard Starlette routes instead of A2AStarletteApplication, and updates the client initialization to use the unified create_client factory. The review feedback suggests improving code readability by adding type hints to the new asynchronous helper functions and using list unpacking to define the routes list more declaratively.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
a06bea8 to
c9fdac6
Compare
c9fdac6 to
c2bd8e5
Compare
Overview
This PR modernizes the
signing_and_verifyingPython sample, aligning it with thea2a-sdk v1.0.3 / v1.1.0specifications. It also transitions the project fromuvto standardpipand a pinnedrequirements.txtwhile removing unused database dependencies.Key Changes
A2A SDK v1.0.3/v1.1.0 Migration
A2AStarletteApplicationwrapper in__main__.pyin favor of direct Starlette routing viacreate_agent_card_routesandcreate_jsonrpc_routes.async defhelpers to satisfy the SDK's unconditionalawaitconstraint on card modifiers.ClientFactoryintest_client.pywith the moderncreate_clienthelper.agent_executor.pyto enqueue a standardMessagedirectly, preserving the original 1-line execution model and avoiding unnecessary task-state tracking overhead.Dependency and Build Optimization
[sqlite]extra froma2a-sdkinpyproject.tomlsince the sample relies solely onInMemoryTaskStore. This successfully uninstallssqlalchemyandaiosqlite.uv.lockwith a clean, fully pinnedrequirements.txt.README.mdsetup and execution steps to use standard virtualenv and pip commands.Verification
End-to-end integration tests were executed successfully. The client successfully resolves the public card, downloads the public key-ring, verifies the signature, authenticates, and retrieves the verified extended agent card.