Skip to content

Commit da14cea

Browse files
authored
fix(spec): Suggest Unique Identifier fields to be UUID (#405)
Commit: a2aproject/A2A@00cf76e
1 parent 72b2ee7 commit da14cea

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/a2a/types.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class DeleteTaskPushNotificationConfigParams(A2ABaseModel):
295295

296296
id: str
297297
"""
298-
The unique identifier of the task.
298+
The unique identifier (e.g. UUID) of the task.
299299
"""
300300
metadata: dict[str, Any] | None = None
301301
"""
@@ -432,7 +432,7 @@ class GetTaskPushNotificationConfigParams(A2ABaseModel):
432432

433433
id: str
434434
"""
435-
The unique identifier of the task.
435+
The unique identifier (e.g. UUID) of the task.
436436
"""
437437
metadata: dict[str, Any] | None = None
438438
"""
@@ -677,7 +677,7 @@ class ListTaskPushNotificationConfigParams(A2ABaseModel):
677677

678678
id: str
679679
"""
680-
The unique identifier of the task.
680+
The unique identifier (e.g. UUID) of the task.
681681
"""
682682
metadata: dict[str, Any] | None = None
683683
"""
@@ -830,7 +830,7 @@ class PushNotificationConfig(A2ABaseModel):
830830
"""
831831
id: str | None = None
832832
"""
833-
A unique ID for the push notification configuration, set by the client
833+
A unique identifier (e.g. UUID) for the push notification configuration, set by the client
834834
to support multiple notification callbacks.
835835
"""
836836
token: str | None = None
@@ -881,7 +881,7 @@ class TaskIdParams(A2ABaseModel):
881881

882882
id: str
883883
"""
884-
The unique identifier of the task.
884+
The unique identifier (e.g. UUID) of the task.
885885
"""
886886
metadata: dict[str, Any] | None = None
887887
"""
@@ -940,7 +940,7 @@ class TaskPushNotificationConfig(A2ABaseModel):
940940
"""
941941
task_id: str
942942
"""
943-
The ID of the task.
943+
The unique identifier (e.g. UUID) of the task.
944944
"""
945945

946946

@@ -955,7 +955,7 @@ class TaskQueryParams(A2ABaseModel):
955955
"""
956956
id: str
957957
"""
958-
The unique identifier of the task.
958+
The unique identifier (e.g. UUID) of the task.
959959
"""
960960
metadata: dict[str, Any] | None = None
961961
"""
@@ -1376,7 +1376,7 @@ class Artifact(A2ABaseModel):
13761376

13771377
artifact_id: str
13781378
"""
1379-
A unique identifier for the artifact within the scope of the task.
1379+
A unique identifier (e.g. UUID) for the artifact within the scope of the task.
13801380
"""
13811381
description: str | None = None
13821382
"""
@@ -1440,7 +1440,7 @@ class Message(A2ABaseModel):
14401440

14411441
context_id: str | None = None
14421442
"""
1443-
The context identifier for this message, used to group related interactions.
1443+
The context ID for this message, used to group related interactions.
14441444
"""
14451445
extensions: list[str] | None = None
14461446
"""
@@ -1473,7 +1473,7 @@ class Message(A2ABaseModel):
14731473
"""
14741474
task_id: str | None = None
14751475
"""
1476-
The identifier of the task this message is part of. Can be omitted for the first message of a new task.
1476+
The ID of the task this message is part of. Can be omitted for the first message of a new task.
14771477
"""
14781478

14791479

@@ -1863,15 +1863,15 @@ class Task(A2ABaseModel):
18631863
"""
18641864
context_id: str
18651865
"""
1866-
A server-generated identifier for maintaining context across multiple related tasks or interactions.
1866+
A server-generated unique identifier (e.g. UUID) for maintaining context across multiple related tasks or interactions.
18671867
"""
18681868
history: list[Message] | None = None
18691869
"""
18701870
An array of messages exchanged during the task, representing the conversation history.
18711871
"""
18721872
id: str
18731873
"""
1874-
A unique identifier for the task, generated by the server for a new task.
1874+
A unique identifier (e.g. UUID) for the task, generated by the server for a new task.
18751875
"""
18761876
kind: Literal['task'] = 'task'
18771877
"""

0 commit comments

Comments
 (0)