@letta-ai/letta-client 0.1.14 → 0.1.15

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 (248) hide show
  1. package/api/resources/agents/client/Client.d.ts +6 -125
  2. package/api/resources/agents/client/Client.js +22 -626
  3. package/api/resources/agents/client/requests/index.d.ts +0 -2
  4. package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +21 -4
  5. package/api/resources/agents/resources/archivalMemory/client/Client.js +104 -28
  6. package/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
  7. package/api/resources/agents/resources/archivalMemory/client/index.js +15 -0
  8. package/api/resources/agents/{client/requests/ListArchivalMemoryRequest.d.ts → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts} +1 -1
  9. package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +2 -0
  10. package/api/resources/agents/resources/archivalMemory/client/requests/index.js +2 -0
  11. package/api/resources/agents/resources/context/client/Client.js +1 -1
  12. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +42 -15
  13. package/api/resources/agents/resources/coreMemory/client/Client.js +195 -64
  14. package/api/resources/agents/resources/index.d.ts +1 -0
  15. package/api/resources/agents/resources/index.js +1 -0
  16. package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  17. package/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
  18. package/api/resources/agents/resources/messages/client/Client.js +7 -7
  19. package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -1
  20. package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  21. package/api/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +8 -0
  22. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  23. package/api/resources/agents/resources/messages/types/index.js +1 -0
  24. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  25. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  26. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  27. package/api/resources/blocks/client/Client.d.ts +13 -0
  28. package/api/resources/blocks/client/Client.js +71 -5
  29. package/api/resources/health/client/Client.js +1 -1
  30. package/api/resources/jobs/client/Client.js +4 -4
  31. package/api/resources/models/client/Client.js +2 -2
  32. package/api/resources/providers/client/Client.js +4 -4
  33. package/api/resources/runs/client/Client.js +6 -6
  34. package/api/resources/sources/client/Client.js +6 -6
  35. package/api/resources/sources/resources/files/client/Client.js +3 -3
  36. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  37. package/api/resources/tag/client/Client.js +1 -1
  38. package/api/resources/tools/client/Client.js +11 -11
  39. package/api/types/AssistantMessage.d.ts +2 -1
  40. package/api/types/AssistantMessageContent.d.ts +5 -0
  41. package/api/types/LlmConfig.d.ts +3 -0
  42. package/api/types/Message.d.ts +2 -2
  43. package/api/types/MessageCreate.d.ts +2 -2
  44. package/api/types/MessageCreateContent.d.ts +8 -0
  45. package/api/types/MessageCreateContent.js +5 -0
  46. package/api/types/SystemMessage.d.ts +3 -2
  47. package/api/types/SystemMessageContent.d.ts +5 -0
  48. package/api/types/SystemMessageContent.js +5 -0
  49. package/api/types/TextContent.d.ts +8 -0
  50. package/api/types/TextContent.js +5 -0
  51. package/api/types/UserMessage.d.ts +3 -2
  52. package/api/types/UserMessageContent.d.ts +5 -0
  53. package/api/types/UserMessageContent.js +5 -0
  54. package/api/types/index.d.ts +5 -0
  55. package/api/types/index.js +5 -0
  56. package/dist/api/resources/agents/client/Client.d.ts +6 -125
  57. package/dist/api/resources/agents/client/Client.js +22 -626
  58. package/dist/api/resources/agents/client/requests/index.d.ts +0 -2
  59. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +21 -4
  60. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +104 -28
  61. package/dist/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
  62. package/dist/api/resources/agents/resources/archivalMemory/client/index.js +15 -0
  63. package/dist/api/resources/agents/{client/requests/ListArchivalMemoryRequest.d.ts → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts} +1 -1
  64. package/dist/api/resources/agents/resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js +5 -0
  65. package/dist/api/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +5 -0
  66. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +2 -0
  67. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.js +2 -0
  68. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +42 -15
  70. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +195 -64
  71. package/dist/api/resources/agents/resources/index.d.ts +1 -0
  72. package/dist/api/resources/agents/resources/index.js +1 -0
  73. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
  75. package/dist/api/resources/agents/resources/messages/client/Client.js +7 -7
  76. package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -1
  77. package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  78. package/dist/api/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +8 -0
  79. package/dist/api/resources/agents/resources/messages/types/MessageUpdateContent.js +5 -0
  80. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  81. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  82. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  84. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  85. package/dist/api/resources/blocks/client/Client.d.ts +13 -0
  86. package/dist/api/resources/blocks/client/Client.js +71 -5
  87. package/dist/api/resources/health/client/Client.js +1 -1
  88. package/dist/api/resources/jobs/client/Client.js +4 -4
  89. package/dist/api/resources/models/client/Client.js +2 -2
  90. package/dist/api/resources/providers/client/Client.js +4 -4
  91. package/dist/api/resources/runs/client/Client.js +6 -6
  92. package/dist/api/resources/sources/client/Client.js +6 -6
  93. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  94. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  95. package/dist/api/resources/tag/client/Client.js +1 -1
  96. package/dist/api/resources/tools/client/Client.js +11 -11
  97. package/dist/api/types/AssistantMessage.d.ts +2 -1
  98. package/dist/api/types/AssistantMessageContent.d.ts +5 -0
  99. package/dist/api/types/AssistantMessageContent.js +5 -0
  100. package/dist/api/types/LlmConfig.d.ts +3 -0
  101. package/dist/api/types/Message.d.ts +2 -2
  102. package/dist/api/types/MessageCreate.d.ts +2 -2
  103. package/dist/api/types/MessageCreateContent.d.ts +8 -0
  104. package/dist/api/types/MessageCreateContent.js +5 -0
  105. package/dist/api/types/SystemMessage.d.ts +3 -2
  106. package/dist/api/types/SystemMessageContent.d.ts +5 -0
  107. package/dist/api/types/SystemMessageContent.js +5 -0
  108. package/dist/api/types/TextContent.d.ts +8 -0
  109. package/dist/api/types/TextContent.js +5 -0
  110. package/dist/api/types/UserMessage.d.ts +3 -2
  111. package/dist/api/types/UserMessageContent.d.ts +5 -0
  112. package/dist/api/types/UserMessageContent.js +5 -0
  113. package/dist/api/types/index.d.ts +5 -0
  114. package/dist/api/types/index.js +5 -0
  115. package/dist/serialization/resources/agents/client/index.d.ts +0 -3
  116. package/dist/serialization/resources/agents/client/index.js +1 -4
  117. package/dist/serialization/resources/agents/client/requests/index.d.ts +0 -1
  118. package/dist/serialization/resources/agents/client/requests/index.js +1 -3
  119. package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
  120. package/dist/serialization/resources/agents/{client/createArchivalMemory.js → resources/archivalMemory/client/create.js} +2 -2
  121. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
  122. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +42 -0
  123. package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
  124. package/dist/serialization/resources/agents/{client/listArchivalMemory.js → resources/archivalMemory/client/list.js} +2 -2
  125. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
  126. package/{serialization/resources/agents → dist/serialization/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +1 -1
  127. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
  128. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
  129. package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
  130. package/dist/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
  131. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -0
  132. package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +37 -0
  133. package/dist/serialization/resources/agents/resources/coreMemory/client/listBlocks.d.ts +11 -0
  134. package/{serialization/resources/agents/client/listCoreMemoryBlocks.js → dist/serialization/resources/agents/resources/coreMemory/client/listBlocks.js} +2 -2
  135. package/dist/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
  136. package/dist/serialization/resources/agents/resources/coreMemory/index.js +17 -0
  137. package/dist/serialization/resources/agents/resources/index.d.ts +3 -0
  138. package/dist/serialization/resources/agents/resources/index.js +4 -1
  139. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -1
  140. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -1
  141. package/dist/serialization/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +11 -0
  142. package/dist/serialization/resources/agents/resources/messages/types/MessageUpdateContent.js +42 -0
  143. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  144. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  145. package/dist/serialization/resources/blocks/client/index.d.ts +1 -0
  146. package/dist/serialization/resources/blocks/client/index.js +2 -1
  147. package/dist/serialization/resources/{agents/client/createArchivalMemory.d.ts → blocks/client/listAgentsForBlock.d.ts} +3 -3
  148. package/dist/serialization/resources/blocks/client/listAgentsForBlock.js +42 -0
  149. package/dist/serialization/types/AssistantMessage.d.ts +2 -1
  150. package/dist/serialization/types/AssistantMessage.js +2 -1
  151. package/dist/serialization/types/AssistantMessageContent.d.ts +11 -0
  152. package/dist/serialization/types/AssistantMessageContent.js +42 -0
  153. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  154. package/dist/serialization/types/LlmConfig.js +1 -0
  155. package/dist/serialization/types/Message.d.ts +2 -1
  156. package/dist/serialization/types/Message.js +2 -1
  157. package/dist/serialization/types/MessageCreate.d.ts +2 -1
  158. package/dist/serialization/types/MessageCreate.js +2 -1
  159. package/dist/serialization/types/MessageCreateContent.d.ts +11 -0
  160. package/dist/serialization/types/MessageCreateContent.js +42 -0
  161. package/dist/serialization/types/SystemMessage.d.ts +2 -1
  162. package/dist/serialization/types/SystemMessage.js +2 -1
  163. package/dist/serialization/types/SystemMessageContent.d.ts +11 -0
  164. package/dist/serialization/types/SystemMessageContent.js +42 -0
  165. package/dist/serialization/types/TextContent.d.ts +13 -0
  166. package/dist/serialization/types/TextContent.js +44 -0
  167. package/dist/serialization/types/UserMessage.d.ts +2 -1
  168. package/dist/serialization/types/UserMessage.js +2 -1
  169. package/dist/serialization/types/UserMessageContent.d.ts +11 -0
  170. package/dist/serialization/types/UserMessageContent.js +42 -0
  171. package/dist/serialization/types/index.d.ts +5 -0
  172. package/dist/serialization/types/index.js +5 -0
  173. package/dist/version.d.ts +1 -1
  174. package/dist/version.js +1 -1
  175. package/package.json +1 -1
  176. package/reference.md +487 -895
  177. package/serialization/resources/agents/client/index.d.ts +0 -3
  178. package/serialization/resources/agents/client/index.js +1 -4
  179. package/serialization/resources/agents/client/requests/index.d.ts +0 -1
  180. package/serialization/resources/agents/client/requests/index.js +1 -3
  181. package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
  182. package/serialization/resources/agents/{client/listArchivalMemory.js → resources/archivalMemory/client/create.js} +2 -2
  183. package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
  184. package/serialization/resources/agents/resources/archivalMemory/client/index.js +42 -0
  185. package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
  186. package/serialization/resources/agents/{client/createArchivalMemory.js → resources/archivalMemory/client/list.js} +2 -2
  187. package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
  188. package/{dist/serialization/resources/agents → serialization/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +1 -1
  189. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
  190. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
  191. package/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
  192. package/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
  193. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -0
  194. package/serialization/resources/agents/resources/coreMemory/client/index.js +37 -0
  195. package/serialization/resources/agents/resources/coreMemory/client/listBlocks.d.ts +11 -0
  196. package/{dist/serialization/resources/agents/client/listCoreMemoryBlocks.js → serialization/resources/agents/resources/coreMemory/client/listBlocks.js} +2 -2
  197. package/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
  198. package/serialization/resources/agents/resources/coreMemory/index.js +17 -0
  199. package/serialization/resources/agents/resources/index.d.ts +3 -0
  200. package/serialization/resources/agents/resources/index.js +4 -1
  201. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -1
  202. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -1
  203. package/serialization/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +11 -0
  204. package/serialization/resources/agents/resources/messages/types/MessageUpdateContent.js +42 -0
  205. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  206. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  207. package/serialization/resources/blocks/client/index.d.ts +1 -0
  208. package/serialization/resources/blocks/client/index.js +2 -1
  209. package/{dist/serialization/resources/agents/client/listArchivalMemory.d.ts → serialization/resources/blocks/client/listAgentsForBlock.d.ts} +3 -3
  210. package/serialization/resources/blocks/client/listAgentsForBlock.js +42 -0
  211. package/serialization/types/AssistantMessage.d.ts +2 -1
  212. package/serialization/types/AssistantMessage.js +2 -1
  213. package/serialization/types/AssistantMessageContent.d.ts +11 -0
  214. package/serialization/types/AssistantMessageContent.js +42 -0
  215. package/serialization/types/LlmConfig.d.ts +1 -0
  216. package/serialization/types/LlmConfig.js +1 -0
  217. package/serialization/types/Message.d.ts +2 -1
  218. package/serialization/types/Message.js +2 -1
  219. package/serialization/types/MessageCreate.d.ts +2 -1
  220. package/serialization/types/MessageCreate.js +2 -1
  221. package/serialization/types/MessageCreateContent.d.ts +11 -0
  222. package/serialization/types/MessageCreateContent.js +42 -0
  223. package/serialization/types/SystemMessage.d.ts +2 -1
  224. package/serialization/types/SystemMessage.js +2 -1
  225. package/serialization/types/SystemMessageContent.d.ts +11 -0
  226. package/serialization/types/SystemMessageContent.js +42 -0
  227. package/serialization/types/TextContent.d.ts +13 -0
  228. package/serialization/types/TextContent.js +44 -0
  229. package/serialization/types/UserMessage.d.ts +2 -1
  230. package/serialization/types/UserMessage.js +2 -1
  231. package/serialization/types/UserMessageContent.d.ts +11 -0
  232. package/serialization/types/UserMessageContent.js +42 -0
  233. package/serialization/types/index.d.ts +5 -0
  234. package/serialization/types/index.js +5 -0
  235. package/version.d.ts +1 -1
  236. package/version.js +1 -1
  237. package/dist/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +0 -11
  238. package/dist/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +0 -12
  239. package/serialization/resources/agents/client/createArchivalMemory.d.ts +0 -11
  240. package/serialization/resources/agents/client/listArchivalMemory.d.ts +0 -11
  241. package/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +0 -11
  242. package/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +0 -12
  243. /package/api/resources/agents/{client/requests/CreateArchivalMemory.js → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js} +0 -0
  244. /package/api/resources/agents/{client → resources/archivalMemory/client}/requests/CreateArchivalMemory.d.ts +0 -0
  245. /package/{dist/api/resources/agents → api/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +0 -0
  246. /package/api/resources/agents/{client/requests/ListArchivalMemoryRequest.js → resources/messages/types/MessageUpdateContent.js} +0 -0
  247. /package/{dist/api/resources/agents/client/requests/ListArchivalMemoryRequest.js → api/types/AssistantMessageContent.js} +0 -0
  248. /package/dist/api/resources/agents/{client → resources/archivalMemory/client}/requests/CreateArchivalMemory.d.ts +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.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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" }),
@@ -275,7 +275,7 @@ class Tools {
275
275
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
276
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/"),
277
277
  method: "GET",
278
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
279
279
  contentType: "application/json",
280
280
  queryParameters: _queryParams,
281
281
  requestType: "json",
@@ -343,7 +343,7 @@ class Tools {
343
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
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/"),
345
345
  method: "POST",
346
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
347
347
  contentType: "application/json",
348
348
  requestType: "json",
349
349
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -411,7 +411,7 @@ class Tools {
411
411
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
412
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/"),
413
413
  method: "PUT",
414
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
415
415
  contentType: "application/json",
416
416
  requestType: "json",
417
417
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -476,7 +476,7 @@ class Tools {
476
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
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"),
478
478
  method: "POST",
479
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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
480
  contentType: "application/json",
481
481
  requestType: "json",
482
482
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -546,7 +546,7 @@ class Tools {
546
546
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
547
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"),
548
548
  method: "POST",
549
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
550
550
  contentType: "application/json",
551
551
  requestType: "json",
552
552
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -611,7 +611,7 @@ class Tools {
611
611
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
612
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"),
613
613
  method: "GET",
614
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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
615
  contentType: "application/json",
616
616
  requestType: "json",
617
617
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -676,7 +676,7 @@ class Tools {
676
676
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
677
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`),
678
678
  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.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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
680
  contentType: "application/json",
681
681
  requestType: "json",
682
682
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -741,7 +741,7 @@ class Tools {
741
741
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
742
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)}`),
743
743
  method: "POST",
744
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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
745
  contentType: "application/json",
746
746
  requestType: "json",
747
747
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  export interface AssistantMessage {
5
6
  id: string;
6
7
  date: Date;
7
8
  messageType: "assistant_message";
8
- assistantMessage: string;
9
+ content: Letta.AssistantMessageContent;
9
10
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type AssistantMessageContent = string | Letta.TextContent[];
@@ -12,6 +12,7 @@ import * as Letta from "../index";
12
12
  * model_wrapper (str): The wrapper for the model. This is used to wrap additional text around the input/output of the model. This is useful for text-to-text completions, such as the Completions API in OpenAI.
13
13
  * context_window (int): The context window size for the model.
14
14
  * put_inner_thoughts_in_kwargs (bool): Puts `inner_thoughts` as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.
15
+ * temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.
15
16
  */
16
17
  export interface LlmConfig {
17
18
  /** LLM model name. */
@@ -28,4 +29,6 @@ export interface LlmConfig {
28
29
  putInnerThoughtsInKwargs?: boolean;
29
30
  /** The handle for this config, in the format provider/model-name. */
30
31
  handle?: string;
32
+ /** The temperature to use when generating text with the model. A higher temperature will result in more random text. */
33
+ temperature?: number;
31
34
  }
@@ -30,8 +30,8 @@ export interface Message {
30
30
  id?: string;
31
31
  /** The role of the participant. */
32
32
  role: Letta.MessageRole;
33
- /** The text of the message. */
34
- text?: string;
33
+ /** The content of the message. */
34
+ content?: Letta.TextContent[];
35
35
  /** The unique identifier of the agent. */
36
36
  agentId?: string;
37
37
  /** The model used to make the function call. */
@@ -8,8 +8,8 @@ import * as Letta from "../index";
8
8
  export interface MessageCreate {
9
9
  /** The role of the participant. */
10
10
  role: Letta.MessageCreateRole;
11
- /** The text of the message. */
12
- text: string;
11
+ /** The content of the message. */
12
+ content: Letta.MessageCreateContent;
13
13
  /** The name of the participant. */
14
14
  name?: string;
15
15
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * The content of the message.
7
+ */
8
+ export type MessageCreateContent = string | Letta.TextContent[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * A message generated by the system. Never streamed back on a response, only used for cursor pagination.
6
7
  *
7
8
  * Attributes:
8
- * message (str): The message sent by the system
9
+ * content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
9
10
  * id (str): The ID of the message
10
11
  * date (datetime): The date the message was created in ISO format
11
12
  */
@@ -13,5 +14,5 @@ export interface SystemMessage {
13
14
  id: string;
14
15
  date: Date;
15
16
  messageType: "system_message";
16
- message: string;
17
+ content: Letta.SystemMessageContent;
17
18
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type SystemMessageContent = string | Letta.TextContent[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TextContent {
5
+ type: "text";
6
+ /** The text content of the message. */
7
+ text: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * A message sent by the user. Never streamed back on a response, only used for cursor pagination.
6
7
  *
7
8
  * Attributes:
8
- * message (str): The message sent by the user
9
+ * content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
9
10
  * id (str): The ID of the message
10
11
  * date (datetime): The date the message was created in ISO format
11
12
  */
@@ -13,5 +14,5 @@ export interface UserMessage {
13
14
  id: string;
14
15
  date: Date;
15
16
  messageType: "user_message";
16
- message: string;
17
+ content: Letta.UserMessageContent;
17
18
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type UserMessageContent = string | Letta.TextContent[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +12,7 @@ export * from "./AgentType";
12
12
  export * from "./AppAuthSchemeAuthMode";
13
13
  export * from "./AppAuthScheme";
14
14
  export * from "./AppModel";
15
+ export * from "./AssistantMessageContent";
15
16
  export * from "./AssistantMessage";
16
17
  export * from "./AuthRequest";
17
18
  export * from "./AuthResponse";
@@ -46,6 +47,7 @@ export * from "./LocalSandboxConfig";
46
47
  export * from "./Memory";
47
48
  export * from "./Message";
48
49
  export * from "./MessageCreateRole";
50
+ export * from "./MessageCreateContent";
49
51
  export * from "./MessageCreate";
50
52
  export * from "./MessageRole";
51
53
  export * from "./Organization";
@@ -64,8 +66,10 @@ export * from "./SandboxEnvironmentVariableCreate";
64
66
  export * from "./SandboxEnvironmentVariableUpdate";
65
67
  export * from "./SandboxType";
66
68
  export * from "./Source";
69
+ export * from "./SystemMessageContent";
67
70
  export * from "./SystemMessage";
68
71
  export * from "./TerminalToolRule";
72
+ export * from "./TextContent";
69
73
  export * from "./Tool";
70
74
  export * from "./ToolCall";
71
75
  export * from "./ToolCallDelta";
@@ -79,6 +83,7 @@ export * from "./ToolType";
79
83
  export * from "./UsageStatistics";
80
84
  export * from "./User";
81
85
  export * from "./UserCreate";
86
+ export * from "./UserMessageContent";
82
87
  export * from "./UserMessage";
83
88
  export * from "./UserUpdate";
84
89
  export * from "./ValidationErrorLocItem";
@@ -28,6 +28,7 @@ __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("./AssistantMessageContent"), exports);
31
32
  __exportStar(require("./AssistantMessage"), exports);
32
33
  __exportStar(require("./AuthRequest"), exports);
33
34
  __exportStar(require("./AuthResponse"), exports);
@@ -62,6 +63,7 @@ __exportStar(require("./LocalSandboxConfig"), exports);
62
63
  __exportStar(require("./Memory"), exports);
63
64
  __exportStar(require("./Message"), exports);
64
65
  __exportStar(require("./MessageCreateRole"), exports);
66
+ __exportStar(require("./MessageCreateContent"), exports);
65
67
  __exportStar(require("./MessageCreate"), exports);
66
68
  __exportStar(require("./MessageRole"), exports);
67
69
  __exportStar(require("./Organization"), exports);
@@ -80,8 +82,10 @@ __exportStar(require("./SandboxEnvironmentVariableCreate"), exports);
80
82
  __exportStar(require("./SandboxEnvironmentVariableUpdate"), exports);
81
83
  __exportStar(require("./SandboxType"), exports);
82
84
  __exportStar(require("./Source"), exports);
85
+ __exportStar(require("./SystemMessageContent"), exports);
83
86
  __exportStar(require("./SystemMessage"), exports);
84
87
  __exportStar(require("./TerminalToolRule"), exports);
88
+ __exportStar(require("./TextContent"), exports);
85
89
  __exportStar(require("./Tool"), exports);
86
90
  __exportStar(require("./ToolCall"), exports);
87
91
  __exportStar(require("./ToolCallDelta"), exports);
@@ -95,6 +99,7 @@ __exportStar(require("./ToolType"), exports);
95
99
  __exportStar(require("./UsageStatistics"), exports);
96
100
  __exportStar(require("./User"), exports);
97
101
  __exportStar(require("./UserCreate"), exports);
102
+ __exportStar(require("./UserMessageContent"), exports);
98
103
  __exportStar(require("./UserMessage"), exports);
99
104
  __exportStar(require("./UserUpdate"), exports);
100
105
  __exportStar(require("./ValidationErrorLocItem"), exports);
@@ -7,11 +7,11 @@ import * as Letta from "../../../index";
7
7
  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
+ import { CoreMemory } from "../resources/coreMemory/client/Client";
11
+ import { ArchivalMemory } from "../resources/archivalMemory/client/Client";
10
12
  import { Messages } from "../resources/messages/client/Client";
11
13
  import { Templates } from "../resources/templates/client/Client";
12
14
  import { MemoryVariables } from "../resources/memoryVariables/client/Client";
13
- import { CoreMemory } from "../resources/coreMemory/client/Client";
14
- import { ArchivalMemory } from "../resources/archivalMemory/client/Client";
15
15
  export declare namespace Agents {
16
16
  interface Options {
17
17
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -36,20 +36,20 @@ export declare class Agents {
36
36
  protected _context: Context | undefined;
37
37
  protected _tools: Tools | undefined;
38
38
  protected _sources: Sources | undefined;
39
+ protected _coreMemory: CoreMemory | undefined;
40
+ protected _archivalMemory: ArchivalMemory | undefined;
39
41
  protected _messages: Messages | undefined;
40
42
  protected _templates: Templates | undefined;
41
43
  protected _memoryVariables: MemoryVariables | undefined;
42
- protected _coreMemory: CoreMemory | undefined;
43
- protected _archivalMemory: ArchivalMemory | undefined;
44
44
  constructor(_options?: Agents.Options);
45
45
  get context(): Context;
46
46
  get tools(): Tools;
47
47
  get sources(): Sources;
48
+ get coreMemory(): CoreMemory;
49
+ get archivalMemory(): ArchivalMemory;
48
50
  get messages(): Messages;
49
51
  get templates(): Templates;
50
52
  get memoryVariables(): MemoryVariables;
51
- get coreMemory(): CoreMemory;
52
- get archivalMemory(): ArchivalMemory;
53
53
  /**
54
54
  * List all agents associated with a given user.
55
55
  * This endpoint retrieves a list of all agents and their configurations associated with the specified user ID.
@@ -112,125 +112,6 @@ export declare class Agents {
112
112
  * await client.agents.modify("agent_id")
113
113
  */
114
114
  modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
115
- /**
116
- * Retrieve the memory state of a specific agent.
117
- * This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.
118
- *
119
- * @param {string} agentId
120
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
121
- *
122
- * @throws {@link Letta.UnprocessableEntityError}
123
- *
124
- * @example
125
- * await client.agents.retrieveAgentMemory("agent_id")
126
- */
127
- retrieveAgentMemory(agentId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Memory>;
128
- /**
129
- * Retrieve a memory block from an agent.
130
- *
131
- * @param {string} agentId
132
- * @param {string} blockLabel
133
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
134
- *
135
- * @throws {@link Letta.UnprocessableEntityError}
136
- *
137
- * @example
138
- * await client.agents.retrieveCoreMemoryBlock("agent_id", "block_label")
139
- */
140
- retrieveCoreMemoryBlock(agentId: string, blockLabel: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Block>;
141
- /**
142
- * Updates a memory block of an agent.
143
- *
144
- * @param {string} agentId
145
- * @param {string} blockLabel
146
- * @param {Letta.BlockUpdate} request
147
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
148
- *
149
- * @throws {@link Letta.UnprocessableEntityError}
150
- *
151
- * @example
152
- * await client.agents.modifyCoreMemoryBlock("agent_id", "block_label", {})
153
- */
154
- modifyCoreMemoryBlock(agentId: string, blockLabel: string, request: Letta.BlockUpdate, requestOptions?: Agents.RequestOptions): Promise<Letta.Block>;
155
- /**
156
- * Retrieve the memory blocks of a specific agent.
157
- *
158
- * @param {string} agentId
159
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
160
- *
161
- * @throws {@link Letta.UnprocessableEntityError}
162
- *
163
- * @example
164
- * await client.agents.listCoreMemoryBlocks("agent_id")
165
- */
166
- listCoreMemoryBlocks(agentId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Block[]>;
167
- /**
168
- * Attach a block to an agent.
169
- *
170
- * @param {string} agentId
171
- * @param {string} blockId
172
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
173
- *
174
- * @throws {@link Letta.UnprocessableEntityError}
175
- *
176
- * @example
177
- * await client.agents.attachCoreMemoryBlock("agent_id", "block_id")
178
- */
179
- attachCoreMemoryBlock(agentId: string, blockId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
180
- /**
181
- * Detach a block from an agent.
182
- *
183
- * @param {string} agentId
184
- * @param {string} blockId
185
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
186
- *
187
- * @throws {@link Letta.UnprocessableEntityError}
188
- *
189
- * @example
190
- * await client.agents.detachCoreMemoryBlock("agent_id", "block_id")
191
- */
192
- detachCoreMemoryBlock(agentId: string, blockId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
193
- /**
194
- * Retrieve the memories in an agent's archival memory store (paginated query).
195
- *
196
- * @param {string} agentId
197
- * @param {Letta.ListArchivalMemoryRequest} request
198
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
199
- *
200
- * @throws {@link Letta.UnprocessableEntityError}
201
- *
202
- * @example
203
- * await client.agents.listArchivalMemory("agent_id")
204
- */
205
- listArchivalMemory(agentId: string, request?: Letta.ListArchivalMemoryRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.Passage[]>;
206
- /**
207
- * Insert a memory into an agent's archival memory store.
208
- *
209
- * @param {string} agentId
210
- * @param {Letta.CreateArchivalMemory} request
211
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
212
- *
213
- * @throws {@link Letta.UnprocessableEntityError}
214
- *
215
- * @example
216
- * await client.agents.createArchivalMemory("agent_id", {
217
- * text: "text"
218
- * })
219
- */
220
- createArchivalMemory(agentId: string, request: Letta.CreateArchivalMemory, requestOptions?: Agents.RequestOptions): Promise<Letta.Passage[]>;
221
- /**
222
- * Delete a memory from an agent's archival memory store.
223
- *
224
- * @param {string} agentId
225
- * @param {string} memoryId
226
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
227
- *
228
- * @throws {@link Letta.UnprocessableEntityError}
229
- *
230
- * @example
231
- * await client.agents.deleteArchivalMemory("agent_id", "memory_id")
232
- */
233
- deleteArchivalMemory(agentId: string, memoryId: string, requestOptions?: Agents.RequestOptions): Promise<unknown>;
234
115
  /**
235
116
  * Resets the messages for an agent
236
117
  *