Skip to content

Commit 325ad8c

Browse files
authored
fix: update regex references for pushNotificationConfigs (#211)
1 parent 8c6560f commit 325ad8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/a2a/utils/proto_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Regexp patterns for matching
1717
_TASK_NAME_MATCH = r'tasks/(\w+)'
18-
_TASK_PUSH_CONFIG_NAME_MATCH = r'tasks/(\w+)/pushNotifications/(\w+)'
18+
_TASK_PUSH_CONFIG_NAME_MATCH = r'tasks/(\w+)/pushNotificationConfigs/(\w+)'
1919

2020

2121
class ToProto:
@@ -252,7 +252,7 @@ def task_push_notification_config(
252252
cls, config: types.TaskPushNotificationConfig
253253
) -> a2a_pb2.TaskPushNotificationConfig:
254254
return a2a_pb2.TaskPushNotificationConfig(
255-
name=f'tasks/{config.taskId}/pushNotifications/{config.taskId}',
255+
name=f'tasks/{config.taskId}/pushNotificationConfigs/{config.taskId}',
256256
push_notification_config=cls.push_notification_config(
257257
config.pushNotificationConfig,
258258
),

0 commit comments

Comments
 (0)