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
content="This is a detailed article about machine learning concepts...",
211
223
)
212
224
print(response.headers.get('X-My-Header'))
213
225
214
-
memory = response.parse() # get the object that `memories.list()` would have returned
215
-
print(memory.success)
226
+
memory = response.parse() # get the object that `memories.update()` would have returned
227
+
print(memory.id)
216
228
```
217
229
218
230
These methods return an [`APIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory/_response.py) object.
@@ -226,8 +238,10 @@ The above interface eagerly reads the full response body when you make the reque
226
238
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.
227
239
228
240
```python
229
-
with client.memories.with_streaming_response.list(
230
-
"id",
241
+
with client.memories.with_streaming_response.update(
242
+
path_id="id",
243
+
body_id="acxV5LHMEsG2hMSNb4umbn",
244
+
content="This is a detailed article about machine learning concepts...",
0 commit comments