From 11e4ff10be1916a9247ebd6886b5897c6a48e465 Mon Sep 17 00:00:00 2001 From: Sampath Kumar Date: Wed, 22 Jul 2026 16:20:13 +0200 Subject: [PATCH 1/3] refactor(a2a.helpers): Expose routing helpers from a2a.helpers This change exports several route creation functions from the top-level a2a.helpers package, making them directly importable. This simplifies the process of adding A2A routes to a FastAPI application and improves the overall modularity of the routing setup. --- src/a2a/helpers/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/a2a/helpers/__init__.py b/src/a2a/helpers/__init__.py index a4a0401e7..e02c40fc6 100644 --- a/src/a2a/helpers/__init__.py +++ b/src/a2a/helpers/__init__.py @@ -31,9 +31,17 @@ new_url_message, new_url_part, ) +from a2a.server.routes.agent_card_routes import create_agent_card_routes +from a2a.server.routes.jsonrpc_routes import create_jsonrpc_routes +from a2a.server.routes.rest_routes import create_rest_routes +from a2a.server.routes.fastapi_routes import add_a2a_routes_to_fastapi __all__ = [ + 'add_a2a_routes_to_fastapi', + 'create_agent_card_routes', + 'create_jsonrpc_routes', + 'create_rest_routes', 'display_agent_card', 'get_artifact_text', 'get_data_parts', From 77547d487bca40e7a8363e77f84b9dddb61eff43 Mon Sep 17 00:00:00 2001 From: Sampath Kumar Date: Wed, 22 Jul 2026 16:29:34 +0200 Subject: [PATCH 2/3] fix: ruff import order fix --- src/a2a/helpers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/a2a/helpers/__init__.py b/src/a2a/helpers/__init__.py index e02c40fc6..27ca85e65 100644 --- a/src/a2a/helpers/__init__.py +++ b/src/a2a/helpers/__init__.py @@ -32,9 +32,9 @@ new_url_part, ) from a2a.server.routes.agent_card_routes import create_agent_card_routes +from a2a.server.routes.fastapi_routes import add_a2a_routes_to_fastapi from a2a.server.routes.jsonrpc_routes import create_jsonrpc_routes from a2a.server.routes.rest_routes import create_rest_routes -from a2a.server.routes.fastapi_routes import add_a2a_routes_to_fastapi __all__ = [ From eed3a076dc002dc287f496314f3ddeed11e61745 Mon Sep 17 00:00:00 2001 From: Sampath Kumar Date: Wed, 22 Jul 2026 16:56:43 +0200 Subject: [PATCH 3/3] fix: cicd error fix to resolve circular import in agent_execution package --- src/a2a/server/agent_execution/request_context_builder.py | 2 +- .../server/agent_execution/simple_request_context_builder.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/a2a/server/agent_execution/request_context_builder.py b/src/a2a/server/agent_execution/request_context_builder.py index cab82b401..5b8a8f989 100644 --- a/src/a2a/server/agent_execution/request_context_builder.py +++ b/src/a2a/server/agent_execution/request_context_builder.py @@ -1,6 +1,6 @@ from abc import ABC, abstractmethod -from a2a.server.agent_execution import RequestContext +from a2a.server.agent_execution.context import RequestContext from a2a.server.context import ServerCallContext from a2a.types.a2a_pb2 import SendMessageRequest, Task diff --git a/src/a2a/server/agent_execution/simple_request_context_builder.py b/src/a2a/server/agent_execution/simple_request_context_builder.py index 5f2b7c521..4a8410019 100644 --- a/src/a2a/server/agent_execution/simple_request_context_builder.py +++ b/src/a2a/server/agent_execution/simple_request_context_builder.py @@ -1,6 +1,7 @@ import asyncio -from a2a.server.agent_execution import RequestContext, RequestContextBuilder +from a2a.server.agent_execution.context import RequestContext +from a2a.server.agent_execution.request_context_builder import RequestContextBuilder from a2a.server.context import ServerCallContext from a2a.server.id_generator import IDGenerator from a2a.server.tasks import TaskStore