@letta-ai/letta-client 0.1.161 → 0.1.163
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 +6 -48
- package/api/resources/agents/client/Client.js +34 -231
- 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 +83 -0
- package/api/resources/agents/resources/files/client/Client.js +276 -0
- package/api/resources/agents/resources/files/client/index.d.ts +1 -0
- package/api/resources/agents/resources/files/client/index.js +2 -0
- package/api/resources/agents/resources/files/index.d.ts +1 -0
- package/api/resources/agents/resources/files/index.js +17 -0
- package/api/resources/agents/resources/folders/client/Client.d.ts +74 -0
- package/api/resources/agents/resources/folders/client/Client.js +272 -0
- package/api/resources/agents/resources/folders/client/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/client/index.js +2 -0
- package/api/resources/agents/resources/folders/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/index.js +17 -0
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/index.d.ts +2 -0
- package/api/resources/agents/resources/index.js +3 -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.d.ts +20 -69
- package/api/resources/folders/client/Client.js +36 -326
- package/api/resources/folders/client/requests/index.d.ts +0 -3
- package/api/resources/folders/index.d.ts +1 -0
- package/api/resources/folders/index.js +1 -0
- package/api/resources/folders/resources/files/client/Client.d.ts +78 -0
- package/api/resources/folders/resources/files/client/Client.js +289 -0
- package/api/resources/folders/resources/files/client/index.d.ts +1 -0
- package/api/resources/folders/resources/files/client/index.js +17 -0
- package/api/resources/folders/{client → resources/files/client}/requests/BodyUploadFileToFolder.d.ts +1 -1
- package/{dist/api/resources/folders/client/requests/ListFolderFilesRequest.d.ts → api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts} +1 -1
- package/api/resources/folders/resources/files/client/requests/index.d.ts +2 -0
- package/api/resources/folders/resources/files/client/requests/index.js +2 -0
- package/api/resources/folders/resources/files/index.d.ts +1 -0
- package/api/resources/folders/resources/files/index.js +17 -0
- package/api/resources/folders/resources/index.d.ts +4 -0
- package/api/resources/folders/resources/index.js +43 -0
- package/api/resources/folders/resources/passages/client/Client.d.ts +49 -0
- package/api/resources/folders/resources/passages/client/Client.js +149 -0
- package/api/resources/folders/resources/passages/client/index.d.ts +1 -0
- package/api/resources/folders/resources/passages/client/index.js +17 -0
- package/api/resources/folders/{client/requests/ListFolderPassagesRequest.d.ts → resources/passages/client/requests/PassagesListRequest.d.ts} +1 -1
- package/api/resources/folders/resources/passages/client/requests/index.d.ts +1 -0
- package/api/resources/folders/resources/passages/client/requests/index.js +2 -0
- package/api/resources/folders/resources/passages/index.d.ts +1 -0
- package/api/resources/folders/resources/passages/index.js +17 -0
- 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 +19 -19
- package/api/resources/voice/client/Client.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +6 -48
- package/dist/api/resources/agents/client/Client.js +34 -231
- 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 +83 -0
- package/dist/api/resources/agents/resources/files/client/Client.js +276 -0
- package/dist/api/resources/agents/resources/files/client/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/files/client/index.js +2 -0
- package/dist/api/resources/agents/resources/files/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/files/index.js +17 -0
- package/dist/api/resources/agents/resources/folders/client/Client.d.ts +74 -0
- package/dist/api/resources/agents/resources/folders/client/Client.js +272 -0
- package/dist/api/resources/agents/resources/folders/client/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/client/index.js +2 -0
- package/dist/api/resources/agents/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/index.js +17 -0
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/index.js +3 -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.d.ts +20 -69
- package/dist/api/resources/folders/client/Client.js +36 -326
- package/dist/api/resources/folders/client/requests/index.d.ts +0 -3
- package/dist/api/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/folders/index.js +1 -0
- package/dist/api/resources/folders/resources/files/client/Client.d.ts +78 -0
- package/dist/api/resources/folders/resources/files/client/Client.js +289 -0
- package/dist/api/resources/folders/resources/files/client/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/files/client/index.js +17 -0
- package/dist/api/resources/folders/{client → resources/files/client}/requests/BodyUploadFileToFolder.d.ts +1 -1
- package/{api/resources/folders/client/requests/ListFolderFilesRequest.d.ts → dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts} +1 -1
- package/dist/api/resources/folders/resources/files/client/requests/index.d.ts +2 -0
- package/dist/api/resources/folders/resources/files/client/requests/index.js +2 -0
- package/dist/api/resources/folders/resources/files/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/files/index.js +17 -0
- package/dist/api/resources/folders/resources/index.d.ts +4 -0
- package/dist/api/resources/folders/resources/index.js +43 -0
- package/dist/api/resources/folders/resources/passages/client/Client.d.ts +49 -0
- package/dist/api/resources/folders/resources/passages/client/Client.js +149 -0
- package/dist/api/resources/folders/resources/passages/client/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/passages/client/index.js +17 -0
- package/dist/api/resources/folders/{client/requests/ListFolderPassagesRequest.d.ts → resources/passages/client/requests/PassagesListRequest.d.ts} +1 -1
- package/dist/api/resources/folders/resources/passages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/passages/client/requests/index.js +2 -0
- package/dist/api/resources/folders/resources/passages/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/passages/index.js +17 -0
- 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 +19 -19
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/serialization/resources/agents/client/index.d.ts +0 -2
- package/dist/serialization/resources/agents/client/index.js +1 -3
- package/dist/serialization/resources/agents/{client/openFile.d.ts → resources/files/client/closeAll.d.ts} +3 -3
- package/dist/serialization/resources/agents/{client/closeAllOpenFiles.js → resources/files/client/closeAll.js} +1 -1
- package/dist/serialization/resources/agents/resources/files/client/index.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/files/client/index.js +38 -0
- package/{serialization/resources/agents/client/closeAllOpenFiles.d.ts → dist/serialization/resources/agents/resources/files/client/open.d.ts} +3 -3
- package/dist/serialization/resources/agents/{client/openFile.js → resources/files/client/open.js} +1 -1
- package/dist/serialization/resources/agents/resources/files/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/files/index.js +17 -0
- package/dist/serialization/resources/agents/resources/folders/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/folders/client/index.js +37 -0
- package/dist/serialization/resources/agents/resources/folders/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/folders/client/list.js +42 -0
- package/dist/serialization/resources/agents/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/folders/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/index.js +3 -1
- package/dist/serialization/resources/folders/client/{countFolders.d.ts → count.d.ts} +1 -1
- package/dist/serialization/resources/folders/client/index.d.ts +3 -5
- package/dist/serialization/resources/folders/client/index.js +4 -6
- package/dist/serialization/resources/folders/client/{listFolders.d.ts → list.d.ts} +1 -1
- package/{serialization/resources/folders/client/getFolderIdByName.d.ts → dist/serialization/resources/folders/client/retrieveByName.d.ts} +1 -1
- package/dist/serialization/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/folders/index.js +1 -0
- package/dist/serialization/resources/folders/resources/files/client/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/files/client/index.js +37 -0
- package/dist/serialization/resources/folders/resources/files/client/list.d.ts +11 -0
- package/dist/serialization/resources/folders/{client/listFolderFiles.js → resources/files/client/list.js} +2 -2
- package/dist/serialization/resources/folders/resources/files/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/files/index.js +17 -0
- package/dist/serialization/resources/folders/resources/index.d.ts +2 -0
- package/dist/serialization/resources/folders/resources/index.js +38 -0
- package/dist/serialization/resources/folders/resources/passages/client/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/passages/client/index.js +37 -0
- package/dist/serialization/resources/folders/resources/passages/client/list.d.ts +11 -0
- package/dist/serialization/resources/folders/{client/listFolderPassages.js → resources/passages/client/list.js} +2 -2
- package/dist/serialization/resources/folders/resources/passages/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/passages/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 +1144 -931
- package/serialization/resources/agents/client/index.d.ts +0 -2
- package/serialization/resources/agents/client/index.js +1 -3
- package/serialization/resources/agents/{client/openFile.d.ts → resources/files/client/closeAll.d.ts} +3 -3
- package/serialization/resources/agents/{client/closeAllOpenFiles.js → resources/files/client/closeAll.js} +1 -1
- package/serialization/resources/agents/resources/files/client/index.d.ts +2 -0
- package/serialization/resources/agents/resources/files/client/index.js +38 -0
- package/{dist/serialization/resources/agents/client/closeAllOpenFiles.d.ts → serialization/resources/agents/resources/files/client/open.d.ts} +3 -3
- package/serialization/resources/agents/{client/openFile.js → resources/files/client/open.js} +1 -1
- package/serialization/resources/agents/resources/files/index.d.ts +1 -0
- package/serialization/resources/agents/resources/files/index.js +17 -0
- package/serialization/resources/agents/resources/folders/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/folders/client/index.js +37 -0
- package/serialization/resources/agents/resources/folders/client/list.d.ts +11 -0
- package/serialization/resources/agents/resources/folders/client/list.js +42 -0
- package/serialization/resources/agents/resources/folders/index.d.ts +1 -0
- package/serialization/resources/agents/resources/folders/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +2 -0
- package/serialization/resources/agents/resources/index.js +3 -1
- package/serialization/resources/folders/client/{countFolders.d.ts → count.d.ts} +1 -1
- package/serialization/resources/folders/client/index.d.ts +3 -5
- package/serialization/resources/folders/client/index.js +4 -6
- package/serialization/resources/folders/client/{listFolders.d.ts → list.d.ts} +1 -1
- package/{dist/serialization/resources/folders/client/getFolderIdByName.d.ts → serialization/resources/folders/client/retrieveByName.d.ts} +1 -1
- package/serialization/resources/folders/index.d.ts +1 -0
- package/serialization/resources/folders/index.js +1 -0
- package/serialization/resources/folders/resources/files/client/index.d.ts +1 -0
- package/serialization/resources/folders/resources/files/client/index.js +37 -0
- package/serialization/resources/folders/resources/files/client/list.d.ts +11 -0
- package/serialization/resources/folders/{client/listFolderFiles.js → resources/files/client/list.js} +2 -2
- package/serialization/resources/folders/resources/files/index.d.ts +1 -0
- package/serialization/resources/folders/resources/files/index.js +17 -0
- package/serialization/resources/folders/resources/index.d.ts +2 -0
- package/serialization/resources/folders/resources/index.js +38 -0
- package/serialization/resources/folders/resources/passages/client/index.d.ts +1 -0
- package/serialization/resources/folders/resources/passages/client/index.js +37 -0
- package/serialization/resources/folders/resources/passages/client/list.d.ts +11 -0
- package/serialization/resources/folders/{client/listFolderPassages.js → resources/passages/client/list.js} +2 -2
- package/serialization/resources/folders/resources/passages/index.d.ts +1 -0
- package/serialization/resources/folders/resources/passages/index.js +17 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/resources/folders/client/listFolderFiles.d.ts +0 -11
- package/dist/serialization/resources/folders/client/listFolderPassages.d.ts +0 -11
- package/serialization/resources/folders/client/listFolderFiles.d.ts +0 -11
- package/serialization/resources/folders/client/listFolderPassages.d.ts +0 -11
- /package/api/resources/folders/{client → resources/files/client}/requests/BodyUploadFileToFolder.js +0 -0
- /package/api/resources/folders/{client/requests/ListFolderFilesRequest.js → resources/files/client/requests/FilesListRequest.js} +0 -0
- /package/api/resources/folders/{client/requests/ListFolderPassagesRequest.js → resources/passages/client/requests/PassagesListRequest.js} +0 -0
- /package/dist/api/resources/folders/{client → resources/files/client}/requests/BodyUploadFileToFolder.js +0 -0
- /package/dist/api/resources/folders/{client/requests/ListFolderFilesRequest.js → resources/files/client/requests/FilesListRequest.js} +0 -0
- /package/dist/api/resources/folders/{client/requests/ListFolderPassagesRequest.js → resources/passages/client/requests/PassagesListRequest.js} +0 -0
- /package/dist/serialization/resources/folders/client/{countFolders.js → count.js} +0 -0
- /package/dist/serialization/resources/folders/client/{listFolders.js → list.js} +0 -0
- /package/dist/serialization/resources/folders/client/{getFolderIdByName.js → retrieveByName.js} +0 -0
- /package/serialization/resources/folders/client/{countFolders.js → count.js} +0 -0
- /package/serialization/resources/folders/client/{listFolders.js → list.js} +0 -0
- /package/serialization/resources/folders/client/{getFolderIdByName.js → retrieveByName.js} +0 -0
|
@@ -90,7 +90,7 @@ class Passages {
|
|
|
90
90
|
method: "GET",
|
|
91
91
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
92
92
|
? yield core.Supplier.get(this._options.project)
|
|
93
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
93
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -135,7 +135,7 @@ class Steps {
|
|
|
135
135
|
method: "GET",
|
|
136
136
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
137
137
|
? yield core.Supplier.get(this._options.project)
|
|
138
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
138
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
queryParameters: _queryParams,
|
|
141
141
|
requestType: "json",
|
|
@@ -203,7 +203,7 @@ class Steps {
|
|
|
203
203
|
method: "GET",
|
|
204
204
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
205
205
|
? yield core.Supplier.get(this._options.project)
|
|
206
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
206
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
207
207
|
contentType: "application/json",
|
|
208
208
|
requestType: "json",
|
|
209
209
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Feedback {
|
|
|
84
84
|
method: "PATCH",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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
|
queryParameters: _queryParams,
|
|
90
90
|
requestType: "json",
|
|
@@ -89,7 +89,7 @@ class Tags {
|
|
|
89
89
|
method: "GET",
|
|
90
90
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
91
91
|
? yield core.Supplier.get(this._options.project)
|
|
92
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
92
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -76,7 +76,7 @@ class Telemetry {
|
|
|
76
76
|
method: "GET",
|
|
77
77
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
78
78
|
? yield core.Supplier.get(this._options.project)
|
|
79
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -94,7 +94,7 @@ class Templates {
|
|
|
94
94
|
method: "GET",
|
|
95
95
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
96
96
|
? yield core.Supplier.get(this._options.project)
|
|
97
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
97
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
98
98
|
contentType: "application/json",
|
|
99
99
|
queryParameters: _queryParams,
|
|
100
100
|
requestType: "json",
|
|
@@ -80,7 +80,7 @@ class Agents {
|
|
|
80
80
|
method: "POST",
|
|
81
81
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
82
82
|
? yield core.Supplier.get(this._options.project)
|
|
83
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
83
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
requestType: "json",
|
|
86
86
|
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -78,7 +78,7 @@ class Tools {
|
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
80
80
|
? yield core.Supplier.get(this._options.project)
|
|
81
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
81
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -145,7 +145,7 @@ class Tools {
|
|
|
145
145
|
method: "DELETE",
|
|
146
146
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
147
147
|
? yield core.Supplier.get(this._options.project)
|
|
148
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
148
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
requestType: "json",
|
|
151
151
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -207,7 +207,7 @@ class Tools {
|
|
|
207
207
|
method: "PATCH",
|
|
208
208
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
209
209
|
? yield core.Supplier.get(this._options.project)
|
|
210
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
210
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
211
211
|
contentType: "application/json",
|
|
212
212
|
requestType: "json",
|
|
213
213
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -280,7 +280,7 @@ class Tools {
|
|
|
280
280
|
method: "GET",
|
|
281
281
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
282
282
|
? yield core.Supplier.get(this._options.project)
|
|
283
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
283
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
284
284
|
contentType: "application/json",
|
|
285
285
|
queryParameters: _queryParams,
|
|
286
286
|
requestType: "json",
|
|
@@ -359,7 +359,7 @@ class Tools {
|
|
|
359
359
|
method: "GET",
|
|
360
360
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
361
361
|
? yield core.Supplier.get(this._options.project)
|
|
362
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
362
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
queryParameters: _queryParams,
|
|
365
365
|
requestType: "json",
|
|
@@ -429,7 +429,7 @@ class Tools {
|
|
|
429
429
|
method: "POST",
|
|
430
430
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
431
431
|
? yield core.Supplier.get(this._options.project)
|
|
432
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
432
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
433
433
|
contentType: "application/json",
|
|
434
434
|
requestType: "json",
|
|
435
435
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -499,7 +499,7 @@ class Tools {
|
|
|
499
499
|
method: "PUT",
|
|
500
500
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
501
501
|
? yield core.Supplier.get(this._options.project)
|
|
502
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
502
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
503
503
|
contentType: "application/json",
|
|
504
504
|
requestType: "json",
|
|
505
505
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -566,7 +566,7 @@ class Tools {
|
|
|
566
566
|
method: "POST",
|
|
567
567
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
568
568
|
? yield core.Supplier.get(this._options.project)
|
|
569
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
569
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
570
570
|
contentType: "application/json",
|
|
571
571
|
requestType: "json",
|
|
572
572
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -638,7 +638,7 @@ class Tools {
|
|
|
638
638
|
method: "POST",
|
|
639
639
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
640
640
|
? yield core.Supplier.get(this._options.project)
|
|
641
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
641
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
642
642
|
contentType: "application/json",
|
|
643
643
|
requestType: "json",
|
|
644
644
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -707,7 +707,7 @@ class Tools {
|
|
|
707
707
|
method: "GET",
|
|
708
708
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
709
709
|
? yield core.Supplier.get(this._options.project)
|
|
710
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
710
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
711
711
|
contentType: "application/json",
|
|
712
712
|
requestType: "json",
|
|
713
713
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -774,7 +774,7 @@ class Tools {
|
|
|
774
774
|
method: "GET",
|
|
775
775
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
776
776
|
? yield core.Supplier.get(this._options.project)
|
|
777
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
777
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
778
778
|
contentType: "application/json",
|
|
779
779
|
requestType: "json",
|
|
780
780
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -841,7 +841,7 @@ class Tools {
|
|
|
841
841
|
method: "POST",
|
|
842
842
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
843
843
|
? yield core.Supplier.get(this._options.project)
|
|
844
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
844
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
845
845
|
contentType: "application/json",
|
|
846
846
|
requestType: "json",
|
|
847
847
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -909,7 +909,7 @@ class Tools {
|
|
|
909
909
|
method: "GET",
|
|
910
910
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
911
911
|
? yield core.Supplier.get(this._options.project)
|
|
912
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
912
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
913
913
|
contentType: "application/json",
|
|
914
914
|
requestType: "json",
|
|
915
915
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -980,7 +980,7 @@ class Tools {
|
|
|
980
980
|
method: "PUT",
|
|
981
981
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
982
982
|
? yield core.Supplier.get(this._options.project)
|
|
983
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
983
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
984
984
|
contentType: "application/json",
|
|
985
985
|
requestType: "json",
|
|
986
986
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1048,7 +1048,7 @@ class Tools {
|
|
|
1048
1048
|
method: "GET",
|
|
1049
1049
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1050
1050
|
? yield core.Supplier.get(this._options.project)
|
|
1051
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1051
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
1052
1052
|
contentType: "application/json",
|
|
1053
1053
|
requestType: "json",
|
|
1054
1054
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1116,7 +1116,7 @@ class Tools {
|
|
|
1116
1116
|
method: "POST",
|
|
1117
1117
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1118
1118
|
? yield core.Supplier.get(this._options.project)
|
|
1119
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1119
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
1120
1120
|
contentType: "application/json",
|
|
1121
1121
|
requestType: "json",
|
|
1122
1122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1183,7 +1183,7 @@ class Tools {
|
|
|
1183
1183
|
method: "DELETE",
|
|
1184
1184
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1185
1185
|
? yield core.Supplier.get(this._options.project)
|
|
1186
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1186
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
1187
1187
|
contentType: "application/json",
|
|
1188
1188
|
requestType: "json",
|
|
1189
1189
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1251,7 +1251,7 @@ class Tools {
|
|
|
1251
1251
|
method: "PATCH",
|
|
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.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1324,7 +1324,7 @@ class Tools {
|
|
|
1324
1324
|
method: "POST",
|
|
1325
1325
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1326
1326
|
? yield core.Supplier.get(this._options.project)
|
|
1327
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1327
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
1328
1328
|
contentType: "application/json",
|
|
1329
1329
|
requestType: "json",
|
|
1330
1330
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -82,7 +82,7 @@ class Voice {
|
|
|
82
82
|
method: "POST",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.163", "User-Agent": "@letta-ai/letta-client/0.1.163", "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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
@@ -9,6 +9,8 @@ import { Blob } from "buffer";
|
|
|
9
9
|
import { Context } from "../resources/context/client/Client";
|
|
10
10
|
import { Tools } from "../resources/tools/client/Client";
|
|
11
11
|
import { Sources } from "../resources/sources/client/Client";
|
|
12
|
+
import { Folders } from "../resources/folders/client/Client";
|
|
13
|
+
import { Files } from "../resources/files/client/Client";
|
|
12
14
|
import { CoreMemory } from "../resources/coreMemory/client/Client";
|
|
13
15
|
import { Blocks } from "../resources/blocks/client/Client";
|
|
14
16
|
import { Passages } from "../resources/passages/client/Client";
|
|
@@ -44,6 +46,8 @@ export declare class Agents {
|
|
|
44
46
|
protected _context: Context | undefined;
|
|
45
47
|
protected _tools: Tools | undefined;
|
|
46
48
|
protected _sources: Sources | undefined;
|
|
49
|
+
protected _folders: Folders | undefined;
|
|
50
|
+
protected _files: Files | undefined;
|
|
47
51
|
protected _coreMemory: CoreMemory | undefined;
|
|
48
52
|
protected _blocks: Blocks | undefined;
|
|
49
53
|
protected _passages: Passages | undefined;
|
|
@@ -55,6 +59,8 @@ export declare class Agents {
|
|
|
55
59
|
get context(): Context;
|
|
56
60
|
get tools(): Tools;
|
|
57
61
|
get sources(): Sources;
|
|
62
|
+
get folders(): Folders;
|
|
63
|
+
get files(): Files;
|
|
58
64
|
get coreMemory(): CoreMemory;
|
|
59
65
|
get blocks(): Blocks;
|
|
60
66
|
get passages(): Passages;
|
|
@@ -163,54 +169,6 @@ export declare class Agents {
|
|
|
163
169
|
* await client.agents.modify("agent_id")
|
|
164
170
|
*/
|
|
165
171
|
modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
166
|
-
/**
|
|
167
|
-
* Closes all currently open files for a given agent.
|
|
168
|
-
*
|
|
169
|
-
* This endpoint updates the file state for the agent so that no files are marked as open.
|
|
170
|
-
* Typically used to reset the working memory view for the agent.
|
|
171
|
-
*
|
|
172
|
-
* @param {string} agentId
|
|
173
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
174
|
-
*
|
|
175
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* await client.agents.closeAllOpenFiles("agent_id")
|
|
179
|
-
*/
|
|
180
|
-
closeAllOpenFiles(agentId: string, requestOptions?: Agents.RequestOptions): Promise<string[]>;
|
|
181
|
-
/**
|
|
182
|
-
* Opens a specific file for a given agent.
|
|
183
|
-
*
|
|
184
|
-
* This endpoint marks a specific file as open in the agent's file state.
|
|
185
|
-
* The file will be included in the agent's working memory view.
|
|
186
|
-
* Returns a list of file names that were closed due to LRU eviction.
|
|
187
|
-
*
|
|
188
|
-
* @param {string} agentId
|
|
189
|
-
* @param {string} fileId
|
|
190
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
-
*
|
|
192
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
193
|
-
*
|
|
194
|
-
* @example
|
|
195
|
-
* await client.agents.openFile("agent_id", "file_id")
|
|
196
|
-
*/
|
|
197
|
-
openFile(agentId: string, fileId: string, requestOptions?: Agents.RequestOptions): Promise<string[]>;
|
|
198
|
-
/**
|
|
199
|
-
* Closes a specific file for a given agent.
|
|
200
|
-
*
|
|
201
|
-
* This endpoint marks a specific file as closed in the agent's file state.
|
|
202
|
-
* The file will be removed from the agent's working memory view.
|
|
203
|
-
*
|
|
204
|
-
* @param {string} agentId
|
|
205
|
-
* @param {string} fileId
|
|
206
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
|
-
*
|
|
208
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
209
|
-
*
|
|
210
|
-
* @example
|
|
211
|
-
* await client.agents.closeFile("agent_id", "file_id")
|
|
212
|
-
*/
|
|
213
|
-
closeFile(agentId: string, fileId: string, requestOptions?: Agents.RequestOptions): Promise<unknown>;
|
|
214
172
|
/**
|
|
215
173
|
* Summarize an agent's conversation history to a target message length.
|
|
216
174
|
*
|