@letta-ai/letta-client 0.0.68642 → 0.0.68644
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.d.ts +0 -14
- package/api/resources/agents/client/Client.js +10 -99
- package/api/resources/agents/client/requests/index.d.ts +0 -1
- 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.d.ts +7 -1
- package/api/resources/agents/resources/files/client/Client.js +53 -16
- package/api/resources/agents/resources/files/client/index.d.ts +1 -1
- package/api/resources/agents/resources/files/client/index.js +15 -0
- package/api/resources/agents/{client/requests/ListAgentFilesRequest.d.ts → resources/files/client/requests/FilesListRequest.d.ts} +1 -1
- package/api/resources/agents/resources/files/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/files/client/requests/index.js +2 -0
- 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 +1 -0
- package/api/resources/agents/resources/index.js +1 -0
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +9 -9
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- 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.d.ts +6 -3
- package/api/resources/batches/client/Client.js +34 -11
- package/api/resources/batches/client/requests/BatchesListRequest.d.ts +30 -0
- package/api/resources/batches/client/requests/index.d.ts +1 -0
- package/api/resources/batches/index.d.ts +1 -0
- package/api/resources/batches/index.js +1 -0
- package/api/resources/batches/resources/messages/client/Client.js +5 -2
- package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- package/api/resources/batches/types/BatchesListRequestOrder.d.ts +11 -0
- package/api/resources/batches/types/BatchesListRequestOrder.js +10 -0
- package/api/resources/batches/types/index.d.ts +1 -0
- package/api/resources/batches/types/index.js +17 -0
- 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/index.d.ts +4 -2
- package/api/resources/index.js +5 -3
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +6 -4
- package/api/resources/providers/client/Client.js +11 -9
- 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.d.ts +3 -3
- package/api/resources/steps/client/Client.js +8 -8
- package/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/api/resources/steps/resources/feedback/client/Client.js +3 -10
- package/{dist/api/resources/steps/resources/feedback/client/requests/FeedbackCreateRequest.d.ts → api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts} +2 -1
- package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/api/resources/steps/resources/index.d.ts +1 -1
- package/api/resources/steps/resources/index.js +2 -2
- package/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/api/resources/steps/resources/trace/client/Client.d.ts +4 -1
- package/api/resources/steps/resources/trace/client/Client.js +31 -7
- package/api/resources/tags/client/Client.d.ts +1 -1
- package/api/resources/tags/client/Client.js +15 -4
- package/api/resources/tags/client/requests/TagsListRequest.d.ts +22 -0
- package/api/resources/tags/index.d.ts +1 -0
- package/api/resources/tags/index.js +1 -0
- package/api/resources/tags/types/TagsListRequestOrder.d.ts +11 -0
- package/api/resources/tags/types/TagsListRequestOrder.js +10 -0
- package/api/resources/tags/types/index.d.ts +1 -0
- package/api/resources/tags/types/index.js +17 -0
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +9 -9
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +0 -14
- package/dist/api/resources/agents/client/Client.js +10 -99
- package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
- 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.d.ts +7 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +53 -16
- package/dist/api/resources/agents/resources/files/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/files/client/index.js +15 -0
- package/dist/api/resources/agents/{client/requests/ListAgentFilesRequest.d.ts → resources/files/client/requests/FilesListRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/files/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/files/client/requests/index.js +2 -0
- 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 +1 -0
- package/dist/api/resources/agents/resources/index.js +1 -0
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +9 -9
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- 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.d.ts +6 -3
- package/dist/api/resources/batches/client/Client.js +34 -11
- package/dist/api/resources/batches/client/requests/BatchesListRequest.d.ts +30 -0
- package/dist/api/resources/batches/client/requests/BatchesListRequest.js +5 -0
- package/dist/api/resources/batches/client/requests/index.d.ts +1 -0
- package/dist/api/resources/batches/index.d.ts +1 -0
- package/dist/api/resources/batches/index.js +1 -0
- package/dist/api/resources/batches/resources/messages/client/Client.js +5 -2
- package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- package/dist/api/resources/batches/types/BatchesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/batches/types/BatchesListRequestOrder.js +10 -0
- package/dist/api/resources/batches/types/index.d.ts +1 -0
- package/dist/api/resources/batches/types/index.js +17 -0
- 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/index.d.ts +4 -2
- package/dist/api/resources/index.js +5 -3
- package/dist/api/resources/jobs/client/Client.js +5 -5
- 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.d.ts +6 -4
- package/dist/api/resources/providers/client/Client.js +11 -9
- 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.d.ts +3 -3
- package/dist/api/resources/steps/client/Client.js +8 -8
- package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +3 -10
- package/{api/resources/steps/resources/feedback/client/requests/FeedbackCreateRequest.d.ts → dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts} +2 -1
- package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +5 -0
- package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/dist/api/resources/steps/resources/index.d.ts +1 -1
- package/dist/api/resources/steps/resources/index.js +2 -2
- package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/trace/client/Client.d.ts +4 -1
- package/dist/api/resources/steps/resources/trace/client/Client.js +31 -7
- package/dist/api/resources/tags/client/Client.d.ts +1 -1
- package/dist/api/resources/tags/client/Client.js +15 -4
- package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +22 -0
- package/dist/api/resources/tags/index.d.ts +1 -0
- package/dist/api/resources/tags/index.js +1 -0
- package/dist/api/resources/tags/types/TagsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/tags/types/TagsListRequestOrder.js +10 -0
- package/dist/api/resources/tags/types/index.d.ts +1 -0
- package/dist/api/resources/tags/types/index.js +17 -0
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +9 -9
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/serialization/resources/batches/index.d.ts +1 -0
- package/dist/serialization/resources/batches/index.js +1 -0
- package/dist/serialization/resources/batches/types/BatchesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/batches/types/BatchesListRequestOrder.js +41 -0
- package/dist/serialization/resources/batches/types/index.d.ts +1 -0
- package/dist/serialization/resources/batches/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +4 -2
- package/dist/serialization/resources/index.js +5 -3
- package/dist/serialization/resources/steps/index.d.ts +1 -0
- package/dist/serialization/resources/steps/index.js +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/index.js +17 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +13 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +44 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/index.js +5 -0
- package/dist/serialization/resources/steps/resources/feedback/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/index.js +17 -0
- package/dist/serialization/resources/steps/resources/index.d.ts +3 -0
- package/dist/serialization/resources/steps/resources/index.js +42 -0
- package/dist/serialization/resources/steps/resources/trace/client/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/trace/client/index.js +37 -0
- package/dist/serialization/resources/steps/resources/trace/client/retrieve.d.ts +11 -0
- package/dist/serialization/resources/steps/resources/trace/client/retrieve.js +8 -0
- package/dist/serialization/resources/steps/resources/trace/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/trace/index.js +17 -0
- package/dist/serialization/resources/tags/index.d.ts +1 -0
- package/dist/serialization/resources/tags/index.js +1 -0
- package/dist/serialization/resources/tags/types/TagsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/tags/types/TagsListRequestOrder.js +41 -0
- package/dist/serialization/resources/tags/types/index.d.ts +1 -0
- package/dist/serialization/resources/tags/types/index.js +17 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +88 -111
- package/serialization/resources/batches/index.d.ts +1 -0
- package/serialization/resources/batches/index.js +1 -0
- package/serialization/resources/batches/types/BatchesListRequestOrder.d.ts +10 -0
- package/serialization/resources/batches/types/BatchesListRequestOrder.js +41 -0
- package/serialization/resources/batches/types/index.d.ts +1 -0
- package/serialization/resources/batches/types/index.js +17 -0
- package/serialization/resources/index.d.ts +4 -2
- package/serialization/resources/index.js +5 -3
- package/serialization/resources/steps/index.d.ts +1 -0
- package/serialization/resources/steps/index.js +1 -0
- package/serialization/resources/steps/resources/feedback/client/index.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/client/index.js +17 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +13 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +44 -0
- package/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/client/requests/index.js +5 -0
- package/serialization/resources/steps/resources/feedback/index.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/index.js +17 -0
- package/serialization/resources/steps/resources/index.d.ts +3 -0
- package/serialization/resources/steps/resources/index.js +42 -0
- package/serialization/resources/steps/resources/trace/client/index.d.ts +1 -0
- package/serialization/resources/steps/resources/trace/client/index.js +37 -0
- package/serialization/resources/steps/resources/trace/client/retrieve.d.ts +11 -0
- package/serialization/resources/steps/resources/trace/client/retrieve.js +8 -0
- package/serialization/resources/steps/resources/trace/index.d.ts +1 -0
- package/serialization/resources/steps/resources/trace/index.js +17 -0
- package/serialization/resources/tags/index.d.ts +1 -0
- package/serialization/resources/tags/index.js +1 -0
- package/serialization/resources/tags/types/TagsListRequestOrder.d.ts +10 -0
- package/serialization/resources/tags/types/TagsListRequestOrder.js +41 -0
- package/serialization/resources/tags/types/index.d.ts +1 -0
- package/serialization/resources/tags/types/index.js +17 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/agents/{client/requests/ListAgentFilesRequest.js → resources/files/client/requests/FilesListRequest.js} +0 -0
- /package/api/resources/{steps/resources/feedback/client/requests/FeedbackCreateRequest.js → batches/client/requests/BatchesListRequest.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/ListAgentFilesRequest.js → api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js} +0 -0
- /package/dist/api/resources/{steps/resources/feedback/client/requests/FeedbackCreateRequest.js → agents/resources/files/client/requests/FilesListRequest.js} +0 -0
|
@@ -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.0.
|
|
111
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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.0.
|
|
198
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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.0.
|
|
279
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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.0.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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.0.
|
|
441
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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" }),
|
|
@@ -517,7 +517,7 @@ class Messages {
|
|
|
517
517
|
method: "POST",
|
|
518
518
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
519
519
|
? yield core.Supplier.get(this._options.project)
|
|
520
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
520
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
521
521
|
contentType: "application/json",
|
|
522
522
|
requestType: "json",
|
|
523
523
|
body: serializers.agents.MessageSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -607,7 +607,7 @@ class Messages {
|
|
|
607
607
|
method: "POST",
|
|
608
608
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
609
609
|
? yield core.Supplier.get(this._options.project)
|
|
610
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
610
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
611
611
|
contentType: "application/json",
|
|
612
612
|
requestType: "json",
|
|
613
613
|
body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -690,7 +690,7 @@ class Messages {
|
|
|
690
690
|
method: "PATCH",
|
|
691
691
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
692
692
|
? yield core.Supplier.get(this._options.project)
|
|
693
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
693
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
694
694
|
contentType: "application/json",
|
|
695
695
|
queryParameters: _queryParams,
|
|
696
696
|
requestType: "json",
|
|
@@ -780,7 +780,7 @@ class Messages {
|
|
|
780
780
|
method: "POST",
|
|
781
781
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
782
782
|
? yield core.Supplier.get(this._options.project)
|
|
783
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
783
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
784
784
|
contentType: "application/json",
|
|
785
785
|
requestType: "json",
|
|
786
786
|
body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
|
|
@@ -99,7 +99,7 @@ class Passages {
|
|
|
99
99
|
method: "GET",
|
|
100
100
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
101
101
|
? yield core.Supplier.get(this._options.project)
|
|
102
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
102
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
103
103
|
contentType: "application/json",
|
|
104
104
|
queryParameters: _queryParams,
|
|
105
105
|
requestType: "json",
|
|
@@ -179,7 +179,7 @@ class Passages {
|
|
|
179
179
|
method: "POST",
|
|
180
180
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
181
181
|
? yield core.Supplier.get(this._options.project)
|
|
182
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
182
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -286,7 +286,7 @@ class Passages {
|
|
|
286
286
|
method: "GET",
|
|
287
287
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
288
288
|
? yield core.Supplier.get(this._options.project)
|
|
289
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
289
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
290
290
|
contentType: "application/json",
|
|
291
291
|
queryParameters: _queryParams,
|
|
292
292
|
requestType: "json",
|
|
@@ -364,7 +364,7 @@ class Passages {
|
|
|
364
364
|
method: "DELETE",
|
|
365
365
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
366
366
|
? yield core.Supplier.get(this._options.project)
|
|
367
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
367
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
368
368
|
contentType: "application/json",
|
|
369
369
|
requestType: "json",
|
|
370
370
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -428,7 +428,7 @@ class Passages {
|
|
|
428
428
|
method: "PATCH",
|
|
429
429
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
430
430
|
? yield core.Supplier.get(this._options.project)
|
|
431
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
431
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
432
432
|
contentType: "application/json",
|
|
433
433
|
requestType: "json",
|
|
434
434
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class Sources {
|
|
|
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.0.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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 Sources {
|
|
|
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.0.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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 Sources {
|
|
|
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.0.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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,
|
|
@@ -84,7 +84,7 @@ class Templates {
|
|
|
84
84
|
method: "POST",
|
|
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.0.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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
|
body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -150,7 +150,7 @@ class Templates {
|
|
|
150
150
|
method: "POST",
|
|
151
151
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
152
152
|
? yield core.Supplier.get(this._options.project)
|
|
153
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
153
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
154
154
|
contentType: "application/json",
|
|
155
155
|
requestType: "json",
|
|
156
156
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -206,7 +206,7 @@ class Templates {
|
|
|
206
206
|
method: "POST",
|
|
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.0.
|
|
209
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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
|
requestType: "json",
|
|
212
212
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
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.0.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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,
|
|
@@ -158,7 +158,7 @@ class Tools {
|
|
|
158
158
|
method: "PATCH",
|
|
159
159
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
160
160
|
? yield core.Supplier.get(this._options.project)
|
|
161
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
161
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
162
162
|
contentType: "application/json",
|
|
163
163
|
requestType: "json",
|
|
164
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Tools {
|
|
|
235
235
|
method: "PATCH",
|
|
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.0.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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,
|
|
@@ -318,7 +318,7 @@ class Tools {
|
|
|
318
318
|
method: "PATCH",
|
|
319
319
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
320
320
|
? yield core.Supplier.get(this._options.project)
|
|
321
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
321
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
322
322
|
contentType: "application/json",
|
|
323
323
|
queryParameters: _queryParams,
|
|
324
324
|
requestType: "json",
|
|
@@ -36,6 +36,7 @@ export declare class Batches {
|
|
|
36
36
|
/**
|
|
37
37
|
* List all batch runs.
|
|
38
38
|
*
|
|
39
|
+
* @param {Letta.BatchesListRequest} request
|
|
39
40
|
* @param {Batches.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
41
|
*
|
|
41
42
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -43,11 +44,13 @@ export declare class Batches {
|
|
|
43
44
|
* @example
|
|
44
45
|
* await client.batches.list()
|
|
45
46
|
*/
|
|
46
|
-
list(requestOptions?: Batches.RequestOptions): core.HttpResponsePromise<Letta.BatchJob[]>;
|
|
47
|
+
list(request?: Letta.BatchesListRequest, requestOptions?: Batches.RequestOptions): core.HttpResponsePromise<Letta.BatchJob[]>;
|
|
47
48
|
private __list;
|
|
48
49
|
/**
|
|
49
|
-
* Submit a batch of agent
|
|
50
|
+
* Submit a batch of agent runs for asynchronous processing.
|
|
51
|
+
*
|
|
50
52
|
* Creates a job that will fan out messages to all listed agents and process them in parallel.
|
|
53
|
+
* The request will be rejected if it exceeds 256MB.
|
|
51
54
|
*
|
|
52
55
|
* @param {Letta.CreateBatch} request
|
|
53
56
|
* @param {Batches.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -71,7 +74,7 @@ export declare class Batches {
|
|
|
71
74
|
create(request: Letta.CreateBatch, requestOptions?: Batches.RequestOptions): core.HttpResponsePromise<Letta.BatchJob>;
|
|
72
75
|
private __create;
|
|
73
76
|
/**
|
|
74
|
-
*
|
|
77
|
+
* Retrieve the status and details of a batch run.
|
|
75
78
|
*
|
|
76
79
|
* @param {string} batchId
|
|
77
80
|
* @param {Batches.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -52,8 +52,8 @@ exports.Batches = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const Letta = __importStar(require("../../../index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
55
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
58
|
const Client_1 = require("../resources/messages/client/Client");
|
|
59
59
|
class Batches {
|
|
@@ -67,6 +67,7 @@ class Batches {
|
|
|
67
67
|
/**
|
|
68
68
|
* List all batch runs.
|
|
69
69
|
*
|
|
70
|
+
* @param {Letta.BatchesListRequest} request
|
|
70
71
|
* @param {Batches.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
72
|
*
|
|
72
73
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -74,19 +75,39 @@ class Batches {
|
|
|
74
75
|
* @example
|
|
75
76
|
* await client.batches.list()
|
|
76
77
|
*/
|
|
77
|
-
list(requestOptions) {
|
|
78
|
-
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
78
|
+
list(request = {}, requestOptions) {
|
|
79
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
79
80
|
}
|
|
80
|
-
__list(
|
|
81
|
-
return __awaiter(this,
|
|
81
|
+
__list() {
|
|
82
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
82
83
|
var _a, _b, _c;
|
|
84
|
+
const { before, after, limit, order, orderBy } = request;
|
|
85
|
+
const _queryParams = {};
|
|
86
|
+
if (before != null) {
|
|
87
|
+
_queryParams["before"] = before;
|
|
88
|
+
}
|
|
89
|
+
if (after != null) {
|
|
90
|
+
_queryParams["after"] = after;
|
|
91
|
+
}
|
|
92
|
+
if (limit != null) {
|
|
93
|
+
_queryParams["limit"] = limit.toString();
|
|
94
|
+
}
|
|
95
|
+
if (order != null) {
|
|
96
|
+
_queryParams["order"] = serializers.BatchesListRequestOrder.jsonOrThrow(order, {
|
|
97
|
+
unrecognizedObjectKeys: "strip",
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (orderBy != null) {
|
|
101
|
+
_queryParams["order_by"] = orderBy;
|
|
102
|
+
}
|
|
83
103
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
84
104
|
url: (0, url_join_1.default)((_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.LettaEnvironment.LettaCloud, "v1/messages/batches"),
|
|
85
105
|
method: "GET",
|
|
86
106
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
87
107
|
? yield core.Supplier.get(this._options.project)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
108
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
89
109
|
contentType: "application/json",
|
|
110
|
+
queryParameters: _queryParams,
|
|
90
111
|
requestType: "json",
|
|
91
112
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
92
113
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -140,8 +161,10 @@ class Batches {
|
|
|
140
161
|
});
|
|
141
162
|
}
|
|
142
163
|
/**
|
|
143
|
-
* Submit a batch of agent
|
|
164
|
+
* Submit a batch of agent runs for asynchronous processing.
|
|
165
|
+
*
|
|
144
166
|
* Creates a job that will fan out messages to all listed agents and process them in parallel.
|
|
167
|
+
* The request will be rejected if it exceeds 256MB.
|
|
145
168
|
*
|
|
146
169
|
* @param {Letta.CreateBatch} request
|
|
147
170
|
* @param {Batches.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -173,7 +196,7 @@ class Batches {
|
|
|
173
196
|
method: "POST",
|
|
174
197
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
175
198
|
? yield core.Supplier.get(this._options.project)
|
|
176
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
199
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
177
200
|
contentType: "application/json",
|
|
178
201
|
requestType: "json",
|
|
179
202
|
body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -229,7 +252,7 @@ class Batches {
|
|
|
229
252
|
});
|
|
230
253
|
}
|
|
231
254
|
/**
|
|
232
|
-
*
|
|
255
|
+
* Retrieve the status and details of a batch run.
|
|
233
256
|
*
|
|
234
257
|
* @param {string} batchId
|
|
235
258
|
* @param {Batches.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -250,7 +273,7 @@ class Batches {
|
|
|
250
273
|
method: "GET",
|
|
251
274
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
252
275
|
? yield core.Supplier.get(this._options.project)
|
|
253
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
276
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
254
277
|
contentType: "application/json",
|
|
255
278
|
requestType: "json",
|
|
256
279
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -326,7 +349,7 @@ class Batches {
|
|
|
326
349
|
method: "PATCH",
|
|
327
350
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
328
351
|
? yield core.Supplier.get(this._options.project)
|
|
329
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
352
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
330
353
|
contentType: "application/json",
|
|
331
354
|
requestType: "json",
|
|
332
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface BatchesListRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Job ID cursor for pagination. Returns jobs that come before this job ID in the specified sort order
|
|
12
|
+
*/
|
|
13
|
+
before?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Job ID cursor for pagination. Returns jobs that come after this job ID in the specified sort order
|
|
16
|
+
*/
|
|
17
|
+
after?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of jobs to return
|
|
20
|
+
*/
|
|
21
|
+
limit?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Sort order for jobs by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
24
|
+
*/
|
|
25
|
+
order?: Letta.BatchesListRequestOrder;
|
|
26
|
+
/**
|
|
27
|
+
* Field to sort by
|
|
28
|
+
*/
|
|
29
|
+
orderBy?: "created_at";
|
|
30
|
+
}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./resources"), exports);
|
|
18
19
|
__exportStar(require("./client"), exports);
|
|
@@ -77,7 +77,7 @@ class Messages {
|
|
|
77
77
|
__list(batchId_1) {
|
|
78
78
|
return __awaiter(this, arguments, void 0, function* (batchId, request = {}, requestOptions) {
|
|
79
79
|
var _a, _b, _c;
|
|
80
|
-
const { before, after, limit, order, agentId } = request;
|
|
80
|
+
const { before, after, limit, order, orderBy, agentId } = request;
|
|
81
81
|
const _queryParams = {};
|
|
82
82
|
if (before != null) {
|
|
83
83
|
_queryParams["before"] = before;
|
|
@@ -93,6 +93,9 @@ class Messages {
|
|
|
93
93
|
unrecognizedObjectKeys: "strip",
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
+
if (orderBy != null) {
|
|
97
|
+
_queryParams["order_by"] = orderBy;
|
|
98
|
+
}
|
|
96
99
|
if (agentId != null) {
|
|
97
100
|
_queryParams["agent_id"] = agentId;
|
|
98
101
|
}
|
|
@@ -101,7 +104,7 @@ class Messages {
|
|
|
101
104
|
method: "GET",
|
|
102
105
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
103
106
|
? yield core.Supplier.get(this._options.project)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
107
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
105
108
|
contentType: "application/json",
|
|
106
109
|
queryParameters: _queryParams,
|
|
107
110
|
requestType: "json",
|
|
@@ -23,6 +23,10 @@ export interface MessagesListRequest {
|
|
|
23
23
|
* Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
24
24
|
*/
|
|
25
25
|
order?: Letta.batches.MessagesListRequestOrder;
|
|
26
|
+
/**
|
|
27
|
+
* Field to sort by
|
|
28
|
+
*/
|
|
29
|
+
orderBy?: "created_at";
|
|
26
30
|
/**
|
|
27
31
|
* Filter messages by agent ID
|
|
28
32
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for jobs by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type BatchesListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const BatchesListRequestOrder: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BatchesListRequestOrder = void 0;
|
|
7
|
+
exports.BatchesListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BatchesListRequestOrder";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BatchesListRequestOrder"), exports);
|
|
@@ -141,7 +141,7 @@ class Blocks {
|
|
|
141
141
|
method: "GET",
|
|
142
142
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
143
143
|
? yield core.Supplier.get(this._options.project)
|
|
144
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
144
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
queryParameters: _queryParams,
|
|
147
147
|
requestType: "json",
|
|
@@ -219,7 +219,7 @@ class Blocks {
|
|
|
219
219
|
method: "POST",
|
|
220
220
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
221
221
|
? yield core.Supplier.get(this._options.project)
|
|
222
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
222
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
223
223
|
contentType: "application/json",
|
|
224
224
|
requestType: "json",
|
|
225
225
|
body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -295,7 +295,7 @@ class Blocks {
|
|
|
295
295
|
method: "GET",
|
|
296
296
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
297
297
|
? yield core.Supplier.get(this._options.project)
|
|
298
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
298
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
requestType: "json",
|
|
301
301
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -369,7 +369,7 @@ class Blocks {
|
|
|
369
369
|
method: "GET",
|
|
370
370
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
371
371
|
? yield core.Supplier.get(this._options.project)
|
|
372
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
372
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
373
373
|
contentType: "application/json",
|
|
374
374
|
requestType: "json",
|
|
375
375
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -443,7 +443,7 @@ class Blocks {
|
|
|
443
443
|
method: "DELETE",
|
|
444
444
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
445
445
|
? yield core.Supplier.get(this._options.project)
|
|
446
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
446
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
447
447
|
contentType: "application/json",
|
|
448
448
|
requestType: "json",
|
|
449
449
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -509,7 +509,7 @@ class Blocks {
|
|
|
509
509
|
method: "PATCH",
|
|
510
510
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
511
511
|
? yield core.Supplier.get(this._options.project)
|
|
512
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
512
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68644", "User-Agent": "@letta-ai/letta-client/0.0.68644", "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),
|
|
513
513
|
contentType: "application/json",
|
|
514
514
|
requestType: "json",
|
|
515
515
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|