@@ -58,18 +58,18 @@ public static IEndpointConventionBuilder MapHttpA2A(this IEndpointRouteBuilder e
5858
5959 var routeGroup = endpoints . MapGroup ( path ) ;
6060
61- // /card endpoint - Agent discovery
62- routeGroup . MapGet ( "/card" , async context => await A2AHttpProcessor . GetAgentCard ( taskManager , logger , $ "{ context . Request . Scheme } ://{ context . Request . Host } { path } ") ) ;
61+ // /v1/ card endpoint - Agent discovery
62+ routeGroup . MapGet ( "v1 /card" , async context => await A2AHttpProcessor . GetAgentCard ( taskManager , logger , $ "{ context . Request . Scheme } ://{ context . Request . Host } { path } ") ) ;
6363
64- // /tasks/{id} endpoint
65- routeGroup . MapGet ( "/tasks/{id}" , ( string id , [ FromQuery ] int ? historyLength , [ FromQuery ] string ? metadata ) =>
64+ // /v1/ tasks/{id} endpoint
65+ routeGroup . MapGet ( "v1 /tasks/{id}" , ( string id , [ FromQuery ] int ? historyLength , [ FromQuery ] string ? metadata ) =>
6666 A2AHttpProcessor . GetTask ( taskManager , logger , id , historyLength , metadata ) ) ;
6767
68- // /tasks/{id}/ cancel endpoint
69- routeGroup . MapPost ( "/tasks/{id}/ cancel" , ( string id ) => A2AHttpProcessor . CancelTask ( taskManager , logger , id ) ) ;
68+ // /v1/ tasks/{id}: cancel endpoint
69+ routeGroup . MapPost ( "v1 /tasks/{id}: cancel" , ( string id ) => A2AHttpProcessor . CancelTask ( taskManager , logger , id ) ) ;
7070
71- // /send endpoint
72- routeGroup . MapPost ( "/ send" , ( [ FromBody ] MessageSendParams sendParams , int ? historyLength , string ? metadata ) =>
71+ // /v1/message: send endpoint
72+ routeGroup . MapPost ( "v1/message: send" , ( [ FromBody ] MessageSendParams sendParams , int ? historyLength , string ? metadata ) =>
7373 A2AHttpProcessor . SendTaskMessage ( taskManager , logger , null , sendParams , historyLength , metadata ) ) ;
7474
7575 // /tasks/{id}/send endpoint
@@ -87,8 +87,8 @@ public static IEndpointConventionBuilder MapHttpA2A(this IEndpointRouteBuilder e
8787 routeGroup . MapPut ( "/tasks/{id}/pushNotification" , ( string id , [ FromBody ] PushNotificationConfig pushNotificationConfig ) =>
8888 A2AHttpProcessor . SetPushNotification ( taskManager , logger , id , pushNotificationConfig ) ) ;
8989
90- // /tasks/{id}/pushNotification endpoint - GET
91- routeGroup . MapGet ( "/tasks/{id}/pushNotification " , ( string id ) => A2AHttpProcessor . GetPushNotification ( taskManager , logger , id ) ) ;
90+ // /v1/ tasks/{id}/pushNotification endpoint - GET
91+ routeGroup . MapGet ( "v1 /tasks/{id}/pushNotificationConfigs " , ( string id ) => A2AHttpProcessor . GetPushNotification ( taskManager , logger , id ) ) ;
9292
9393 return routeGroup ;
9494 }
0 commit comments