Skip to content

Commit 4f2d121

Browse files
committed
Fix task_push_notification_config name generation when converting to proto
1 parent f547260 commit 4f2d121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/utils/proto_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def task_push_notification_config(
259259
cls, config: types.TaskPushNotificationConfig
260260
) -> a2a_pb2.TaskPushNotificationConfig:
261261
return a2a_pb2.TaskPushNotificationConfig(
262-
name=f'tasks/{config.task_id}/pushNotificationConfigs/{config.task_id}',
262+
name=f'tasks/{config.task_id}/pushNotificationConfigs/{config.push_notification_config.id}',
263263
push_notification_config=cls.push_notification_config(
264264
config.push_notification_config,
265265
),

0 commit comments

Comments
 (0)