Skip to content

Commit 33d1400

Browse files
authored
Merge branch 'main' into update-agent-card
2 parents 0e1cff7 + e229576 commit 33d1400

File tree

3 files changed

+31
-26
lines changed

3 files changed

+31
-26
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## [0.2.13](https://github.com/a2aproject/a2a-python/compare/v0.2.12...v0.2.13) (2025-07-17)
4+
5+
6+
### Features
7+
8+
* Add `get_data_parts()` and `get_file_parts()` helper methods ([#312](https://github.com/a2aproject/a2a-python/issues/312)) ([5b98c32](https://github.com/a2aproject/a2a-python/commit/5b98c3240db4ff6007e242742f76822fc6ea380c))
9+
* Support for Database based Push Config Store ([#299](https://github.com/a2aproject/a2a-python/issues/299)) ([e5d99ee](https://github.com/a2aproject/a2a-python/commit/e5d99ee9e478cda5e93355cba2e93f1d28039806))
10+
* Update A2A types from specification 🤖 ([#319](https://github.com/a2aproject/a2a-python/issues/319)) ([18506a4](https://github.com/a2aproject/a2a-python/commit/18506a4fe32c1956725d8f205ec7848f7b86c77d))
11+
12+
13+
### Bug Fixes
14+
15+
* Add Input Validation for Task IDs in TaskManager ([#310](https://github.com/a2aproject/a2a-python/issues/310)) ([a38d438](https://github.com/a2aproject/a2a-python/commit/a38d43881d8476e6fbcb9766b59e3378dbe64306))
16+
* Add validation for empty artifact lists in `completed_task` ([#308](https://github.com/a2aproject/a2a-python/issues/308)) ([c4a324d](https://github.com/a2aproject/a2a-python/commit/c4a324dcb693f19fbbf90cee483f6a912698a921))
17+
* Handle readtimeout errors. ([#305](https://github.com/a2aproject/a2a-python/issues/305)) ([b94b8f5](https://github.com/a2aproject/a2a-python/commit/b94b8f52bf58315f3ef138b6a1ffaf894f35bcef)), closes [#249](https://github.com/a2aproject/a2a-python/issues/249)
18+
19+
20+
### Documentation
21+
22+
* Update Documentation Site Link ([#315](https://github.com/a2aproject/a2a-python/issues/315)) ([edf392c](https://github.com/a2aproject/a2a-python/commit/edf392cfe531d0448659e2f08ab08f0ba05475b3))
23+
324
## [0.2.12](https://github.com/a2aproject/a2a-python/compare/v0.2.11...v0.2.12) (2025-07-14)
425

526

src/a2a/types.py

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ class AgentSkill(A2ABaseModel):
133133
"""
134134
Supported media types for output.
135135
"""
136-
tags: list[str] = Field(
137-
..., examples=[['cooking', 'customer support', 'billing']]
138-
)
136+
tags: list[str] = Field(..., examples=[['cooking', 'customer support', 'billing']])
139137
"""
140138
Set of tagwords describing classes of capabilities for this specific skill.
141139
"""
@@ -1147,7 +1145,7 @@ class MessageSendConfiguration(A2ABaseModel):
11471145
Configuration for the send message request.
11481146
"""
11491147

1150-
acceptedOutputModes: list[str]
1148+
acceptedOutputModes: list[str] | None = None
11511149
"""
11521150
Accepted output modalities by the client.
11531151
"""
@@ -1273,9 +1271,7 @@ class Artifact(A2ABaseModel):
12731271

12741272

12751273
class DeleteTaskPushNotificationConfigResponse(
1276-
RootModel[
1277-
JSONRPCErrorResponse | DeleteTaskPushNotificationConfigSuccessResponse
1278-
]
1274+
RootModel[JSONRPCErrorResponse | DeleteTaskPushNotificationConfigSuccessResponse]
12791275
):
12801276
root: JSONRPCErrorResponse | DeleteTaskPushNotificationConfigSuccessResponse
12811277
"""
@@ -1284,9 +1280,7 @@ class DeleteTaskPushNotificationConfigResponse(
12841280

12851281

12861282
class GetTaskPushNotificationConfigResponse(
1287-
RootModel[
1288-
JSONRPCErrorResponse | GetTaskPushNotificationConfigSuccessResponse
1289-
]
1283+
RootModel[JSONRPCErrorResponse | GetTaskPushNotificationConfigSuccessResponse]
12901284
):
12911285
root: JSONRPCErrorResponse | GetTaskPushNotificationConfigSuccessResponse
12921286
"""
@@ -1295,9 +1289,7 @@ class GetTaskPushNotificationConfigResponse(
12951289

12961290

12971291
class ListTaskPushNotificationConfigResponse(
1298-
RootModel[
1299-
JSONRPCErrorResponse | ListTaskPushNotificationConfigSuccessResponse
1300-
]
1292+
RootModel[JSONRPCErrorResponse | ListTaskPushNotificationConfigSuccessResponse]
13011293
):
13021294
root: JSONRPCErrorResponse | ListTaskPushNotificationConfigSuccessResponse
13031295
"""
@@ -1452,9 +1444,7 @@ class SendStreamingMessageRequest(A2ABaseModel):
14521444

14531445

14541446
class SetTaskPushNotificationConfigResponse(
1455-
RootModel[
1456-
JSONRPCErrorResponse | SetTaskPushNotificationConfigSuccessResponse
1457-
]
1447+
RootModel[JSONRPCErrorResponse | SetTaskPushNotificationConfigSuccessResponse]
14581448
):
14591449
root: JSONRPCErrorResponse | SetTaskPushNotificationConfigSuccessResponse
14601450
"""
@@ -1507,9 +1497,7 @@ class TaskStatus(A2ABaseModel):
15071497
Additional status updates for client
15081498
"""
15091499
state: TaskState
1510-
timestamp: str | None = Field(
1511-
default=None, examples=['2023-10-27T10:00:00Z']
1512-
)
1500+
timestamp: str | None = Field(default=None, examples=['2023-10-27T10:00:00Z'])
15131501
"""
15141502
ISO 8601 datetime string when the status was recorded.
15151503
"""
@@ -1769,9 +1757,7 @@ class SendStreamingMessageSuccessResponse(A2ABaseModel):
17691757
"""
17701758

17711759

1772-
class CancelTaskResponse(
1773-
RootModel[JSONRPCErrorResponse | CancelTaskSuccessResponse]
1774-
):
1760+
class CancelTaskResponse(RootModel[JSONRPCErrorResponse | CancelTaskSuccessResponse]):
17751761
root: JSONRPCErrorResponse | CancelTaskSuccessResponse
17761762
"""
17771763
JSON-RPC response for the 'tasks/cancel' method.
@@ -1814,9 +1800,7 @@ class JSONRPCResponse(
18141800
"""
18151801

18161802

1817-
class SendMessageResponse(
1818-
RootModel[JSONRPCErrorResponse | SendMessageSuccessResponse]
1819-
):
1803+
class SendMessageResponse(RootModel[JSONRPCErrorResponse | SendMessageSuccessResponse]):
18201804
root: JSONRPCErrorResponse | SendMessageSuccessResponse
18211805
"""
18221806
JSON-RPC response model for the 'message/send' method.

src/a2a/utils/proto_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def message_send_configuration(
187187
if not config:
188188
return a2a_pb2.SendMessageConfiguration()
189189
return a2a_pb2.SendMessageConfiguration(
190-
accepted_output_modes=list(config.acceptedOutputModes),
190+
accepted_output_modes=config.acceptedOutputModes,
191191
push_notification=ToProto.push_notification_config(
192192
config.pushNotificationConfig
193193
)

0 commit comments

Comments
 (0)