File tree Expand file tree Collapse file tree
claude_agent/src/claude_agent
generic_agent/src/generic_agent
simple_generalist/src/simple_generalist/a2a_server
weather_service/src/weather_service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ def run() -> None:
130130 # assemble into a Starlette app ourselves. Serve the current well-known path
131131 # (/.well-known/agent-card.json) plus the legacy /.well-known/agent.json for
132132 # back-compat.
133- routes = create_jsonrpc_routes (request_handler , rpc_url = "/" )
133+ # enable_v0_3_compat is needed because Kagenti uses A2A 0.3 client libraries
134+ routes = create_jsonrpc_routes (request_handler , rpc_url = "/" , enable_v0_3_compat = True )
134135 routes += create_agent_card_routes (agent_card )
135136 routes += create_agent_card_routes (agent_card , card_url = "/.well-known/agent.json" )
136137 app = Starlette (routes = routes )
Original file line number Diff line number Diff line change @@ -217,7 +217,8 @@ def run():
217217
218218 # a2a-sdk 1.x replaced A2AStarletteApplication with route factories that we
219219 # assemble into a Starlette app ourselves.
220- routes = create_jsonrpc_routes (request_handler , rpc_url = "/" )
220+ # enable_v0_3_compat is needed because Kagenti uses A2A 0.3 client libraries
221+ routes = create_jsonrpc_routes (request_handler , rpc_url = "/" , enable_v0_3_compat = True )
221222 # Serve the current well-known path (/.well-known/agent-card.json) plus the
222223 # legacy /.well-known/agent.json path for backward compatibility.
223224 routes += create_agent_card_routes (agent_card )
Original file line number Diff line number Diff line change @@ -218,7 +218,8 @@ def run():
218218
219219 # a2a-sdk 1.x replaced A2AStarletteApplication with route factories that we
220220 # assemble into a Starlette app ourselves.
221- routes = create_jsonrpc_routes (request_handler , rpc_url = "/" )
221+ # enable_v0_3_compat is needed because Kagenti uses A2A 0.3 client libraries
222+ routes = create_jsonrpc_routes (request_handler , rpc_url = "/" , enable_v0_3_compat = True )
222223 # Serve the current well-known path (/.well-known/agent-card.json) plus the
223224 # legacy /.well-known/agent.json path for backward compatibility.
224225 routes += create_agent_card_routes (agent_card )
Original file line number Diff line number Diff line change @@ -236,7 +236,8 @@ def create_app(settings: Settings) -> Any:
236236
237237 # a2a-sdk 1.x replaced A2AStarletteApplication with route factories that we
238238 # assemble into a Starlette app ourselves.
239- routes = create_jsonrpc_routes (request_handler , rpc_url = "/" )
239+ # enable_v0_3_compat is needed because Kagenti uses A2A 0.3 client libraries
240+ routes = create_jsonrpc_routes (request_handler , rpc_url = "/" , enable_v0_3_compat = True )
240241 # Serve the current well-known path (/.well-known/agent-card.json) plus the
241242 # legacy /.well-known/agent.json path for backward compatibility.
242243 routes += create_agent_card_routes (agent_card )
Original file line number Diff line number Diff line change @@ -249,7 +249,8 @@ def run():
249249
250250 # a2a-sdk 1.x replaced A2AStarletteApplication with route factories that we
251251 # assemble into a Starlette app ourselves.
252- routes = create_jsonrpc_routes (request_handler , rpc_url = "/" )
252+ # enable_v0_3_compat is needed because Kagenti uses A2A 0.3 client libraries
253+ routes = create_jsonrpc_routes (request_handler , rpc_url = "/" , enable_v0_3_compat = True )
253254 # Serve the current well-known path (/.well-known/agent-card.json) plus the
254255 # legacy /.well-known/agent.json path for backward compatibility.
255256 routes += create_agent_card_routes (agent_card )
You can’t perform that action at this time.
0 commit comments