Skip to content

Commit 59c1411

Browse files
committed
docs: Update README.md
1 parent 1d43ac3 commit 59c1411

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/migrations/v1_0/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The `a2a-sdk` has achieved a major milestone in stability and reliability with t
44

55
Beyond protocol support, `v1.0` enhances the developer experience by introducing unified helper utilities for easier object creation and adopting Starlette route factory functions for more flexible server configuration.
66

7-
This documentation details the technical upgrades and architectural modifications introduced in A2A Python SDK v1.0; For developers using the database persistence layer, please refer to the [Database Migration Guide](database/) for specific update instructions.
7+
This documentation details the technical upgrades and architectural modifications introduced in A2A Python SDK v1.0. For developers using the database persistence layer, please refer to the [Database Migration Guide](database/) for specific update instructions.
88

99
---
1010

@@ -81,6 +81,8 @@ This affects every enum in the SDK: `TaskState`, `Role`.
8181
8282
### Message and Part construction
8383

84+
Constructing messages is simplified in v1.0. The old API required wrapping content in an intermediate type (`TextPart`, `FilePart`, `DataPart`) before placing it inside a `Part`. In v1.0, `Part` is a single unified message — set the content type directly on it and the wrapper types are gone entirely.
85+
8486
Key differences:
8587
- `Part(TextPart(text=...))``Part(text=...)` (flat union field)
8688
- `Role.user``Role.ROLE_USER`, `Role.agent``Role.ROLE_AGENT`

0 commit comments

Comments
 (0)