@@ -463,17 +463,18 @@ def build(
463463 return Starlette (** kwargs )
464464
465465
466- class A2AStarletteRouter :
467- """Defines Starlette routes for serving A2A protocol endpoints.
466+ class A2AStarletteRouteBuilder :
467+ """Configurable builder for Starlette routes that serve A2A protocol endpoints.
468468
469- This router provides the necessary HTTP routes for an A2A-compliant agent.
470- It handles routing, dispatches requests to appropriate handler methods,
471- and generates responses—including support for Server-Sent Events (SSE).
469+ This builder constructs the necessary HTTP routes for an A2A-compliant agent.
470+ It defines the routing logic, associates endpoints with handler methods,
471+ and prepares responses—including support for Server-Sent Events (SSE).
472472
473473 Note:
474- As of 2025-05-24, this class is functionally equivalent to
475- `A2AStarletteApplication` with the exception that it does not implement
476- the `build()` method.
474+ As of 2025-05-24, this class is almost functionally equivalent to
475+ `A2AStarletteApplication`, except that its `build()` method is focused
476+ on building Starlette `Route` objects rather than constructing a full
477+ Starlette application.
477478 """
478479
479480 def __init__ (
@@ -773,7 +774,7 @@ async def _handle_get_authenticated_extended_agent_card(
773774 status_code = 404 ,
774775 )
775776
776- def routes (
777+ def build (
777778 self ,
778779 agent_card_path : str = '/.well-known/agent.json' ,
779780 extended_agent_card_path : str = '/agent/authenticatedExtendedCard' ,
0 commit comments