Skip to content

Commit 3c962e2

Browse files
committed
make method public
1 parent b3c201e commit 3c962e2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/a2a/server/routes/jsonrpc_dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _generate_error_response(
291291
status_code=200,
292292
)
293293

294-
async def _handle_requests(self, request: Request) -> Response: # noqa: PLR0911, PLR0912
294+
async def handle_requests(self, request: Request) -> Response: # noqa: PLR0911, PLR0912
295295
"""Handles incoming POST requests to the main A2A endpoint.
296296
297297
Parses the request body as JSON, validates it against A2A request types,

src/a2a/server/routes/jsonrpc_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__( # noqa: PLR0913
100100
self.routes = [
101101
Route(
102102
path=rpc_url,
103-
endpoint=self.dispatcher._handle_requests, # noqa: SLF001
103+
endpoint=self.dispatcher.handle_requests,
104104
methods=['POST'],
105105
middleware=middleware,
106106
)

0 commit comments

Comments
 (0)