@@ -78,7 +78,7 @@ async def send_message(
7878 request , context , extensions
7979 )
8080 response_data = await self ._send_post_request (
81- '/v1/ message:send' , payload , modified_kwargs
81+ '/message:send' , payload , modified_kwargs
8282 )
8383 response : SendMessageResponse = ParseDict (
8484 response_data , SendMessageResponse ()
@@ -99,7 +99,7 @@ async def send_message_streaming(
9999
100100 async for event in self ._send_stream_request (
101101 'POST' ,
102- '/v1/ message:stream' ,
102+ '/message:stream' ,
103103 http_kwargs = modified_kwargs ,
104104 json = payload ,
105105 ):
@@ -128,7 +128,7 @@ async def get_task(
128128 del params ['id' ] # id is part of the URL path, not query params
129129
130130 response_data = await self ._send_get_request (
131- f'/v1/ tasks/{ request .id } ' ,
131+ f'/tasks/{ request .id } ' ,
132132 params ,
133133 modified_kwargs ,
134134 )
@@ -153,7 +153,7 @@ async def list_tasks(
153153 extensions if extensions is not None else self .extensions ,
154154 )
155155 response_data = await self ._send_get_request (
156- '/v1/ tasks' ,
156+ '/tasks' ,
157157 _model_to_query_params (request ),
158158 modified_kwargs ,
159159 )
@@ -181,7 +181,7 @@ async def cancel_task(
181181 context ,
182182 )
183183 response_data = await self ._send_post_request (
184- f'/v1/ tasks/{ request .id } :cancel' , payload , modified_kwargs
184+ f'/tasks/{ request .id } :cancel' , payload , modified_kwargs
185185 )
186186 response : Task = ParseDict (response_data , Task ())
187187 return response
@@ -203,7 +203,7 @@ async def create_task_push_notification_config(
203203 payload , modified_kwargs , context
204204 )
205205 response_data = await self ._send_post_request (
206- f'/v1/ tasks/{ request .task_id } /pushNotificationConfigs' ,
206+ f'/tasks/{ request .task_id } /pushNotificationConfigs' ,
207207 payload ,
208208 modified_kwargs ,
209209 )
@@ -235,7 +235,7 @@ async def get_task_push_notification_config(
235235 if 'task_id' in params :
236236 del params ['task_id' ]
237237 response_data = await self ._send_get_request (
238- f'/v1/ tasks/{ request .task_id } /pushNotificationConfigs/{ request .id } ' ,
238+ f'/tasks/{ request .task_id } /pushNotificationConfigs/{ request .id } ' ,
239239 params ,
240240 modified_kwargs ,
241241 )
@@ -265,7 +265,7 @@ async def list_task_push_notification_configs(
265265 if 'task_id' in params :
266266 del params ['task_id' ]
267267 response_data = await self ._send_get_request (
268- f'/v1/ tasks/{ request .task_id } /pushNotificationConfigs' ,
268+ f'/tasks/{ request .task_id } /pushNotificationConfigs' ,
269269 params ,
270270 modified_kwargs ,
271271 )
@@ -297,7 +297,7 @@ async def delete_task_push_notification_config(
297297 if 'task_id' in params :
298298 del params ['task_id' ]
299299 await self ._send_delete_request (
300- f'/v1/ tasks/{ request .task_id } /pushNotificationConfigs/{ request .id } ' ,
300+ f'/tasks/{ request .task_id } /pushNotificationConfigs/{ request .id } ' ,
301301 params ,
302302 modified_kwargs ,
303303 )
@@ -317,7 +317,7 @@ async def subscribe(
317317
318318 async for event in self ._send_stream_request (
319319 'GET' ,
320- f'/v1/ tasks/{ request .id } :subscribe' ,
320+ f'/tasks/{ request .id } :subscribe' ,
321321 http_kwargs = modified_kwargs ,
322322 ):
323323 yield event
@@ -345,7 +345,7 @@ async def get_extended_agent_card(
345345 context ,
346346 )
347347 response_data = await self ._send_get_request (
348- '/v1/ card' , {}, modified_kwargs
348+ '/card' , {}, modified_kwargs
349349 )
350350 response : AgentCard = ParseDict (response_data , AgentCard ())
351351
0 commit comments