Skip to content

Commit b8d01e8

Browse files
authored
Update README to clarify message construction in v1.0
1 parent 5180e4c commit b8d01e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/migrations/v1_0/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This affects every enum in the SDK: `TaskState`, `Role`.
8686
8787
### Message and Part construction
8888

89-
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.
89+
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, the wrapper types are removed and content types are set directly on the `Part`.
9090

9191
Key changes:
9292
- `Part(TextPart(text=...))``Part(text=...)` (flat union field)

0 commit comments

Comments
 (0)