You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Example**: [`a2a-mcp-without-framework/server/agent_executor.py` in PR #509](https://github.com/a2aproject/a2a-samples/pull/509/changes#diff-1f9b098f9f82ee40666ee61db56dc2246281423c445bcf017079c53a0a05954f)
86
86
87
87
### Message and Part construction
88
88
89
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.
90
90
91
-
Key differences:
91
+
Key changes:
92
92
-`Part(TextPart(text=...))` → `Part(text=...)` (flat union field)
Without helper utils, you can still construct directly
@@ -137,12 +136,12 @@ message = Message(
137
136
### AgentCard Structure
138
137
139
138
Key changes:
140
-
- Added `AgentInterface` class to support multiple transport bindings via the `supported_interfaces` field in AgentCard.
141
-
- The `url` parameter in `AgentCapabilities` is removed and is now part of `AgentInterface`.
139
+
- Added `AgentInterface` class to support multiple transport bindings via the newly added `supported_interfaces` field in AgentCard.
140
+
- The `url` parameter in `AgentCard` is removed and is now part of `AgentInterface`.
142
141
- Accepted values for `AgentInterface.protocol_binding`: `'JSONRPC'`, `'HTTP+JSON'`, `'GRPC'`
143
142
- The `AgentCard.capabilities` field is renamed to `AgentCard.agent_capabilities`.
144
143
- The `AgentCard.supports_authenticated_extended_card` field is renamed to `AgentCapabilities.extended_agent_card`.
145
-
- The `AgentCapabilities.input_modes` and `AgentCapabilities.output_modes` fields are removed; use `AgentCard.default_input_modes`/`AgentCard.default_output_modes` for card-level defaults, or `AgentSkill.input_modes`/`AgentSkill.output_modes` for per-skill overrides.
144
+
- 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.
146
145
- The `examples` parameter in `AgentCard` is removed and is now part of `AgentSkill`.
0 commit comments