@letta-ai/letta-client 0.1.174 → 0.1.175
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 +10 -10
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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 +3 -3
- 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/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.js +4 -4
- 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 +3 -3
- 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 +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- 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 +2 -2
- 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.js +1 -1
- 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/api/types/BatchJob.d.ts +4 -0
- package/api/types/Job.d.ts +4 -0
- package/api/types/Run.d.ts +4 -0
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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 +3 -3
- 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/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.js +4 -4
- 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 +3 -3
- 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 +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- 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 +2 -2
- 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.js +1 -1
- 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/api/types/BatchJob.d.ts +4 -0
- package/dist/api/types/Job.d.ts +4 -0
- package/dist/api/types/Run.d.ts +4 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/dist/serialization/types/BatchJob.d.ts +2 -0
- package/dist/serialization/types/BatchJob.js +2 -0
- package/dist/serialization/types/Job.d.ts +2 -0
- package/dist/serialization/types/Job.js +2 -0
- package/dist/serialization/types/Run.d.ts +2 -0
- package/dist/serialization/types/Run.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/serialization/types/BatchJob.d.ts +2 -0
- package/serialization/types/BatchJob.js +2 -0
- package/serialization/types/Job.d.ts +2 -0
- package/serialization/types/Job.js +2 -0
- package/serialization/types/Run.d.ts +2 -0
- package/serialization/types/Run.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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,
|
|
@@ -157,7 +157,7 @@ class Tools {
|
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
159
159
|
? yield core.Supplier.get(this._options.project)
|
|
160
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
160
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -225,7 +225,7 @@ class Tools {
|
|
|
225
225
|
method: "PATCH",
|
|
226
226
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
227
227
|
? yield core.Supplier.get(this._options.project)
|
|
228
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
228
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
229
229
|
contentType: "application/json",
|
|
230
230
|
requestType: "json",
|
|
231
231
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -307,7 +307,7 @@ class Tools {
|
|
|
307
307
|
method: "GET",
|
|
308
308
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
309
309
|
? yield core.Supplier.get(this._options.project)
|
|
310
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
310
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
queryParameters: _queryParams,
|
|
313
313
|
requestType: "json",
|
|
@@ -395,7 +395,7 @@ class Tools {
|
|
|
395
395
|
method: "GET",
|
|
396
396
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
397
397
|
? yield core.Supplier.get(this._options.project)
|
|
398
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
398
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
399
399
|
contentType: "application/json",
|
|
400
400
|
queryParameters: _queryParams,
|
|
401
401
|
requestType: "json",
|
|
@@ -474,7 +474,7 @@ class Tools {
|
|
|
474
474
|
method: "POST",
|
|
475
475
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
476
476
|
? yield core.Supplier.get(this._options.project)
|
|
477
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
477
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
requestType: "json",
|
|
480
480
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -553,7 +553,7 @@ class Tools {
|
|
|
553
553
|
method: "PUT",
|
|
554
554
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
555
555
|
? yield core.Supplier.get(this._options.project)
|
|
556
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
556
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
557
557
|
contentType: "application/json",
|
|
558
558
|
requestType: "json",
|
|
559
559
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -629,7 +629,7 @@ class Tools {
|
|
|
629
629
|
method: "POST",
|
|
630
630
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
631
631
|
? yield core.Supplier.get(this._options.project)
|
|
632
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
632
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
633
633
|
contentType: "application/json",
|
|
634
634
|
requestType: "json",
|
|
635
635
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -710,7 +710,7 @@ class Tools {
|
|
|
710
710
|
method: "POST",
|
|
711
711
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
712
712
|
? yield core.Supplier.get(this._options.project)
|
|
713
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
713
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
714
714
|
contentType: "application/json",
|
|
715
715
|
requestType: "json",
|
|
716
716
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -788,7 +788,7 @@ class Tools {
|
|
|
788
788
|
method: "GET",
|
|
789
789
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
790
790
|
? yield core.Supplier.get(this._options.project)
|
|
791
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
791
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
792
792
|
contentType: "application/json",
|
|
793
793
|
requestType: "json",
|
|
794
794
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -864,7 +864,7 @@ class Tools {
|
|
|
864
864
|
method: "GET",
|
|
865
865
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
866
866
|
? yield core.Supplier.get(this._options.project)
|
|
867
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
867
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
868
868
|
contentType: "application/json",
|
|
869
869
|
requestType: "json",
|
|
870
870
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -940,7 +940,7 @@ class Tools {
|
|
|
940
940
|
method: "POST",
|
|
941
941
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
942
942
|
? yield core.Supplier.get(this._options.project)
|
|
943
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
943
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
944
944
|
contentType: "application/json",
|
|
945
945
|
requestType: "json",
|
|
946
946
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1017,7 +1017,7 @@ class Tools {
|
|
|
1017
1017
|
method: "GET",
|
|
1018
1018
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1019
1019
|
? yield core.Supplier.get(this._options.project)
|
|
1020
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1020
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1021
1021
|
contentType: "application/json",
|
|
1022
1022
|
requestType: "json",
|
|
1023
1023
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1097,7 +1097,7 @@ class Tools {
|
|
|
1097
1097
|
method: "PUT",
|
|
1098
1098
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1099
1099
|
? yield core.Supplier.get(this._options.project)
|
|
1100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
1101
1101
|
contentType: "application/json",
|
|
1102
1102
|
requestType: "json",
|
|
1103
1103
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1174,7 +1174,7 @@ class Tools {
|
|
|
1174
1174
|
method: "GET",
|
|
1175
1175
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1176
1176
|
? yield core.Supplier.get(this._options.project)
|
|
1177
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1177
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
1178
1178
|
contentType: "application/json",
|
|
1179
1179
|
requestType: "json",
|
|
1180
1180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1251,7 +1251,7 @@ class Tools {
|
|
|
1251
1251
|
method: "POST",
|
|
1252
1252
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1253
1253
|
? yield core.Supplier.get(this._options.project)
|
|
1254
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1254
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
1255
1255
|
contentType: "application/json",
|
|
1256
1256
|
requestType: "json",
|
|
1257
1257
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1327,7 +1327,7 @@ class Tools {
|
|
|
1327
1327
|
method: "DELETE",
|
|
1328
1328
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1329
1329
|
? yield core.Supplier.get(this._options.project)
|
|
1330
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1330
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
1331
1331
|
contentType: "application/json",
|
|
1332
1332
|
requestType: "json",
|
|
1333
1333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1404,7 +1404,7 @@ class Tools {
|
|
|
1404
1404
|
method: "PATCH",
|
|
1405
1405
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1406
1406
|
? yield core.Supplier.get(this._options.project)
|
|
1407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
1408
1408
|
contentType: "application/json",
|
|
1409
1409
|
requestType: "json",
|
|
1410
1410
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1486,7 +1486,7 @@ class Tools {
|
|
|
1486
1486
|
method: "POST",
|
|
1487
1487
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1488
1488
|
? yield core.Supplier.get(this._options.project)
|
|
1489
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1489
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
1490
1490
|
contentType: "application/json",
|
|
1491
1491
|
requestType: "json",
|
|
1492
1492
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1547,7 +1547,7 @@ class Tools {
|
|
|
1547
1547
|
method: "POST",
|
|
1548
1548
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1549
1549
|
? yield core.Supplier.get(this._options.project)
|
|
1550
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1550
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "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),
|
|
1551
1551
|
contentType: "application/json",
|
|
1552
1552
|
requestType: "json",
|
|
1553
1553
|
body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Voice {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
87
87
|
? 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.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.175", "User-Agent": "@letta-ai/letta-client/0.1.175", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
@@ -26,6 +26,10 @@ export interface BatchJob {
|
|
|
26
26
|
callbackStatusCode?: number;
|
|
27
27
|
/** Optional error message from attempting to POST the callback endpoint. */
|
|
28
28
|
callbackError?: string;
|
|
29
|
+
/** Time to first token for a run in nanoseconds */
|
|
30
|
+
ttftNs?: number;
|
|
31
|
+
/** Total run duration in nanoseconds */
|
|
32
|
+
totalDurationNs?: number;
|
|
29
33
|
/** The human-friendly ID of the Job */
|
|
30
34
|
id?: string;
|
|
31
35
|
}
|
package/dist/api/types/Job.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export interface Job {
|
|
|
37
37
|
callbackStatusCode?: number;
|
|
38
38
|
/** Optional error message from attempting to POST the callback endpoint. */
|
|
39
39
|
callbackError?: string;
|
|
40
|
+
/** Time to first token for a run in nanoseconds */
|
|
41
|
+
ttftNs?: number;
|
|
42
|
+
/** Total run duration in nanoseconds */
|
|
43
|
+
totalDurationNs?: number;
|
|
40
44
|
/** The human-friendly ID of the Job */
|
|
41
45
|
id?: string;
|
|
42
46
|
}
|
package/dist/api/types/Run.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export interface Run {
|
|
|
37
37
|
callbackStatusCode?: number;
|
|
38
38
|
/** Optional error message from attempting to POST the callback endpoint. */
|
|
39
39
|
callbackError?: string;
|
|
40
|
+
/** Time to first token for a run in nanoseconds */
|
|
41
|
+
ttftNs?: number;
|
|
42
|
+
/** Total run duration in nanoseconds */
|
|
43
|
+
totalDurationNs?: number;
|
|
40
44
|
/** The human-friendly ID of the Run */
|
|
41
45
|
id?: string;
|
|
42
46
|
/** The request configuration for the run. */
|
|
@@ -40,6 +40,7 @@ export declare namespace CreateAgentRequest {
|
|
|
40
40
|
max_tokens?: number | null;
|
|
41
41
|
max_reasoning_tokens?: number | null;
|
|
42
42
|
enable_reasoner?: boolean | null;
|
|
43
|
+
reasoning?: boolean | null;
|
|
43
44
|
from_template?: string | null;
|
|
44
45
|
template?: boolean | null;
|
|
45
46
|
project?: string | null;
|
|
@@ -72,6 +72,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
72
72
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
|
|
73
73
|
maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
|
|
74
74
|
enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
|
|
75
|
+
reasoning: core.serialization.boolean().optional(),
|
|
75
76
|
fromTemplate: core.serialization.property("from_template", core.serialization.string().optional()),
|
|
76
77
|
template: core.serialization.boolean().optional(),
|
|
77
78
|
project: core.serialization.string().optional(),
|
|
@@ -31,6 +31,7 @@ export declare namespace UpdateAgent {
|
|
|
31
31
|
message_buffer_autoclear?: boolean | null;
|
|
32
32
|
model?: string | null;
|
|
33
33
|
embedding?: string | null;
|
|
34
|
+
reasoning?: boolean | null;
|
|
34
35
|
enable_sleeptime?: boolean | null;
|
|
35
36
|
response_format?: UpdateAgentResponseFormat.Raw | null;
|
|
36
37
|
last_run_completion?: string | null;
|
|
@@ -63,6 +63,7 @@ exports.UpdateAgent = core.serialization.object({
|
|
|
63
63
|
messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean().optional()),
|
|
64
64
|
model: core.serialization.string().optional(),
|
|
65
65
|
embedding: core.serialization.string().optional(),
|
|
66
|
+
reasoning: core.serialization.boolean().optional(),
|
|
66
67
|
enableSleeptime: core.serialization.property("enable_sleeptime", core.serialization.boolean().optional()),
|
|
67
68
|
responseFormat: core.serialization.property("response_format", UpdateAgentResponseFormat_1.UpdateAgentResponseFormat.optional()),
|
|
68
69
|
lastRunCompletion: core.serialization.property("last_run_completion", core.serialization.date().optional()),
|
|
@@ -53,5 +53,7 @@ exports.BatchJob = core.serialization.object({
|
|
|
53
53
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
54
54
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
55
55
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
56
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
57
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
56
58
|
id: core.serialization.string().optional(),
|
|
57
59
|
});
|
|
@@ -53,5 +53,7 @@ exports.Job = core.serialization.object({
|
|
|
53
53
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
54
54
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
55
55
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
56
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
57
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
56
58
|
id: core.serialization.string().optional(),
|
|
57
59
|
});
|
|
@@ -22,6 +22,8 @@ export declare namespace Run {
|
|
|
22
22
|
callback_sent_at?: string | null;
|
|
23
23
|
callback_status_code?: number | null;
|
|
24
24
|
callback_error?: string | null;
|
|
25
|
+
ttft_ns?: number | null;
|
|
26
|
+
total_duration_ns?: number | null;
|
|
25
27
|
id?: string | null;
|
|
26
28
|
request_config?: LettaRequestConfig.Raw | null;
|
|
27
29
|
}
|
|
@@ -54,6 +54,8 @@ exports.Run = core.serialization.object({
|
|
|
54
54
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
55
55
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
56
56
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
57
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
58
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
57
59
|
id: core.serialization.string().optional(),
|
|
58
60
|
requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
|
|
59
61
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.175";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ export declare namespace CreateAgentRequest {
|
|
|
40
40
|
max_tokens?: number | null;
|
|
41
41
|
max_reasoning_tokens?: number | null;
|
|
42
42
|
enable_reasoner?: boolean | null;
|
|
43
|
+
reasoning?: boolean | null;
|
|
43
44
|
from_template?: string | null;
|
|
44
45
|
template?: boolean | null;
|
|
45
46
|
project?: string | null;
|
|
@@ -72,6 +72,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
72
72
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
|
|
73
73
|
maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
|
|
74
74
|
enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
|
|
75
|
+
reasoning: core.serialization.boolean().optional(),
|
|
75
76
|
fromTemplate: core.serialization.property("from_template", core.serialization.string().optional()),
|
|
76
77
|
template: core.serialization.boolean().optional(),
|
|
77
78
|
project: core.serialization.string().optional(),
|
|
@@ -31,6 +31,7 @@ export declare namespace UpdateAgent {
|
|
|
31
31
|
message_buffer_autoclear?: boolean | null;
|
|
32
32
|
model?: string | null;
|
|
33
33
|
embedding?: string | null;
|
|
34
|
+
reasoning?: boolean | null;
|
|
34
35
|
enable_sleeptime?: boolean | null;
|
|
35
36
|
response_format?: UpdateAgentResponseFormat.Raw | null;
|
|
36
37
|
last_run_completion?: string | null;
|
|
@@ -63,6 +63,7 @@ exports.UpdateAgent = core.serialization.object({
|
|
|
63
63
|
messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean().optional()),
|
|
64
64
|
model: core.serialization.string().optional(),
|
|
65
65
|
embedding: core.serialization.string().optional(),
|
|
66
|
+
reasoning: core.serialization.boolean().optional(),
|
|
66
67
|
enableSleeptime: core.serialization.property("enable_sleeptime", core.serialization.boolean().optional()),
|
|
67
68
|
responseFormat: core.serialization.property("response_format", UpdateAgentResponseFormat_1.UpdateAgentResponseFormat.optional()),
|
|
68
69
|
lastRunCompletion: core.serialization.property("last_run_completion", core.serialization.date().optional()),
|
|
@@ -53,5 +53,7 @@ exports.BatchJob = core.serialization.object({
|
|
|
53
53
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
54
54
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
55
55
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
56
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
57
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
56
58
|
id: core.serialization.string().optional(),
|
|
57
59
|
});
|
|
@@ -53,5 +53,7 @@ exports.Job = core.serialization.object({
|
|
|
53
53
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
54
54
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
55
55
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
56
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
57
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
56
58
|
id: core.serialization.string().optional(),
|
|
57
59
|
});
|
|
@@ -22,6 +22,8 @@ export declare namespace Run {
|
|
|
22
22
|
callback_sent_at?: string | null;
|
|
23
23
|
callback_status_code?: number | null;
|
|
24
24
|
callback_error?: string | null;
|
|
25
|
+
ttft_ns?: number | null;
|
|
26
|
+
total_duration_ns?: number | null;
|
|
25
27
|
id?: string | null;
|
|
26
28
|
request_config?: LettaRequestConfig.Raw | null;
|
|
27
29
|
}
|
|
@@ -54,6 +54,8 @@ exports.Run = core.serialization.object({
|
|
|
54
54
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
55
55
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
56
56
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
57
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
58
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
57
59
|
id: core.serialization.string().optional(),
|
|
58
60
|
requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
|
|
59
61
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.175";
|
package/version.js
CHANGED