Skip to content

Commit afb9734

Browse files
committed
refactor: make some classes name concise
Signed-off-by: Shingo OKAWA <[email protected]>
1 parent 33c0574 commit afb9734

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/a2a/server/apps/jsonrpc/fastapi_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from a2a.server.apps.jsonrpc.jsonrpc_app import (
88
CallContextBuilder,
9-
JSONRPCApplicationAspect,
9+
JSONRPCApplication,
1010
)
1111
from a2a.server.request_handlers.jsonrpc_handler import RequestHandler
1212
from a2a.types import AgentCard
@@ -15,7 +15,7 @@
1515
logger = logging.getLogger(__name__)
1616

1717

18-
class A2AFastAPIApplication(JSONRPCApplicationAspect):
18+
class A2AFastAPIApplication(JSONRPCApplication):
1919
"""A FastAPI application implementing the A2A protocol server endpoints.
2020
2121
Handles incoming JSON-RPC requests, routes them to the appropriate

src/a2a/server/apps/jsonrpc/jsonrpc_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def build(self, request: Request) -> ServerCallContext:
9393
return ServerCallContext(user=user, state=state)
9494

9595

96-
class JSONRPCApplicationAspect:
96+
class JSONRPCApplication:
9797
"""Base class for A2A JSONRPC applications.
9898
9999
Handles incoming JSON-RPC requests, routes them to the appropriate

src/a2a/server/apps/jsonrpc/starlette_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from a2a.server.apps.jsonrpc.jsonrpc_app import (
1515
CallContextBuilder,
16-
JSONRPCApplicationAspect,
16+
JSONRPCApplication,
1717
)
1818
from a2a.server.request_handlers.jsonrpc_handler import RequestHandler
1919
from a2a.types import AgentCard, AgentCatalog, AgentLinkContext, AgentLinkTarget
@@ -22,7 +22,7 @@
2222
logger = logging.getLogger(__name__)
2323

2424

25-
class A2AStarletteApplication(JSONRPCApplicationAspect):
25+
class A2AStarletteApplication(JSONRPCApplication):
2626
"""A Starlette application implementing the A2A protocol server endpoints.
2727
2828
Handles incoming JSON-RPC requests, routes them to the appropriate
@@ -144,7 +144,7 @@ class StarletteRouteConfig:
144144
rpc_path: str = '/'
145145

146146

147-
class StarletteRouteBuilder(JSONRPCApplicationAspect):
147+
class StarletteRouteBuilder(JSONRPCApplication):
148148
"""Configurable builder for Starlette routes that serve A2A protocol endpoints.
149149
150150
This builder constructs the necessary HTTP routes for an A2A-compliant agent.

0 commit comments

Comments
 (0)