@@ -451,17 +451,18 @@ def build(
451451 return Starlette (** kwargs )
452452
453453
454- class A2AStarletteRouter :
455- """Defines Starlette routes for serving A2A protocol endpoints.
454+ class A2AStarletteRouteBuilder :
455+ """Configurable builder for Starlette routes that serve A2A protocol endpoints.
456456
457- This router provides the necessary HTTP routes for an A2A-compliant agent.
458- It handles routing, dispatches requests to appropriate handler methods,
459- and generates responses—including support for Server-Sent Events (SSE).
457+ This builder constructs the necessary HTTP routes for an A2A-compliant agent.
458+ It defines the routing logic, associates endpoints with handler methods,
459+ and prepares responses—including support for Server-Sent Events (SSE).
460460
461461 Note:
462- As of 2025-05-24, this class is functionally equivalent to
463- `A2AStarletteApplication` with the exception that it does not implement
464- the `build()` method.
462+ As of 2025-05-24, this class is almost functionally equivalent to
463+ `A2AStarletteApplication`, except that its `build()` method is focused
464+ on building Starlette `Route` objects rather than constructing a full
465+ Starlette application.
465466 """
466467
467468 def __init__ (
@@ -761,7 +762,7 @@ async def _handle_get_authenticated_extended_agent_card(
761762 status_code = 404 ,
762763 )
763764
764- def routes (
765+ def build (
765766 self ,
766767 agent_card_path : str = '/.well-known/agent.json' ,
767768 extended_agent_card_path : str = '/agent/authenticatedExtendedCard' ,
0 commit comments