File tree Expand file tree Collapse file tree
tests/integration/cross_version/client_server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99from a2a .server .agent_execution .agent_executor import AgentExecutor
1010from a2a .server .agent_execution .context import RequestContext
11- from a2a .server .apps .jsonrpc import A2AFastAPIApplication
11+ from a2a .server .apps .jsonrpc . fastapi_app import A2AFastAPIApplication
1212from a2a .server .apps .rest .fastapi_app import A2ARESTFastAPIApplication
1313from a2a .server .events .event_queue import EventQueue
1414from a2a .server .events .in_memory_queue_manager import InMemoryQueueManager
@@ -188,13 +188,12 @@ async def main_async(http_port: int, grpc_port: int):
188188 )
189189
190190 app = FastAPI ()
191- jsonrpc_app = A2AFastAPIApplication (
192- agent_card = agent_card ,
193- http_handler = handler ,
194- extended_agent_card = agent_card ,
195- ).build ()
196- app .mount ('/jsonrpc' , jsonrpc_app )
197-
191+ app .mount (
192+ '/jsonrpc' ,
193+ A2AFastAPIApplication (
194+ http_handler = handler , agent_card = agent_card
195+ ).build (),
196+ )
198197 app .mount (
199198 '/rest' ,
200199 A2ARESTFastAPIApplication (
You can’t perform that action at this time.
0 commit comments