@letta-ai/letta-client 0.1.201 → 0.1.203
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/api/resources/agents/client/Client.js +11 -11
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/index.d.ts +2 -1
- package/api/resources/agents/resources/index.js +3 -2
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/api/resources/agents/resources/passages/client/Client.d.ts +20 -0
- package/api/resources/agents/resources/passages/client/Client.js +111 -4
- package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +36 -0
- package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.js +5 -0
- package/api/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/passages/index.d.ts +1 -0
- package/api/resources/agents/resources/passages/index.js +1 -0
- package/api/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.d.ts +11 -0
- package/api/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.js +10 -0
- package/api/resources/agents/resources/passages/types/index.d.ts +1 -0
- package/api/resources/agents/resources/passages/types/index.js +17 -0
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +5 -5
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +3 -3
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.d.ts +16 -0
- package/api/resources/templates/client/Client.js +86 -8
- package/api/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +11 -0
- package/api/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.js +5 -0
- package/api/resources/templates/client/requests/index.d.ts +1 -0
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +14 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +16 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +1 -1
- package/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +6 -0
- package/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +5 -0
- package/api/resources/templates/types/index.d.ts +2 -0
- package/api/resources/templates/types/index.js +2 -0
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ArchivalMemorySearchResponse.d.ts +10 -0
- package/api/types/ArchivalMemorySearchResponse.js +5 -0
- package/api/types/ArchivalMemorySearchResult.d.ts +11 -0
- package/api/types/ArchivalMemorySearchResult.js +5 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/agents/client/Client.js +11 -11
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/index.d.ts +2 -1
- package/dist/api/resources/agents/resources/index.js +3 -2
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.d.ts +20 -0
- package/dist/api/resources/agents/resources/passages/client/Client.js +111 -4
- package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.js +5 -0
- package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/passages/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/passages/index.js +1 -0
- package/dist/api/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.d.ts +11 -0
- package/dist/api/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.js +10 -0
- package/dist/api/resources/agents/resources/passages/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/passages/types/index.js +17 -0
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +5 -5
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.d.ts +16 -0
- package/dist/api/resources/templates/client/Client.js +86 -8
- package/dist/api/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +11 -0
- package/dist/api/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +14 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +16 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +1 -1
- package/dist/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +6 -0
- package/dist/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +2 -0
- package/dist/api/resources/templates/types/index.js +2 -0
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ArchivalMemorySearchResponse.d.ts +10 -0
- package/dist/api/types/ArchivalMemorySearchResponse.js +5 -0
- package/dist/api/types/ArchivalMemorySearchResult.d.ts +11 -0
- package/dist/api/types/ArchivalMemorySearchResult.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +2 -1
- package/dist/serialization/resources/agents/resources/index.js +3 -2
- package/dist/serialization/resources/agents/resources/passages/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/passages/index.js +1 -0
- package/dist/serialization/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.js +41 -0
- package/dist/serialization/resources/agents/resources/passages/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/passages/types/index.js +17 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +12 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.js +43 -0
- package/dist/serialization/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/templates/client/requests/index.js +3 -1
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +50 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +1 -1
- package/dist/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +12 -0
- package/dist/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +43 -0
- package/dist/serialization/resources/templates/types/index.d.ts +2 -0
- package/dist/serialization/resources/templates/types/index.js +2 -0
- package/dist/serialization/types/ArchivalMemorySearchResponse.d.ts +14 -0
- package/dist/serialization/types/ArchivalMemorySearchResponse.js +45 -0
- package/dist/serialization/types/ArchivalMemorySearchResult.d.ts +14 -0
- package/dist/serialization/types/ArchivalMemorySearchResult.js +45 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +156 -0
- package/serialization/resources/agents/resources/index.d.ts +2 -1
- package/serialization/resources/agents/resources/index.js +3 -2
- package/serialization/resources/agents/resources/passages/index.d.ts +1 -0
- package/serialization/resources/agents/resources/passages/index.js +1 -0
- package/serialization/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.d.ts +10 -0
- package/serialization/resources/agents/resources/passages/types/PassagesSearchRequestTagMatchMode.js +41 -0
- package/serialization/resources/agents/resources/passages/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/passages/types/index.js +17 -0
- package/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +12 -0
- package/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.js +43 -0
- package/serialization/resources/templates/client/requests/index.d.ts +1 -0
- package/serialization/resources/templates/client/requests/index.js +3 -1
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +50 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +1 -1
- package/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +12 -0
- package/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +43 -0
- package/serialization/resources/templates/types/index.d.ts +2 -0
- package/serialization/resources/templates/types/index.js +2 -0
- package/serialization/types/ArchivalMemorySearchResponse.d.ts +14 -0
- package/serialization/types/ArchivalMemorySearchResponse.js +45 -0
- package/serialization/types/ArchivalMemorySearchResult.d.ts +14 -0
- package/serialization/types/ArchivalMemorySearchResult.js +45 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ArchivalMemorySearchResult {
|
|
5
|
+
/** Timestamp of when the memory was created, formatted in agent's timezone */
|
|
6
|
+
timestamp: string;
|
|
7
|
+
/** Text content of the archival memory passage */
|
|
8
|
+
content: string;
|
|
9
|
+
/** List of tags associated with this memory */
|
|
10
|
+
tags?: string[];
|
|
11
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export * from "./AppModel";
|
|
|
18
18
|
export * from "./ApprovalCreate";
|
|
19
19
|
export * from "./ApprovalRequestMessage";
|
|
20
20
|
export * from "./ApprovalResponseMessage";
|
|
21
|
+
export * from "./ArchivalMemorySearchResponse";
|
|
22
|
+
export * from "./ArchivalMemorySearchResult";
|
|
21
23
|
export * from "./AssistantMessageContent";
|
|
22
24
|
export * from "./AssistantMessage";
|
|
23
25
|
export * from "./Audio";
|
package/api/types/index.js
CHANGED
|
@@ -34,6 +34,8 @@ __exportStar(require("./AppModel"), exports);
|
|
|
34
34
|
__exportStar(require("./ApprovalCreate"), exports);
|
|
35
35
|
__exportStar(require("./ApprovalRequestMessage"), exports);
|
|
36
36
|
__exportStar(require("./ApprovalResponseMessage"), exports);
|
|
37
|
+
__exportStar(require("./ArchivalMemorySearchResponse"), exports);
|
|
38
|
+
__exportStar(require("./ArchivalMemorySearchResult"), exports);
|
|
37
39
|
__exportStar(require("./AssistantMessageContent"), exports);
|
|
38
40
|
__exportStar(require("./AssistantMessage"), exports);
|
|
39
41
|
__exportStar(require("./Audio"), exports);
|
|
@@ -206,7 +206,7 @@ class Agents {
|
|
|
206
206
|
method: "GET",
|
|
207
207
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
208
208
|
? yield core.Supplier.get(this._options.project)
|
|
209
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
209
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
210
210
|
contentType: "application/json",
|
|
211
211
|
queryParameters: _queryParams,
|
|
212
212
|
requestType: "json",
|
|
@@ -283,7 +283,7 @@ class Agents {
|
|
|
283
283
|
method: "POST",
|
|
284
284
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
285
285
|
? yield core.Supplier.get(this._options.project)
|
|
286
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
286
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
287
287
|
contentType: "application/json",
|
|
288
288
|
requestType: "json",
|
|
289
289
|
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -359,7 +359,7 @@ class Agents {
|
|
|
359
359
|
method: "GET",
|
|
360
360
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
361
361
|
? yield core.Supplier.get(this._options.project)
|
|
362
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
362
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
requestType: "json",
|
|
365
365
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -448,7 +448,7 @@ class Agents {
|
|
|
448
448
|
method: "GET",
|
|
449
449
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
450
450
|
? yield core.Supplier.get(this._options.project)
|
|
451
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
451
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
452
452
|
contentType: "application/json",
|
|
453
453
|
queryParameters: _queryParams,
|
|
454
454
|
requestType: "json",
|
|
@@ -548,7 +548,7 @@ class Agents {
|
|
|
548
548
|
method: "POST",
|
|
549
549
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
550
550
|
? yield core.Supplier.get(this._options.project)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
551
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
552
552
|
requestType: "file",
|
|
553
553
|
duplex: _maybeEncodedRequest.duplex,
|
|
554
554
|
body: _maybeEncodedRequest.body,
|
|
@@ -636,7 +636,7 @@ class Agents {
|
|
|
636
636
|
method: "GET",
|
|
637
637
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
638
638
|
? yield core.Supplier.get(this._options.project)
|
|
639
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
639
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
640
640
|
contentType: "application/json",
|
|
641
641
|
queryParameters: _queryParams,
|
|
642
642
|
requestType: "json",
|
|
@@ -713,7 +713,7 @@ class Agents {
|
|
|
713
713
|
method: "DELETE",
|
|
714
714
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
715
715
|
? yield core.Supplier.get(this._options.project)
|
|
716
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
716
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
717
717
|
contentType: "application/json",
|
|
718
718
|
requestType: "json",
|
|
719
719
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -781,7 +781,7 @@ class Agents {
|
|
|
781
781
|
method: "PATCH",
|
|
782
782
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
783
783
|
? yield core.Supplier.get(this._options.project)
|
|
784
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
784
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
785
785
|
contentType: "application/json",
|
|
786
786
|
requestType: "json",
|
|
787
787
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -870,7 +870,7 @@ class Agents {
|
|
|
870
870
|
method: "GET",
|
|
871
871
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
872
872
|
? yield core.Supplier.get(this._options.project)
|
|
873
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
873
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
874
874
|
contentType: "application/json",
|
|
875
875
|
queryParameters: _queryParams,
|
|
876
876
|
requestType: "json",
|
|
@@ -956,7 +956,7 @@ class Agents {
|
|
|
956
956
|
method: "POST",
|
|
957
957
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
958
958
|
? yield core.Supplier.get(this._options.project)
|
|
959
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
959
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
960
960
|
contentType: "application/json",
|
|
961
961
|
queryParameters: _queryParams,
|
|
962
962
|
requestType: "json",
|
|
@@ -1024,7 +1024,7 @@ class Agents {
|
|
|
1024
1024
|
method: "POST",
|
|
1025
1025
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1026
1026
|
? yield core.Supplier.get(this._options.project)
|
|
1027
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1027
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1028
1028
|
contentType: "application/json",
|
|
1029
1029
|
requestType: "json",
|
|
1030
1030
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -82,7 +82,7 @@ class Blocks {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -160,7 +160,7 @@ class Blocks {
|
|
|
160
160
|
method: "PATCH",
|
|
161
161
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
162
162
|
? yield core.Supplier.get(this._options.project)
|
|
163
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
163
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
164
164
|
contentType: "application/json",
|
|
165
165
|
requestType: "json",
|
|
166
166
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -237,7 +237,7 @@ class Blocks {
|
|
|
237
237
|
method: "GET",
|
|
238
238
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
239
239
|
? yield core.Supplier.get(this._options.project)
|
|
240
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
240
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
requestType: "json",
|
|
243
243
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -314,7 +314,7 @@ class Blocks {
|
|
|
314
314
|
method: "PATCH",
|
|
315
315
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
316
316
|
? yield core.Supplier.get(this._options.project)
|
|
317
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
317
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -391,7 +391,7 @@ class Blocks {
|
|
|
391
391
|
method: "PATCH",
|
|
392
392
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
393
393
|
? yield core.Supplier.get(this._options.project)
|
|
394
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
394
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
395
395
|
contentType: "application/json",
|
|
396
396
|
requestType: "json",
|
|
397
397
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Context {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class CoreMemory {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Files {
|
|
|
84
84
|
method: "PATCH",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -165,7 +165,7 @@ class Files {
|
|
|
165
165
|
method: "PATCH",
|
|
166
166
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
167
167
|
? yield core.Supplier.get(this._options.project)
|
|
168
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
168
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
requestType: "json",
|
|
171
171
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -245,7 +245,7 @@ class Files {
|
|
|
245
245
|
method: "PATCH",
|
|
246
246
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
247
247
|
? yield core.Supplier.get(this._options.project)
|
|
248
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
248
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
249
249
|
contentType: "application/json",
|
|
250
250
|
requestType: "json",
|
|
251
251
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -308,7 +308,7 @@ class Files {
|
|
|
308
308
|
method: "PATCH",
|
|
309
309
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
310
310
|
? yield core.Supplier.get(this._options.project)
|
|
311
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
311
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
312
312
|
contentType: "application/json",
|
|
313
313
|
requestType: "json",
|
|
314
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class Folders {
|
|
|
82
82
|
method: "PATCH",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -159,7 +159,7 @@ class Folders {
|
|
|
159
159
|
method: "PATCH",
|
|
160
160
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
161
161
|
? yield core.Supplier.get(this._options.project)
|
|
162
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Folders {
|
|
|
235
235
|
method: "GET",
|
|
236
236
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
237
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Groups {
|
|
|
87
87
|
method: "GET",
|
|
88
88
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
89
89
|
? yield core.Supplier.get(this._options.project)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * as passages from "./passages";
|
|
2
|
+
export * from "./passages/types";
|
|
1
3
|
export * as messages from "./messages";
|
|
2
4
|
export * from "./messages/types";
|
|
3
5
|
export * as templates from "./templates";
|
|
@@ -11,7 +13,6 @@ export * as folders from "./folders";
|
|
|
11
13
|
export * as files from "./files";
|
|
12
14
|
export * as coreMemory from "./coreMemory";
|
|
13
15
|
export * as blocks from "./blocks";
|
|
14
|
-
export * as passages from "./passages";
|
|
15
16
|
export * as groups from "./groups";
|
|
16
17
|
export * from "./tools/client/requests";
|
|
17
18
|
export * from "./passages/client/requests";
|
|
@@ -36,7 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.groups = exports.
|
|
39
|
+
exports.groups = exports.blocks = exports.coreMemory = exports.files = exports.folders = exports.sources = exports.tools = exports.context = exports.memoryVariables = exports.templates = exports.messages = exports.passages = void 0;
|
|
40
|
+
exports.passages = __importStar(require("./passages"));
|
|
41
|
+
__exportStar(require("./passages/types"), exports);
|
|
40
42
|
exports.messages = __importStar(require("./messages"));
|
|
41
43
|
__exportStar(require("./messages/types"), exports);
|
|
42
44
|
exports.templates = __importStar(require("./templates"));
|
|
@@ -50,7 +52,6 @@ exports.folders = __importStar(require("./folders"));
|
|
|
50
52
|
exports.files = __importStar(require("./files"));
|
|
51
53
|
exports.coreMemory = __importStar(require("./coreMemory"));
|
|
52
54
|
exports.blocks = __importStar(require("./blocks"));
|
|
53
|
-
exports.passages = __importStar(require("./passages"));
|
|
54
55
|
exports.groups = __importStar(require("./groups"));
|
|
55
56
|
__exportStar(require("./tools/client/requests"), exports);
|
|
56
57
|
__exportStar(require("./passages/client/requests"), exports);
|
|
@@ -83,7 +83,7 @@ class MemoryVariables {
|
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
85
|
? yield core.Supplier.get(this._options.project)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -108,7 +108,7 @@ class Messages {
|
|
|
108
108
|
method: "GET",
|
|
109
109
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
110
110
|
? yield core.Supplier.get(this._options.project)
|
|
111
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
111
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
queryParameters: _queryParams,
|
|
114
114
|
requestType: "json",
|
|
@@ -195,7 +195,7 @@ class Messages {
|
|
|
195
195
|
method: "POST",
|
|
196
196
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
197
197
|
? yield core.Supplier.get(this._options.project)
|
|
198
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
198
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
199
199
|
contentType: "application/json",
|
|
200
200
|
requestType: "json",
|
|
201
201
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -276,7 +276,7 @@ class Messages {
|
|
|
276
276
|
method: "PATCH",
|
|
277
277
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
278
278
|
? yield core.Supplier.get(this._options.project)
|
|
279
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
279
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
280
280
|
contentType: "application/json",
|
|
281
281
|
requestType: "json",
|
|
282
282
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -347,7 +347,7 @@ class Messages {
|
|
|
347
347
|
method: "POST",
|
|
348
348
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
349
349
|
? yield core.Supplier.get(this._options.project)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
351
351
|
contentType: "application/json",
|
|
352
352
|
requestType: "json",
|
|
353
353
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -438,7 +438,7 @@ class Messages {
|
|
|
438
438
|
method: "POST",
|
|
439
439
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
440
440
|
? yield core.Supplier.get(this._options.project)
|
|
441
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
441
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
442
442
|
contentType: "application/json",
|
|
443
443
|
requestType: "json",
|
|
444
444
|
body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -528,7 +528,7 @@ class Messages {
|
|
|
528
528
|
method: "POST",
|
|
529
529
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
530
530
|
? yield core.Supplier.get(this._options.project)
|
|
531
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
531
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
532
532
|
contentType: "application/json",
|
|
533
533
|
requestType: "json",
|
|
534
534
|
body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -611,7 +611,7 @@ class Messages {
|
|
|
611
611
|
method: "PATCH",
|
|
612
612
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
613
613
|
? yield core.Supplier.get(this._options.project)
|
|
614
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
614
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
615
615
|
contentType: "application/json",
|
|
616
616
|
queryParameters: _queryParams,
|
|
617
617
|
requestType: "json",
|
|
@@ -701,7 +701,7 @@ class Messages {
|
|
|
701
701
|
method: "POST",
|
|
702
702
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
703
703
|
? yield core.Supplier.get(this._options.project)
|
|
704
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
704
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.203", "User-Agent": "@letta-ai/letta-client/0.1.203", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
705
705
|
contentType: "application/json",
|
|
706
706
|
requestType: "json",
|
|
707
707
|
body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
|
|
@@ -60,6 +60,26 @@ export declare class Passages {
|
|
|
60
60
|
*/
|
|
61
61
|
create(agentId: string, request: Letta.agents.CreateArchivalMemory, requestOptions?: Passages.RequestOptions): core.HttpResponsePromise<Letta.Passage[]>;
|
|
62
62
|
private __create;
|
|
63
|
+
/**
|
|
64
|
+
* Search archival memory using semantic (embedding-based) search with optional temporal filtering.
|
|
65
|
+
*
|
|
66
|
+
* This endpoint allows manual triggering of archival memory searches, enabling users to query
|
|
67
|
+
* an agent's archival memory store directly via the API. The search uses the same functionality
|
|
68
|
+
* as the agent's archival_memory_search tool but is accessible for external API usage.
|
|
69
|
+
*
|
|
70
|
+
* @param {string} agentId
|
|
71
|
+
* @param {Letta.agents.PassagesSearchRequest} request
|
|
72
|
+
* @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* await client.agents.passages.search("agent_id", {
|
|
78
|
+
* query: "query"
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
search(agentId: string, request: Letta.agents.PassagesSearchRequest, requestOptions?: Passages.RequestOptions): core.HttpResponsePromise<Letta.ArchivalMemorySearchResponse>;
|
|
82
|
+
private __search;
|
|
63
83
|
/**
|
|
64
84
|
* Delete a memory from an agent's archival memory store.
|
|
65
85
|
*
|