@@ -102,7 +102,7 @@ async def send_message(
102102 ) -> SendMessageResponse :
103103 """Sends a non-streaming message request to the agent."""
104104 rpc_request = JSONRPC20Request (
105- method = 'message/send ' ,
105+ method = 'SendMessage ' ,
106106 params = json_format .MessageToDict (request ),
107107 _id = str (uuid4 ()),
108108 )
@@ -111,7 +111,7 @@ async def send_message(
111111 extensions if extensions is not None else self .extensions ,
112112 )
113113 payload , modified_kwargs = await self ._apply_interceptors (
114- 'message/send ' ,
114+ 'SendMessage ' ,
115115 cast ('dict[str, Any]' , rpc_request .data ),
116116 modified_kwargs ,
117117 context ,
@@ -134,7 +134,7 @@ async def send_message_streaming(
134134 ) -> AsyncGenerator [StreamResponse ]:
135135 """Sends a streaming message request to the agent and yields responses as they arrive."""
136136 rpc_request = JSONRPC20Request (
137- method = 'message/stream ' ,
137+ method = 'SendStreamingMessage ' ,
138138 params = json_format .MessageToDict (request ),
139139 _id = str (uuid4 ()),
140140 )
@@ -143,7 +143,7 @@ async def send_message_streaming(
143143 extensions if extensions is not None else self .extensions ,
144144 )
145145 payload , modified_kwargs = await self ._apply_interceptors (
146- 'message/stream ' ,
146+ 'SendStreamingMessage ' ,
147147 cast ('dict[str, Any]' , rpc_request .data ),
148148 modified_kwargs ,
149149 context ,
@@ -213,7 +213,7 @@ async def get_task(
213213 ) -> Task :
214214 """Retrieves the current state and history of a specific task."""
215215 rpc_request = JSONRPC20Request (
216- method = 'tasks/get ' ,
216+ method = 'GetTask ' ,
217217 params = json_format .MessageToDict (request ),
218218 _id = str (uuid4 ()),
219219 )
@@ -222,7 +222,7 @@ async def get_task(
222222 extensions if extensions is not None else self .extensions ,
223223 )
224224 payload , modified_kwargs = await self ._apply_interceptors (
225- 'tasks/get ' ,
225+ 'GetTask ' ,
226226 cast ('dict[str, Any]' , rpc_request .data ),
227227 modified_kwargs ,
228228 context ,
@@ -243,7 +243,7 @@ async def cancel_task(
243243 ) -> Task :
244244 """Requests the agent to cancel a specific task."""
245245 rpc_request = JSONRPC20Request (
246- method = 'tasks/cancel ' ,
246+ method = 'CancelTask ' ,
247247 params = json_format .MessageToDict (request ),
248248 _id = str (uuid4 ()),
249249 )
@@ -252,7 +252,7 @@ async def cancel_task(
252252 extensions if extensions is not None else self .extensions ,
253253 )
254254 payload , modified_kwargs = await self ._apply_interceptors (
255- 'tasks/cancel ' ,
255+ 'CancelTask ' ,
256256 cast ('dict[str, Any]' , rpc_request .data ),
257257 modified_kwargs ,
258258 context ,
@@ -273,7 +273,7 @@ async def set_task_callback(
273273 ) -> TaskPushNotificationConfig :
274274 """Sets or updates the push notification configuration for a specific task."""
275275 rpc_request = JSONRPC20Request (
276- method = 'tasks/pushNotificationConfig/set ' ,
276+ method = 'SetTaskPushNotificationConfig ' ,
277277 params = json_format .MessageToDict (request ),
278278 _id = str (uuid4 ()),
279279 )
@@ -282,7 +282,7 @@ async def set_task_callback(
282282 extensions if extensions is not None else self .extensions ,
283283 )
284284 payload , modified_kwargs = await self ._apply_interceptors (
285- 'tasks/pushNotificationConfig/set ' ,
285+ 'SetTaskPushNotificationConfig ' ,
286286 cast ('dict[str, Any]' , rpc_request .data ),
287287 modified_kwargs ,
288288 context ,
@@ -305,7 +305,7 @@ async def get_task_callback(
305305 ) -> TaskPushNotificationConfig :
306306 """Retrieves the push notification configuration for a specific task."""
307307 rpc_request = JSONRPC20Request (
308- method = 'tasks/pushNotificationConfig/get ' ,
308+ method = 'GetTaskPushNotificationConfig ' ,
309309 params = json_format .MessageToDict (request ),
310310 _id = str (uuid4 ()),
311311 )
@@ -314,7 +314,7 @@ async def get_task_callback(
314314 extensions if extensions is not None else self .extensions ,
315315 )
316316 payload , modified_kwargs = await self ._apply_interceptors (
317- 'tasks/pushNotificationConfig/get ' ,
317+ 'GetTaskPushNotificationConfig ' ,
318318 cast ('dict[str, Any]' , rpc_request .data ),
319319 modified_kwargs ,
320320 context ,
@@ -337,7 +337,7 @@ async def subscribe(
337337 ) -> AsyncGenerator [StreamResponse ]:
338338 """Reconnects to get task updates."""
339339 rpc_request = JSONRPC20Request (
340- method = 'tasks/resubscribe ' ,
340+ method = 'SubscribeToTask ' ,
341341 params = json_format .MessageToDict (request ),
342342 _id = str (uuid4 ()),
343343 )
@@ -346,7 +346,7 @@ async def subscribe(
346346 extensions if extensions is not None else self .extensions ,
347347 )
348348 payload , modified_kwargs = await self ._apply_interceptors (
349- 'tasks/resubscribe ' ,
349+ 'SubscribeToTask ' ,
350350 cast ('dict[str, Any]' , rpc_request .data ),
351351 modified_kwargs ,
352352 context ,
0 commit comments