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
> For a full working example see [`samples/hello_world_agent.py`](../../../samples/hello_world_agent.py). For known limitations see [issue #742](https://github.com/a2aproject/a2a-python/issues/742).
262
+
263
+
---
264
+
265
+
## 6. Client: Creating a Client
242
266
243
267
The `A2AClient` class has been removed. Use the new `create_client()` factory function.
244
268
@@ -276,7 +300,7 @@ async with client:
276
300
277
301
---
278
302
279
-
## 6. Client: Send Message
303
+
## 7. Client: Send Message
280
304
281
305
The key change in `BaseClient` is the return type of `send_message()`: it **now returns `AsyncIterator[StreamResponse]`** (v0.3 returned `AsyncIterator[ClientEvent | Message]`).
282
306
@@ -309,7 +333,7 @@ Each `StreamResponse` yields exactly one of: `task`, `message`, `status_update`,
309
333
310
334
---
311
335
312
-
## 7. Client: Push Notifications Config
336
+
## 8. Client: Push Notifications Config
313
337
314
338
`ClientConfig.push_notification_config` is now **singular** (a single `TaskPushNotificationConfig` or `None`), not a list.
315
339
@@ -329,7 +353,7 @@ config = ClientConfig(
329
353
330
354
---
331
355
332
-
## 8. Helper Utilities
356
+
## 9. Helper Utilities
333
357
334
358
A new `a2a.helpers` module consolidates helper functions into a single import. Most were previously available under `a2a.utils.*`; a few are new in v1.0.
0 commit comments