Skip to content

Commit 5b03148

Browse files
authored
chore: 🤖 Auto-update A2A schema from specification (#84)
1 parent 987f369 commit 5b03148

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

src/a2a/types.py

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ class AgentSkill(BaseModel):
9090
examples: list[str] | None = None
9191
"""
9292
The set of example scenarios that the skill can perform.
93-
Will be used by the client as a hint to understand how the skill can be
94-
used.
93+
Will be used by the client as a hint to understand how the skill can be used.
9594
"""
9695
id: str
9796
"""
@@ -113,8 +112,7 @@ class AgentSkill(BaseModel):
113112
"""
114113
tags: list[str]
115114
"""
116-
Set of tagwords describing classes of capabilities for this specific
117-
skill.
115+
Set of tagwords describing classes of capabilities for this specific skill.
118116
"""
119117

120118

@@ -433,7 +431,7 @@ class JSONRPCMessage(BaseModel):
433431

434432
id: str | int | None = None
435433
"""
436-
An identifier established by the Client that MUST contain a String, Number
434+
An identifier established by the Client that MUST contain a String, Number.
437435
Numbers SHOULD NOT contain fractional parts.
438436
"""
439437
jsonrpc: Literal['2.0'] = '2.0'
@@ -449,7 +447,7 @@ class JSONRPCRequest(BaseModel):
449447

450448
id: str | int | None = None
451449
"""
452-
An identifier established by the Client that MUST contain a String, Number
450+
An identifier established by the Client that MUST contain a String, Number.
453451
Numbers SHOULD NOT contain fractional parts.
454452
"""
455453
jsonrpc: Literal['2.0'] = '2.0'
@@ -473,7 +471,7 @@ class JSONRPCResult(BaseModel):
473471

474472
id: str | int | None = None
475473
"""
476-
An identifier established by the Client that MUST contain a String, Number
474+
An identifier established by the Client that MUST contain a String, Number.
477475
Numbers SHOULD NOT contain fractional parts.
478476
"""
479477
jsonrpc: Literal['2.0'] = '2.0'
@@ -716,7 +714,7 @@ class TaskResubscriptionRequest(BaseModel):
716714

717715
id: str | int | None = None
718716
"""
719-
An identifier established by the Client that MUST contain a String, Number
717+
An identifier established by the Client that MUST contain a String, Number.
720718
Numbers SHOULD NOT contain fractional parts.
721719
"""
722720
jsonrpc: Literal['2.0'] = '2.0'
@@ -825,7 +823,7 @@ class CancelTaskRequest(BaseModel):
825823

826824
id: str | int | None = None
827825
"""
828-
An identifier established by the Client that MUST contain a String, Number
826+
An identifier established by the Client that MUST contain a String, Number.
829827
Numbers SHOULD NOT contain fractional parts.
830828
"""
831829
jsonrpc: Literal['2.0'] = '2.0'
@@ -868,7 +866,7 @@ class GetTaskPushNotificationConfigRequest(BaseModel):
868866

869867
id: str | int | None = None
870868
"""
871-
An identifier established by the Client that MUST contain a String, Number
869+
An identifier established by the Client that MUST contain a String, Number.
872870
Numbers SHOULD NOT contain fractional parts.
873871
"""
874872
jsonrpc: Literal['2.0'] = '2.0'
@@ -894,7 +892,7 @@ class GetTaskPushNotificationConfigSuccessResponse(BaseModel):
894892

895893
id: str | int | None = None
896894
"""
897-
An identifier established by the Client that MUST contain a String, Number
895+
An identifier established by the Client that MUST contain a String, Number.
898896
Numbers SHOULD NOT contain fractional parts.
899897
"""
900898
jsonrpc: Literal['2.0'] = '2.0'
@@ -914,7 +912,7 @@ class GetTaskRequest(BaseModel):
914912

915913
id: str | int | None = None
916914
"""
917-
An identifier established by the Client that MUST contain a String, Number
915+
An identifier established by the Client that MUST contain a String, Number.
918916
Numbers SHOULD NOT contain fractional parts.
919917
"""
920918
jsonrpc: Literal['2.0'] = '2.0'
@@ -952,7 +950,7 @@ class JSONRPCErrorResponse(BaseModel):
952950
)
953951
id: str | int | None = None
954952
"""
955-
An identifier established by the Client that MUST contain a String, Number
953+
An identifier established by the Client that MUST contain a String, Number.
956954
Numbers SHOULD NOT contain fractional parts.
957955
"""
958956
jsonrpc: Literal['2.0'] = '2.0'
@@ -1021,7 +1019,7 @@ class SetTaskPushNotificationConfigRequest(BaseModel):
10211019

10221020
id: str | int | None = None
10231021
"""
1024-
An identifier established by the Client that MUST contain a String, Number
1022+
An identifier established by the Client that MUST contain a String, Number.
10251023
Numbers SHOULD NOT contain fractional parts.
10261024
"""
10271025
jsonrpc: Literal['2.0'] = '2.0'
@@ -1047,7 +1045,7 @@ class SetTaskPushNotificationConfigSuccessResponse(BaseModel):
10471045

10481046
id: str | int | None = None
10491047
"""
1050-
An identifier established by the Client that MUST contain a String, Number
1048+
An identifier established by the Client that MUST contain a String, Number.
10511049
Numbers SHOULD NOT contain fractional parts.
10521050
"""
10531051
jsonrpc: Literal['2.0'] = '2.0'
@@ -1123,7 +1121,7 @@ class Message(BaseModel):
11231121
"""
11241122
referenceTaskIds: list[str] | None = None
11251123
"""
1126-
list of tasks referenced as context by this message.
1124+
List of tasks referenced as context by this message.
11271125
"""
11281126
role: Role
11291127
"""
@@ -1197,7 +1195,7 @@ class SendMessageRequest(BaseModel):
11971195

11981196
id: str | int | None = None
11991197
"""
1200-
An identifier established by the Client that MUST contain a String, Number
1198+
An identifier established by the Client that MUST contain a String, Number.
12011199
Numbers SHOULD NOT contain fractional parts.
12021200
"""
12031201
jsonrpc: Literal['2.0'] = '2.0'
@@ -1221,7 +1219,7 @@ class SendStreamingMessageRequest(BaseModel):
12211219

12221220
id: str | int | None = None
12231221
"""
1224-
An identifier established by the Client that MUST contain a String, Number
1222+
An identifier established by the Client that MUST contain a String, Number.
12251223
Numbers SHOULD NOT contain fractional parts.
12261224
"""
12271225
jsonrpc: Literal['2.0'] = '2.0'
@@ -1249,7 +1247,7 @@ class SetTaskPushNotificationConfigResponse(
12491247

12501248
class TaskArtifactUpdateEvent(BaseModel):
12511249
"""
1252-
sent by server during sendStream or subscribe requests
1250+
Sent by server during sendStream or subscribe requests
12531251
"""
12541252

12551253
append: bool | None = None
@@ -1300,7 +1298,7 @@ class TaskStatus(BaseModel):
13001298

13011299
class TaskStatusUpdateEvent(BaseModel):
13021300
"""
1303-
sent by server during sendStream or subscribe requests
1301+
Sent by server during sendStream or subscribe requests
13041302
"""
13051303

13061304
contextId: str
@@ -1369,8 +1367,7 @@ class AgentCard(BaseModel):
13691367
"""
13701368
defaultInputModes: list[str]
13711369
"""
1372-
The set of interaction modes that the agent
1373-
supports across all skills. This can be overridden per-skill.
1370+
The set of interaction modes that the agent supports across all skills. This can be overridden per-skill.
13741371
Supported mime types for input.
13751372
"""
13761373
defaultOutputModes: list[str]
@@ -1406,6 +1403,11 @@ class AgentCard(BaseModel):
14061403
"""
14071404
Skills are a unit of capability that an agent can perform.
14081405
"""
1406+
supportsAuthenticatedExtendedCard: bool | None = None
1407+
"""
1408+
true if the agent supports providing an extended agent card when the user is authenticated.
1409+
Defaults to false if not specified.
1410+
"""
14091411
url: str
14101412
"""
14111413
A URL to the address the agent is hosted at.
@@ -1451,7 +1453,7 @@ class CancelTaskSuccessResponse(BaseModel):
14511453

14521454
id: str | int | None = None
14531455
"""
1454-
An identifier established by the Client that MUST contain a String, Number
1456+
An identifier established by the Client that MUST contain a String, Number.
14551457
Numbers SHOULD NOT contain fractional parts.
14561458
"""
14571459
jsonrpc: Literal['2.0'] = '2.0'
@@ -1471,7 +1473,7 @@ class GetTaskSuccessResponse(BaseModel):
14711473

14721474
id: str | int | None = None
14731475
"""
1474-
An identifier established by the Client that MUST contain a String, Number
1476+
An identifier established by the Client that MUST contain a String, Number.
14751477
Numbers SHOULD NOT contain fractional parts.
14761478
"""
14771479
jsonrpc: Literal['2.0'] = '2.0'
@@ -1491,7 +1493,7 @@ class SendMessageSuccessResponse(BaseModel):
14911493

14921494
id: str | int | None = None
14931495
"""
1494-
An identifier established by the Client that MUST contain a String, Number
1496+
An identifier established by the Client that MUST contain a String, Number.
14951497
Numbers SHOULD NOT contain fractional parts.
14961498
"""
14971499
jsonrpc: Literal['2.0'] = '2.0'
@@ -1511,7 +1513,7 @@ class SendStreamingMessageSuccessResponse(BaseModel):
15111513

15121514
id: str | int | None = None
15131515
"""
1514-
An identifier established by the Client that MUST contain a String, Number
1516+
An identifier established by the Client that MUST contain a String, Number.
15151517
Numbers SHOULD NOT contain fractional parts.
15161518
"""
15171519
jsonrpc: Literal['2.0'] = '2.0'

0 commit comments

Comments
 (0)