Skip to content

Commit 56e7448

Browse files
Add docstring for task_push_notification_config_params method
1 parent 084aca1 commit 56e7448

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/a2a/utils/proto_utils.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,17 @@ def task_push_notification_config_params(
374374
| a2a_pb2.DeleteTaskPushNotificationConfigRequest
375375
),
376376
) -> tuple[str, str]:
377+
"""Parses the task ID and push notification config ID from the request.
378+
379+
Args:
380+
request: The request to parse.
381+
382+
Returns:
383+
A tuple containing the task ID and push notification config ID.
384+
385+
Raises:
386+
ServerError: If the request name is invalid.
387+
"""
377388
m = _TASK_PUSH_CONFIG_NAME_MATCH.match(request.name)
378389
if not m:
379390
raise ServerError(

0 commit comments

Comments
 (0)