@getzep/zep-cloud 3.4.0 → 3.5.0
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/resources/user/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/user/client/Client.js +81 -0
- 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/resources/user/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/user/client/Client.mjs +81 -0
- 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 +65 -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.
|
|
51
|
-
"User-Agent": "zep-cloud/3.
|
|
50
|
+
"X-Fern-SDK-Version": "3.5.0",
|
|
51
|
+
"User-Agent": "zep-cloud/3.5.0",
|
|
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
|
*
|
|
@@ -129,6 +129,20 @@ export declare class User {
|
|
|
129
129
|
*/
|
|
130
130
|
getThreads(userId: string, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.Thread[]>;
|
|
131
131
|
private __getThreads;
|
|
132
|
+
/**
|
|
133
|
+
* Hints Zep to warm a user's graph for low-latency search
|
|
134
|
+
*
|
|
135
|
+
* @param {string} userId - User ID
|
|
136
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link Zep.NotFoundError}
|
|
139
|
+
* @throws {@link Zep.InternalServerError}
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* await client.user.warm("userId")
|
|
143
|
+
*/
|
|
144
|
+
warm(userId: string, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
|
|
145
|
+
private __warm;
|
|
132
146
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
133
147
|
Authorization: string;
|
|
134
148
|
}>;
|
|
@@ -647,6 +647,87 @@ class User {
|
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
|
+
/**
|
|
651
|
+
* Hints Zep to warm a user's graph for low-latency search
|
|
652
|
+
*
|
|
653
|
+
* @param {string} userId - User ID
|
|
654
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
655
|
+
*
|
|
656
|
+
* @throws {@link Zep.NotFoundError}
|
|
657
|
+
* @throws {@link Zep.InternalServerError}
|
|
658
|
+
*
|
|
659
|
+
* @example
|
|
660
|
+
* await client.user.warm("userId")
|
|
661
|
+
*/
|
|
662
|
+
warm(userId, requestOptions) {
|
|
663
|
+
return core.HttpResponsePromise.fromPromise(this.__warm(userId, requestOptions));
|
|
664
|
+
}
|
|
665
|
+
__warm(userId, requestOptions) {
|
|
666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
+
var _a, _b, _c, _d;
|
|
668
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
669
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/warm`),
|
|
670
|
+
method: "GET",
|
|
671
|
+
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
672
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
673
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
674
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
675
|
+
});
|
|
676
|
+
if (_response.ok) {
|
|
677
|
+
return {
|
|
678
|
+
data: serializers.SuccessResponse.parseOrThrow(_response.body, {
|
|
679
|
+
unrecognizedObjectKeys: "passthrough",
|
|
680
|
+
allowUnrecognizedUnionMembers: true,
|
|
681
|
+
allowUnrecognizedEnumValues: true,
|
|
682
|
+
skipValidation: true,
|
|
683
|
+
breadcrumbsPrefix: ["response"],
|
|
684
|
+
}),
|
|
685
|
+
rawResponse: _response.rawResponse,
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
if (_response.error.reason === "status-code") {
|
|
689
|
+
switch (_response.error.statusCode) {
|
|
690
|
+
case 404:
|
|
691
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
692
|
+
unrecognizedObjectKeys: "passthrough",
|
|
693
|
+
allowUnrecognizedUnionMembers: true,
|
|
694
|
+
allowUnrecognizedEnumValues: true,
|
|
695
|
+
skipValidation: true,
|
|
696
|
+
breadcrumbsPrefix: ["response"],
|
|
697
|
+
}), _response.rawResponse);
|
|
698
|
+
case 500:
|
|
699
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
700
|
+
unrecognizedObjectKeys: "passthrough",
|
|
701
|
+
allowUnrecognizedUnionMembers: true,
|
|
702
|
+
allowUnrecognizedEnumValues: true,
|
|
703
|
+
skipValidation: true,
|
|
704
|
+
breadcrumbsPrefix: ["response"],
|
|
705
|
+
}), _response.rawResponse);
|
|
706
|
+
default:
|
|
707
|
+
throw new errors.ZepError({
|
|
708
|
+
statusCode: _response.error.statusCode,
|
|
709
|
+
body: _response.error.body,
|
|
710
|
+
rawResponse: _response.rawResponse,
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
switch (_response.error.reason) {
|
|
715
|
+
case "non-json":
|
|
716
|
+
throw new errors.ZepError({
|
|
717
|
+
statusCode: _response.error.statusCode,
|
|
718
|
+
body: _response.error.rawBody,
|
|
719
|
+
rawResponse: _response.rawResponse,
|
|
720
|
+
});
|
|
721
|
+
case "timeout":
|
|
722
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /users/{userId}/warm.");
|
|
723
|
+
case "unknown":
|
|
724
|
+
throw new errors.ZepError({
|
|
725
|
+
message: _response.error.errorMessage,
|
|
726
|
+
rawResponse: _response.rawResponse,
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
}
|
|
650
731
|
_getCustomAuthorizationHeaders() {
|
|
651
732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
652
733
|
var _a;
|
|
@@ -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.
|
|
1
|
+
export declare const SDK_VERSION = "3.5.0";
|
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.
|
|
15
|
-
"User-Agent": "zep-cloud/3.
|
|
14
|
+
"X-Fern-SDK-Version": "3.5.0",
|
|
15
|
+
"User-Agent": "zep-cloud/3.5.0",
|
|
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
|
*
|
|
@@ -129,6 +129,20 @@ export declare class User {
|
|
|
129
129
|
*/
|
|
130
130
|
getThreads(userId: string, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.Thread[]>;
|
|
131
131
|
private __getThreads;
|
|
132
|
+
/**
|
|
133
|
+
* Hints Zep to warm a user's graph for low-latency search
|
|
134
|
+
*
|
|
135
|
+
* @param {string} userId - User ID
|
|
136
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link Zep.NotFoundError}
|
|
139
|
+
* @throws {@link Zep.InternalServerError}
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* await client.user.warm("userId")
|
|
143
|
+
*/
|
|
144
|
+
warm(userId: string, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
|
|
145
|
+
private __warm;
|
|
132
146
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
133
147
|
Authorization: string;
|
|
134
148
|
}>;
|
|
@@ -611,6 +611,87 @@ export class User {
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* Hints Zep to warm a user's graph for low-latency search
|
|
616
|
+
*
|
|
617
|
+
* @param {string} userId - User ID
|
|
618
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
619
|
+
*
|
|
620
|
+
* @throws {@link Zep.NotFoundError}
|
|
621
|
+
* @throws {@link Zep.InternalServerError}
|
|
622
|
+
*
|
|
623
|
+
* @example
|
|
624
|
+
* await client.user.warm("userId")
|
|
625
|
+
*/
|
|
626
|
+
warm(userId, requestOptions) {
|
|
627
|
+
return core.HttpResponsePromise.fromPromise(this.__warm(userId, requestOptions));
|
|
628
|
+
}
|
|
629
|
+
__warm(userId, requestOptions) {
|
|
630
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
631
|
+
var _a, _b, _c, _d;
|
|
632
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
633
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/warm`),
|
|
634
|
+
method: "GET",
|
|
635
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
636
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
637
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
638
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
639
|
+
});
|
|
640
|
+
if (_response.ok) {
|
|
641
|
+
return {
|
|
642
|
+
data: serializers.SuccessResponse.parseOrThrow(_response.body, {
|
|
643
|
+
unrecognizedObjectKeys: "passthrough",
|
|
644
|
+
allowUnrecognizedUnionMembers: true,
|
|
645
|
+
allowUnrecognizedEnumValues: true,
|
|
646
|
+
skipValidation: true,
|
|
647
|
+
breadcrumbsPrefix: ["response"],
|
|
648
|
+
}),
|
|
649
|
+
rawResponse: _response.rawResponse,
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
if (_response.error.reason === "status-code") {
|
|
653
|
+
switch (_response.error.statusCode) {
|
|
654
|
+
case 404:
|
|
655
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
656
|
+
unrecognizedObjectKeys: "passthrough",
|
|
657
|
+
allowUnrecognizedUnionMembers: true,
|
|
658
|
+
allowUnrecognizedEnumValues: true,
|
|
659
|
+
skipValidation: true,
|
|
660
|
+
breadcrumbsPrefix: ["response"],
|
|
661
|
+
}), _response.rawResponse);
|
|
662
|
+
case 500:
|
|
663
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
664
|
+
unrecognizedObjectKeys: "passthrough",
|
|
665
|
+
allowUnrecognizedUnionMembers: true,
|
|
666
|
+
allowUnrecognizedEnumValues: true,
|
|
667
|
+
skipValidation: true,
|
|
668
|
+
breadcrumbsPrefix: ["response"],
|
|
669
|
+
}), _response.rawResponse);
|
|
670
|
+
default:
|
|
671
|
+
throw new errors.ZepError({
|
|
672
|
+
statusCode: _response.error.statusCode,
|
|
673
|
+
body: _response.error.body,
|
|
674
|
+
rawResponse: _response.rawResponse,
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
switch (_response.error.reason) {
|
|
679
|
+
case "non-json":
|
|
680
|
+
throw new errors.ZepError({
|
|
681
|
+
statusCode: _response.error.statusCode,
|
|
682
|
+
body: _response.error.rawBody,
|
|
683
|
+
rawResponse: _response.rawResponse,
|
|
684
|
+
});
|
|
685
|
+
case "timeout":
|
|
686
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /users/{userId}/warm.");
|
|
687
|
+
case "unknown":
|
|
688
|
+
throw new errors.ZepError({
|
|
689
|
+
message: _response.error.errorMessage,
|
|
690
|
+
rawResponse: _response.rawResponse,
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
}
|
|
614
695
|
_getCustomAuthorizationHeaders() {
|
|
615
696
|
return __awaiter(this, void 0, void 0, function* () {
|
|
616
697
|
var _a;
|
|
@@ -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.
|
|
1
|
+
export declare const SDK_VERSION = "3.5.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.
|
|
1
|
+
export const SDK_VERSION = "3.5.0";
|
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>
|
|
@@ -1729,6 +1729,69 @@ await client.user.getThreads("userId");
|
|
|
1729
1729
|
</dl>
|
|
1730
1730
|
</details>
|
|
1731
1731
|
|
|
1732
|
+
<details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">warm</a>(userId) -> Zep.SuccessResponse</code></summary>
|
|
1733
|
+
<dl>
|
|
1734
|
+
<dd>
|
|
1735
|
+
|
|
1736
|
+
#### 📝 Description
|
|
1737
|
+
|
|
1738
|
+
<dl>
|
|
1739
|
+
<dd>
|
|
1740
|
+
|
|
1741
|
+
<dl>
|
|
1742
|
+
<dd>
|
|
1743
|
+
|
|
1744
|
+
Hints Zep to warm a user's graph for low-latency search
|
|
1745
|
+
|
|
1746
|
+
</dd>
|
|
1747
|
+
</dl>
|
|
1748
|
+
</dd>
|
|
1749
|
+
</dl>
|
|
1750
|
+
|
|
1751
|
+
#### 🔌 Usage
|
|
1752
|
+
|
|
1753
|
+
<dl>
|
|
1754
|
+
<dd>
|
|
1755
|
+
|
|
1756
|
+
<dl>
|
|
1757
|
+
<dd>
|
|
1758
|
+
|
|
1759
|
+
```typescript
|
|
1760
|
+
await client.user.warm("userId");
|
|
1761
|
+
```
|
|
1762
|
+
|
|
1763
|
+
</dd>
|
|
1764
|
+
</dl>
|
|
1765
|
+
</dd>
|
|
1766
|
+
</dl>
|
|
1767
|
+
|
|
1768
|
+
#### ⚙️ Parameters
|
|
1769
|
+
|
|
1770
|
+
<dl>
|
|
1771
|
+
<dd>
|
|
1772
|
+
|
|
1773
|
+
<dl>
|
|
1774
|
+
<dd>
|
|
1775
|
+
|
|
1776
|
+
**userId:** `string` — User ID
|
|
1777
|
+
|
|
1778
|
+
</dd>
|
|
1779
|
+
</dl>
|
|
1780
|
+
|
|
1781
|
+
<dl>
|
|
1782
|
+
<dd>
|
|
1783
|
+
|
|
1784
|
+
**requestOptions:** `User.RequestOptions`
|
|
1785
|
+
|
|
1786
|
+
</dd>
|
|
1787
|
+
</dl>
|
|
1788
|
+
</dd>
|
|
1789
|
+
</dl>
|
|
1790
|
+
|
|
1791
|
+
</dd>
|
|
1792
|
+
</dl>
|
|
1793
|
+
</details>
|
|
1794
|
+
|
|
1732
1795
|
## Graph Edge
|
|
1733
1796
|
|
|
1734
1797
|
<details><summary><code>client.graph.edge.<a href="/src/api/resources/graph/resources/edge/client/Client.ts">getByGraphId</a>(graphId, { ...params }) -> Zep.EntityEdge[]</code></summary>
|