Skip to content

Commit e06adad

Browse files
SDK regeneration
1 parent 284de23 commit e06adad

22 files changed

Lines changed: 283 additions & 155 deletions

reference.md

Lines changed: 65 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ from zep_cloud import Zep
3232
client = Zep(
3333
api_key="YOUR_API_KEY",
3434
)
35-
client.graph.list_entity_types()
35+
client.graph.list_entity_types(
36+
user_id="user_id",
37+
graph_id="graph_id",
38+
)
3639

3740
```
3841
</dd>
@@ -772,7 +775,10 @@ from zep_cloud import Zep
772775
client = Zep(
773776
api_key="YOUR_API_KEY",
774777
)
775-
client.graph.list_all()
778+
client.graph.list_all(
779+
page_number=1,
780+
page_size=1,
781+
)
776782

777783
```
778784
</dd>
@@ -1209,7 +1215,7 @@ client.graph.update(
12091215
</details>
12101216

12111217
## Project
1212-
<details><summary><code>client.project.<a href="src/zep_cloud/project/client.py">get</a>()</code></summary>
1218+
<details><summary><code>client.project.<a href="src/zep_cloud/project/client.py">get_info</a>()</code></summary>
12131219
<dl>
12141220
<dd>
12151221

@@ -1241,7 +1247,7 @@ from zep_cloud import Zep
12411247
client = Zep(
12421248
api_key="YOUR_API_KEY",
12431249
)
1244-
client.project.get()
1250+
client.project.get_info()
12451251

12461252
```
12471253
</dd>
@@ -1270,7 +1276,7 @@ client.project.get()
12701276
</details>
12711277

12721278
## Thread
1273-
<details><summary><code>client.thread.<a href="src/zep_cloud/thread/client.py">list_all</a>(...)</code></summary>
1279+
<details><summary><code>client.thread.<a href="src/zep_cloud/thread/client.py">list</a>(...)</code></summary>
12741280
<dl>
12751281
<dd>
12761282

@@ -1302,7 +1308,12 @@ from zep_cloud import Zep
13021308
client = Zep(
13031309
api_key="YOUR_API_KEY",
13041310
)
1305-
client.thread.list_all()
1311+
client.thread.list(
1312+
page_number=1,
1313+
page_size=1,
1314+
order_by="order_by",
1315+
asc=True,
1316+
)
13061317

13071318
```
13081319
</dd>
@@ -1511,7 +1522,7 @@ client.thread.delete(
15111522
</dl>
15121523
</details>
15131524

1514-
<details><summary><code>client.thread.<a href="src/zep_cloud/thread/client.py">get_user_context</a>(...)</code></summary>
1525+
<details><summary><code>client.thread.<a href="src/zep_cloud/thread/client.py">get_context</a>(...)</code></summary>
15151526
<dl>
15161527
<dd>
15171528

@@ -1543,8 +1554,10 @@ from zep_cloud import Zep
15431554
client = Zep(
15441555
api_key="YOUR_API_KEY",
15451556
)
1546-
client.thread.get_user_context(
1557+
client.thread.get_context(
15471558
thread_id="threadId",
1559+
min_rating=1.1,
1560+
mode="basic",
15481561
)
15491562

15501563
```
@@ -1577,7 +1590,7 @@ client.thread.get_user_context(
15771590
<dl>
15781591
<dd>
15791592

1580-
**mode:** `typing.Optional[ThreadGetUserContextRequestMode]` — Defaults to summary mode. Use basic for lower latency
1593+
**mode:** `typing.Optional[ThreadGetContextRequestMode]` — Defaults to summary mode. Use basic for lower latency
15811594

15821595
</dd>
15831596
</dl>
@@ -1597,7 +1610,7 @@ client.thread.get_user_context(
15971610
</dl>
15981611
</details>
15991612

1600-
<details><summary><code>client.thread.<a href="src/zep_cloud/thread/client.py">get</a>(...)</code></summary>
1613+
<details><summary><code>client.thread.<a href="src/zep_cloud/thread/client.py">get_messages</a>(...)</code></summary>
16011614
<dl>
16021615
<dd>
16031616

@@ -1629,8 +1642,11 @@ from zep_cloud import Zep
16291642
client = Zep(
16301643
api_key="YOUR_API_KEY",
16311644
)
1632-
client.thread.get(
1645+
client.thread.get_messages(
16331646
thread_id="threadId",
1647+
limit=1,
1648+
cursor=1,
1649+
lastn=1,
16341650
)
16351651

16361652
```
@@ -1958,6 +1974,14 @@ client.user.add(
19581974
<dl>
19591975
<dd>
19601976

1977+
**disable_default_ontology:** `typing.Optional[bool]` — When true, disables the use of default/fallback ontology for the user's graph.
1978+
1979+
</dd>
1980+
</dl>
1981+
1982+
<dl>
1983+
<dd>
1984+
19611985
**email:** `typing.Optional[str]` — The email address of the user.
19621986

19631987
</dd>
@@ -2042,7 +2066,10 @@ from zep_cloud import Zep
20422066
client = Zep(
20432067
api_key="YOUR_API_KEY",
20442068
)
2045-
client.user.list_ordered()
2069+
client.user.list_ordered(
2070+
page_number=1,
2071+
page_size=1,
2072+
)
20462073

20472074
```
20482075
</dd>
@@ -2284,6 +2311,14 @@ client.user.update(
22842311
<dl>
22852312
<dd>
22862313

2314+
**disable_default_ontology:** `typing.Optional[bool]` — When true, disables the use of default/fallback ontology for the user's graph.
2315+
2316+
</dd>
2317+
</dl>
2318+
2319+
<dl>
2320+
<dd>
2321+
22872322
**email:** `typing.Optional[str]` — The email address of the user.
22882323

22892324
</dd>
@@ -2547,7 +2582,7 @@ client.user.warm(
25472582
</details>
25482583

25492584
## Graph Edge
2550-
<details><summary><code>client.graph.edge.<a href="src/zep_cloud/graph/edge/client.py">get_by_graph_id</a>(...)</code></summary>
2585+
<details><summary><code>client.graph.edge.<a href="src/zep_cloud/graph/edge/client.py">get_graph_edges</a>(...)</code></summary>
25512586
<dl>
25522587
<dd>
25532588

@@ -2579,7 +2614,7 @@ from zep_cloud import Zep
25792614
client = Zep(
25802615
api_key="YOUR_API_KEY",
25812616
)
2582-
client.graph.edge.get_by_graph_id(
2617+
client.graph.edge.get_graph_edges(
25832618
graph_id="graph_id",
25842619
)
25852620

@@ -2633,7 +2668,7 @@ client.graph.edge.get_by_graph_id(
26332668
</dl>
26342669
</details>
26352670

2636-
<details><summary><code>client.graph.edge.<a href="src/zep_cloud/graph/edge/client.py">get_by_user_id</a>(...)</code></summary>
2671+
<details><summary><code>client.graph.edge.<a href="src/zep_cloud/graph/edge/client.py">get_user_edges</a>(...)</code></summary>
26372672
<dl>
26382673
<dd>
26392674

@@ -2665,7 +2700,7 @@ from zep_cloud import Zep
26652700
client = Zep(
26662701
api_key="YOUR_API_KEY",
26672702
)
2668-
client.graph.edge.get_by_user_id(
2703+
client.graph.edge.get_user_edges(
26692704
user_id="user_id",
26702705
)
26712706

@@ -2860,7 +2895,7 @@ client.graph.edge.delete(
28602895
</details>
28612896

28622897
## Graph Episode
2863-
<details><summary><code>client.graph.episode.<a href="src/zep_cloud/graph/episode/client.py">get_by_graph_id</a>(...)</code></summary>
2898+
<details><summary><code>client.graph.episode.<a href="src/zep_cloud/graph/episode/client.py">get_graph_episodes</a>(...)</code></summary>
28642899
<dl>
28652900
<dd>
28662901

@@ -2892,8 +2927,9 @@ from zep_cloud import Zep
28922927
client = Zep(
28932928
api_key="YOUR_API_KEY",
28942929
)
2895-
client.graph.episode.get_by_graph_id(
2930+
client.graph.episode.get_graph_episodes(
28962931
graph_id="graph_id",
2932+
lastn=1,
28972933
)
28982934

28992935
```
@@ -2938,7 +2974,7 @@ client.graph.episode.get_by_graph_id(
29382974
</dl>
29392975
</details>
29402976

2941-
<details><summary><code>client.graph.episode.<a href="src/zep_cloud/graph/episode/client.py">get_by_user_id</a>(...)</code></summary>
2977+
<details><summary><code>client.graph.episode.<a href="src/zep_cloud/graph/episode/client.py">get_user_episodes</a>(...)</code></summary>
29422978
<dl>
29432979
<dd>
29442980

@@ -2970,8 +3006,9 @@ from zep_cloud import Zep
29703006
client = Zep(
29713007
api_key="YOUR_API_KEY",
29723008
)
2973-
client.graph.episode.get_by_user_id(
3009+
client.graph.episode.get_user_episodes(
29743010
user_id="user_id",
3011+
lastn=1,
29753012
)
29763013

29773014
```
@@ -3156,7 +3193,7 @@ client.graph.episode.delete(
31563193
</dl>
31573194
</details>
31583195

3159-
<details><summary><code>client.graph.episode.<a href="src/zep_cloud/graph/episode/client.py">get_nodes_and_edges</a>(...)</code></summary>
3196+
<details><summary><code>client.graph.episode.<a href="src/zep_cloud/graph/episode/client.py">get_mentions</a>(...)</code></summary>
31603197
<dl>
31613198
<dd>
31623199

@@ -3188,7 +3225,7 @@ from zep_cloud import Zep
31883225
client = Zep(
31893226
api_key="YOUR_API_KEY",
31903227
)
3191-
client.graph.episode.get_nodes_and_edges(
3228+
client.graph.episode.get_mentions(
31923229
uuid_="uuid",
31933230
)
31943231

@@ -3227,7 +3264,7 @@ client.graph.episode.get_nodes_and_edges(
32273264
</details>
32283265

32293266
## Graph Node
3230-
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_by_graph_id</a>(...)</code></summary>
3267+
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_graph_nodes</a>(...)</code></summary>
32313268
<dl>
32323269
<dd>
32333270

@@ -3259,7 +3296,7 @@ from zep_cloud import Zep
32593296
client = Zep(
32603297
api_key="YOUR_API_KEY",
32613298
)
3262-
client.graph.node.get_by_graph_id(
3299+
client.graph.node.get_graph_nodes(
32633300
graph_id="graph_id",
32643301
)
32653302

@@ -3313,7 +3350,7 @@ client.graph.node.get_by_graph_id(
33133350
</dl>
33143351
</details>
33153352

3316-
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_by_user_id</a>(...)</code></summary>
3353+
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_user_nodes</a>(...)</code></summary>
33173354
<dl>
33183355
<dd>
33193356

@@ -3345,7 +3382,7 @@ from zep_cloud import Zep
33453382
client = Zep(
33463383
api_key="YOUR_API_KEY",
33473384
)
3348-
client.graph.node.get_by_user_id(
3385+
client.graph.node.get_user_nodes(
33493386
user_id="user_id",
33503387
)
33513388

@@ -3399,7 +3436,7 @@ client.graph.node.get_by_user_id(
33993436
</dl>
34003437
</details>
34013438

3402-
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_edges</a>(...)</code></summary>
3439+
<details><summary><code>client.graph.node.<a href="src/zep_cloud/graph/node/client.py">get_entity_edges</a>(...)</code></summary>
34033440
<dl>
34043441
<dd>
34053442

@@ -3431,7 +3468,7 @@ from zep_cloud import Zep
34313468
client = Zep(
34323469
api_key="YOUR_API_KEY",
34333470
)
3434-
client.graph.node.get_edges(
3471+
client.graph.node.get_entity_edges(
34353472
node_uuid="node_uuid",
34363473
)
34373474

src/zep_cloud/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
from . import graph, project, thread, user
5353
from .client import AsyncZep, Zep
5454
from .environment import ZepEnvironment
55-
from .thread import ThreadGetUserContextRequestMode
55+
from .thread import ThreadGetContextRequestMode
5656
from .version import __version__
5757

5858
__all__ = [
@@ -100,7 +100,7 @@
100100
"SuccessResponse",
101101
"Thread",
102102
"ThreadContextResponse",
103-
"ThreadGetUserContextRequestMode",
103+
"ThreadGetContextRequestMode",
104104
"ThreadListResponse",
105105
"User",
106106
"UserListResponse",

src/zep_cloud/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "zep-cloud/3.8.0",
25+
"User-Agent": "zep-cloud/3.9.0",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "zep-cloud",
28-
"X-Fern-SDK-Version": "3.8.0",
28+
"X-Fern-SDK-Version": "3.9.0",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Api-Key {self.api_key}"

src/zep_cloud/graph/client.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ def list_entity_types(
8282
client = Zep(
8383
api_key="YOUR_API_KEY",
8484
)
85-
client.graph.list_entity_types()
85+
client.graph.list_entity_types(
86+
user_id="user_id",
87+
graph_id="graph_id",
88+
)
8689
"""
8790
_response = self._raw_client.list_entity_types(
8891
user_id=user_id, graph_id=graph_id, request_options=request_options
@@ -492,7 +495,10 @@ def list_all(
492495
client = Zep(
493496
api_key="YOUR_API_KEY",
494497
)
495-
client.graph.list_all()
498+
client.graph.list_all(
499+
page_number=1,
500+
page_size=1,
501+
)
496502
"""
497503
_response = self._raw_client.list_all(
498504
page_number=page_number, page_size=page_size, request_options=request_options
@@ -765,7 +771,10 @@ async def list_entity_types(
765771
766772
767773
async def main() -> None:
768-
await client.graph.list_entity_types()
774+
await client.graph.list_entity_types(
775+
user_id="user_id",
776+
graph_id="graph_id",
777+
)
769778
770779
771780
asyncio.run(main())
@@ -1231,7 +1240,10 @@ async def list_all(
12311240
12321241
12331242
async def main() -> None:
1234-
await client.graph.list_all()
1243+
await client.graph.list_all(
1244+
page_number=1,
1245+
page_size=1,
1246+
)
12351247
12361248
12371249
asyncio.run(main())

0 commit comments

Comments
 (0)