File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/a2a/server/apps/jsonrpc Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -48,20 +48,20 @@ def __init__(
4848 extended_agent_card = extended_agent_card ,
4949 context_builder = context_builder ,
5050 )
51-
51+
5252 def add_routes_to_app (
53- self ,
54- app : FastAPI ,
53+ self ,
54+ app : FastAPI ,
5555 agent_card_url : str = '/.well-known/agent.json' ,
5656 rpc_url : str = '/' ,
5757 extended_agent_card_url : str = '/agent/authenticatedExtendedCard'
58- ):
58+ ) -> None :
5959 """Adds the routes to the FastAPI application.
6060
6161 Args:
6262 app: The FastAPI application to add the routes to.
6363 agent_card_url: The URL for the agent card endpoint.
64- rpc_url: The URL for the A2A JSON-RPC endpoint.
64+ rpc_url: The URL for the A2A JSON-RPC endpoint.
6565 extended_agent_card_url: The URL for the authenticated extended agent card endpoint.
6666 """
6767 @app .post (rpc_url )
@@ -79,6 +79,7 @@ async def get_extended_agent_card(request: Request) -> Response:
7979 return await self ._handle_get_authenticated_extended_agent_card (
8080 request
8181 )
82+
8283 def build (
8384 self ,
8485 agent_card_url : str = '/.well-known/agent.json' ,
Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ def routes(
9191 )
9292 )
9393 return app_routes
94-
94+
9595 def add_routes_to_app (
9696 self ,
9797 app : Starlette ,
9898 agent_card_url : str = '/.well-known/agent.json' ,
9999 rpc_url : str = '/' ,
100100 extended_agent_card_url : str = '/agent/authenticatedExtendedCard'
101- ):
101+ ) -> None :
102102 """Adds the routes to the Starlette application.
103103
104104 Args:
You can’t perform that action at this time.
0 commit comments