@letta-ai/letta-client 0.1.57 → 0.1.59
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 +13 -13
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/blocks/client/Client.js +18 -7
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/tools/client/Client.d.ts +36 -0
- package/api/resources/tools/client/Client.js +206 -11
- package/api/resources/tools/index.d.ts +1 -0
- package/api/resources/tools/index.js +1 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/api/resources/tools/types/index.d.ts +1 -0
- package/api/resources/tools/types/index.js +17 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/Identity.d.ts +2 -0
- package/api/types/IdentityCreate.d.ts +2 -0
- package/api/types/LocalServerConfig.d.ts +13 -0
- package/api/types/LocalServerConfig.js +5 -0
- package/api/types/McpServerType.d.ts +8 -0
- package/api/types/McpServerType.js +10 -0
- package/api/types/McpTool.d.ts +13 -0
- package/api/types/McpTool.js +5 -0
- package/api/types/SseServerConfig.d.ts +11 -0
- package/api/types/SseServerConfig.js +5 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/agents/client/Client.js +13 -13
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/blocks/client/Client.js +18 -7
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/tools/client/Client.d.ts +36 -0
- package/dist/api/resources/tools/client/Client.js +206 -11
- package/dist/api/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/tools/index.js +1 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/dist/api/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/tools/types/index.js +17 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/Identity.d.ts +2 -0
- package/dist/api/types/IdentityCreate.d.ts +2 -0
- package/dist/api/types/LocalServerConfig.d.ts +13 -0
- package/dist/api/types/LocalServerConfig.js +5 -0
- package/dist/api/types/McpServerType.d.ts +8 -0
- package/dist/api/types/McpServerType.js +10 -0
- package/dist/api/types/McpTool.d.ts +13 -0
- package/dist/api/types/McpTool.js +5 -0
- package/dist/api/types/SseServerConfig.d.ts +11 -0
- package/dist/api/types/SseServerConfig.js +5 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/tools/client/index.d.ts +2 -0
- package/dist/serialization/resources/tools/client/index.js +3 -1
- package/dist/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/dist/serialization/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/tools/index.js +1 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/dist/serialization/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/tools/types/index.js +17 -0
- package/dist/serialization/types/Identity.d.ts +1 -0
- package/dist/serialization/types/Identity.js +1 -0
- package/dist/serialization/types/IdentityCreate.d.ts +1 -0
- package/dist/serialization/types/IdentityCreate.js +1 -0
- package/dist/serialization/types/LocalServerConfig.d.ts +16 -0
- package/dist/serialization/types/LocalServerConfig.js +47 -0
- package/dist/serialization/types/McpServerType.d.ts +10 -0
- package/dist/serialization/types/McpServerType.js +41 -0
- package/dist/serialization/types/McpTool.d.ts +15 -0
- package/dist/serialization/types/McpTool.js +47 -0
- package/dist/serialization/types/SseServerConfig.d.ts +15 -0
- package/dist/serialization/types/SseServerConfig.js +46 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +189 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/tools/client/index.d.ts +2 -0
- package/serialization/resources/tools/client/index.js +3 -1
- package/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/serialization/resources/tools/index.d.ts +1 -0
- package/serialization/resources/tools/index.js +1 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/serialization/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/tools/types/index.js +17 -0
- package/serialization/types/Identity.d.ts +1 -0
- package/serialization/types/Identity.js +1 -0
- package/serialization/types/IdentityCreate.d.ts +1 -0
- package/serialization/types/IdentityCreate.js +1 -0
- package/serialization/types/LocalServerConfig.d.ts +16 -0
- package/serialization/types/LocalServerConfig.js +47 -0
- package/serialization/types/McpServerType.d.ts +10 -0
- package/serialization/types/McpServerType.js +41 -0
- package/serialization/types/McpTool.d.ts +15 -0
- package/serialization/types/McpTool.js +47 -0
- package/serialization/types/SseServerConfig.d.ts +15 -0
- package/serialization/types/SseServerConfig.js +46 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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,
|
|
@@ -141,7 +141,7 @@ class Tools {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
143
143
|
method: "DELETE",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
requestType: "json",
|
|
147
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -201,7 +201,7 @@ class Tools {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
203
203
|
method: "PATCH",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -479,7 +479,7 @@ class Tools {
|
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -614,7 +614,7 @@ class Tools {
|
|
|
614
614
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
615
615
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
|
|
616
616
|
method: "GET",
|
|
617
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
617
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
618
618
|
contentType: "application/json",
|
|
619
619
|
requestType: "json",
|
|
620
620
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -679,7 +679,7 @@ class Tools {
|
|
|
679
679
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
680
680
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
681
681
|
method: "GET",
|
|
682
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
682
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
683
683
|
contentType: "application/json",
|
|
684
684
|
requestType: "json",
|
|
685
685
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -744,7 +744,7 @@ class Tools {
|
|
|
744
744
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
745
745
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
746
746
|
method: "POST",
|
|
747
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
747
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
748
748
|
contentType: "application/json",
|
|
749
749
|
requestType: "json",
|
|
750
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -792,6 +792,201 @@ class Tools {
|
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
|
+
/**
|
|
796
|
+
* Get a list of all configured MCP servers
|
|
797
|
+
*
|
|
798
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
799
|
+
*
|
|
800
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
801
|
+
*
|
|
802
|
+
* @example
|
|
803
|
+
* await client.tools.listMcpServers()
|
|
804
|
+
*/
|
|
805
|
+
listMcpServers(requestOptions) {
|
|
806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
807
|
+
var _a, _b, _c;
|
|
808
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
809
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
|
|
810
|
+
method: "GET",
|
|
811
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
812
|
+
contentType: "application/json",
|
|
813
|
+
requestType: "json",
|
|
814
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
815
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
816
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
817
|
+
});
|
|
818
|
+
if (_response.ok) {
|
|
819
|
+
return serializers.tools.listMcpServers.Response.parseOrThrow(_response.body, {
|
|
820
|
+
unrecognizedObjectKeys: "passthrough",
|
|
821
|
+
allowUnrecognizedUnionMembers: true,
|
|
822
|
+
allowUnrecognizedEnumValues: true,
|
|
823
|
+
skipValidation: true,
|
|
824
|
+
breadcrumbsPrefix: ["response"],
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
if (_response.error.reason === "status-code") {
|
|
828
|
+
switch (_response.error.statusCode) {
|
|
829
|
+
case 422:
|
|
830
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
831
|
+
unrecognizedObjectKeys: "passthrough",
|
|
832
|
+
allowUnrecognizedUnionMembers: true,
|
|
833
|
+
allowUnrecognizedEnumValues: true,
|
|
834
|
+
skipValidation: true,
|
|
835
|
+
breadcrumbsPrefix: ["response"],
|
|
836
|
+
}));
|
|
837
|
+
default:
|
|
838
|
+
throw new errors.LettaError({
|
|
839
|
+
statusCode: _response.error.statusCode,
|
|
840
|
+
body: _response.error.body,
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
switch (_response.error.reason) {
|
|
845
|
+
case "non-json":
|
|
846
|
+
throw new errors.LettaError({
|
|
847
|
+
statusCode: _response.error.statusCode,
|
|
848
|
+
body: _response.error.rawBody,
|
|
849
|
+
});
|
|
850
|
+
case "timeout":
|
|
851
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/mcp/servers.");
|
|
852
|
+
case "unknown":
|
|
853
|
+
throw new errors.LettaError({
|
|
854
|
+
message: _response.error.errorMessage,
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Get a list of all tools for a specific MCP server
|
|
861
|
+
*
|
|
862
|
+
* @param {string} mcpServerName
|
|
863
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
864
|
+
*
|
|
865
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
866
|
+
*
|
|
867
|
+
* @example
|
|
868
|
+
* await client.tools.listMcpToolsByServer("mcp_server_name")
|
|
869
|
+
*/
|
|
870
|
+
listMcpToolsByServer(mcpServerName, requestOptions) {
|
|
871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
+
var _a, _b, _c;
|
|
873
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
874
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
875
|
+
method: "GET",
|
|
876
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
877
|
+
contentType: "application/json",
|
|
878
|
+
requestType: "json",
|
|
879
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
880
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
881
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
882
|
+
});
|
|
883
|
+
if (_response.ok) {
|
|
884
|
+
return serializers.tools.listMcpToolsByServer.Response.parseOrThrow(_response.body, {
|
|
885
|
+
unrecognizedObjectKeys: "passthrough",
|
|
886
|
+
allowUnrecognizedUnionMembers: true,
|
|
887
|
+
allowUnrecognizedEnumValues: true,
|
|
888
|
+
skipValidation: true,
|
|
889
|
+
breadcrumbsPrefix: ["response"],
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
if (_response.error.reason === "status-code") {
|
|
893
|
+
switch (_response.error.statusCode) {
|
|
894
|
+
case 422:
|
|
895
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
896
|
+
unrecognizedObjectKeys: "passthrough",
|
|
897
|
+
allowUnrecognizedUnionMembers: true,
|
|
898
|
+
allowUnrecognizedEnumValues: true,
|
|
899
|
+
skipValidation: true,
|
|
900
|
+
breadcrumbsPrefix: ["response"],
|
|
901
|
+
}));
|
|
902
|
+
default:
|
|
903
|
+
throw new errors.LettaError({
|
|
904
|
+
statusCode: _response.error.statusCode,
|
|
905
|
+
body: _response.error.body,
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
switch (_response.error.reason) {
|
|
910
|
+
case "non-json":
|
|
911
|
+
throw new errors.LettaError({
|
|
912
|
+
statusCode: _response.error.statusCode,
|
|
913
|
+
body: _response.error.rawBody,
|
|
914
|
+
});
|
|
915
|
+
case "timeout":
|
|
916
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/mcp/servers/{mcp_server_name}/tools.");
|
|
917
|
+
case "unknown":
|
|
918
|
+
throw new errors.LettaError({
|
|
919
|
+
message: _response.error.errorMessage,
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Add a new MCP tool by server + tool name
|
|
926
|
+
*
|
|
927
|
+
* @param {string} mcpServerName
|
|
928
|
+
* @param {string} mcpToolName
|
|
929
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
930
|
+
*
|
|
931
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
932
|
+
*
|
|
933
|
+
* @example
|
|
934
|
+
* await client.tools.addMcpTool("mcp_server_name", "mcp_tool_name")
|
|
935
|
+
*/
|
|
936
|
+
addMcpTool(mcpServerName, mcpToolName, requestOptions) {
|
|
937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
938
|
+
var _a, _b, _c;
|
|
939
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
940
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
941
|
+
method: "POST",
|
|
942
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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),
|
|
943
|
+
contentType: "application/json",
|
|
944
|
+
requestType: "json",
|
|
945
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
946
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
947
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
948
|
+
});
|
|
949
|
+
if (_response.ok) {
|
|
950
|
+
return serializers.Tool.parseOrThrow(_response.body, {
|
|
951
|
+
unrecognizedObjectKeys: "passthrough",
|
|
952
|
+
allowUnrecognizedUnionMembers: true,
|
|
953
|
+
allowUnrecognizedEnumValues: true,
|
|
954
|
+
skipValidation: true,
|
|
955
|
+
breadcrumbsPrefix: ["response"],
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
if (_response.error.reason === "status-code") {
|
|
959
|
+
switch (_response.error.statusCode) {
|
|
960
|
+
case 422:
|
|
961
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
962
|
+
unrecognizedObjectKeys: "passthrough",
|
|
963
|
+
allowUnrecognizedUnionMembers: true,
|
|
964
|
+
allowUnrecognizedEnumValues: true,
|
|
965
|
+
skipValidation: true,
|
|
966
|
+
breadcrumbsPrefix: ["response"],
|
|
967
|
+
}));
|
|
968
|
+
default:
|
|
969
|
+
throw new errors.LettaError({
|
|
970
|
+
statusCode: _response.error.statusCode,
|
|
971
|
+
body: _response.error.body,
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
switch (_response.error.reason) {
|
|
976
|
+
case "non-json":
|
|
977
|
+
throw new errors.LettaError({
|
|
978
|
+
statusCode: _response.error.statusCode,
|
|
979
|
+
body: _response.error.rawBody,
|
|
980
|
+
});
|
|
981
|
+
case "timeout":
|
|
982
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/tools/mcp/servers/{mcp_server_name}/{mcp_tool_name}.");
|
|
983
|
+
case "unknown":
|
|
984
|
+
throw new errors.LettaError({
|
|
985
|
+
message: _response.error.errorMessage,
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
});
|
|
989
|
+
}
|
|
795
990
|
_getCustomAuthorizationHeaders() {
|
|
796
991
|
return __awaiter(this, void 0, void 0, function* () {
|
|
797
992
|
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListMcpServersResponseValue";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ListMcpServersResponseValue"), exports);
|
|
@@ -81,7 +81,7 @@ class Voice {
|
|
|
81
81
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
82
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice/${encodeURIComponent(agentId)}/chat/completions`),
|
|
83
83
|
method: "POST",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.59", "User-Agent": "@letta-ai/letta-client/0.1.59", "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
|
body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
|
|
@@ -15,6 +15,8 @@ export interface Identity {
|
|
|
15
15
|
projectId?: string;
|
|
16
16
|
/** The IDs of the agents associated with the identity. */
|
|
17
17
|
agentIds: string[];
|
|
18
|
+
/** The IDs of the blocks associated with the identity. */
|
|
19
|
+
blockIds: string[];
|
|
18
20
|
/** List of properties associated with the identity */
|
|
19
21
|
properties?: Letta.IdentityProperty[];
|
|
20
22
|
}
|
|
@@ -13,6 +13,8 @@ export interface IdentityCreate {
|
|
|
13
13
|
projectId?: string;
|
|
14
14
|
/** The agent ids that are associated with the identity. */
|
|
15
15
|
agentIds?: string[];
|
|
16
|
+
/** The IDs of the blocks associated with the identity. */
|
|
17
|
+
blockIds?: string[];
|
|
16
18
|
/** List of properties associated with the identity. */
|
|
17
19
|
properties?: Letta.IdentityProperty[];
|
|
18
20
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface LocalServerConfig {
|
|
6
|
+
/** The name of the server */
|
|
7
|
+
serverName: string;
|
|
8
|
+
type?: Letta.McpServerType;
|
|
9
|
+
/** The command to run (MCP 'local' client will run this command) */
|
|
10
|
+
command: string;
|
|
11
|
+
/** The arguments to pass to the command */
|
|
12
|
+
args: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A simple wrapper around MCP's tool definition (to avoid conflict with our own)
|
|
6
|
+
*/
|
|
7
|
+
export interface McpTool {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
inputSchema: Record<string, unknown>;
|
|
11
|
+
/** Accepts any additional properties */
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface SseServerConfig {
|
|
6
|
+
/** The name of the server */
|
|
7
|
+
serverName: string;
|
|
8
|
+
type?: Letta.McpServerType;
|
|
9
|
+
/** The URL of the server (MCP SSE client will connect to this URL) */
|
|
10
|
+
serverUrl: string;
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
|
|
4
|
+
export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
5
5
|
export declare const ToolType: {
|
|
6
6
|
readonly Custom: "custom";
|
|
7
7
|
readonly LettaCore: "letta_core";
|
|
@@ -9,4 +9,5 @@ export declare const ToolType: {
|
|
|
9
9
|
readonly LettaMultiAgentCore: "letta_multi_agent_core";
|
|
10
10
|
readonly ExternalComposio: "external_composio";
|
|
11
11
|
readonly ExternalLangchain: "external_langchain";
|
|
12
|
+
readonly ExternalMcp: "external_mcp";
|
|
12
13
|
};
|
|
@@ -108,6 +108,9 @@ export * from "./LettaRequestConfig";
|
|
|
108
108
|
export * from "./LettaResponse";
|
|
109
109
|
export * from "./LettaUsageStatistics";
|
|
110
110
|
export * from "./LocalSandboxConfig";
|
|
111
|
+
export * from "./LocalServerConfig";
|
|
112
|
+
export * from "./McpServerType";
|
|
113
|
+
export * from "./McpTool";
|
|
111
114
|
export * from "./Memory";
|
|
112
115
|
export * from "./Message";
|
|
113
116
|
export * from "./MessageCreateRole";
|
|
@@ -124,6 +127,7 @@ export * from "./ResponseFormatJsonObject";
|
|
|
124
127
|
export * from "./ResponseFormatJsonSchema";
|
|
125
128
|
export * from "./ResponseFormatText";
|
|
126
129
|
export * from "./Run";
|
|
130
|
+
export * from "./SseServerConfig";
|
|
127
131
|
export * from "./SandboxConfig";
|
|
128
132
|
export * from "./SandboxConfigCreateConfig";
|
|
129
133
|
export * from "./SandboxConfigCreate";
|
package/dist/api/types/index.js
CHANGED
|
@@ -124,6 +124,9 @@ __exportStar(require("./LettaRequestConfig"), exports);
|
|
|
124
124
|
__exportStar(require("./LettaResponse"), exports);
|
|
125
125
|
__exportStar(require("./LettaUsageStatistics"), exports);
|
|
126
126
|
__exportStar(require("./LocalSandboxConfig"), exports);
|
|
127
|
+
__exportStar(require("./LocalServerConfig"), exports);
|
|
128
|
+
__exportStar(require("./McpServerType"), exports);
|
|
129
|
+
__exportStar(require("./McpTool"), exports);
|
|
127
130
|
__exportStar(require("./Memory"), exports);
|
|
128
131
|
__exportStar(require("./Message"), exports);
|
|
129
132
|
__exportStar(require("./MessageCreateRole"), exports);
|
|
@@ -140,6 +143,7 @@ __exportStar(require("./ResponseFormatJsonObject"), exports);
|
|
|
140
143
|
__exportStar(require("./ResponseFormatJsonSchema"), exports);
|
|
141
144
|
__exportStar(require("./ResponseFormatText"), exports);
|
|
142
145
|
__exportStar(require("./Run"), exports);
|
|
146
|
+
__exportStar(require("./SseServerConfig"), exports);
|
|
143
147
|
__exportStar(require("./SandboxConfig"), exports);
|
|
144
148
|
__exportStar(require("./SandboxConfigCreateConfig"), exports);
|
|
145
149
|
__exportStar(require("./SandboxConfigCreate"), exports);
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const AgentsSearchResponseAgentsItemToolsItemToolType: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemToolsItemToolType.Raw, Letta.AgentsSearchResponseAgentsItemToolsItemToolType>;
|
|
8
8
|
export declare namespace AgentsSearchResponseAgentsItemToolsItemToolType {
|
|
9
|
-
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
|
|
9
|
+
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
10
10
|
}
|
|
@@ -45,5 +45,6 @@ exports.IdentityUpdate = core.serialization.object({
|
|
|
45
45
|
name: core.serialization.string().optional(),
|
|
46
46
|
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType.optional()),
|
|
47
47
|
agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
48
|
+
blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
48
49
|
properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
|
|
49
50
|
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export * as tools from "./tools";
|
|
2
|
+
export * from "./tools/types";
|
|
1
3
|
export * as agents from "./agents";
|
|
2
4
|
export * from "./agents/types";
|
|
3
5
|
export * as voice from "./voice";
|
|
4
6
|
export * from "./voice/types";
|
|
5
7
|
export * as templates from "./templates";
|
|
6
8
|
export * from "./templates/types";
|
|
7
|
-
export * as tools from "./tools";
|
|
8
9
|
export * as sources from "./sources";
|
|
9
10
|
export * as identities from "./identities";
|
|
10
11
|
export * as models from "./models";
|
|
@@ -36,14 +36,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.
|
|
39
|
+
exports.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.templates = exports.voice = exports.agents = exports.tools = void 0;
|
|
40
|
+
exports.tools = __importStar(require("./tools"));
|
|
41
|
+
__exportStar(require("./tools/types"), exports);
|
|
40
42
|
exports.agents = __importStar(require("./agents"));
|
|
41
43
|
__exportStar(require("./agents/types"), exports);
|
|
42
44
|
exports.voice = __importStar(require("./voice"));
|
|
43
45
|
__exportStar(require("./voice/types"), exports);
|
|
44
46
|
exports.templates = __importStar(require("./templates"));
|
|
45
47
|
__exportStar(require("./templates/types"), exports);
|
|
46
|
-
exports.tools = __importStar(require("./tools"));
|
|
47
48
|
exports.sources = __importStar(require("./sources"));
|
|
48
49
|
exports.identities = __importStar(require("./identities"));
|
|
49
50
|
exports.models = __importStar(require("./models"));
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TemplatesCreateAgentsResponseAgentsItemToolsItemToolType: core.serialization.Schema<serializers.TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.Raw, Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemToolType>;
|
|
8
8
|
export declare namespace TemplatesCreateAgentsResponseAgentsItemToolsItemToolType {
|
|
9
|
-
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
|
|
9
|
+
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
10
10
|
}
|