Skip to content

Commit 3d7309a

Browse files
refactor(server): eliminate Intermediary JSONRPCHandler for direct RequestHandler dispatching (#896)
# Description This branch eliminates the secondary layer of handling (`JSONRPCHandler`) by transferring dispatching duties immediately to `DefaultRequestHandler`. ### Changes - Completely dropped `src/a2a/server/request_handlers/jsonrpc_handler.py`. - Refactored `src/a2a/server/routes/jsonrpc_dispatcher.py` to target dispatching precisely utilized mapping distinct transmissions natively. Fixes #797 🦕
1 parent 7a9aec7 commit 3d7309a

7 files changed

Lines changed: 202 additions & 2075 deletions

File tree

src/a2a/server/request_handlers/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from a2a.server.request_handlers.default_request_handler import (
66
DefaultRequestHandler,
77
)
8-
from a2a.server.request_handlers.jsonrpc_handler import JSONRPCHandler
98
from a2a.server.request_handlers.request_handler import RequestHandler
109
from a2a.server.request_handlers.response_helpers import (
1110
build_error_response,
@@ -40,7 +39,6 @@ def __init__(self, *args, **kwargs):
4039
__all__ = [
4140
'DefaultRequestHandler',
4241
'GrpcHandler',
43-
'JSONRPCHandler',
4442
'RESTHandler',
4543
'RequestHandler',
4644
'build_error_response',

0 commit comments

Comments
 (0)