File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11configured_endpoints : 13
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-ec1420af27ac837f49a977cb95726af45a5ee5b5cd367e54b8a611de47ee3c84 .yml
3- openapi_spec_hash : 0fc5dd84801ee8f46a9b5d0941bdefda
4- config_hash : bf6196b98ec72829d458bc45ccd5a5f9
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-e8dc461bfd68745a68eddc289ac15c0c5d222f20e81a5c61b11ee3807a75d839 .yml
3+ openapi_spec_hash : 24eece3c79152b96c2cc0f398cf9d6af
4+ config_hash : a6483af9d17ae2cb7e8c3f86037b05fa
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ client = Hyperspell(
3535memory_status = client.memories.add(
3636 text = " text" ,
3737)
38- print (memory_status.resource_id )
38+ print (memory_status.id )
3939```
4040
4141While you can provide an ` api_key ` keyword argument,
@@ -61,7 +61,7 @@ async def main() -> None:
6161 memory_status = await client.memories.add(
6262 text = " text" ,
6363 )
64- print (memory_status.resource_id )
64+ print (memory_status.id )
6565
6666
6767asyncio.run(main())
@@ -96,7 +96,7 @@ async def main() -> None:
9696 memory_status = await client.memories.add(
9797 text = " text" ,
9898 )
99- print (memory_status.resource_id )
99+ print (memory_status.id )
100100
101101
102102asyncio.run(main())
@@ -350,7 +350,7 @@ response = client.memories.with_raw_response.add(
350350print (response.headers.get(' X-My-Header' ))
351351
352352memory = response.parse() # get the object that `memories.add()` would have returned
353- print (memory.resource_id )
353+ print (memory.id )
354354```
355355
356356These methods return an [ ` APIResponse ` ] ( https://github.com/hyperspell/python-sdk/tree/main/src/hyperspell/_response.py ) object.
Original file line number Diff line number Diff line change @@ -96,5 +96,3 @@ class Memory(BaseModel):
9696
9797 score : Optional [float ] = None
9898 """The relevance of the resource to the query"""
99-
100- title : Optional [str ] = None
Original file line number Diff line number Diff line change 88
99
1010class MemoryStatus (BaseModel ):
11+ id : int
12+ """Deprecated: refer to documents by source and resource_id instead"""
13+
1114 resource_id : str
1215
1316 source : Literal [
You can’t perform that action at this time.
0 commit comments