@letta-ai/letta-client 0.1.58 → 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.
Files changed (166) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  7. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
  12. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  13. package/api/resources/blocks/client/Client.js +6 -6
  14. package/api/resources/health/client/Client.js +1 -1
  15. package/api/resources/identities/client/Client.js +6 -6
  16. package/api/resources/index.d.ts +2 -1
  17. package/api/resources/index.js +3 -2
  18. package/api/resources/jobs/client/Client.js +4 -4
  19. package/api/resources/models/client/Client.js +2 -2
  20. package/api/resources/providers/client/Client.js +4 -4
  21. package/api/resources/runs/client/Client.js +7 -7
  22. package/api/resources/sources/client/Client.js +6 -6
  23. package/api/resources/sources/resources/files/client/Client.js +3 -3
  24. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  25. package/api/resources/steps/client/Client.js +2 -2
  26. package/api/resources/tag/client/Client.js +1 -1
  27. package/api/resources/templates/client/Client.js +1 -1
  28. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
  29. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  30. package/api/resources/tools/client/Client.d.ts +36 -0
  31. package/api/resources/tools/client/Client.js +206 -11
  32. package/api/resources/tools/index.d.ts +1 -0
  33. package/api/resources/tools/index.js +1 -0
  34. package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
  35. package/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
  36. package/api/resources/tools/types/index.d.ts +1 -0
  37. package/api/resources/tools/types/index.js +17 -0
  38. package/api/resources/voice/client/Client.js +1 -1
  39. package/api/types/LocalServerConfig.d.ts +13 -0
  40. package/api/types/LocalServerConfig.js +5 -0
  41. package/api/types/McpServerType.d.ts +8 -0
  42. package/api/types/McpServerType.js +10 -0
  43. package/api/types/McpTool.d.ts +13 -0
  44. package/api/types/McpTool.js +5 -0
  45. package/api/types/SseServerConfig.d.ts +11 -0
  46. package/api/types/SseServerConfig.js +5 -0
  47. package/api/types/ToolType.d.ts +2 -1
  48. package/api/types/ToolType.js +1 -0
  49. package/api/types/index.d.ts +4 -0
  50. package/api/types/index.js +4 -0
  51. package/dist/api/resources/agents/client/Client.js +10 -10
  52. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  53. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  54. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  55. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  56. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  57. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  58. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  59. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  60. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  61. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
  62. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  63. package/dist/api/resources/blocks/client/Client.js +6 -6
  64. package/dist/api/resources/health/client/Client.js +1 -1
  65. package/dist/api/resources/identities/client/Client.js +6 -6
  66. package/dist/api/resources/index.d.ts +2 -1
  67. package/dist/api/resources/index.js +3 -2
  68. package/dist/api/resources/jobs/client/Client.js +4 -4
  69. package/dist/api/resources/models/client/Client.js +2 -2
  70. package/dist/api/resources/providers/client/Client.js +4 -4
  71. package/dist/api/resources/runs/client/Client.js +7 -7
  72. package/dist/api/resources/sources/client/Client.js +6 -6
  73. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  74. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  75. package/dist/api/resources/steps/client/Client.js +2 -2
  76. package/dist/api/resources/tag/client/Client.js +1 -1
  77. package/dist/api/resources/templates/client/Client.js +1 -1
  78. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
  79. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  80. package/dist/api/resources/tools/client/Client.d.ts +36 -0
  81. package/dist/api/resources/tools/client/Client.js +206 -11
  82. package/dist/api/resources/tools/index.d.ts +1 -0
  83. package/dist/api/resources/tools/index.js +1 -0
  84. package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
  85. package/dist/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
  86. package/dist/api/resources/tools/types/index.d.ts +1 -0
  87. package/dist/api/resources/tools/types/index.js +17 -0
  88. package/dist/api/resources/voice/client/Client.js +1 -1
  89. package/dist/api/types/LocalServerConfig.d.ts +13 -0
  90. package/dist/api/types/LocalServerConfig.js +5 -0
  91. package/dist/api/types/McpServerType.d.ts +8 -0
  92. package/dist/api/types/McpServerType.js +10 -0
  93. package/dist/api/types/McpTool.d.ts +13 -0
  94. package/dist/api/types/McpTool.js +5 -0
  95. package/dist/api/types/SseServerConfig.d.ts +11 -0
  96. package/dist/api/types/SseServerConfig.js +5 -0
  97. package/dist/api/types/ToolType.d.ts +2 -1
  98. package/dist/api/types/ToolType.js +1 -0
  99. package/dist/api/types/index.d.ts +4 -0
  100. package/dist/api/types/index.js +4 -0
  101. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
  102. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  103. package/dist/serialization/resources/index.d.ts +2 -1
  104. package/dist/serialization/resources/index.js +3 -2
  105. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
  106. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  107. package/dist/serialization/resources/tools/client/index.d.ts +2 -0
  108. package/dist/serialization/resources/tools/client/index.js +3 -1
  109. package/dist/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
  110. package/dist/serialization/resources/tools/client/listMcpServers.js +42 -0
  111. package/dist/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
  112. package/dist/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
  113. package/dist/serialization/resources/tools/index.d.ts +1 -0
  114. package/dist/serialization/resources/tools/index.js +1 -0
  115. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
  116. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
  117. package/dist/serialization/resources/tools/types/index.d.ts +1 -0
  118. package/dist/serialization/resources/tools/types/index.js +17 -0
  119. package/dist/serialization/types/LocalServerConfig.d.ts +16 -0
  120. package/dist/serialization/types/LocalServerConfig.js +47 -0
  121. package/dist/serialization/types/McpServerType.d.ts +10 -0
  122. package/dist/serialization/types/McpServerType.js +41 -0
  123. package/dist/serialization/types/McpTool.d.ts +15 -0
  124. package/dist/serialization/types/McpTool.js +47 -0
  125. package/dist/serialization/types/SseServerConfig.d.ts +15 -0
  126. package/dist/serialization/types/SseServerConfig.js +46 -0
  127. package/dist/serialization/types/ToolType.d.ts +1 -1
  128. package/dist/serialization/types/ToolType.js +1 -0
  129. package/dist/serialization/types/index.d.ts +4 -0
  130. package/dist/serialization/types/index.js +4 -0
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +1 -1
  134. package/reference.md +189 -0
  135. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
  136. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
  137. package/serialization/resources/index.d.ts +2 -1
  138. package/serialization/resources/index.js +3 -2
  139. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
  140. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
  141. package/serialization/resources/tools/client/index.d.ts +2 -0
  142. package/serialization/resources/tools/client/index.js +3 -1
  143. package/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
  144. package/serialization/resources/tools/client/listMcpServers.js +42 -0
  145. package/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
  146. package/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
  147. package/serialization/resources/tools/index.d.ts +1 -0
  148. package/serialization/resources/tools/index.js +1 -0
  149. package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
  150. package/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
  151. package/serialization/resources/tools/types/index.d.ts +1 -0
  152. package/serialization/resources/tools/types/index.js +17 -0
  153. package/serialization/types/LocalServerConfig.d.ts +16 -0
  154. package/serialization/types/LocalServerConfig.js +47 -0
  155. package/serialization/types/McpServerType.d.ts +10 -0
  156. package/serialization/types/McpServerType.js +41 -0
  157. package/serialization/types/McpTool.d.ts +15 -0
  158. package/serialization/types/McpTool.js +47 -0
  159. package/serialization/types/SseServerConfig.d.ts +15 -0
  160. package/serialization/types/SseServerConfig.js +46 -0
  161. package/serialization/types/ToolType.d.ts +1 -1
  162. package/serialization/types/ToolType.js +1 -0
  163. package/serialization/types/index.d.ts +4 -0
  164. package/serialization/types/index.js +4 -0
  165. package/version.d.ts +1 -1
  166. 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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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),
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);
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -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,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type ListMcpServersResponseValue = Letta.SseServerConfig | Letta.LocalServerConfig;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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
+ 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, {
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type McpServerType = "sse" | "local";
5
+ export declare const McpServerType: {
6
+ readonly Sse: "sse";
7
+ readonly Local: "local";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.McpServerType = void 0;
7
+ exports.McpServerType = {
8
+ Sse: "sse",
9
+ Local: "local",
10
+ };
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  };
@@ -11,4 +11,5 @@ exports.ToolType = {
11
11
  LettaMultiAgentCore: "letta_multi_agent_core",
12
12
  ExternalComposio: "external_composio",
13
13
  ExternalLangchain: "external_langchain",
14
+ ExternalMcp: "external_mcp",
14
15
  };
@@ -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";
@@ -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,4 +45,5 @@ exports.AgentsSearchResponseAgentsItemToolsItemToolType = core.serialization.enu
45
45
  "letta_multi_agent_core",
46
46
  "external_composio",
47
47
  "external_langchain",
48
+ "external_mcp",
48
49
  ]);
@@ -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.tools = exports.templates = exports.voice = exports.agents = void 0;
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
  }
@@ -45,4 +45,5 @@ exports.TemplatesCreateAgentsResponseAgentsItemToolsItemToolType = core.serializ
45
45
  "letta_multi_agent_core",
46
46
  "external_composio",
47
47
  "external_langchain",
48
+ "external_mcp",
48
49
  ]);
@@ -2,4 +2,6 @@ export * as list from "./list";
2
2
  export * as addBaseTool from "./addBaseTool";
3
3
  export * as listComposioApps from "./listComposioApps";
4
4
  export * as listComposioActionsByApp from "./listComposioActionsByApp";
5
+ export * as listMcpServers from "./listMcpServers";
6
+ export * as listMcpToolsByServer from "./listMcpToolsByServer";
5
7
  export * from "./requests";
@@ -36,9 +36,11 @@ 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.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
39
+ exports.listMcpToolsByServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.addBaseTool = __importStar(require("./addBaseTool"));
42
42
  exports.listComposioApps = __importStar(require("./listComposioApps"));
43
43
  exports.listComposioActionsByApp = __importStar(require("./listComposioActionsByApp"));
44
+ exports.listMcpServers = __importStar(require("./listMcpServers"));
45
+ exports.listMcpToolsByServer = __importStar(require("./listMcpToolsByServer"));
44
46
  __exportStar(require("./requests"), exports);