Skip to content

Commit 7d38ca7

Browse files
committed
update docs
1 parent ac09578 commit 7d38ca7

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

docs/migrations/v1_0/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ message = Message(
129129
130130
### AgentCard Structure
131131

132-
The `AgentCard` has been significantly restructured to support multiple transport interfaces.
132+
The new `AgentCard` can supports multiple transport bindings using `AgentInterface` class.
133133

134134
Key differences:
135135
- `url` is gone; use `supported_interfaces` with one or more `AgentInterface` entries
@@ -162,15 +162,21 @@ agent_card = AgentCard(
162162

163163
**After (v1.0):**
164164
```python
165-
from a2a.types import AgentCard, AgentCapabilities, AgentInterface, AgentSkill
165+
from a2a.types import AgentCard, AgentCapabilities, AgentInterface, AgentSkill,
166166

167167
agent_card = AgentCard(
168168
name='My Agent',
169169
description='...',
170170
supported_interfaces=[
171+
# JSON-RPC
171172
AgentInterface(
172173
protocol_binding='JSONRPC',
173-
url='http://localhost:9999/',
174+
url='http://localhost:41241/a2a/jsonrpc/',
175+
),
176+
# GRPC
177+
AgentInterface(
178+
protocol_binding='GRPC',
179+
url='http://localhost:50051/a2a/grpc/',
174180
)
175181
],
176182
version='1.0.0',
@@ -217,7 +223,7 @@ request_handler = DefaultRequestHandler(
217223

218224
## 4. Server: Application Setup
219225

220-
The `A2AStarletteApplication`, `A2AFastApiApplication` and `A2ARESTFastApiApplication` wrapper classes have been removed. Server setup now uses **Starlette route factory functions** directly, giving you full control over the routing.
226+
The wrapper classes (`A2AStarletteApplication`, `A2AFastApiApplication` and `A2ARESTFastApiApplication`) are now removed. The Server setup now uses Starlette route factory functions directly, giving you full control over the routing.
221227

222228
**Before (v0.3):**
223229
```python

0 commit comments

Comments
 (0)