Skip to content

Commit 6df414e

Browse files
committed
fix
1 parent 2a0ea56 commit 6df414e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/migrations/v1_0/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Constructing messages is simplified in v1.0. The old API required wrapping conte
9393
| Text | `Part(TextPart(text=..., ...))` | `Part(text=..., ...)` |
9494
| File (bytes) | `Part(FilePart(file=FileWithBytes(bytes=..., ...)))` | `Part(raw=..., ...)` |
9595
| File (URI) | `Part(FilePart(file=FileWithUri(uri=..., ...)))` | `Part(url=..., ...)` |
96-
| Structured data | `Part(DataPart(data=..., ...))` | `Part(data=..., ...))` |
96+
| Structured data | `Part(DataPart(data=..., ...))` | `Part(data=..., ...)` |
9797

9898
> **Note on file bytes**: In v0.3 `FileWithBytes.bytes` was a **base64-encoded string**. In v1.0 `Part.raw` is raw **`bytes`** — no base64 encoding needed.
9999
@@ -164,7 +164,7 @@ file_uri_part = Part(
164164

165165
# Data part — use ParseDict to convert a Python dict to a protobuf Value
166166
data_part = Part(
167-
data=.ParseDict({"city": "Warsaw", "temperature_c": 18}, Value()),
167+
data=ParseDict({"city": "Warsaw", "temperature_c": 18}, Value()),
168168
)
169169

170170
message = Message(
@@ -192,7 +192,6 @@ Key changes:
192192
- Added `AgentInterface` class to support multiple transport bindings via the newly added `supported_interfaces` field in AgentCard.
193193
- The `url` parameter in `AgentCard` is removed and is now part of `AgentInterface`.
194194
- Accepted values for `AgentInterface.protocol_binding`: `'JSONRPC'`, `'HTTP+JSON'`, `'GRPC'`
195-
- The `AgentCard.capabilities` field is renamed to `AgentCard.agent_capabilities`.
196195
- The `AgentCard.supports_authenticated_extended_card` field is renamed to `AgentCapabilities.extended_agent_card`.
197196
- The `AgentCapabilities.input_modes` and `AgentCapabilities.output_modes` fields are removed; use `AgentCard.default_input_modes` and `AgentCard.default_output_modes` for card-level defaults, or `AgentSkill.input_modes` and `AgentSkill.output_modes` for per-skill overrides.
198197
- The `examples` parameter in `AgentCard` is removed and is now part of `AgentSkill`.

0 commit comments

Comments
 (0)