@letta-ai/letta-client 0.1.129 → 0.1.131

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 (240) 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/groups/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.d.ts +11 -9
  8. package/api/resources/agents/resources/messages/client/Client.js +23 -15
  9. package/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +25 -0
  10. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  11. package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
  12. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  13. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  14. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  15. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  16. package/api/resources/batches/client/Client.js +4 -4
  17. package/api/resources/blocks/client/Client.js +6 -6
  18. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  19. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  20. package/api/resources/embeddingModels/client/Client.js +1 -1
  21. package/api/resources/groups/client/Client.js +6 -6
  22. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  23. package/api/resources/health/client/Client.js +1 -1
  24. package/api/resources/identities/client/Client.js +7 -7
  25. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  26. package/api/resources/index.d.ts +1 -2
  27. package/api/resources/index.js +2 -3
  28. package/api/resources/jobs/client/Client.js +4 -4
  29. package/api/resources/messages/client/Client.js +1 -1
  30. package/api/resources/models/client/Client.js +1 -1
  31. package/api/resources/projects/client/Client.js +1 -1
  32. package/api/resources/providers/client/Client.js +5 -5
  33. package/api/resources/runs/client/Client.js +4 -4
  34. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  35. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  36. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  37. package/api/resources/sources/client/Client.js +7 -7
  38. package/api/resources/sources/resources/files/client/Client.js +3 -3
  39. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  40. package/api/resources/steps/client/Client.js +2 -2
  41. package/api/resources/tags/client/Client.js +1 -1
  42. package/api/resources/telemetry/client/Client.js +1 -1
  43. package/api/resources/templates/client/Client.js +1 -1
  44. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  45. package/api/resources/tools/client/Client.js +17 -17
  46. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
  47. package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
  48. package/api/resources/voice/client/Client.d.ts +1 -5
  49. package/api/resources/voice/client/Client.js +3 -7
  50. package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
  51. package/api/resources/voice/index.d.ts +0 -1
  52. package/api/resources/voice/index.js +0 -1
  53. package/api/types/BatchJob.d.ts +2 -0
  54. package/api/types/Job.d.ts +2 -0
  55. package/api/types/LettaResponse.d.ts +1 -0
  56. package/api/types/LettaStopReason.d.ts +13 -0
  57. package/api/types/McpServerType.d.ts +2 -1
  58. package/api/types/McpServerType.js +1 -0
  59. package/api/types/McpTool.d.ts +2 -0
  60. package/api/types/Run.d.ts +2 -0
  61. package/api/types/SseServerConfig.d.ts +16 -0
  62. package/api/types/StopReasonType.d.ts +12 -0
  63. package/api/types/StopReasonType.js +14 -0
  64. package/api/types/Tool.d.ts +2 -0
  65. package/api/types/ToolAnnotations.d.ts +22 -0
  66. package/api/types/ToolAnnotations.js +5 -0
  67. package/api/types/ToolCreate.d.ts +3 -0
  68. package/api/types/index.d.ts +3 -0
  69. package/api/types/index.js +3 -0
  70. package/dist/api/resources/agents/client/Client.js +10 -10
  71. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  72. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +11 -9
  77. package/dist/api/resources/agents/resources/messages/client/Client.js +23 -15
  78. package/dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +25 -0
  79. package/dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.js +5 -0
  80. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  81. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
  82. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  83. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  84. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  85. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  86. package/dist/api/resources/batches/client/Client.js +4 -4
  87. package/dist/api/resources/blocks/client/Client.js +6 -6
  88. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  89. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  90. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  91. package/dist/api/resources/groups/client/Client.js +6 -6
  92. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  93. package/dist/api/resources/health/client/Client.js +1 -1
  94. package/dist/api/resources/identities/client/Client.js +7 -7
  95. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  96. package/dist/api/resources/index.d.ts +1 -2
  97. package/dist/api/resources/index.js +2 -3
  98. package/dist/api/resources/jobs/client/Client.js +4 -4
  99. package/dist/api/resources/messages/client/Client.js +1 -1
  100. package/dist/api/resources/models/client/Client.js +1 -1
  101. package/dist/api/resources/projects/client/Client.js +1 -1
  102. package/dist/api/resources/providers/client/Client.js +5 -5
  103. package/dist/api/resources/runs/client/Client.js +4 -4
  104. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  105. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  106. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  107. package/dist/api/resources/sources/client/Client.js +7 -7
  108. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  109. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  110. package/dist/api/resources/steps/client/Client.js +2 -2
  111. package/dist/api/resources/tags/client/Client.js +1 -1
  112. package/dist/api/resources/telemetry/client/Client.js +1 -1
  113. package/dist/api/resources/templates/client/Client.js +1 -1
  114. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  115. package/dist/api/resources/tools/client/Client.js +17 -17
  116. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
  117. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
  118. package/dist/api/resources/voice/client/Client.d.ts +1 -5
  119. package/dist/api/resources/voice/client/Client.js +3 -7
  120. package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
  121. package/dist/api/resources/voice/index.d.ts +0 -1
  122. package/dist/api/resources/voice/index.js +0 -1
  123. package/dist/api/types/BatchJob.d.ts +2 -0
  124. package/dist/api/types/Job.d.ts +2 -0
  125. package/dist/api/types/LettaResponse.d.ts +1 -0
  126. package/dist/api/types/LettaStopReason.d.ts +13 -0
  127. package/dist/api/types/LettaStopReason.js +5 -0
  128. package/dist/api/types/McpServerType.d.ts +2 -1
  129. package/dist/api/types/McpServerType.js +1 -0
  130. package/dist/api/types/McpTool.d.ts +2 -0
  131. package/dist/api/types/Run.d.ts +2 -0
  132. package/dist/api/types/SseServerConfig.d.ts +16 -0
  133. package/dist/api/types/StopReasonType.d.ts +12 -0
  134. package/dist/api/types/StopReasonType.js +14 -0
  135. package/dist/api/types/Tool.d.ts +2 -0
  136. package/dist/api/types/ToolAnnotations.d.ts +22 -0
  137. package/dist/api/types/ToolAnnotations.js +5 -0
  138. package/dist/api/types/ToolCreate.d.ts +3 -0
  139. package/dist/api/types/index.d.ts +3 -0
  140. package/dist/api/types/index.js +3 -0
  141. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
  142. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
  143. package/dist/serialization/resources/index.d.ts +1 -2
  144. package/dist/serialization/resources/index.js +2 -3
  145. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  146. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  147. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  148. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  149. package/dist/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
  150. package/dist/serialization/resources/voice/{types/CreateVoiceChatCompletionsRequestBody.js → client/createVoiceChatCompletions.js} +2 -4
  151. package/dist/serialization/resources/voice/client/index.d.ts +1 -0
  152. package/dist/serialization/resources/voice/client/index.js +37 -0
  153. package/dist/serialization/resources/voice/index.d.ts +1 -1
  154. package/dist/serialization/resources/voice/index.js +1 -1
  155. package/dist/serialization/types/BatchJob.d.ts +1 -0
  156. package/dist/serialization/types/BatchJob.js +1 -0
  157. package/dist/serialization/types/Job.d.ts +1 -0
  158. package/dist/serialization/types/Job.js +1 -0
  159. package/dist/serialization/types/LettaResponse.d.ts +2 -0
  160. package/dist/serialization/types/LettaResponse.js +2 -0
  161. package/dist/serialization/types/LettaStopReason.d.ts +14 -0
  162. package/dist/serialization/types/LettaStopReason.js +45 -0
  163. package/dist/serialization/types/McpServerType.d.ts +1 -1
  164. package/dist/serialization/types/McpServerType.js +1 -1
  165. package/dist/serialization/types/McpTool.d.ts +2 -0
  166. package/dist/serialization/types/McpTool.js +2 -0
  167. package/dist/serialization/types/Run.d.ts +1 -0
  168. package/dist/serialization/types/Run.js +1 -0
  169. package/dist/serialization/types/SseServerConfig.d.ts +3 -0
  170. package/dist/serialization/types/SseServerConfig.js +3 -0
  171. package/dist/serialization/types/StopReasonType.d.ts +10 -0
  172. package/dist/serialization/types/StopReasonType.js +41 -0
  173. package/dist/serialization/types/Tool.d.ts +2 -0
  174. package/dist/serialization/types/Tool.js +2 -0
  175. package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
  176. package/dist/serialization/types/ToolAnnotations.js +49 -0
  177. package/dist/serialization/types/ToolCreate.d.ts +2 -0
  178. package/dist/serialization/types/ToolCreate.js +2 -0
  179. package/dist/serialization/types/index.d.ts +3 -0
  180. package/dist/serialization/types/index.js +3 -0
  181. package/dist/version.d.ts +1 -1
  182. package/dist/version.js +1 -1
  183. package/package.json +1 -1
  184. package/reference.md +15 -19
  185. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
  186. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
  187. package/serialization/resources/index.d.ts +1 -2
  188. package/serialization/resources/index.js +2 -3
  189. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  190. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  191. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  192. package/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  193. package/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
  194. package/serialization/resources/voice/{types/CreateVoiceChatCompletionsRequestBody.js → client/createVoiceChatCompletions.js} +2 -4
  195. package/serialization/resources/voice/client/index.d.ts +1 -0
  196. package/serialization/resources/voice/client/index.js +37 -0
  197. package/serialization/resources/voice/index.d.ts +1 -1
  198. package/serialization/resources/voice/index.js +1 -1
  199. package/serialization/types/BatchJob.d.ts +1 -0
  200. package/serialization/types/BatchJob.js +1 -0
  201. package/serialization/types/Job.d.ts +1 -0
  202. package/serialization/types/Job.js +1 -0
  203. package/serialization/types/LettaResponse.d.ts +2 -0
  204. package/serialization/types/LettaResponse.js +2 -0
  205. package/serialization/types/LettaStopReason.d.ts +14 -0
  206. package/serialization/types/LettaStopReason.js +45 -0
  207. package/serialization/types/McpServerType.d.ts +1 -1
  208. package/serialization/types/McpServerType.js +1 -1
  209. package/serialization/types/McpTool.d.ts +2 -0
  210. package/serialization/types/McpTool.js +2 -0
  211. package/serialization/types/Run.d.ts +1 -0
  212. package/serialization/types/Run.js +1 -0
  213. package/serialization/types/SseServerConfig.d.ts +3 -0
  214. package/serialization/types/SseServerConfig.js +3 -0
  215. package/serialization/types/StopReasonType.d.ts +10 -0
  216. package/serialization/types/StopReasonType.js +41 -0
  217. package/serialization/types/Tool.d.ts +2 -0
  218. package/serialization/types/Tool.js +2 -0
  219. package/serialization/types/ToolAnnotations.d.ts +17 -0
  220. package/serialization/types/ToolAnnotations.js +49 -0
  221. package/serialization/types/ToolCreate.d.ts +2 -0
  222. package/serialization/types/ToolCreate.js +2 -0
  223. package/serialization/types/index.d.ts +3 -0
  224. package/serialization/types/index.js +3 -0
  225. package/version.d.ts +1 -1
  226. package/version.js +1 -1
  227. package/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
  228. package/api/resources/voice/types/index.d.ts +0 -1
  229. package/api/resources/voice/types/index.js +0 -17
  230. package/dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
  231. package/dist/api/resources/voice/types/index.d.ts +0 -1
  232. package/dist/api/resources/voice/types/index.js +0 -17
  233. package/dist/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
  234. package/dist/serialization/resources/voice/types/index.d.ts +0 -1
  235. package/dist/serialization/resources/voice/types/index.js +0 -17
  236. package/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
  237. package/serialization/resources/voice/types/index.d.ts +0 -1
  238. package/serialization/resources/voice/types/index.js +0 -17
  239. /package/api/resources/{voice/types/CreateVoiceChatCompletionsRequestBody.js → agents/resources/messages/client/requests/MessagesCreateAsyncRequest.js} +0 -0
  240. /package/{dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.js → api/types/LettaStopReason.js} +0 -0
@@ -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.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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" }),
@@ -272,7 +272,7 @@ class Tools {
272
272
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
273
  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/count"),
274
274
  method: "GET",
275
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
275
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  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/"),
351
351
  method: "GET",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
352
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
353
353
  contentType: "application/json",
354
354
  queryParameters: _queryParams,
355
355
  requestType: "json",
@@ -417,7 +417,7 @@ class Tools {
417
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
418
  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/"),
419
419
  method: "POST",
420
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
420
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
421
421
  contentType: "application/json",
422
422
  requestType: "json",
423
423
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -485,7 +485,7 @@ class Tools {
485
485
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
486
486
  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/"),
487
487
  method: "PUT",
488
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
488
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
489
489
  contentType: "application/json",
490
490
  requestType: "json",
491
491
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Tools {
550
550
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
551
551
  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"),
552
552
  method: "POST",
553
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -620,7 +620,7 @@ class Tools {
620
620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
621
621
  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"),
622
622
  method: "POST",
623
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
623
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
624
624
  contentType: "application/json",
625
625
  requestType: "json",
626
626
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -687,7 +687,7 @@ class Tools {
687
687
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
688
688
  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"),
689
689
  method: "GET",
690
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
690
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
691
691
  contentType: "application/json",
692
692
  requestType: "json",
693
693
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -752,7 +752,7 @@ class Tools {
752
752
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
753
753
  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`),
754
754
  method: "GET",
755
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
755
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
756
756
  contentType: "application/json",
757
757
  requestType: "json",
758
758
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -817,7 +817,7 @@ class Tools {
817
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
818
818
  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)}`),
819
819
  method: "POST",
820
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
820
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
821
821
  contentType: "application/json",
822
822
  requestType: "json",
823
823
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -883,7 +883,7 @@ class Tools {
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  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"),
885
885
  method: "GET",
886
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
886
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
887
887
  contentType: "application/json",
888
888
  requestType: "json",
889
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
953
953
  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"),
954
954
  method: "PUT",
955
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
955
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
956
956
  contentType: "application/json",
957
957
  requestType: "json",
958
958
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1018,7 @@ class Tools {
1018
1018
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1019
  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`),
1020
1020
  method: "GET",
1021
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
1021
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
1022
1022
  contentType: "application/json",
1023
1023
  requestType: "json",
1024
1024
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1084,7 +1084,7 @@ class Tools {
1084
1084
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1085
1085
  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)}`),
1086
1086
  method: "POST",
1087
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
1087
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
1088
1088
  contentType: "application/json",
1089
1089
  requestType: "json",
1090
1090
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1149,7 +1149,7 @@ class Tools {
1149
1149
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1150
1150
  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)}`),
1151
1151
  method: "DELETE",
1152
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
1152
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
1153
1153
  contentType: "application/json",
1154
1154
  requestType: "json",
1155
1155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -25,4 +26,6 @@ export interface ToolRunFromSource {
25
26
  argsJsonSchema?: Record<string, unknown>;
26
27
  /** The JSON schema of the function (auto-generated from source_code if not provided) */
27
28
  jsonSchema?: Record<string, unknown>;
29
+ /** Optional list of pip packages required by this tool. */
30
+ pipRequirements?: Letta.PipRequirement[];
28
31
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -20,4 +21,6 @@ export interface ToolUpdate {
20
21
  argsJsonSchema?: Record<string, unknown>;
21
22
  /** The maximum number of characters in the response. */
22
23
  returnCharLimit?: number;
24
+ /** Optional list of pip packages required by this tool. */
25
+ pipRequirements?: Letta.PipRequirement[];
23
26
  }
@@ -36,11 +36,7 @@ export declare class Voice {
36
36
  * @example
37
37
  * await client.voice.createVoiceChatCompletions("agent_id", {
38
38
  * body: {
39
- * messages: [{
40
- * content: "content",
41
- * role: "developer"
42
- * }],
43
- * model: "model"
39
+ * "key": "value"
44
40
  * }
45
41
  * })
46
42
  */
@@ -69,11 +69,7 @@ class Voice {
69
69
  * @example
70
70
  * await client.voice.createVoiceChatCompletions("agent_id", {
71
71
  * body: {
72
- * messages: [{
73
- * content: "content",
74
- * role: "developer"
75
- * }],
76
- * model: "model"
72
+ * "key": "value"
77
73
  * }
78
74
  * })
79
75
  */
@@ -84,10 +80,10 @@ class Voice {
84
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
81
  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-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
82
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
84
  contentType: "application/json",
89
85
  requestType: "json",
90
- body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
86
+ body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
91
87
  unrecognizedObjectKeys: "strip",
92
88
  }),
93
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,20 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Letta from "../../../../index";
5
4
  /**
6
5
  * @example
7
6
  * {
8
7
  * body: {
9
- * messages: [{
10
- * content: "content",
11
- * role: "developer"
12
- * }],
13
- * model: "model"
8
+ * "key": "value"
14
9
  * }
15
10
  * }
16
11
  */
17
12
  export interface CreateVoiceChatCompletionsRequest {
18
13
  userId?: string;
19
- body: Letta.CreateVoiceChatCompletionsRequestBody;
14
+ body: Record<string, unknown>;
20
15
  }
@@ -1,2 +1 @@
1
- export * from "./types";
2
1
  export * from "./client";
@@ -14,5 +14,4 @@ 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);
18
17
  __exportStar(require("./client"), exports);
@@ -24,6 +24,8 @@ export interface BatchJob {
24
24
  callbackSentAt?: Date;
25
25
  /** HTTP status code returned by the callback endpoint. */
26
26
  callbackStatusCode?: number;
27
+ /** Optional error message from attempting to POST the callback endpoint. */
28
+ callbackError?: string;
27
29
  /** The human-friendly ID of the Job */
28
30
  id?: string;
29
31
  }
@@ -35,6 +35,8 @@ export interface Job {
35
35
  callbackSentAt?: Date;
36
36
  /** HTTP status code returned by the callback endpoint. */
37
37
  callbackStatusCode?: number;
38
+ /** Optional error message from attempting to POST the callback endpoint. */
39
+ callbackError?: string;
38
40
  /** The human-friendly ID of the Job */
39
41
  id?: string;
40
42
  }
@@ -13,6 +13,7 @@ import * as Letta from "../index";
13
13
  export interface LettaResponse {
14
14
  /** The messages returned by the agent. */
15
15
  messages: Letta.LettaMessageUnion[];
16
+ stopReason: Letta.LettaStopReason;
16
17
  /** The usage statistics of the agent. */
17
18
  usage: Letta.LettaUsageStatistics;
18
19
  }
@@ -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
+ /**
6
+ * The stop reason from Letta indicating why agent loop stopped execution.
7
+ */
8
+ export interface LettaStopReason {
9
+ /** The type of the message. */
10
+ messageType?: "stop_reason";
11
+ /** The reason why execution stopped. */
12
+ stopReason: Letta.StopReasonType;
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 });
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type McpServerType = "sse" | "stdio";
4
+ export type McpServerType = "sse" | "stdio" | "streamable_http";
5
5
  export declare const McpServerType: {
6
6
  readonly Sse: "sse";
7
7
  readonly Stdio: "stdio";
8
+ readonly StreamableHttp: "streamable_http";
8
9
  };
@@ -7,4 +7,5 @@ exports.McpServerType = void 0;
7
7
  exports.McpServerType = {
8
8
  Sse: "sse",
9
9
  Stdio: "stdio",
10
+ StreamableHttp: "streamable_http",
10
11
  };
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * A simple wrapper around MCP's tool definition (to avoid conflict with our own)
6
7
  */
@@ -8,6 +9,7 @@ export interface McpTool {
8
9
  name: string;
9
10
  description?: string;
10
11
  inputSchema: Record<string, unknown>;
12
+ annotations?: Letta.ToolAnnotations;
11
13
  /** Accepts any additional properties */
12
14
  [key: string]: any;
13
15
  }
@@ -35,6 +35,8 @@ export interface Run {
35
35
  callbackSentAt?: Date;
36
36
  /** HTTP status code returned by the callback endpoint. */
37
37
  callbackStatusCode?: number;
38
+ /** Optional error message from attempting to POST the callback endpoint. */
39
+ callbackError?: string;
38
40
  /** The human-friendly ID of the Run */
39
41
  id?: string;
40
42
  /** The request configuration for the run. */
@@ -2,10 +2,26 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
+ /**
6
+ * Configuration for an MCP server using SSE
7
+ *
8
+ * Authentication can be provided in multiple ways:
9
+ * 1. Using auth_header + auth_token: Will add a specific header with the token
10
+ * Example: auth_header="Authorization", auth_token="Bearer abc123"
11
+ *
12
+ * 2. Using the custom_headers dict: For more complex authentication scenarios
13
+ * Example: custom_headers={"X-API-Key": "abc123", "X-Custom-Header": "value"}
14
+ */
5
15
  export interface SseServerConfig {
6
16
  /** The name of the server */
7
17
  serverName: string;
8
18
  type?: Letta.McpServerType;
9
19
  /** The URL of the server (MCP SSE client will connect to this URL) */
10
20
  serverUrl: string;
21
+ /** The name of the authentication header (e.g., 'Authorization') */
22
+ authHeader?: string;
23
+ /** The authentication token or API key value */
24
+ authToken?: string;
25
+ /** Custom HTTP headers to include with SSE requests */
26
+ customHeaders?: Record<string, string | undefined>;
11
27
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type StopReasonType = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule";
5
+ export declare const StopReasonType: {
6
+ readonly EndTurn: "end_turn";
7
+ readonly Error: "error";
8
+ readonly InvalidToolCall: "invalid_tool_call";
9
+ readonly MaxSteps: "max_steps";
10
+ readonly NoToolCall: "no_tool_call";
11
+ readonly ToolRule: "tool_rule";
12
+ };
@@ -0,0 +1,14 @@
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.StopReasonType = void 0;
7
+ exports.StopReasonType = {
8
+ EndTurn: "end_turn",
9
+ Error: "error",
10
+ InvalidToolCall: "invalid_tool_call",
11
+ MaxSteps: "max_steps",
12
+ NoToolCall: "no_tool_call",
13
+ ToolRule: "tool_rule",
14
+ };
@@ -33,6 +33,8 @@ export interface Tool {
33
33
  argsJsonSchema?: Record<string, unknown>;
34
34
  /** The maximum number of characters in the response. */
35
35
  returnCharLimit?: number;
36
+ /** Optional list of pip packages required by this tool. */
37
+ pipRequirements?: Letta.PipRequirement[];
36
38
  /** The id of the user that made this Tool. */
37
39
  createdById?: string;
38
40
  /** The id of the user that made this Tool. */
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Additional properties describing a Tool to clients.
6
+ *
7
+ * NOTE: all properties in ToolAnnotations are **hints**.
8
+ * They are not guaranteed to provide a faithful description of
9
+ * tool behavior (including descriptive properties like `title`).
10
+ *
11
+ * Clients should never make tool use decisions based on ToolAnnotations
12
+ * received from untrusted servers.
13
+ */
14
+ export interface ToolAnnotations {
15
+ title?: string;
16
+ readOnlyHint?: boolean;
17
+ destructiveHint?: boolean;
18
+ idempotentHint?: boolean;
19
+ openWorldHint?: boolean;
20
+ /** Accepts any additional properties */
21
+ [key: string]: any;
22
+ }
@@ -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,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  export interface ToolCreate {
5
6
  /** The description of the tool. */
6
7
  description?: string;
@@ -16,4 +17,6 @@ export interface ToolCreate {
16
17
  argsJsonSchema?: Record<string, unknown>;
17
18
  /** The maximum number of characters in the response. */
18
19
  returnCharLimit?: number;
20
+ /** Optional list of pip packages required by this tool. */
21
+ pipRequirements?: Letta.PipRequirement[];
19
22
  }
@@ -130,6 +130,7 @@ export * from "./LettaImage";
130
130
  export * from "./LettaRequest";
131
131
  export * from "./LettaRequestConfig";
132
132
  export * from "./LettaResponse";
133
+ export * from "./LettaStopReason";
133
134
  export * from "./LettaStreamingRequest";
134
135
  export * from "./LettaUsageStatistics";
135
136
  export * from "./LocalSandboxConfig";
@@ -185,6 +186,7 @@ export * from "./SleeptimeManagerUpdate";
185
186
  export * from "./Source";
186
187
  export * from "./StdioServerConfig";
187
188
  export * from "./Step";
189
+ export * from "./StopReasonType";
188
190
  export * from "./SupervisorManager";
189
191
  export * from "./SupervisorManagerUpdate";
190
192
  export * from "./SystemMessage";
@@ -193,6 +195,7 @@ export * from "./TerminalToolRule";
193
195
  export * from "./TextContent";
194
196
  export * from "./TextResponseFormat";
195
197
  export * from "./Tool";
198
+ export * from "./ToolAnnotations";
196
199
  export * from "./ToolCall";
197
200
  export * from "./ToolCallContent";
198
201
  export * from "./ToolCallDelta";
@@ -146,6 +146,7 @@ __exportStar(require("./LettaImage"), exports);
146
146
  __exportStar(require("./LettaRequest"), exports);
147
147
  __exportStar(require("./LettaRequestConfig"), exports);
148
148
  __exportStar(require("./LettaResponse"), exports);
149
+ __exportStar(require("./LettaStopReason"), exports);
149
150
  __exportStar(require("./LettaStreamingRequest"), exports);
150
151
  __exportStar(require("./LettaUsageStatistics"), exports);
151
152
  __exportStar(require("./LocalSandboxConfig"), exports);
@@ -201,6 +202,7 @@ __exportStar(require("./SleeptimeManagerUpdate"), exports);
201
202
  __exportStar(require("./Source"), exports);
202
203
  __exportStar(require("./StdioServerConfig"), exports);
203
204
  __exportStar(require("./Step"), exports);
205
+ __exportStar(require("./StopReasonType"), exports);
204
206
  __exportStar(require("./SupervisorManager"), exports);
205
207
  __exportStar(require("./SupervisorManagerUpdate"), exports);
206
208
  __exportStar(require("./SystemMessage"), exports);
@@ -209,6 +211,7 @@ __exportStar(require("./TerminalToolRule"), exports);
209
211
  __exportStar(require("./TextContent"), exports);
210
212
  __exportStar(require("./TextResponseFormat"), exports);
211
213
  __exportStar(require("./Tool"), exports);
214
+ __exportStar(require("./ToolAnnotations"), exports);
212
215
  __exportStar(require("./ToolCall"), exports);
213
216
  __exportStar(require("./ToolCallContent"), exports);
214
217
  __exportStar(require("./ToolCallDelta"), exports);
@@ -10,8 +10,9 @@ import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
10
10
  import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
11
11
  import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
12
12
  import { AssistantMessage } from "../../../../../types/AssistantMessage";
13
+ import { LettaStopReason } from "../../../../../types/LettaStopReason";
13
14
  import { LettaUsageStatistics } from "../../../../../types/LettaUsageStatistics";
14
15
  export declare const LettaStreamingResponse: core.serialization.Schema<serializers.agents.LettaStreamingResponse.Raw, Letta.agents.LettaStreamingResponse>;
15
16
  export declare namespace LettaStreamingResponse {
16
- type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaUsageStatistics.Raw;
17
+ type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaStopReason.Raw | LettaUsageStatistics.Raw;
17
18
  }
@@ -44,6 +44,7 @@ const ReasoningMessage_1 = require("../../../../../types/ReasoningMessage");
44
44
  const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
45
45
  const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
46
46
  const AssistantMessage_1 = require("../../../../../types/AssistantMessage");
47
+ const LettaStopReason_1 = require("../../../../../types/LettaStopReason");
47
48
  const LettaUsageStatistics_1 = require("../../../../../types/LettaUsageStatistics");
48
49
  exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
49
50
  SystemMessage_1.SystemMessage,
@@ -52,5 +53,6 @@ exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
52
53
  ToolCallMessage_1.ToolCallMessage,
53
54
  ToolReturnMessage_1.ToolReturnMessage,
54
55
  AssistantMessage_1.AssistantMessage,
56
+ LettaStopReason_1.LettaStopReason,
55
57
  LettaUsageStatistics_1.LettaUsageStatistics,
56
58
  ]);
@@ -4,8 +4,6 @@ export * as agents from "./agents";
4
4
  export * from "./agents/types";
5
5
  export * as groups from "./groups";
6
6
  export * from "./groups/types";
7
- export * as voice from "./voice";
8
- export * from "./voice/types";
9
7
  export * as templates from "./templates";
10
8
  export * from "./templates/types";
11
9
  export * as clientSideAccessTokens from "./clientSideAccessTokens";
@@ -23,6 +21,7 @@ export * as runs from "./runs";
23
21
  export * as steps from "./steps";
24
22
  export * as tags from "./tags";
25
23
  export * as batches from "./batches";
24
+ export * as voice from "./voice";
26
25
  export * from "./tools/client/requests";
27
26
  export * from "./sources/client/requests";
28
27
  export * from "./agents/client/requests";