@getzep/zep-cloud 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/thread/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/thread/client/Client.js +2 -2
- package/dist/cjs/api/types/AddThreadMessagesRequest.d.ts +1 -1
- package/dist/cjs/api/types/ThreadContextResponse.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/thread/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/thread/client/Client.mjs +2 -2
- package/dist/esm/api/types/AddThreadMessagesRequest.d.mts +1 -1
- package/dist/esm/api/types/ThreadContextResponse.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -2
package/dist/cjs/Client.js
CHANGED
|
@@ -47,8 +47,8 @@ class ZepClient {
|
|
|
47
47
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
50
|
-
"X-Fern-SDK-Version": "3.4.
|
|
51
|
-
"User-Agent": "zep-cloud/3.4.
|
|
50
|
+
"X-Fern-SDK-Version": "3.4.1",
|
|
51
|
+
"User-Agent": "zep-cloud/3.4.1",
|
|
52
52
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
53
53
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
54
54
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -74,9 +74,9 @@ export declare class Thread {
|
|
|
74
74
|
delete(threadId: string, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
|
|
75
75
|
private __delete;
|
|
76
76
|
/**
|
|
77
|
-
* Returns most relevant context
|
|
77
|
+
* Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
|
|
78
78
|
*
|
|
79
|
-
* @param {string} threadId - The ID of the thread for which
|
|
79
|
+
* @param {string} threadId - The ID of the current thread (for which context is being retrieved).
|
|
80
80
|
* @param {Zep.ThreadGetUserContextRequest} request
|
|
81
81
|
* @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
82
|
*
|
|
@@ -324,9 +324,9 @@ class Thread {
|
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
|
-
* Returns most relevant context
|
|
327
|
+
* Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
|
|
328
328
|
*
|
|
329
|
-
* @param {string} threadId - The ID of the thread for which
|
|
329
|
+
* @param {string} threadId - The ID of the current thread (for which context is being retrieved).
|
|
330
330
|
* @param {Zep.ThreadGetUserContextRequest} request
|
|
331
331
|
* @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
|
|
332
332
|
*
|
|
@@ -11,6 +11,6 @@ export interface AddThreadMessagesRequest {
|
|
|
11
11
|
ignoreRoles?: Zep.RoleType[];
|
|
12
12
|
/** A list of message objects, where each message contains a role and content. */
|
|
13
13
|
messages: Zep.Message[];
|
|
14
|
-
/** Optionally return
|
|
14
|
+
/** Optionally return context block relevant to the most recent messages. */
|
|
15
15
|
returnContext?: boolean;
|
|
16
16
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface ThreadContextResponse {
|
|
5
|
-
/**
|
|
5
|
+
/** Context block containing relevant facts, entities, and messages/episodes from the user graph. Meant to be replaced in the system prompt on every chat turn. */
|
|
6
6
|
context?: string;
|
|
7
7
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.4.
|
|
1
|
+
export declare const SDK_VERSION = "3.4.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,8 +11,8 @@ export class ZepClient {
|
|
|
11
11
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
12
12
|
"X-Fern-Language": "JavaScript",
|
|
13
13
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
14
|
-
"X-Fern-SDK-Version": "3.4.
|
|
15
|
-
"User-Agent": "zep-cloud/3.4.
|
|
14
|
+
"X-Fern-SDK-Version": "3.4.1",
|
|
15
|
+
"User-Agent": "zep-cloud/3.4.1",
|
|
16
16
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
17
17
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
18
18
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -74,9 +74,9 @@ export declare class Thread {
|
|
|
74
74
|
delete(threadId: string, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
|
|
75
75
|
private __delete;
|
|
76
76
|
/**
|
|
77
|
-
* Returns most relevant context
|
|
77
|
+
* Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
|
|
78
78
|
*
|
|
79
|
-
* @param {string} threadId - The ID of the thread for which
|
|
79
|
+
* @param {string} threadId - The ID of the current thread (for which context is being retrieved).
|
|
80
80
|
* @param {Zep.ThreadGetUserContextRequest} request
|
|
81
81
|
* @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
82
|
*
|
|
@@ -288,9 +288,9 @@ export class Thread {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
|
-
* Returns most relevant context
|
|
291
|
+
* Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
|
|
292
292
|
*
|
|
293
|
-
* @param {string} threadId - The ID of the thread for which
|
|
293
|
+
* @param {string} threadId - The ID of the current thread (for which context is being retrieved).
|
|
294
294
|
* @param {Zep.ThreadGetUserContextRequest} request
|
|
295
295
|
* @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
|
|
296
296
|
*
|
|
@@ -11,6 +11,6 @@ export interface AddThreadMessagesRequest {
|
|
|
11
11
|
ignoreRoles?: Zep.RoleType[];
|
|
12
12
|
/** A list of message objects, where each message contains a role and content. */
|
|
13
13
|
messages: Zep.Message[];
|
|
14
|
-
/** Optionally return
|
|
14
|
+
/** Optionally return context block relevant to the most recent messages. */
|
|
15
15
|
returnContext?: boolean;
|
|
16
16
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface ThreadContextResponse {
|
|
5
|
-
/**
|
|
5
|
+
/** Context block containing relevant facts, entities, and messages/episodes from the user graph. Meant to be replaced in the system prompt on every chat turn. */
|
|
6
6
|
context?: string;
|
|
7
7
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.4.
|
|
1
|
+
export declare const SDK_VERSION = "3.4.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.4.
|
|
1
|
+
export const SDK_VERSION = "3.4.1";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -990,7 +990,7 @@ await client.thread.delete("threadId");
|
|
|
990
990
|
<dl>
|
|
991
991
|
<dd>
|
|
992
992
|
|
|
993
|
-
Returns most relevant context
|
|
993
|
+
Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.
|
|
994
994
|
|
|
995
995
|
</dd>
|
|
996
996
|
</dl>
|
|
@@ -1022,7 +1022,7 @@ await client.thread.getUserContext("threadId");
|
|
|
1022
1022
|
<dl>
|
|
1023
1023
|
<dd>
|
|
1024
1024
|
|
|
1025
|
-
**threadId:** `string` — The ID of the thread for which
|
|
1025
|
+
**threadId:** `string` — The ID of the current thread (for which context is being retrieved).
|
|
1026
1026
|
|
|
1027
1027
|
</dd>
|
|
1028
1028
|
</dl>
|