@@ -126,7 +126,7 @@ async def on_cancel_task(
126126
127127 task_manager = TaskManager (
128128 task_id = task .id ,
129- context_id = task .contextId ,
129+ context_id = task .context_id ,
130130 task_store = self .task_store ,
131131 initial_message = None ,
132132 )
@@ -140,7 +140,7 @@ async def on_cancel_task(
140140 RequestContext (
141141 None ,
142142 task_id = task .id ,
143- context_id = task .contextId ,
143+ context_id = task .context_id ,
144144 task = task ,
145145 ),
146146 queue ,
@@ -184,8 +184,8 @@ async def _setup_message_execution(
184184 """
185185 # Create task manager and validate existing task
186186 task_manager = TaskManager (
187- task_id = params .message .taskId ,
188- context_id = params .message .contextId ,
187+ task_id = params .message .task_id ,
188+ context_id = params .message .context_id ,
189189 task_store = self .task_store ,
190190 initial_message = params .message ,
191191 )
@@ -205,7 +205,7 @@ async def _setup_message_execution(
205205 request_context = await self ._request_context_builder .build (
206206 params = params ,
207207 task_id = task .id if task else None ,
208- context_id = params .message .contextId ,
208+ context_id = params .message .context_id ,
209209 task = task ,
210210 context = context ,
211211 )
@@ -218,10 +218,10 @@ async def _setup_message_execution(
218218 if (
219219 self ._push_config_store
220220 and params .configuration
221- and params .configuration .pushNotificationConfig
221+ and params .configuration .push_notification_config
222222 ):
223223 await self ._push_config_store .set_info (
224- task_id , params .configuration .pushNotificationConfig
224+ task_id , params .configuration .push_notification_config
225225 )
226226
227227 queue = await self ._queue_manager .create_or_tap (task_id )
@@ -366,13 +366,13 @@ async def on_set_task_push_notification_config(
366366 if not self ._push_config_store :
367367 raise ServerError (error = UnsupportedOperationError ())
368368
369- task : Task | None = await self .task_store .get (params .taskId )
369+ task : Task | None = await self .task_store .get (params .task_id )
370370 if not task :
371371 raise ServerError (error = TaskNotFoundError ())
372372
373373 await self ._push_config_store .set_info (
374- params .taskId ,
375- params .pushNotificationConfig ,
374+ params .task_id ,
375+ params .push_notification_config ,
376376 )
377377
378378 return params
@@ -404,7 +404,8 @@ async def on_get_task_push_notification_config(
404404 )
405405
406406 return TaskPushNotificationConfig (
407- taskId = params .id , pushNotificationConfig = push_notification_config [0 ]
407+ task_id = params .id ,
408+ pushNotificationConfig = push_notification_config [0 ],
408409 )
409410
410411 async def on_resubscribe_to_task (
@@ -430,7 +431,7 @@ async def on_resubscribe_to_task(
430431
431432 task_manager = TaskManager (
432433 task_id = task .id ,
433- context_id = task .contextId ,
434+ context_id = task .context_id ,
434435 task_store = self .task_store ,
435436 initial_message = None ,
436437 )
@@ -470,7 +471,7 @@ async def on_list_task_push_notification_config(
470471 for config in push_notification_config_list :
471472 task_push_notification_config .append (
472473 TaskPushNotificationConfig (
473- taskId = params .id , pushNotificationConfig = config
474+ task_id = params .id , pushNotificationConfig = config
474475 )
475476 )
476477
@@ -493,5 +494,5 @@ async def on_delete_task_push_notification_config(
493494 raise ServerError (error = TaskNotFoundError ())
494495
495496 await self ._push_config_store .delete_info (
496- params .id , params .pushNotificationConfigId
497+ params .id , params .push_notification_config_id
497498 )
0 commit comments