Skip to content

Commit 37def01

Browse files
feat(api): update via SDK Studio
1 parent e6c05cd commit 37def01

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ client = Hyperspell(
3535
memory_status = client.memories.add(
3636
text="text",
3737
)
38-
print(memory_status.resource_id)
38+
print(memory_status.id)
3939
```
4040

4141
While 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

6767
asyncio.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

102102
asyncio.run(main())
@@ -350,7 +350,7 @@ response = client.memories.with_raw_response.add(
350350
print(response.headers.get('X-My-Header'))
351351

352352
memory = response.parse() # get the object that `memories.add()` would have returned
353-
print(memory.resource_id)
353+
print(memory.id)
354354
```
355355

356356
These methods return an [`APIResponse`](https://github.com/hyperspell/python-sdk/tree/main/src/hyperspell/_response.py) object.

src/hyperspell/types/memory.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/hyperspell/types/memory_status.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99

1010
class 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[

0 commit comments

Comments
 (0)