Skip to content

Commit 1823b93

Browse files
committed
Merge branch 'migration' of https://github.com/sokoliva/a2a-python into migration
2 parents 59c1411 + 44cbbfc commit 1823b93

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
@@ -131,7 +131,7 @@ message = Message(
131131
132132
### AgentCard Structure
133133

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

136136
Key differences:
137137
- `url` is gone; use `supported_interfaces` with one or more `AgentInterface` entries
@@ -164,15 +164,21 @@ agent_card = AgentCard(
164164

165165
**After (v1.0):**
166166
```python
167-
from a2a.types import AgentCard, AgentCapabilities, AgentInterface, AgentSkill
167+
from a2a.types import AgentCard, AgentCapabilities, AgentInterface, AgentSkill,
168168

169169
agent_card = AgentCard(
170170
name='My Agent',
171171
description='...',
172172
supported_interfaces=[
173+
# JSON-RPC
173174
AgentInterface(
174175
protocol_binding='JSONRPC',
175-
url='http://localhost:9999/',
176+
url='http://localhost:41241/a2a/jsonrpc/',
177+
),
178+
# GRPC
179+
AgentInterface(
180+
protocol_binding='GRPC',
181+
url='http://localhost:50051/a2a/grpc/',
176182
)
177183
],
178184
version='1.0.0',
@@ -219,7 +225,7 @@ request_handler = DefaultRequestHandler(
219225

220226
## 4. Server: Application Setup
221227

222-
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.
228+
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.
223229

224230
**Before (v0.3):**
225231
```python

0 commit comments

Comments
 (0)