Skip to content

Commit fae9dec

Browse files
committed
SDK regeneration
1 parent abfdca1 commit fae9dec

3 files changed

Lines changed: 19 additions & 23 deletions

File tree

reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@ client.user.get_threads(
24152415
</dl>
24162416
</details>
24172417

2418-
<details><summary><code>client.user.<a href="src/zep_cloud/user/client.py">warm_user_cache</a>(...)</code></summary>
2418+
<details><summary><code>client.user.<a href="src/zep_cloud/user/client.py">warm</a>(...)</code></summary>
24192419
<dl>
24202420
<dd>
24212421

@@ -2427,7 +2427,7 @@ client.user.get_threads(
24272427
<dl>
24282428
<dd>
24292429

2430-
Hints TurboPuffer to warm cache for this user's graph namespaces for low-latency search
2430+
Hints Zep to warm a user's graph for low-latency search
24312431
</dd>
24322432
</dl>
24332433
</dd>
@@ -2447,7 +2447,7 @@ from zep_cloud import Zep
24472447
client = Zep(
24482448
api_key="YOUR_API_KEY",
24492449
)
2450-
client.user.warm_user_cache(
2450+
client.user.warm(
24512451
user_id="userId",
24522452
)
24532453

src/zep_cloud/user/client.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,9 @@ def get_threads(
325325
_response = self._raw_client.get_threads(user_id, request_options=request_options)
326326
return _response.data
327327

328-
def warm_user_cache(
329-
self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None
330-
) -> SuccessResponse:
328+
def warm(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> SuccessResponse:
331329
"""
332-
Hints TurboPuffer to warm cache for this user's graph namespaces for low-latency search
330+
Hints Zep to warm a user's graph for low-latency search
333331
334332
Parameters
335333
----------
@@ -342,7 +340,7 @@ def warm_user_cache(
342340
Returns
343341
-------
344342
SuccessResponse
345-
Cache warm hint accepted
343+
Warm hint accepted
346344
347345
Examples
348346
--------
@@ -351,11 +349,11 @@ def warm_user_cache(
351349
client = Zep(
352350
api_key="YOUR_API_KEY",
353351
)
354-
client.user.warm_user_cache(
352+
client.user.warm(
355353
user_id="userId",
356354
)
357355
"""
358-
_response = self._raw_client.warm_user_cache(user_id, request_options=request_options)
356+
_response = self._raw_client.warm(user_id, request_options=request_options)
359357
return _response.data
360358

361359

@@ -726,11 +724,9 @@ async def main() -> None:
726724
_response = await self._raw_client.get_threads(user_id, request_options=request_options)
727725
return _response.data
728726

729-
async def warm_user_cache(
730-
self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None
731-
) -> SuccessResponse:
727+
async def warm(self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> SuccessResponse:
732728
"""
733-
Hints TurboPuffer to warm cache for this user's graph namespaces for low-latency search
729+
Hints Zep to warm a user's graph for low-latency search
734730
735731
Parameters
736732
----------
@@ -743,7 +739,7 @@ async def warm_user_cache(
743739
Returns
744740
-------
745741
SuccessResponse
746-
Cache warm hint accepted
742+
Warm hint accepted
747743
748744
Examples
749745
--------
@@ -757,12 +753,12 @@ async def warm_user_cache(
757753
758754
759755
async def main() -> None:
760-
await client.user.warm_user_cache(
756+
await client.user.warm(
761757
user_id="userId",
762758
)
763759
764760
765761
asyncio.run(main())
766762
"""
767-
_response = await self._raw_client.warm_user_cache(user_id, request_options=request_options)
763+
_response = await self._raw_client.warm(user_id, request_options=request_options)
768764
return _response.data

src/zep_cloud/user/raw_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,11 @@ def get_threads(
566566
status_code=_response.status_code, headers=dict(_response.headers), body=_response_json
567567
)
568568

569-
def warm_user_cache(
569+
def warm(
570570
self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None
571571
) -> HttpResponse[SuccessResponse]:
572572
"""
573-
Hints TurboPuffer to warm cache for this user's graph namespaces for low-latency search
573+
Hints Zep to warm a user's graph for low-latency search
574574
575575
Parameters
576576
----------
@@ -583,7 +583,7 @@ def warm_user_cache(
583583
Returns
584584
-------
585585
HttpResponse[SuccessResponse]
586-
Cache warm hint accepted
586+
Warm hint accepted
587587
"""
588588
_response = self._client_wrapper.httpx_client.request(
589589
f"users/{jsonable_encoder(user_id)}/warm",
@@ -1175,11 +1175,11 @@ async def get_threads(
11751175
status_code=_response.status_code, headers=dict(_response.headers), body=_response_json
11761176
)
11771177

1178-
async def warm_user_cache(
1178+
async def warm(
11791179
self, user_id: str, *, request_options: typing.Optional[RequestOptions] = None
11801180
) -> AsyncHttpResponse[SuccessResponse]:
11811181
"""
1182-
Hints TurboPuffer to warm cache for this user's graph namespaces for low-latency search
1182+
Hints Zep to warm a user's graph for low-latency search
11831183
11841184
Parameters
11851185
----------
@@ -1192,7 +1192,7 @@ async def warm_user_cache(
11921192
Returns
11931193
-------
11941194
AsyncHttpResponse[SuccessResponse]
1195-
Cache warm hint accepted
1195+
Warm hint accepted
11961196
"""
11971197
_response = await self._client_wrapper.httpx_client.request(
11981198
f"users/{jsonable_encoder(user_id)}/warm",

0 commit comments

Comments
 (0)