@@ -436,17 +436,18 @@ def build(
436436 return Starlette (** kwargs )
437437
438438
439- class A2AStarletteRouter :
440- """Defines Starlette routes for serving A2A protocol endpoints.
439+ class A2AStarletteRouteBuilder :
440+ """Configurable builder for Starlette routes that serve A2A protocol endpoints.
441441
442- This router provides the necessary HTTP routes for an A2A-compliant agent.
443- It handles routing, dispatches requests to appropriate handler methods,
444- and generates responses—including support for Server-Sent Events (SSE).
442+ This builder constructs the necessary HTTP routes for an A2A-compliant agent.
443+ It defines the routing logic, associates endpoints with handler methods,
444+ and prepares responses—including support for Server-Sent Events (SSE).
445445
446446 Note:
447- As of 2025-05-24, this class is functionally equivalent to
448- `A2AStarletteApplication` with the exception that it does not implement
449- the `build()` method.
447+ As of 2025-05-24, this class is almost functionally equivalent to
448+ `A2AStarletteApplication`, except that its `build()` method is focused
449+ on building Starlette `Route` objects rather than constructing a full
450+ Starlette application.
450451 """
451452
452453 def __init__ (
@@ -746,7 +747,7 @@ async def _handle_get_authenticated_extended_agent_card(
746747 status_code = 404 ,
747748 )
748749
749- def routes (
750+ def build (
750751 self ,
751752 agent_card_path : str = '/.well-known/agent.json' ,
752753 extended_agent_card_path : str = '/agent/authenticatedExtendedCard' ,
0 commit comments