Skip to content

Commit 07f70ec

Browse files
Switch to openAPI 3.0, fern upgrade, http snippet fix (#162)
* SDK regeneration * chore: Version bump * chore: Version bump * SDK regeneration * wip * chore: Add support for user and graph specific entity/edge types * chore: Add support for ontology target * SDK regeneration * chore: Add support for multiple ontology targets * SDK regeneration * fix: redundant default to empty list * fix: comment * fix: comment * chore: Bump version * SDK regeneration * feat: Update context string utility to include entity attributes and episodes * SDK regeneration * chore: Version bump * SDK regeneration * chore: Version bump * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * chore: Version bump * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * SDK regeneration * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent e6a0df3 commit 07f70ec

21 files changed

+148
-40
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@getzep/zep-cloud",
3-
"version": "3.10.0",
3+
"version": "3.11.0",
44
"private": false,
55
"repository": "https://github.com/getzep/zep-js",
66
"description": "Zep: Fast, scalable building blocks for production LLM apps",

reference.md

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ Returns all entity types for a project, user, or graph.
3030
<dd>
3131

3232
```typescript
33-
await client.graph.listEntityTypes();
33+
await client.graph.listEntityTypes({
34+
userId: "user_id",
35+
graphId: "graph_id",
36+
});
3437
```
3538

3639
</dd>
@@ -487,7 +490,10 @@ Returns all graphs. In order to list users, use user.list_ordered instead
487490
<dd>
488491

489492
```typescript
490-
await client.graph.listAll();
493+
await client.graph.listAll({
494+
pageNumber: 1,
495+
pageSize: 1,
496+
});
491497
```
492498

493499
</dd>
@@ -871,7 +877,12 @@ Returns all threads.
871877
<dd>
872878

873879
```typescript
874-
await client.thread.listAll();
880+
await client.thread.listAll({
881+
pageNumber: 1,
882+
pageSize: 1,
883+
orderBy: "order_by",
884+
asc: true,
885+
});
875886
```
876887

877888
</dd>
@@ -1063,7 +1074,10 @@ Returns most relevant context from the user graph (including memory from any/all
10631074
<dd>
10641075

10651076
```typescript
1066-
await client.thread.getUserContext("threadId");
1077+
await client.thread.getUserContext("threadId", {
1078+
minRating: 1.1,
1079+
mode: "basic",
1080+
});
10671081
```
10681082

10691083
</dd>
@@ -1134,7 +1148,11 @@ Returns messages for a thread.
11341148
<dd>
11351149

11361150
```typescript
1137-
await client.thread.get("threadId");
1151+
await client.thread.get("threadId", {
1152+
limit: 1,
1153+
cursor: 1,
1154+
lastn: 1,
1155+
});
11381156
```
11391157

11401158
</dd>
@@ -1363,7 +1381,9 @@ Lists all user summary instructions for a project, user.
13631381
<dd>
13641382

13651383
```typescript
1366-
await client.user.listUserSummaryInstructions();
1384+
await client.user.listUserSummaryInstructions({
1385+
userId: "user_id",
1386+
});
13671387
```
13681388

13691389
</dd>
@@ -1624,7 +1644,10 @@ Returns all users.
16241644
<dd>
16251645

16261646
```typescript
1627-
await client.user.listOrdered();
1647+
await client.user.listOrdered({
1648+
pageNumber: 1,
1649+
pageSize: 1,
1650+
});
16281651
```
16291652

16301653
</dd>
@@ -2345,7 +2368,9 @@ Returns episodes by graph id.
23452368
<dd>
23462369

23472370
```typescript
2348-
await client.graph.episode.getByGraphId("graph_id");
2371+
await client.graph.episode.getByGraphId("graph_id", {
2372+
lastn: 1,
2373+
});
23492374
```
23502375

23512376
</dd>
@@ -2416,7 +2441,9 @@ Returns episodes by user id.
24162441
<dd>
24172442

24182443
```typescript
2419-
await client.graph.episode.getByUserId("user_id");
2444+
await client.graph.episode.getByUserId("user_id", {
2445+
lastn: 1,
2446+
});
24202447
```
24212448

24222449
</dd>

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export class ZepClient {
4747
{
4848
"X-Fern-Language": "JavaScript",
4949
"X-Fern-SDK-Name": "zep-cloud",
50-
"X-Fern-SDK-Version": "3.10.0",
51-
"User-Agent": "zep-cloud/3.10.0",
50+
"X-Fern-SDK-Version": "3.11.0",
51+
"User-Agent": "zep-cloud/3.11.0",
5252
"X-Fern-Runtime": core.RUNTIME.type,
5353
"X-Fern-Runtime-Version": core.RUNTIME.version,
5454
},

src/api/resources/graph/client/Client.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export class Graph {
6868
* @throws {@link Zep.InternalServerError}
6969
*
7070
* @example
71-
* await client.graph.listEntityTypes()
71+
* await client.graph.listEntityTypes({
72+
* userId: "user_id",
73+
* graphId: "graph_id"
74+
* })
7275
*/
7376
public listEntityTypes(
7477
request: Zep.GraphListEntityTypesRequest = {},
@@ -861,7 +864,10 @@ export class Graph {
861864
* @throws {@link Zep.InternalServerError}
862865
*
863866
* @example
864-
* await client.graph.listAll()
867+
* await client.graph.listAll({
868+
* pageNumber: 1,
869+
* pageSize: 1
870+
* })
865871
*/
866872
public listAll(
867873
request: Zep.GraphListAllRequest = {},

src/api/resources/graph/client/requests/GraphListAllRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
/**
66
* @example
7-
* {}
7+
* {
8+
* pageNumber: 1,
9+
* pageSize: 1
10+
* }
811
*/
912
export interface GraphListAllRequest {
1013
/**

src/api/resources/graph/client/requests/GraphListEntityTypesRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
/**
66
* @example
7-
* {}
7+
* {
8+
* userId: "user_id",
9+
* graphId: "graph_id"
10+
* }
811
*/
912
export interface GraphListEntityTypesRequest {
1013
/**

src/api/resources/graph/resources/episode/client/Client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ export class Episode {
5050
* @throws {@link Zep.InternalServerError}
5151
*
5252
* @example
53-
* await client.graph.episode.getByGraphId("graph_id")
53+
* await client.graph.episode.getByGraphId("graph_id", {
54+
* lastn: 1
55+
* })
5456
*/
5557
public getByGraphId(
5658
graphId: string,
@@ -163,7 +165,9 @@ export class Episode {
163165
* @throws {@link Zep.InternalServerError}
164166
*
165167
* @example
166-
* await client.graph.episode.getByUserId("user_id")
168+
* await client.graph.episode.getByUserId("user_id", {
169+
* lastn: 1
170+
* })
167171
*/
168172
public getByUserId(
169173
userId: string,

src/api/resources/graph/resources/episode/client/requests/EpisodeGetByGraphIdRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
/**
66
* @example
7-
* {}
7+
* {
8+
* lastn: 1
9+
* }
810
*/
911
export interface EpisodeGetByGraphIdRequest {
1012
/**

src/api/resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
/**
66
* @example
7-
* {}
7+
* {
8+
* lastn: 1
9+
* }
810
*/
911
export interface EpisodeGetByUserIdRequest {
1012
/**

src/api/resources/thread/client/Client.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ export class Thread {
5555
* @throws {@link Zep.InternalServerError}
5656
*
5757
* @example
58-
* await client.thread.listAll()
58+
* await client.thread.listAll({
59+
* pageNumber: 1,
60+
* pageSize: 1,
61+
* orderBy: "order_by",
62+
* asc: true
63+
* })
5964
*/
6065
public listAll(
6166
request: Zep.ThreadListAllRequest = {},
@@ -393,7 +398,10 @@ export class Thread {
393398
* @throws {@link Zep.InternalServerError}
394399
*
395400
* @example
396-
* await client.thread.getUserContext("threadId")
401+
* await client.thread.getUserContext("threadId", {
402+
* minRating: 1.1,
403+
* mode: "basic"
404+
* })
397405
*/
398406
public getUserContext(
399407
threadId: string,
@@ -513,7 +521,11 @@ export class Thread {
513521
* @throws {@link Zep.InternalServerError}
514522
*
515523
* @example
516-
* await client.thread.get("threadId")
524+
* await client.thread.get("threadId", {
525+
* limit: 1,
526+
* cursor: 1,
527+
* lastn: 1
528+
* })
517529
*/
518530
public get(
519531
threadId: string,

0 commit comments

Comments
 (0)