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
echo= response.parse() # get the object that `echo.send()` would have returned
249
-
print(echo)
250
+
agent= response.parse() # get the object that `agents.retrieve()` would have returned
251
+
print(agent.id)
250
252
```
251
253
252
254
These methods return an [`APIResponse`](https://github.com/scaleapi/agentex-python/tree/main/src/agentex/_response.py) object.
@@ -260,8 +262,8 @@ The above interface eagerly reads the full response body when you make the reque
260
262
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.
261
263
262
264
```python
263
-
with client.echo.with_streaming_response.send(
264
-
message="message",
265
+
with client.agents.with_streaming_response.retrieve(
0 commit comments