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
Copy file name to clipboardExpand all lines: docs/migrations/v1_0/README.md
-14Lines changed: 0 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -381,17 +381,3 @@ from a2a.helpers import (
381
381
)
382
382
```
383
383
384
-
**Before (v0.3) — reading status message text:**
385
-
```python
386
-
text = chunk.root.result.status.message.parts[0].root.text
387
-
```
388
-
389
-
**After (v1.0) — reading artifact text:**
390
-
```python
391
-
from a2a.helpers import get_artifact_text
392
-
393
-
text = get_artifact_text(chunk.artifact_update.artifact)
394
-
```
395
-
396
-
> In v1.0, agents are expected to publish results as **Artifacts**. Use `TaskArtifactUpdateEvent` (via `event_queue.enqueue_event()`) in your `AgentExecutor` and read from `chunk.artifact_update` on the client side.
0 commit comments