Conversation
1Wizzy
force-pushed
the
feat/upgrade-langgraph-agent-v1.0
branch
from
September 10, 2026 09:01
23d0bd0 to
ada958c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
CONTRIBUTINGGuide.Fixes # 🦕
Summary of Changes
This PR upgrades the LangGraph Currency Agent sample (
samples/python/agents/langgraph) from legacya2a-sdk 0.3.xto the official stablea2a-sdk >= 1.1.0(A2A Protocol v1.0 specification) andlanggraph >= 1.0.0.1. A2A Protocol v1.0 & LangGraph 1.0 Upgrade
pyproject.toml,uv.lock):a2a-sdk>=1.1.0andlanggraph>=1.0.0.app/__main__.py):A2AStarletteApplicationwith modular route factories:create_agent_card_routesandcreate_jsonrpc_routeson Starlette.AgentCardwith v1.0AgentInterface(protocol_binding='JSONRPC',url='http://{host}:{port}/',protocol_version='1.0').agent_cardintoDefaultRequestHandler.app/agent_executor.py):a2a.utilstoa2a.helpers(new_task_from_user_message,new_text_message,new_text_part).a2a.server.tasks.TaskUpdater(start_work(),requires_input(),complete(),add_artifact()).InvalidParamsError,InternalError, andUnsupportedOperationError.app/test_client.py):await create_client(agent=..., client_config=...).SendMessageRequestusing protobuf enums (Role.ROLE_USER).README.md):uv run python -m app).SendMessage,SendStreamingMessage,A2A-Version: 1.0, protobuf JSON structures).TASK_STATE_INPUT_REQUIRED.2. Robustness Improvements
follow_redirects=Truetohttpx.getinapp/agent.pyto handle upstream 301 redirect toapi.frankfurter.dev._CompatibleChatOpenAIdefaultingwith_structured_outputtofunction_callinginstead of strictjson_schema, ensuring compatibility with non-OpenAI gateways (Ollama, DeepSeek, vLLM).httpx.AsyncClientwith a 60s timeout toClientConfigintest_client.pyto avoid premature client timeouts during multi-step tool calls.Verification & Testing
uv run ruff check --config .ruff.toml samples/python/agents/langgraph(Passed, 0 errors).uv run ruff format --check --config .ruff.toml samples/python/agents/langgraph(Passed, clean).uv run pyright samples/python/agents/langgraph(Passed, 0 errors, 0 warnings).conversion_result).TASK_STATE_INPUT_REQUIRED.SendStreamingMessagevia SSE).