@letta-ai/letta-client 0.0.68656 → 0.0.68658

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 (337) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +45 -40
  3. package/README.md +9 -9
  4. package/api/resources/agents/client/Client.js +9 -9
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.js +4 -4
  9. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  13. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  14. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  15. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  16. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  17. package/api/resources/archives/client/Client.d.ts +78 -0
  18. package/api/resources/archives/client/Client.js +325 -0
  19. package/api/resources/archives/client/index.d.ts +1 -0
  20. package/api/resources/archives/client/index.js +17 -0
  21. package/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  22. package/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  23. package/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  24. package/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  25. package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  26. package/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  27. package/api/resources/archives/client/requests/index.d.ts +3 -0
  28. package/api/resources/archives/client/requests/index.js +2 -0
  29. package/api/resources/archives/index.d.ts +2 -0
  30. package/api/resources/archives/index.js +18 -0
  31. package/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  32. package/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  33. package/api/resources/archives/types/index.d.ts +1 -0
  34. package/api/resources/archives/types/index.js +17 -0
  35. package/api/resources/batches/client/Client.js +4 -4
  36. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  37. package/api/resources/blocks/client/Client.js +6 -6
  38. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  39. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  40. package/api/resources/folders/client/Client.js +8 -8
  41. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  42. package/api/resources/folders/resources/files/client/Client.js +3 -3
  43. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  44. package/api/resources/groups/client/Client.js +6 -6
  45. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  46. package/api/resources/health/client/Client.js +1 -1
  47. package/api/resources/identities/client/Client.js +7 -7
  48. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  49. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  50. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  51. package/api/resources/index.d.ts +3 -0
  52. package/api/resources/index.js +4 -1
  53. package/api/resources/jobs/client/Client.d.ts +0 -1
  54. package/api/resources/jobs/client/Client.js +9 -7
  55. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  56. package/api/resources/models/client/Client.js +2 -2
  57. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  58. package/api/resources/projects/client/Client.js +1 -1
  59. package/api/resources/providers/client/Client.js +6 -6
  60. package/api/resources/runs/client/Client.js +15 -7
  61. package/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  62. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  63. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  64. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  65. package/api/resources/sources/client/Client.js +10 -10
  66. package/api/resources/sources/resources/files/client/Client.js +3 -3
  67. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  68. package/api/resources/steps/client/Client.d.ts +3 -0
  69. package/api/resources/steps/client/Client.js +7 -2
  70. package/api/resources/steps/index.d.ts +1 -1
  71. package/api/resources/steps/index.js +1 -1
  72. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  73. package/api/resources/steps/resources/index.d.ts +3 -0
  74. package/api/resources/steps/resources/index.js +4 -1
  75. package/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
  76. package/api/resources/steps/resources/messages/client/Client.js +166 -0
  77. package/api/resources/steps/resources/messages/client/index.d.ts +1 -0
  78. package/api/resources/steps/resources/messages/client/index.js +17 -0
  79. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  80. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
  81. package/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
  82. package/api/resources/steps/resources/messages/client/requests/index.js +2 -0
  83. package/api/resources/steps/resources/messages/index.d.ts +2 -0
  84. package/api/resources/steps/resources/messages/index.js +18 -0
  85. package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  86. package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
  87. package/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
  88. package/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
  89. package/api/resources/steps/resources/messages/types/index.d.ts +2 -0
  90. package/api/resources/steps/resources/messages/types/index.js +18 -0
  91. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  92. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  93. package/api/resources/tags/client/Client.js +1 -1
  94. package/api/resources/telemetry/client/Client.js +1 -1
  95. package/api/resources/templates/client/Client.js +9 -9
  96. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  97. package/api/resources/tools/client/Client.js +20 -20
  98. package/api/resources/voice/client/Client.js +1 -1
  99. package/api/types/Archive.d.ts +35 -0
  100. package/api/types/Archive.js +5 -0
  101. package/api/types/BatchJob.d.ts +2 -0
  102. package/api/types/ChildToolRule.d.ts +1 -1
  103. package/api/types/ConditionalToolRule.d.ts +1 -1
  104. package/api/types/ContinueToolRule.d.ts +1 -1
  105. package/api/types/InitToolRule.d.ts +1 -1
  106. package/api/types/Job.d.ts +2 -0
  107. package/api/types/MaxCountPerStepToolRule.d.ts +1 -1
  108. package/api/types/Memory.d.ts +3 -1
  109. package/api/types/MemoryAgentType.d.ts +8 -0
  110. package/api/types/MemoryAgentType.js +5 -0
  111. package/api/types/ParentToolRule.d.ts +1 -1
  112. package/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
  113. package/api/types/RequiresApprovalToolRule.d.ts +1 -1
  114. package/api/types/Run.d.ts +2 -0
  115. package/api/types/Step.d.ts +1 -1
  116. package/api/types/TerminalToolRule.d.ts +1 -1
  117. package/api/types/index.d.ts +2 -0
  118. package/api/types/index.js +2 -0
  119. package/dist/Client.d.ts +3 -0
  120. package/dist/Client.js +45 -40
  121. package/dist/api/resources/agents/client/Client.js +9 -9
  122. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  123. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  124. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  125. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  126. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  127. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  128. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  129. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  130. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  131. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  132. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  133. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  134. package/dist/api/resources/archives/client/Client.d.ts +78 -0
  135. package/dist/api/resources/archives/client/Client.js +325 -0
  136. package/dist/api/resources/archives/client/index.d.ts +1 -0
  137. package/dist/api/resources/archives/client/index.js +17 -0
  138. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  139. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  140. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  141. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  142. package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  143. package/dist/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  144. package/dist/api/resources/archives/client/requests/index.d.ts +3 -0
  145. package/dist/api/resources/archives/client/requests/index.js +2 -0
  146. package/dist/api/resources/archives/index.d.ts +2 -0
  147. package/dist/api/resources/archives/index.js +18 -0
  148. package/dist/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  149. package/dist/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  150. package/dist/api/resources/archives/types/index.d.ts +1 -0
  151. package/dist/api/resources/archives/types/index.js +17 -0
  152. package/dist/api/resources/batches/client/Client.js +4 -4
  153. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  154. package/dist/api/resources/blocks/client/Client.js +6 -6
  155. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  156. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  157. package/dist/api/resources/folders/client/Client.js +8 -8
  158. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  159. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  160. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  161. package/dist/api/resources/groups/client/Client.js +6 -6
  162. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  163. package/dist/api/resources/health/client/Client.js +1 -1
  164. package/dist/api/resources/identities/client/Client.js +7 -7
  165. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  166. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  167. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  168. package/dist/api/resources/index.d.ts +3 -0
  169. package/dist/api/resources/index.js +4 -1
  170. package/dist/api/resources/jobs/client/Client.d.ts +0 -1
  171. package/dist/api/resources/jobs/client/Client.js +9 -7
  172. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  173. package/dist/api/resources/models/client/Client.js +2 -2
  174. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  175. package/dist/api/resources/projects/client/Client.js +1 -1
  176. package/dist/api/resources/providers/client/Client.js +6 -6
  177. package/dist/api/resources/runs/client/Client.js +15 -7
  178. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  179. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  180. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  181. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  182. package/dist/api/resources/sources/client/Client.js +10 -10
  183. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  184. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  185. package/dist/api/resources/steps/client/Client.d.ts +3 -0
  186. package/dist/api/resources/steps/client/Client.js +7 -2
  187. package/dist/api/resources/steps/index.d.ts +1 -1
  188. package/dist/api/resources/steps/index.js +1 -1
  189. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  190. package/dist/api/resources/steps/resources/index.d.ts +3 -0
  191. package/dist/api/resources/steps/resources/index.js +4 -1
  192. package/dist/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
  193. package/dist/api/resources/steps/resources/messages/client/Client.js +166 -0
  194. package/dist/api/resources/steps/resources/messages/client/index.d.ts +1 -0
  195. package/dist/api/resources/steps/resources/messages/client/index.js +17 -0
  196. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  197. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
  198. package/dist/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
  199. package/dist/api/resources/steps/resources/messages/client/requests/index.js +2 -0
  200. package/dist/api/resources/steps/resources/messages/index.d.ts +2 -0
  201. package/dist/api/resources/steps/resources/messages/index.js +18 -0
  202. package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  203. package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
  204. package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
  205. package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
  206. package/dist/api/resources/steps/resources/messages/types/index.d.ts +2 -0
  207. package/dist/api/resources/steps/resources/messages/types/index.js +18 -0
  208. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  209. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  210. package/dist/api/resources/tags/client/Client.js +1 -1
  211. package/dist/api/resources/telemetry/client/Client.js +1 -1
  212. package/dist/api/resources/templates/client/Client.js +9 -9
  213. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  214. package/dist/api/resources/tools/client/Client.js +20 -20
  215. package/dist/api/resources/voice/client/Client.js +1 -1
  216. package/dist/api/types/Archive.d.ts +35 -0
  217. package/dist/api/types/Archive.js +5 -0
  218. package/dist/api/types/BatchJob.d.ts +2 -0
  219. package/dist/api/types/ChildToolRule.d.ts +1 -1
  220. package/dist/api/types/ConditionalToolRule.d.ts +1 -1
  221. package/dist/api/types/ContinueToolRule.d.ts +1 -1
  222. package/dist/api/types/InitToolRule.d.ts +1 -1
  223. package/dist/api/types/Job.d.ts +2 -0
  224. package/dist/api/types/MaxCountPerStepToolRule.d.ts +1 -1
  225. package/dist/api/types/Memory.d.ts +3 -1
  226. package/dist/api/types/MemoryAgentType.d.ts +8 -0
  227. package/dist/api/types/MemoryAgentType.js +5 -0
  228. package/dist/api/types/ParentToolRule.d.ts +1 -1
  229. package/dist/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
  230. package/dist/api/types/RequiresApprovalToolRule.d.ts +1 -1
  231. package/dist/api/types/Run.d.ts +2 -0
  232. package/dist/api/types/Step.d.ts +1 -1
  233. package/dist/api/types/TerminalToolRule.d.ts +1 -1
  234. package/dist/api/types/index.d.ts +2 -0
  235. package/dist/api/types/index.js +2 -0
  236. package/dist/serialization/resources/archives/client/index.d.ts +2 -0
  237. package/dist/serialization/resources/archives/client/index.js +41 -0
  238. package/dist/serialization/resources/archives/client/listArchives.d.ts +11 -0
  239. package/dist/serialization/resources/archives/client/listArchives.js +42 -0
  240. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  241. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  242. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  243. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  244. package/dist/serialization/resources/archives/client/requests/index.d.ts +2 -0
  245. package/dist/serialization/resources/archives/client/requests/index.js +7 -0
  246. package/dist/serialization/resources/archives/index.d.ts +2 -0
  247. package/dist/serialization/resources/archives/index.js +18 -0
  248. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  249. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  250. package/dist/serialization/resources/archives/types/index.d.ts +1 -0
  251. package/dist/serialization/resources/archives/types/index.js +17 -0
  252. package/dist/serialization/resources/index.d.ts +3 -0
  253. package/dist/serialization/resources/index.js +4 -1
  254. package/dist/serialization/resources/steps/index.d.ts +1 -1
  255. package/dist/serialization/resources/steps/index.js +1 -1
  256. package/dist/serialization/resources/steps/resources/index.d.ts +2 -0
  257. package/dist/serialization/resources/steps/resources/index.js +3 -1
  258. package/dist/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
  259. package/dist/serialization/resources/steps/resources/messages/client/index.js +37 -0
  260. package/dist/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
  261. package/dist/serialization/resources/steps/resources/messages/client/list.js +42 -0
  262. package/dist/serialization/resources/steps/resources/messages/index.d.ts +2 -0
  263. package/dist/serialization/resources/steps/resources/messages/index.js +18 -0
  264. package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  265. package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
  266. package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
  267. package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
  268. package/dist/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
  269. package/dist/serialization/resources/steps/resources/messages/types/index.js +18 -0
  270. package/dist/serialization/types/Archive.d.ts +21 -0
  271. package/dist/serialization/types/Archive.js +52 -0
  272. package/dist/serialization/types/BatchJob.d.ts +2 -0
  273. package/dist/serialization/types/BatchJob.js +2 -0
  274. package/dist/serialization/types/Job.d.ts +2 -0
  275. package/dist/serialization/types/Job.js +2 -0
  276. package/dist/serialization/types/Memory.d.ts +2 -0
  277. package/dist/serialization/types/Memory.js +2 -0
  278. package/dist/serialization/types/MemoryAgentType.d.ts +11 -0
  279. package/dist/serialization/types/MemoryAgentType.js +42 -0
  280. package/dist/serialization/types/Run.d.ts +2 -0
  281. package/dist/serialization/types/Run.js +2 -0
  282. package/dist/serialization/types/index.d.ts +2 -0
  283. package/dist/serialization/types/index.js +2 -0
  284. package/dist/version.d.ts +1 -1
  285. package/dist/version.js +1 -1
  286. package/package.json +1 -1
  287. package/reference.md +274 -1
  288. package/serialization/resources/archives/client/index.d.ts +2 -0
  289. package/serialization/resources/archives/client/index.js +41 -0
  290. package/serialization/resources/archives/client/listArchives.d.ts +11 -0
  291. package/serialization/resources/archives/client/listArchives.js +42 -0
  292. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  293. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  294. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  295. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  296. package/serialization/resources/archives/client/requests/index.d.ts +2 -0
  297. package/serialization/resources/archives/client/requests/index.js +7 -0
  298. package/serialization/resources/archives/index.d.ts +2 -0
  299. package/serialization/resources/archives/index.js +18 -0
  300. package/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  301. package/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  302. package/serialization/resources/archives/types/index.d.ts +1 -0
  303. package/serialization/resources/archives/types/index.js +17 -0
  304. package/serialization/resources/index.d.ts +3 -0
  305. package/serialization/resources/index.js +4 -1
  306. package/serialization/resources/steps/index.d.ts +1 -1
  307. package/serialization/resources/steps/index.js +1 -1
  308. package/serialization/resources/steps/resources/index.d.ts +2 -0
  309. package/serialization/resources/steps/resources/index.js +3 -1
  310. package/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
  311. package/serialization/resources/steps/resources/messages/client/index.js +37 -0
  312. package/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
  313. package/serialization/resources/steps/resources/messages/client/list.js +42 -0
  314. package/serialization/resources/steps/resources/messages/index.d.ts +2 -0
  315. package/serialization/resources/steps/resources/messages/index.js +18 -0
  316. package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  317. package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
  318. package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
  319. package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
  320. package/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
  321. package/serialization/resources/steps/resources/messages/types/index.js +18 -0
  322. package/serialization/types/Archive.d.ts +21 -0
  323. package/serialization/types/Archive.js +52 -0
  324. package/serialization/types/BatchJob.d.ts +2 -0
  325. package/serialization/types/BatchJob.js +2 -0
  326. package/serialization/types/Job.d.ts +2 -0
  327. package/serialization/types/Job.js +2 -0
  328. package/serialization/types/Memory.d.ts +2 -0
  329. package/serialization/types/Memory.js +2 -0
  330. package/serialization/types/MemoryAgentType.d.ts +11 -0
  331. package/serialization/types/MemoryAgentType.js +42 -0
  332. package/serialization/types/Run.d.ts +2 -0
  333. package/serialization/types/Run.js +2 -0
  334. package/serialization/types/index.d.ts +2 -0
  335. package/serialization/types/index.js +2 -0
  336. package/version.d.ts +1 -1
  337. package/version.js +1 -1
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -348,7 +348,7 @@ class Tools {
348
348
  method: "GET",
349
349
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
350
350
  ? yield core.Supplier.get(this._options.project)
351
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
351
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
352
352
  contentType: "application/json",
353
353
  queryParameters: _queryParams,
354
354
  requestType: "json",
@@ -485,7 +485,7 @@ class Tools {
485
485
  method: "GET",
486
486
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
487
487
  ? yield core.Supplier.get(this._options.project)
488
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
488
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
489
489
  contentType: "application/json",
490
490
  queryParameters: _queryParams,
491
491
  requestType: "json",
@@ -564,7 +564,7 @@ class Tools {
564
564
  method: "POST",
565
565
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
566
566
  ? yield core.Supplier.get(this._options.project)
567
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
567
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
568
568
  contentType: "application/json",
569
569
  requestType: "json",
570
570
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -643,7 +643,7 @@ class Tools {
643
643
  method: "PUT",
644
644
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
645
645
  ? yield core.Supplier.get(this._options.project)
646
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
646
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
647
647
  contentType: "application/json",
648
648
  requestType: "json",
649
649
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -719,7 +719,7 @@ class Tools {
719
719
  method: "POST",
720
720
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
721
721
  ? yield core.Supplier.get(this._options.project)
722
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
722
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
723
723
  contentType: "application/json",
724
724
  requestType: "json",
725
725
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -800,7 +800,7 @@ class Tools {
800
800
  method: "POST",
801
801
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
802
802
  ? yield core.Supplier.get(this._options.project)
803
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
803
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
804
804
  contentType: "application/json",
805
805
  requestType: "json",
806
806
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -876,7 +876,7 @@ class Tools {
876
876
  method: "GET",
877
877
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
878
878
  ? yield core.Supplier.get(this._options.project)
879
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
879
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
880
880
  contentType: "application/json",
881
881
  requestType: "json",
882
882
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  method: "GET",
953
953
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
954
954
  ? yield core.Supplier.get(this._options.project)
955
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
955
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
956
956
  contentType: "application/json",
957
957
  requestType: "json",
958
958
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1028,7 +1028,7 @@ class Tools {
1028
1028
  method: "POST",
1029
1029
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1030
1030
  ? yield core.Supplier.get(this._options.project)
1031
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1031
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1032
1032
  contentType: "application/json",
1033
1033
  requestType: "json",
1034
1034
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1103,7 +1103,7 @@ class Tools {
1103
1103
  method: "GET",
1104
1104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1105
1105
  ? yield core.Supplier.get(this._options.project)
1106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1107
1107
  contentType: "application/json",
1108
1108
  requestType: "json",
1109
1109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1183,7 +1183,7 @@ class Tools {
1183
1183
  method: "PUT",
1184
1184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1185
1185
  ? yield core.Supplier.get(this._options.project)
1186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1187
1187
  contentType: "application/json",
1188
1188
  requestType: "json",
1189
1189
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1260,7 +1260,7 @@ class Tools {
1260
1260
  method: "GET",
1261
1261
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1262
1262
  ? yield core.Supplier.get(this._options.project)
1263
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1263
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1264
1264
  contentType: "application/json",
1265
1265
  requestType: "json",
1266
1266
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1337,7 +1337,7 @@ class Tools {
1337
1337
  method: "POST",
1338
1338
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1339
1339
  ? yield core.Supplier.get(this._options.project)
1340
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1340
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1341
1341
  contentType: "application/json",
1342
1342
  requestType: "json",
1343
1343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1413,7 +1413,7 @@ class Tools {
1413
1413
  method: "DELETE",
1414
1414
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1415
1415
  ? yield core.Supplier.get(this._options.project)
1416
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1416
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1417
1417
  contentType: "application/json",
1418
1418
  requestType: "json",
1419
1419
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1490,7 +1490,7 @@ class Tools {
1490
1490
  method: "PATCH",
1491
1491
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1492
1492
  ? yield core.Supplier.get(this._options.project)
1493
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1493
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1494
1494
  contentType: "application/json",
1495
1495
  requestType: "json",
1496
1496
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1572,7 +1572,7 @@ class Tools {
1572
1572
  method: "POST",
1573
1573
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1574
1574
  ? yield core.Supplier.get(this._options.project)
1575
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1575
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1576
1576
  contentType: "application/json",
1577
1577
  requestType: "json",
1578
1578
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1633,7 +1633,7 @@ class Tools {
1633
1633
  method: "POST",
1634
1634
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1635
1635
  ? yield core.Supplier.get(this._options.project)
1636
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
1636
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
1637
1637
  contentType: "application/json",
1638
1638
  requestType: "json",
1639
1639
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -82,7 +82,7 @@ class Voice {
82
82
  method: "POST",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(request, {
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Representation of an archive - a collection of archival passages that can be shared between agents.
7
+ *
8
+ * Parameters:
9
+ * id (str): The unique identifier of the archive.
10
+ * name (str): The name of the archive.
11
+ * description (str): A description of the archive.
12
+ * organization_id (str): The organization this archive belongs to.
13
+ * created_at (datetime): The creation date of the archive.
14
+ * metadata (dict): Additional metadata for the archive.
15
+ */
16
+ export interface Archive {
17
+ /** The id of the user that made this object. */
18
+ createdById?: string;
19
+ /** The id of the user that made this object. */
20
+ lastUpdatedById?: string;
21
+ /** The creation date of the archive */
22
+ createdAt: Date;
23
+ /** The timestamp when the object was last updated. */
24
+ updatedAt?: Date;
25
+ /** The name of the archive */
26
+ name: string;
27
+ /** A description of the archive */
28
+ description?: string;
29
+ /** The vector database provider used for this archive's passages */
30
+ vectorDbProvider?: Letta.VectorDbProvider;
31
+ /** Additional metadata */
32
+ metadata?: Record<string, unknown>;
33
+ /** The human-friendly ID of the Archive */
34
+ id?: string;
35
+ }
@@ -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 });
@@ -15,6 +15,8 @@ export interface BatchJob {
15
15
  status?: Letta.JobStatus;
16
16
  /** The unix timestamp of when the job was completed. */
17
17
  completedAt?: Date;
18
+ /** The reason why the job was stopped. */
19
+ stopReason?: Letta.StopReasonType;
18
20
  /** The metadata of the job. */
19
21
  metadata?: Record<string, unknown>;
20
22
  jobType?: Letta.JobType;
@@ -8,7 +8,7 @@ export interface ChildToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "constrain_child_tools";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. */
11
+ /** Optional template string (ignored). */
12
12
  promptTemplate?: string;
13
13
  /** The children tools that can be invoked. */
14
14
  children: string[];
@@ -8,7 +8,7 @@ export interface ConditionalToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "conditional";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. */
11
+ /** Optional template string (ignored). */
12
12
  promptTemplate?: string;
13
13
  /** The default child tool to be called. If None, any tool can be called. */
14
14
  defaultChild?: string;
@@ -8,6 +8,6 @@ export interface ContinueToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "continue_loop";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. */
11
+ /** Optional template string (ignored). */
12
12
  promptTemplate?: string;
13
13
  }
@@ -8,6 +8,6 @@ export interface InitToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "run_first";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes. */
11
+ /** Optional template string (ignored). Rendering uses fast built-in formatting for performance. */
12
12
  promptTemplate?: string;
13
13
  }
@@ -25,6 +25,8 @@ export interface Job {
25
25
  status?: Letta.JobStatus;
26
26
  /** The unix timestamp of when the job was completed. */
27
27
  completedAt?: Date;
28
+ /** The reason why the job was stopped. */
29
+ stopReason?: Letta.StopReasonType;
28
30
  /** The metadata of the job. */
29
31
  metadata?: Record<string, unknown>;
30
32
  /** The type of the job. */
@@ -8,7 +8,7 @@ export interface MaxCountPerStepToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "max_count_per_step";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. */
11
+ /** Optional template string (ignored). */
12
12
  promptTemplate?: string;
13
13
  /** The max limit for the total number of times this tool can be invoked in a single step. */
14
14
  maxCountLimit: number;
@@ -6,10 +6,12 @@ import * as Letta from "../index";
6
6
  * Represents the in-context memory (i.e. Core memory) of the agent. This includes both the `Block` objects (labelled by sections), as well as tools to edit the blocks.
7
7
  */
8
8
  export interface Memory {
9
+ /** Agent type controlling prompt rendering. */
10
+ agentType?: Letta.MemoryAgentType;
9
11
  /** Memory blocks contained in the agent's in-context memory */
10
12
  blocks: Letta.Block[];
11
13
  /** Special blocks representing the agent's in-context memory of an attached file */
12
14
  fileBlocks?: Letta.FileBlock[];
13
- /** Jinja2 template for compiling memory blocks into a prompt string */
15
+ /** Deprecated. Ignored for performance. */
14
16
  promptTemplate?: string;
15
17
  }
@@ -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
+ * Agent type controlling prompt rendering.
7
+ */
8
+ export type MemoryAgentType = Letta.AgentType | string;
@@ -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 });
@@ -8,7 +8,7 @@ export interface ParentToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "parent_last_tool";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. */
11
+ /** Optional template string (ignored). */
12
12
  promptTemplate?: string;
13
13
  /** The children tools that can be invoked. */
14
14
  children: string[];
@@ -8,6 +8,6 @@ export interface RequiredBeforeExitToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "required_before_exit";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. */
11
+ /** Optional template string (ignored). */
12
12
  promptTemplate?: string;
13
13
  }
@@ -8,6 +8,6 @@ export interface RequiresApprovalToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "requires_approval";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes. */
11
+ /** Optional template string (ignored). Rendering uses fast built-in formatting for performance. */
12
12
  promptTemplate?: string;
13
13
  }
@@ -26,6 +26,8 @@ export interface Run {
26
26
  status?: Letta.JobStatus;
27
27
  /** The unix timestamp of when the job was completed. */
28
28
  completedAt?: Date;
29
+ /** The reason why the run was stopped. */
30
+ stopReason?: Letta.StopReasonType;
29
31
  /** The metadata of the job. */
30
32
  metadata?: Record<string, unknown>;
31
33
  jobType?: Letta.JobType;
@@ -39,7 +39,7 @@ export interface Step {
39
39
  tid?: string;
40
40
  /** The trace id of the agent step. */
41
41
  traceId?: string;
42
- /** The messages generated during this step. */
42
+ /** The messages generated during this step. Deprecated: use `GET /v1/steps/{step_id}/messages` endpoint instead */
43
43
  messages?: Letta.Message[];
44
44
  /** The feedback for this step. Must be either 'positive' or 'negative'. */
45
45
  feedback?: Letta.StepFeedback;
@@ -8,6 +8,6 @@ export interface TerminalToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "exit_loop";
11
- /** Optional Jinja2 template for generating agent prompt about this tool rule. */
11
+ /** Optional template string (ignored). */
12
12
  promptTemplate?: string;
13
13
  }
@@ -21,6 +21,7 @@ export * from "./ApprovalRequestMessage";
21
21
  export * from "./ApprovalResponseMessage";
22
22
  export * from "./ArchivalMemorySearchResponse";
23
23
  export * from "./ArchivalMemorySearchResult";
24
+ export * from "./Archive";
24
25
  export * from "./AssistantMessageContent";
25
26
  export * from "./AssistantMessage";
26
27
  export * from "./Audio";
@@ -191,6 +192,7 @@ export * from "./McpToolHealth";
191
192
  export * from "./ManagerType";
192
193
  export * from "./MaxCountPerStepToolRule";
193
194
  export * from "./MaxCountPerStepToolRuleSchema";
195
+ export * from "./MemoryAgentType";
194
196
  export * from "./Memory";
195
197
  export * from "./MessageContentItem";
196
198
  export * from "./Message";
@@ -37,6 +37,7 @@ __exportStar(require("./ApprovalRequestMessage"), exports);
37
37
  __exportStar(require("./ApprovalResponseMessage"), exports);
38
38
  __exportStar(require("./ArchivalMemorySearchResponse"), exports);
39
39
  __exportStar(require("./ArchivalMemorySearchResult"), exports);
40
+ __exportStar(require("./Archive"), exports);
40
41
  __exportStar(require("./AssistantMessageContent"), exports);
41
42
  __exportStar(require("./AssistantMessage"), exports);
42
43
  __exportStar(require("./Audio"), exports);
@@ -207,6 +208,7 @@ __exportStar(require("./McpToolHealth"), exports);
207
208
  __exportStar(require("./ManagerType"), exports);
208
209
  __exportStar(require("./MaxCountPerStepToolRule"), exports);
209
210
  __exportStar(require("./MaxCountPerStepToolRuleSchema"), exports);
211
+ __exportStar(require("./MemoryAgentType"), exports);
210
212
  __exportStar(require("./Memory"), exports);
211
213
  __exportStar(require("./MessageContentItem"), exports);
212
214
  __exportStar(require("./Message"), exports);
package/dist/Client.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
+ import { Archives } from "./api/resources/archives/client/Client";
6
7
  import { Tools } from "./api/resources/tools/client/Client";
7
8
  import { Sources } from "./api/resources/sources/client/Client";
8
9
  import { Folders } from "./api/resources/folders/client/Client";
@@ -48,6 +49,7 @@ export declare namespace LettaClient {
48
49
  }
49
50
  export declare class LettaClient {
50
51
  protected readonly _options: LettaClient.Options;
52
+ protected _archives: Archives | undefined;
51
53
  protected _tools: Tools | undefined;
52
54
  protected _sources: Sources | undefined;
53
55
  protected _folders: Folders | undefined;
@@ -69,6 +71,7 @@ export declare class LettaClient {
69
71
  protected _clientSideAccessTokens: ClientSideAccessTokens | undefined;
70
72
  protected _projects: Projects | undefined;
71
73
  constructor(_options?: LettaClient.Options);
74
+ get archives(): Archives;
72
75
  get tools(): Tools;
73
76
  get sources(): Sources;
74
77
  get folders(): Folders;