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
session= response.parse() # get the object that `agents.sessions.create()` would have returned
297
-
print(session.session_id)
278
+
toolgroup= response.parse() # get the object that `toolgroups.list()` would have returned
279
+
print(toolgroup)
298
280
```
299
281
300
282
These methods return an [`APIResponse`](https://github.com/meta-llama/llama-stack-python/tree/main/src/llama_stack_client/_response.py) object.
@@ -308,10 +290,7 @@ The above interface eagerly reads the full response body when you make the reque
308
290
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
309
291
310
292
```python
311
-
with client.agents.sessions.with_streaming_response.create(
312
-
agent_id="agent_id",
313
-
session_name="session_name",
314
-
) as response:
293
+
with client.agents.toolgroups.with_streaming_response.list() as response:
0 commit comments