@letta-ai/letta-client 0.1.9 → 0.1.12

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 (242) hide show
  1. package/api/resources/agents/client/Client.d.ts +1 -4
  2. package/api/resources/agents/client/Client.js +21 -23
  3. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  4. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +5 -3
  5. package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  6. package/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  9. package/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  10. package/api/resources/agents/resources/index.d.ts +0 -1
  11. package/api/resources/agents/resources/index.js +1 -2
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  13. package/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
  14. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  15. package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
  16. package/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  17. package/api/resources/agents/resources/messages/types/index.d.ts +0 -1
  18. package/api/resources/agents/resources/messages/types/index.js +0 -1
  19. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  20. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  21. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  22. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
  23. package/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
  24. package/api/resources/agents/types/index.d.ts +1 -0
  25. package/api/resources/agents/types/index.js +1 -0
  26. package/api/resources/blocks/client/Client.js +7 -7
  27. package/api/resources/health/client/Client.js +1 -1
  28. package/api/resources/jobs/client/Client.js +4 -4
  29. package/api/resources/models/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.d.ts +11 -11
  31. package/api/resources/providers/client/Client.js +32 -32
  32. package/api/resources/providers/client/requests/index.d.ts +1 -1
  33. package/api/resources/runs/client/Client.d.ts +6 -8
  34. package/api/resources/runs/client/Client.js +12 -37
  35. package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
  36. package/api/resources/sources/client/Client.js +8 -8
  37. package/api/resources/sources/resources/files/client/Client.js +3 -3
  38. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  39. package/api/resources/tag/client/Client.js +1 -1
  40. package/api/resources/tools/client/Client.d.ts +0 -12
  41. package/api/resources/tools/client/Client.js +11 -76
  42. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  43. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  44. package/{dist/api/types/LettaResponseMessagesItem.d.ts → api/types/LettaMessageUnion.d.ts} +2 -2
  45. package/api/types/LettaRequest.d.ts +2 -6
  46. package/api/types/LettaRequestConfig.d.ts +11 -0
  47. package/api/types/LettaResponse.d.ts +1 -1
  48. package/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  49. package/api/types/LlmConfigModelEndpointType.d.ts +2 -1
  50. package/api/types/LlmConfigModelEndpointType.js +1 -0
  51. package/api/types/Run.d.ts +2 -0
  52. package/api/types/ToolType.d.ts +2 -1
  53. package/api/types/ToolType.js +1 -0
  54. package/api/types/index.d.ts +2 -3
  55. package/api/types/index.js +2 -3
  56. package/dist/api/resources/agents/client/Client.d.ts +1 -4
  57. package/dist/api/resources/agents/client/Client.js +21 -23
  58. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  59. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +5 -3
  60. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  61. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  62. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  64. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  65. package/dist/api/resources/agents/resources/index.d.ts +0 -1
  66. package/dist/api/resources/agents/resources/index.js +1 -2
  67. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
  69. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  70. package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
  71. package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  72. package/dist/api/resources/agents/resources/messages/types/index.d.ts +0 -1
  73. package/dist/api/resources/agents/resources/messages/types/index.js +0 -1
  74. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  77. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
  78. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
  79. package/dist/api/resources/agents/types/index.d.ts +1 -0
  80. package/dist/api/resources/agents/types/index.js +1 -0
  81. package/dist/api/resources/blocks/client/Client.js +7 -7
  82. package/dist/api/resources/health/client/Client.js +1 -1
  83. package/dist/api/resources/jobs/client/Client.js +4 -4
  84. package/dist/api/resources/models/client/Client.js +2 -2
  85. package/dist/api/resources/providers/client/Client.d.ts +11 -11
  86. package/dist/api/resources/providers/client/Client.js +32 -32
  87. package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
  88. package/dist/api/resources/runs/client/Client.d.ts +6 -8
  89. package/dist/api/resources/runs/client/Client.js +12 -37
  90. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
  91. package/dist/api/resources/sources/client/Client.js +8 -8
  92. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  93. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  94. package/dist/api/resources/tag/client/Client.js +1 -1
  95. package/dist/api/resources/tools/client/Client.d.ts +0 -12
  96. package/dist/api/resources/tools/client/Client.js +11 -76
  97. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  98. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  99. package/{api/types/LettaResponseMessagesItem.d.ts → dist/api/types/LettaMessageUnion.d.ts} +2 -2
  100. package/dist/api/types/LettaRequest.d.ts +2 -6
  101. package/dist/api/types/LettaRequestConfig.d.ts +11 -0
  102. package/dist/api/types/LettaResponse.d.ts +1 -1
  103. package/dist/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  104. package/dist/api/types/LlmConfigModelEndpointType.d.ts +2 -1
  105. package/dist/api/types/LlmConfigModelEndpointType.js +1 -0
  106. package/dist/api/types/Run.d.ts +2 -0
  107. package/dist/api/types/ToolType.d.ts +2 -1
  108. package/dist/api/types/ToolType.js +1 -0
  109. package/dist/api/types/index.d.ts +2 -3
  110. package/dist/api/types/index.js +2 -3
  111. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -2
  112. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -4
  113. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  114. package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  115. package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  116. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
  117. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
  118. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  119. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  120. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
  121. package/dist/serialization/resources/agents/resources/messages/types/index.js +0 -1
  122. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
  123. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
  124. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
  125. package/{serialization/resources/tools/client/getByName.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js} +5 -2
  126. package/dist/serialization/resources/agents/types/index.d.ts +1 -0
  127. package/dist/serialization/resources/agents/types/index.js +1 -0
  128. package/dist/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
  129. package/dist/serialization/resources/runs/client/getRunMessages.js +2 -2
  130. package/dist/serialization/resources/tools/client/index.d.ts +0 -1
  131. package/dist/serialization/resources/tools/client/index.js +1 -2
  132. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  133. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  134. package/dist/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
  135. package/dist/serialization/types/{LettaResponseMessagesItem.js → LettaMessageUnion.js} +2 -2
  136. package/dist/serialization/types/LettaRequest.d.ts +2 -3
  137. package/dist/serialization/types/LettaRequest.js +2 -3
  138. package/dist/serialization/types/LettaRequestConfig.d.ts +14 -0
  139. package/dist/serialization/types/{RecallMemorySummary.js → LettaRequestConfig.js} +5 -3
  140. package/dist/serialization/types/LettaResponse.d.ts +2 -2
  141. package/dist/serialization/types/LettaResponse.js +2 -2
  142. package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  143. package/dist/serialization/types/LettaSchemasMessageMessage.js +1 -0
  144. package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  145. package/dist/serialization/types/LlmConfigModelEndpointType.js +1 -0
  146. package/dist/serialization/types/Run.d.ts +2 -0
  147. package/dist/serialization/types/Run.js +2 -0
  148. package/dist/serialization/types/ToolType.d.ts +1 -1
  149. package/dist/serialization/types/ToolType.js +1 -0
  150. package/dist/serialization/types/index.d.ts +2 -3
  151. package/dist/serialization/types/index.js +2 -3
  152. package/dist/version.d.ts +1 -1
  153. package/dist/version.js +1 -1
  154. package/package.json +1 -1
  155. package/reference.md +24 -280
  156. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -2
  157. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -4
  158. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  159. package/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  160. package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  161. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
  162. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
  163. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  164. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  165. package/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
  166. package/serialization/resources/agents/resources/messages/types/index.js +0 -1
  167. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
  168. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
  169. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
  170. package/{dist/serialization/resources/tools/client/getByName.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js} +5 -2
  171. package/serialization/resources/agents/types/index.d.ts +1 -0
  172. package/serialization/resources/agents/types/index.js +1 -0
  173. package/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
  174. package/serialization/resources/runs/client/getRunMessages.js +2 -2
  175. package/serialization/resources/tools/client/index.d.ts +0 -1
  176. package/serialization/resources/tools/client/index.js +1 -2
  177. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  178. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  179. package/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
  180. package/serialization/types/{LettaResponseMessagesItem.js → LettaMessageUnion.js} +2 -2
  181. package/serialization/types/LettaRequest.d.ts +2 -3
  182. package/serialization/types/LettaRequest.js +2 -3
  183. package/serialization/types/LettaRequestConfig.d.ts +14 -0
  184. package/serialization/types/{ArchivalMemorySummary.js → LettaRequestConfig.js} +5 -3
  185. package/serialization/types/LettaResponse.d.ts +2 -2
  186. package/serialization/types/LettaResponse.js +2 -2
  187. package/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  188. package/serialization/types/LettaSchemasMessageMessage.js +1 -0
  189. package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  190. package/serialization/types/LlmConfigModelEndpointType.js +1 -0
  191. package/serialization/types/Run.d.ts +2 -0
  192. package/serialization/types/Run.js +2 -0
  193. package/serialization/types/ToolType.d.ts +1 -1
  194. package/serialization/types/ToolType.js +1 -0
  195. package/serialization/types/index.d.ts +2 -3
  196. package/serialization/types/index.js +2 -3
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
  200. package/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  201. package/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  202. package/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  203. package/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  204. package/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  205. package/api/resources/agents/resources/recallMemory/index.js +0 -17
  206. package/api/types/ArchivalMemorySummary.d.ts +0 -7
  207. package/api/types/RecallMemorySummary.d.ts +0 -7
  208. package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
  209. package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  210. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  211. package/dist/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  212. package/dist/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  213. package/dist/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  214. package/dist/api/resources/agents/resources/recallMemory/index.js +0 -17
  215. package/dist/api/types/ArchivalMemorySummary.d.ts +0 -7
  216. package/dist/api/types/LettaResponseMessagesItem.js +0 -5
  217. package/dist/api/types/RecallMemorySummary.d.ts +0 -7
  218. package/dist/api/types/RecallMemorySummary.js +0 -5
  219. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  220. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  221. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
  222. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +0 -59
  223. package/dist/serialization/resources/tools/client/getByName.d.ts +0 -9
  224. package/dist/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  225. package/dist/serialization/types/ArchivalMemorySummary.js +0 -43
  226. package/dist/serialization/types/RecallMemorySummary.d.ts +0 -12
  227. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  228. package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  229. package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
  230. package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +0 -59
  231. package/serialization/resources/tools/client/getByName.d.ts +0 -9
  232. package/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  233. package/serialization/types/RecallMemorySummary.d.ts +0 -12
  234. package/serialization/types/RecallMemorySummary.js +0 -43
  235. /package/api/resources/agents/{resources/messages/types/MessagesListResponseItem.js → types/AgentsSearchRequestSearchItemTags.js} +0 -0
  236. /package/api/types/{ArchivalMemorySummary.js → LettaMessageUnion.js} +0 -0
  237. /package/api/types/{LettaResponseMessagesItem.js → LettaRequestConfig.js} +0 -0
  238. /package/{api/types/RecallMemorySummary.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.js} +0 -0
  239. /package/dist/api/{resources/agents/resources/messages/types/MessagesListResponseItem.js → types/LettaMessageUnion.js} +0 -0
  240. /package/dist/api/types/{ArchivalMemorySummary.js → LettaRequestConfig.js} +0 -0
  241. /package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
  242. /package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  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/sources/${encodeURIComponent(sourceId)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  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/sources/${encodeURIComponent(sourceId)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  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/sources/${encodeURIComponent(sourceId)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  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/sources/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
280
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  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/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  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/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -480,7 +480,7 @@ class Sources {
480
480
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
481
481
  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/sources/${encodeURIComponent(sourceId)}/attach`),
482
482
  method: "POST",
483
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
484
484
  contentType: "application/json",
485
485
  queryParameters: _queryParams,
486
486
  requestType: "json",
@@ -552,7 +552,7 @@ class Sources {
552
552
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
553
553
  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/sources/${encodeURIComponent(sourceId)}/detach`),
554
554
  method: "POST",
555
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
555
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
556
556
  contentType: "application/json",
557
557
  queryParameters: _queryParams,
558
558
  requestType: "json",
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
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/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  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/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  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/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
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/sources/${encodeURIComponent(sourceId)}/passages`),
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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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,
@@ -87,7 +87,7 @@ class Tag {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  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/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -63,18 +63,6 @@ export declare class Tools {
63
63
  * await client.tools.update("tool_id")
64
64
  */
65
65
  update(toolId: string, request?: Letta.ToolUpdate, requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool>;
66
- /**
67
- * Get a tool ID by name
68
- *
69
- * @param {string} toolName
70
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
71
- *
72
- * @throws {@link Letta.UnprocessableEntityError}
73
- *
74
- * @example
75
- * await client.tools.getByName("tool_name")
76
- */
77
- getByName(toolName: string, requestOptions?: Tools.RequestOptions): Promise<string>;
78
66
  /**
79
67
  * Get a list of all tools available to agents belonging to the org of the user
80
68
  *
@@ -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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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" }),
@@ -250,71 +250,6 @@ class Tools {
250
250
  }
251
251
  });
252
252
  }
253
- /**
254
- * Get a tool ID by name
255
- *
256
- * @param {string} toolName
257
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
258
- *
259
- * @throws {@link Letta.UnprocessableEntityError}
260
- *
261
- * @example
262
- * await client.tools.getByName("tool_name")
263
- */
264
- getByName(toolName, requestOptions) {
265
- return __awaiter(this, void 0, void 0, function* () {
266
- var _a, _b, _c;
267
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
268
- 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/name/${encodeURIComponent(toolName)}`),
269
- method: "GET",
270
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
271
- contentType: "application/json",
272
- requestType: "json",
273
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
274
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
275
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
276
- });
277
- if (_response.ok) {
278
- return serializers.tools.getByName.Response.parseOrThrow(_response.body, {
279
- unrecognizedObjectKeys: "passthrough",
280
- allowUnrecognizedUnionMembers: true,
281
- allowUnrecognizedEnumValues: true,
282
- skipValidation: true,
283
- breadcrumbsPrefix: ["response"],
284
- });
285
- }
286
- if (_response.error.reason === "status-code") {
287
- switch (_response.error.statusCode) {
288
- case 422:
289
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
290
- unrecognizedObjectKeys: "passthrough",
291
- allowUnrecognizedUnionMembers: true,
292
- allowUnrecognizedEnumValues: true,
293
- skipValidation: true,
294
- breadcrumbsPrefix: ["response"],
295
- }));
296
- default:
297
- throw new errors.LettaError({
298
- statusCode: _response.error.statusCode,
299
- body: _response.error.body,
300
- });
301
- }
302
- }
303
- switch (_response.error.reason) {
304
- case "non-json":
305
- throw new errors.LettaError({
306
- statusCode: _response.error.statusCode,
307
- body: _response.error.rawBody,
308
- });
309
- case "timeout":
310
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/name/{tool_name}.");
311
- case "unknown":
312
- throw new errors.LettaError({
313
- message: _response.error.errorMessage,
314
- });
315
- }
316
- });
317
- }
318
253
  /**
319
254
  * Get a list of all tools available to agents belonging to the org of the user
320
255
  *
@@ -340,7 +275,7 @@ class Tools {
340
275
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
341
276
  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/"),
342
277
  method: "GET",
343
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
278
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
344
279
  contentType: "application/json",
345
280
  queryParameters: _queryParams,
346
281
  requestType: "json",
@@ -408,7 +343,7 @@ class Tools {
408
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
344
  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/"),
410
345
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
346
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
412
347
  contentType: "application/json",
413
348
  requestType: "json",
414
349
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -476,7 +411,7 @@ class Tools {
476
411
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
412
  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/"),
478
413
  method: "PUT",
479
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
414
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
480
415
  contentType: "application/json",
481
416
  requestType: "json",
482
417
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -541,7 +476,7 @@ class Tools {
541
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
542
477
  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"),
543
478
  method: "POST",
544
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
479
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
545
480
  contentType: "application/json",
546
481
  requestType: "json",
547
482
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -611,7 +546,7 @@ class Tools {
611
546
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
612
547
  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"),
613
548
  method: "POST",
614
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
549
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
615
550
  contentType: "application/json",
616
551
  requestType: "json",
617
552
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -676,7 +611,7 @@ class Tools {
676
611
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
677
612
  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"),
678
613
  method: "GET",
679
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
614
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
680
615
  contentType: "application/json",
681
616
  requestType: "json",
682
617
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -741,7 +676,7 @@ class Tools {
741
676
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
742
677
  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`),
743
678
  method: "GET",
744
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
679
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
745
680
  contentType: "application/json",
746
681
  requestType: "json",
747
682
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -806,7 +741,7 @@ class Tools {
806
741
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
807
742
  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)}`),
808
743
  method: "POST",
809
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "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),
744
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
810
745
  contentType: "application/json",
811
746
  requestType: "json",
812
747
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,10 +4,11 @@
4
4
  /**
5
5
  * The endpoint type for the model.
6
6
  */
7
- export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
7
+ export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
8
8
  export declare const EmbeddingConfigEmbeddingEndpointType: {
9
9
  readonly Openai: "openai";
10
10
  readonly Anthropic: "anthropic";
11
+ readonly Bedrock: "bedrock";
11
12
  readonly Cohere: "cohere";
12
13
  readonly GoogleAi: "google_ai";
13
14
  readonly Azure: "azure";
@@ -7,6 +7,7 @@ exports.EmbeddingConfigEmbeddingEndpointType = void 0;
7
7
  exports.EmbeddingConfigEmbeddingEndpointType = {
8
8
  Openai: "openai",
9
9
  Anthropic: "anthropic",
10
+ Bedrock: "bedrock",
10
11
  Cohere: "cohere",
11
12
  GoogleAi: "google_ai",
12
13
  Azure: "azure",
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type LettaResponseMessagesItem = Letta.LettaResponseMessagesItem.SystemMessage | Letta.LettaResponseMessagesItem.UserMessage | Letta.LettaResponseMessagesItem.ReasoningMessage | Letta.LettaResponseMessagesItem.ToolCallMessage | Letta.LettaResponseMessagesItem.ToolReturnMessage | Letta.LettaResponseMessagesItem.AssistantMessage;
6
- export declare namespace LettaResponseMessagesItem {
5
+ export type LettaMessageUnion = Letta.LettaMessageUnion.SystemMessage | Letta.LettaMessageUnion.UserMessage | Letta.LettaMessageUnion.ReasoningMessage | Letta.LettaMessageUnion.ToolCallMessage | Letta.LettaMessageUnion.ToolReturnMessage | Letta.LettaMessageUnion.AssistantMessage;
6
+ export declare namespace LettaMessageUnion {
7
7
  interface SystemMessage extends Letta.SystemMessageOutput {
8
8
  messageType: "system_message";
9
9
  }
@@ -5,10 +5,6 @@ import * as Letta from "../index";
5
5
  export interface LettaRequest {
6
6
  /** The messages to be sent to the agent. */
7
7
  messages: Letta.MessageCreate[];
8
- /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
9
- useAssistantMessage?: boolean;
10
- /** The name of the designated message tool. */
11
- assistantMessageToolName?: string;
12
- /** The name of the message argument in the designated message tool. */
13
- assistantMessageToolKwarg?: string;
8
+ /** Configuration options for the LettaRequest. */
9
+ config?: Letta.LettaRequestConfig;
14
10
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface LettaRequestConfig {
5
+ /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
6
+ useAssistantMessage?: boolean;
7
+ /** The name of the designated message tool. */
8
+ assistantMessageToolName?: string;
9
+ /** The name of the message argument in the designated message tool. */
10
+ assistantMessageToolKwarg?: string;
11
+ }
@@ -12,7 +12,7 @@ import * as Letta from "../index";
12
12
  */
13
13
  export interface LettaResponse {
14
14
  /** The messages returned by the agent. */
15
- messages: Letta.LettaResponseMessagesItem[];
15
+ messages: Letta.LettaMessageUnion[];
16
16
  /** The usage statistics of the agent. */
17
17
  usage: Letta.LettaUsageStatistics;
18
18
  }
@@ -42,4 +42,6 @@ export interface LettaSchemasMessageMessage {
42
42
  toolCalls?: Letta.LettaSchemasOpenaiChatCompletionsToolCallOutput[];
43
43
  /** The id of the tool call. */
44
44
  toolCallId?: string;
45
+ /** The id of the step that this message was created in. */
46
+ stepId?: string;
45
47
  }
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * The endpoint type for the model.
6
6
  */
7
- export type LlmConfigModelEndpointType = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
7
+ export type LlmConfigModelEndpointType = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "bedrock";
8
8
  export declare const LlmConfigModelEndpointType: {
9
9
  readonly Openai: "openai";
10
10
  readonly Anthropic: "anthropic";
@@ -23,4 +23,5 @@ export declare const LlmConfigModelEndpointType: {
23
23
  readonly HuggingFace: "hugging-face";
24
24
  readonly Mistral: "mistral";
25
25
  readonly Together: "together";
26
+ readonly Bedrock: "bedrock";
26
27
  };
@@ -22,4 +22,5 @@ exports.LlmConfigModelEndpointType = {
22
22
  HuggingFace: "hugging-face",
23
23
  Mistral: "mistral",
24
24
  Together: "together",
25
+ Bedrock: "bedrock",
25
26
  };
@@ -31,4 +31,6 @@ export interface Run {
31
31
  jobType?: Letta.JobType;
32
32
  /** The human-friendly ID of the Run */
33
33
  id?: string;
34
+ /** The request configuration for the run. */
35
+ requestConfig?: Letta.LettaRequestConfig;
34
36
  }
@@ -1,9 +1,10 @@
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";
4
+ export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core";
5
5
  export declare const ToolType: {
6
6
  readonly Custom: "custom";
7
7
  readonly LettaCore: "letta_core";
8
8
  readonly LettaMemoryCore: "letta_memory_core";
9
+ readonly LettaMultiAgentCore: "letta_multi_agent_core";
9
10
  };
@@ -8,4 +8,5 @@ exports.ToolType = {
8
8
  Custom: "custom",
9
9
  LettaCore: "letta_core",
10
10
  LettaMemoryCore: "letta_memory_core",
11
+ LettaMultiAgentCore: "letta_multi_agent_core",
11
12
  };
@@ -12,7 +12,6 @@ export * from "./AgentType";
12
12
  export * from "./AppAuthSchemeAuthMode";
13
13
  export * from "./AppAuthScheme";
14
14
  export * from "./AppModel";
15
- export * from "./ArchivalMemorySummary";
16
15
  export * from "./AssistantFile";
17
16
  export * from "./AssistantMessageInput";
18
17
  export * from "./AssistantMessageOutput";
@@ -52,7 +51,7 @@ export * from "./JobType";
52
51
  export * from "./LlmConfigModelEndpointType";
53
52
  export * from "./LlmConfig";
54
53
  export * from "./LettaRequest";
55
- export * from "./LettaResponseMessagesItem";
54
+ export * from "./LettaRequestConfig";
56
55
  export * from "./LettaResponse";
57
56
  export * from "./LettaUsageStatistics";
58
57
  export * from "./LocalSandboxConfig";
@@ -68,7 +67,6 @@ export * from "./OrganizationCreate";
68
67
  export * from "./Passage";
69
68
  export * from "./Provider";
70
69
  export * from "./ReasoningMessage";
71
- export * from "./RecallMemorySummary";
72
70
  export * from "./ResponseFormat";
73
71
  export * from "./Run";
74
72
  export * from "./SandboxConfig";
@@ -116,3 +114,4 @@ export * from "./LettaSchemasOpenaiChatCompletionsToolCallInput";
116
114
  export * from "./LettaSchemasOpenaiChatCompletionsToolCallOutput";
117
115
  export * from "./LettaSchemasOpenaiChatCompletionsToolCallFunction";
118
116
  export * from "./LettaSchemasToolTool";
117
+ export * from "./LettaMessageUnion";
@@ -28,7 +28,6 @@ __exportStar(require("./AgentType"), exports);
28
28
  __exportStar(require("./AppAuthSchemeAuthMode"), exports);
29
29
  __exportStar(require("./AppAuthScheme"), exports);
30
30
  __exportStar(require("./AppModel"), exports);
31
- __exportStar(require("./ArchivalMemorySummary"), exports);
32
31
  __exportStar(require("./AssistantFile"), exports);
33
32
  __exportStar(require("./AssistantMessageInput"), exports);
34
33
  __exportStar(require("./AssistantMessageOutput"), exports);
@@ -68,7 +67,7 @@ __exportStar(require("./JobType"), exports);
68
67
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
69
68
  __exportStar(require("./LlmConfig"), exports);
70
69
  __exportStar(require("./LettaRequest"), exports);
71
- __exportStar(require("./LettaResponseMessagesItem"), exports);
70
+ __exportStar(require("./LettaRequestConfig"), exports);
72
71
  __exportStar(require("./LettaResponse"), exports);
73
72
  __exportStar(require("./LettaUsageStatistics"), exports);
74
73
  __exportStar(require("./LocalSandboxConfig"), exports);
@@ -84,7 +83,6 @@ __exportStar(require("./OrganizationCreate"), exports);
84
83
  __exportStar(require("./Passage"), exports);
85
84
  __exportStar(require("./Provider"), exports);
86
85
  __exportStar(require("./ReasoningMessage"), exports);
87
- __exportStar(require("./RecallMemorySummary"), exports);
88
86
  __exportStar(require("./ResponseFormat"), exports);
89
87
  __exportStar(require("./Run"), exports);
90
88
  __exportStar(require("./SandboxConfig"), exports);
@@ -132,3 +130,4 @@ __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallInput"), export
132
130
  __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallOutput"), exports);
133
131
  __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallFunction"), exports);
134
132
  __exportStar(require("./LettaSchemasToolTool"), exports);
133
+ __exportStar(require("./LettaMessageUnion"), exports);
@@ -8,7 +8,6 @@ import { Context } from "../resources/context/client/Client";
8
8
  import { Tools } from "../resources/tools/client/Client";
9
9
  import { Sources } from "../resources/sources/client/Client";
10
10
  import { CoreMemory } from "../resources/coreMemory/client/Client";
11
- import { RecallMemory } from "../resources/recallMemory/client/Client";
12
11
  import { ArchivalMemory } from "../resources/archivalMemory/client/Client";
13
12
  import { Messages } from "../resources/messages/client/Client";
14
13
  import { Templates } from "../resources/templates/client/Client";
@@ -38,7 +37,6 @@ export declare class Agents {
38
37
  protected _tools: Tools | undefined;
39
38
  protected _sources: Sources | undefined;
40
39
  protected _coreMemory: CoreMemory | undefined;
41
- protected _recallMemory: RecallMemory | undefined;
42
40
  protected _archivalMemory: ArchivalMemory | undefined;
43
41
  protected _messages: Messages | undefined;
44
42
  protected _templates: Templates | undefined;
@@ -48,7 +46,6 @@ export declare class Agents {
48
46
  get tools(): Tools;
49
47
  get sources(): Sources;
50
48
  get coreMemory(): CoreMemory;
51
- get recallMemory(): RecallMemory;
52
49
  get archivalMemory(): ArchivalMemory;
53
50
  get messages(): Messages;
54
51
  get templates(): Templates;
@@ -103,7 +100,7 @@ export declare class Agents {
103
100
  */
104
101
  delete(agentId: string, requestOptions?: Agents.RequestOptions): Promise<unknown>;
105
102
  /**
106
- * Update an exsiting agent
103
+ * Update an existing agent
107
104
  *
108
105
  * @param {string} agentId
109
106
  * @param {Letta.UpdateAgent} request