@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
@@ -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);
@@ -27,9 +27,10 @@ export declare namespace CreateAgentRequest {
27
27
  embedding_config?: EmbeddingConfig.Raw | null;
28
28
  initial_message_sequence?: MessageCreate.Raw[] | null;
29
29
  include_base_tools?: boolean | null;
30
+ include_multi_agent_tools?: boolean | null;
30
31
  description?: string | null;
31
32
  metadata_?: Record<string, unknown> | null;
32
- llm?: string | null;
33
+ model?: string | null;
33
34
  embedding?: string | null;
34
35
  context_window_limit?: number | null;
35
36
  embedding_chunk_size?: number | null;
@@ -37,6 +38,6 @@ export declare namespace CreateAgentRequest {
37
38
  template?: boolean | null;
38
39
  project?: string | null;
39
40
  tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
40
- variables?: Record<string, string | null | undefined> | null;
41
+ memory_variables?: Record<string, string | null | undefined> | null;
41
42
  }
42
43
  }
@@ -59,9 +59,10 @@ exports.CreateAgentRequest = core.serialization.object({
59
59
  embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
60
60
  initialMessageSequence: core.serialization.property("initial_message_sequence", core.serialization.list(MessageCreate_1.MessageCreate).optional()),
61
61
  includeBaseTools: core.serialization.property("include_base_tools", core.serialization.boolean().optional()),
62
+ includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
62
63
  description: core.serialization.string().optional(),
63
64
  metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
64
- llm: core.serialization.string().optional(),
65
+ model: core.serialization.string().optional(),
65
66
  embedding: core.serialization.string().optional(),
66
67
  contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
67
68
  embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
@@ -69,7 +70,5 @@ exports.CreateAgentRequest = core.serialization.object({
69
70
  template: core.serialization.boolean().optional(),
70
71
  project: core.serialization.string().optional(),
71
72
  toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
72
- variables: core.serialization
73
- .record(core.serialization.string(), core.serialization.string().optional())
74
- .optional(),
73
+ memoryVariables: core.serialization.property("memory_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
75
74
  });
@@ -1,2 +1 @@
1
- export * as listInContext from "./listInContext";
2
- export * as getBlocks from "./getBlocks";
1
+ export * as list from "./list";
@@ -33,6 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.getBlocks = exports.listInContext = void 0;
37
- exports.listInContext = __importStar(require("./listInContext"));
38
- exports.getBlocks = __importStar(require("./getBlocks"));
36
+ exports.list = void 0;
37
+ exports.list = __importStar(require("./list"));
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
5
5
  import * as Letta from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { Block } from "../../../../../types/Block";
8
- export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.getBlocks.Response.Raw, Letta.Block[]>;
8
+ export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.list.Response.Raw, Letta.Block[]>;
9
9
  export declare namespace Response {
10
10
  type Raw = Block.Raw[];
11
11
  }
@@ -5,13 +5,12 @@ import * as serializers from "../../../../../../index";
5
5
  import * as Letta from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
7
  import { MessageCreate } from "../../../../../../types/MessageCreate";
8
+ import { LettaRequestConfig } from "../../../../../../types/LettaRequestConfig";
8
9
  export declare const LettaStreamingRequest: core.serialization.Schema<serializers.agents.LettaStreamingRequest.Raw, Letta.agents.LettaStreamingRequest>;
9
10
  export declare namespace LettaStreamingRequest {
10
11
  interface Raw {
11
12
  messages: MessageCreate.Raw[];
12
- use_assistant_message?: boolean | null;
13
- assistant_message_tool_name?: string | null;
14
- assistant_message_tool_kwarg?: string | null;
13
+ config?: LettaRequestConfig.Raw | null;
15
14
  stream_tokens?: boolean | null;
16
15
  }
17
16
  }
@@ -39,10 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LettaStreamingRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  const MessageCreate_1 = require("../../../../../../types/MessageCreate");
42
+ const LettaRequestConfig_1 = require("../../../../../../types/LettaRequestConfig");
42
43
  exports.LettaStreamingRequest = core.serialization.object({
43
44
  messages: core.serialization.list(MessageCreate_1.MessageCreate),
44
- useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
45
- assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
46
- assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
45
+ config: LettaRequestConfig_1.LettaRequestConfig.optional(),
47
46
  streamTokens: core.serialization.property("stream_tokens", core.serialization.boolean().optional()),
48
47
  });
@@ -5,8 +5,8 @@ import * as serializers from "../../../../../index";
5
5
  import * as Letta from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { LettaSchemasMessageMessage } from "../../../../../types/LettaSchemasMessageMessage";
8
- import { MessagesListResponseItem } from "./MessagesListResponseItem";
8
+ import { LettaMessageUnion } from "../../../../../types/LettaMessageUnion";
9
9
  export declare const MessagesListResponse: core.serialization.Schema<serializers.agents.MessagesListResponse.Raw, Letta.agents.MessagesListResponse>;
10
10
  export declare namespace MessagesListResponse {
11
- type Raw = LettaSchemasMessageMessage.Raw[] | MessagesListResponseItem.Raw[];
11
+ type Raw = LettaSchemasMessageMessage.Raw[] | LettaMessageUnion.Raw[];
12
12
  }
@@ -39,8 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.MessagesListResponse = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
41
  const LettaSchemasMessageMessage_1 = require("../../../../../types/LettaSchemasMessageMessage");
42
- const MessagesListResponseItem_1 = require("./MessagesListResponseItem");
42
+ const LettaMessageUnion_1 = require("../../../../../types/LettaMessageUnion");
43
43
  exports.MessagesListResponse = core.serialization.undiscriminatedUnion([
44
44
  core.serialization.list(LettaSchemasMessageMessage_1.LettaSchemasMessageMessage),
45
- core.serialization.list(MessagesListResponseItem_1.MessagesListResponseItem),
45
+ core.serialization.list(LettaMessageUnion_1.LettaMessageUnion),
46
46
  ]);
@@ -1,3 +1,2 @@
1
- export * from "./MessagesListResponseItem";
2
1
  export * from "./MessagesListResponse";
3
2
  export * from "./LettaStreamingResponse";
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./MessagesListResponseItem"), exports);
18
17
  __exportStar(require("./MessagesListResponse"), exports);
19
18
  __exportStar(require("./LettaStreamingResponse"), exports);
@@ -6,16 +6,20 @@ import * as Letta from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { AgentsSearchRequestSearchItemVersion } from "./AgentsSearchRequestSearchItemVersion";
8
8
  import { AgentsSearchRequestSearchItemName } from "./AgentsSearchRequestSearchItemName";
9
+ import { AgentsSearchRequestSearchItemTags } from "./AgentsSearchRequestSearchItemTags";
9
10
  import { AgentsSearchRequestSearchItemOrderBy } from "./AgentsSearchRequestSearchItemOrderBy";
10
11
  export declare const AgentsSearchRequestSearchItem: core.serialization.Schema<serializers.AgentsSearchRequestSearchItem.Raw, Letta.AgentsSearchRequestSearchItem>;
11
12
  export declare namespace AgentsSearchRequestSearchItem {
12
- type Raw = AgentsSearchRequestSearchItem.Version | AgentsSearchRequestSearchItem.Name | AgentsSearchRequestSearchItem.OrderBy;
13
+ type Raw = AgentsSearchRequestSearchItem.Version | AgentsSearchRequestSearchItem.Name | AgentsSearchRequestSearchItem.Tags | AgentsSearchRequestSearchItem.OrderBy;
13
14
  interface Version extends AgentsSearchRequestSearchItemVersion.Raw {
14
15
  field: "version";
15
16
  }
16
17
  interface Name extends AgentsSearchRequestSearchItemName.Raw {
17
18
  field: "name";
18
19
  }
20
+ interface Tags extends AgentsSearchRequestSearchItemTags.Raw {
21
+ field: "tags";
22
+ }
19
23
  interface OrderBy extends AgentsSearchRequestSearchItemOrderBy.Raw {
20
24
  field: "order_by";
21
25
  }
@@ -40,11 +40,13 @@ exports.AgentsSearchRequestSearchItem = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const AgentsSearchRequestSearchItemVersion_1 = require("./AgentsSearchRequestSearchItemVersion");
42
42
  const AgentsSearchRequestSearchItemName_1 = require("./AgentsSearchRequestSearchItemName");
43
+ const AgentsSearchRequestSearchItemTags_1 = require("./AgentsSearchRequestSearchItemTags");
43
44
  const AgentsSearchRequestSearchItemOrderBy_1 = require("./AgentsSearchRequestSearchItemOrderBy");
44
45
  exports.AgentsSearchRequestSearchItem = core.serialization
45
46
  .union("field", {
46
47
  version: AgentsSearchRequestSearchItemVersion_1.AgentsSearchRequestSearchItemVersion,
47
48
  name: AgentsSearchRequestSearchItemName_1.AgentsSearchRequestSearchItemName,
49
+ tags: AgentsSearchRequestSearchItemTags_1.AgentsSearchRequestSearchItemTags,
48
50
  order_by: AgentsSearchRequestSearchItemOrderBy_1.AgentsSearchRequestSearchItemOrderBy,
49
51
  })
50
52
  .transform({
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const AgentsSearchRequestSearchItemTags: core.serialization.ObjectSchema<serializers.AgentsSearchRequestSearchItemTags.Raw, Letta.AgentsSearchRequestSearchItemTags>;
8
+ export declare namespace AgentsSearchRequestSearchItemTags {
9
+ interface Raw {
10
+ operator: "contains";
11
+ value: string[];
12
+ }
13
+ }
@@ -36,6 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
39
+ exports.AgentsSearchRequestSearchItemTags = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- exports.Response = core.serialization.string();
41
+ exports.AgentsSearchRequestSearchItemTags = core.serialization.object({
42
+ operator: core.serialization.stringLiteral("contains"),
43
+ value: core.serialization.list(core.serialization.string()),
44
+ });
@@ -3,6 +3,7 @@ export * from "./UpdateAgentToolRulesItem";
3
3
  export * from "./AgentsSearchRequestSearchItemVersion";
4
4
  export * from "./AgentsSearchRequestSearchItemNameOperator";
5
5
  export * from "./AgentsSearchRequestSearchItemName";
6
+ export * from "./AgentsSearchRequestSearchItemTags";
6
7
  export * from "./AgentsSearchRequestSearchItemOrderByValue";
7
8
  export * from "./AgentsSearchRequestSearchItemOrderByDirection";
8
9
  export * from "./AgentsSearchRequestSearchItemOrderBy";
@@ -19,6 +19,7 @@ __exportStar(require("./UpdateAgentToolRulesItem"), exports);
19
19
  __exportStar(require("./AgentsSearchRequestSearchItemVersion"), exports);
20
20
  __exportStar(require("./AgentsSearchRequestSearchItemNameOperator"), exports);
21
21
  __exportStar(require("./AgentsSearchRequestSearchItemName"), exports);
22
+ __exportStar(require("./AgentsSearchRequestSearchItemTags"), exports);
22
23
  __exportStar(require("./AgentsSearchRequestSearchItemOrderByValue"), exports);
23
24
  __exportStar(require("./AgentsSearchRequestSearchItemOrderByDirection"), exports);
24
25
  __exportStar(require("./AgentsSearchRequestSearchItemOrderBy"), exports);