@@ -225,7 +225,7 @@ async def get_push_notification(
225225 proto_utils .ToProto .task_push_notification_config (config )
226226 )
227227 except ServerError as e :
228- raise A2AError (error = e .error if e .error else InternalError ())
228+ raise A2AError (error = e .error if e .error else InternalError ()) from e
229229
230230 @validate (
231231 lambda self : self .agent_card .capabilities .pushNotifications ,
@@ -307,11 +307,39 @@ async def list_push_notifications(
307307 request : Request ,
308308 context : ServerCallContext | None = None ,
309309 ) -> list [TaskPushNotificationConfig ]:
310+ """Handles the 'tasks/pushNotificationConfig/list' REST method.
311+
312+ This method is currently not implemented.
313+
314+ Args:
315+ request: The incoming `Request` object.
316+ context: Context provided by the server.
317+
318+ Returns:
319+ A list of `TaskPushNotificationConfig` objects.
320+
321+ Raises:
322+ NotImplementedError: This method is not yet implemented.
323+ """
310324 raise NotImplementedError ('list notifications not implemented' )
311325
312326 async def list_tasks (
313327 self ,
314328 request : Request ,
315329 context : ServerCallContext | None = None ,
316330 ) -> list [Task ]:
331+ """Handles the 'tasks/list' REST method.
332+
333+ This method is currently not implemented.
334+
335+ Args:
336+ request: The incoming `Request` object.
337+ context: Context provided by the server.
338+
339+ Returns:
340+ A list of `Task` objects.
341+
342+ Raises:
343+ NotImplementedError: This method is not yet implemented.
344+ """
317345 raise NotImplementedError ('list tasks not implemented' )
0 commit comments