@letta-ai/letta-client 0.1.11 → 0.1.13

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 (822) hide show
  1. package/api/resources/agents/client/Client.d.ts +130 -14
  2. package/api/resources/agents/client/Client.js +631 -32
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  4. package/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → client/requests/ListArchivalMemoryRequest.d.ts} +1 -1
  5. package/api/resources/agents/client/requests/index.d.ts +2 -0
  6. package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +4 -33
  7. package/api/resources/agents/resources/archivalMemory/client/Client.js +27 -168
  8. package/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
  9. package/api/resources/agents/resources/archivalMemory/client/index.js +0 -15
  10. package/api/resources/agents/resources/context/client/Client.d.ts +2 -2
  11. package/api/resources/agents/resources/context/client/Client.js +3 -3
  12. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +15 -57
  13. package/api/resources/agents/resources/coreMemory/client/Client.js +65 -265
  14. package/api/resources/agents/resources/index.d.ts +0 -2
  15. package/api/resources/agents/resources/index.js +1 -3
  16. package/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -2
  17. package/api/resources/agents/resources/memoryVariables/client/Client.js +6 -6
  18. package/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.d.ts → MemoryVariablesListResponse.d.ts} +1 -1
  19. package/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
  20. package/api/resources/agents/resources/memoryVariables/types/index.js +1 -1
  21. package/api/resources/agents/resources/messages/client/Client.d.ts +7 -7
  22. package/api/resources/agents/resources/messages/client/Client.js +13 -13
  23. package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +1 -1
  24. package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -24
  25. package/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  26. package/api/resources/agents/resources/sources/client/Client.d.ts +28 -2
  27. package/api/resources/agents/resources/sources/client/Client.js +136 -4
  28. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  29. package/api/resources/agents/resources/tools/client/Client.d.ts +7 -7
  30. package/api/resources/agents/resources/tools/client/Client.js +13 -13
  31. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -15
  32. package/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +9 -0
  33. package/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +8 -0
  34. package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
  35. package/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +8 -0
  36. package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js → api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
  37. package/api/resources/agents/types/{AgentsSearchRequestSearchItemName.d.ts → AgentsSearchRequestSearchItemOne.d.ts} +3 -2
  38. package/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.d.ts → AgentsSearchRequestSearchItemOneOperator.d.ts} +2 -2
  39. package/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemOneOperator.js} +2 -2
  40. package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts → api/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts} +2 -1
  41. package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts → api/resources/agents/types/AgentsSearchRequestSearchItemZero.d.ts} +2 -1
  42. package/api/resources/agents/types/index.d.ts +7 -7
  43. package/api/resources/agents/types/index.js +7 -7
  44. package/api/resources/blocks/client/Client.d.ts +4 -34
  45. package/api/resources/blocks/client/Client.js +9 -141
  46. package/api/resources/blocks/client/requests/index.d.ts +0 -2
  47. package/api/resources/health/client/Client.js +1 -1
  48. package/api/resources/jobs/client/Client.d.ts +2 -2
  49. package/api/resources/jobs/client/Client.js +6 -6
  50. package/api/resources/models/client/Client.js +2 -2
  51. package/api/resources/providers/client/Client.d.ts +11 -11
  52. package/api/resources/providers/client/Client.js +32 -32
  53. package/api/resources/providers/client/requests/index.d.ts +1 -1
  54. package/api/resources/runs/client/Client.d.ts +7 -7
  55. package/api/resources/runs/client/Client.js +14 -14
  56. package/api/resources/runs/client/requests/{GetRunMessagesRequest.d.ts → ListRunMessagesRequest.d.ts} +1 -1
  57. package/api/resources/runs/client/requests/index.d.ts +1 -1
  58. package/api/resources/sources/client/Client.d.ts +4 -34
  59. package/api/resources/sources/client/Client.js +10 -154
  60. package/api/resources/sources/client/requests/index.d.ts +0 -2
  61. package/api/resources/sources/resources/files/client/Client.js +3 -3
  62. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  63. package/api/resources/tag/client/Client.js +1 -1
  64. package/api/resources/tools/client/Client.d.ts +9 -21
  65. package/api/resources/tools/client/Client.js +20 -85
  66. package/api/types/AgentState.d.ts +1 -1
  67. package/api/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +2 -1
  68. package/api/types/Block.d.ts +1 -1
  69. package/api/types/ChatCompletionMessageToolCall.d.ts +11 -0
  70. package/api/types/ContextWindowOverview.d.ts +2 -2
  71. package/api/types/{LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts → Function.d.ts} +4 -2
  72. package/{dist/api/types/FunctionSchema.d.ts → api/types/FunctionDefinition.d.ts} +4 -1
  73. package/api/types/FunctionTool.d.ts +10 -0
  74. package/api/types/LettaMessageUnion.d.ts +1 -21
  75. package/api/types/LettaUsageStatistics.d.ts +1 -0
  76. package/{dist/api/types/LettaSchemasMessageMessage.d.ts → api/types/Message.d.ts} +5 -3
  77. package/api/types/ReasoningMessage.d.ts +1 -0
  78. package/api/types/Source.d.ts +1 -1
  79. package/api/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +2 -1
  80. package/api/types/{LettaSchemasToolTool.d.ts → Tool.d.ts} +1 -1
  81. package/{dist/api/types/LettaSchemasLettaMessageToolCall.d.ts → api/types/ToolCall.d.ts} +1 -1
  82. package/api/types/ToolCallMessage.d.ts +1 -0
  83. package/api/types/ToolCallMessageToolCall.d.ts +1 -1
  84. package/api/types/ToolReturnMessage.d.ts +1 -0
  85. package/api/types/ToolType.d.ts +2 -1
  86. package/api/types/ToolType.js +1 -0
  87. package/api/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +2 -1
  88. package/api/types/index.d.ts +10 -43
  89. package/api/types/index.js +10 -43
  90. package/dist/api/resources/agents/client/Client.d.ts +130 -14
  91. package/dist/api/resources/agents/client/Client.js +631 -32
  92. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  93. package/dist/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → client/requests/ListArchivalMemoryRequest.d.ts} +1 -1
  94. package/dist/api/resources/agents/client/requests/index.d.ts +2 -0
  95. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +4 -33
  96. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +27 -168
  97. package/dist/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
  98. package/dist/api/resources/agents/resources/archivalMemory/client/index.js +0 -15
  99. package/dist/api/resources/agents/resources/context/client/Client.d.ts +2 -2
  100. package/dist/api/resources/agents/resources/context/client/Client.js +3 -3
  101. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +15 -57
  102. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +65 -265
  103. package/dist/api/resources/agents/resources/index.d.ts +0 -2
  104. package/dist/api/resources/agents/resources/index.js +1 -3
  105. package/dist/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -2
  106. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +6 -6
  107. package/dist/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.d.ts → MemoryVariablesListResponse.d.ts} +1 -1
  108. package/dist/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
  109. package/dist/api/resources/agents/resources/memoryVariables/types/index.js +1 -1
  110. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +7 -7
  111. package/dist/api/resources/agents/resources/messages/client/Client.js +13 -13
  112. package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +1 -1
  113. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -24
  114. package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  115. package/dist/api/resources/agents/resources/sources/client/Client.d.ts +28 -2
  116. package/dist/api/resources/agents/resources/sources/client/Client.js +136 -4
  117. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  118. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +7 -7
  119. package/dist/api/resources/agents/resources/tools/client/Client.js +13 -13
  120. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -15
  121. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +9 -0
  122. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +8 -0
  123. package/{api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
  124. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +8 -0
  125. package/{api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
  126. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemName.d.ts → AgentsSearchRequestSearchItemOne.d.ts} +3 -2
  127. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.d.ts → AgentsSearchRequestSearchItemOneOperator.d.ts} +2 -2
  128. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemOneOperator.js} +2 -2
  129. package/{api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts} +2 -1
  130. package/{api/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts → dist/api/resources/agents/types/AgentsSearchRequestSearchItemZero.d.ts} +2 -1
  131. package/dist/api/resources/agents/types/index.d.ts +7 -7
  132. package/dist/api/resources/agents/types/index.js +7 -7
  133. package/dist/api/resources/blocks/client/Client.d.ts +4 -34
  134. package/dist/api/resources/blocks/client/Client.js +9 -141
  135. package/dist/api/resources/blocks/client/requests/index.d.ts +0 -2
  136. package/dist/api/resources/health/client/Client.js +1 -1
  137. package/dist/api/resources/jobs/client/Client.d.ts +2 -2
  138. package/dist/api/resources/jobs/client/Client.js +6 -6
  139. package/dist/api/resources/models/client/Client.js +2 -2
  140. package/dist/api/resources/providers/client/Client.d.ts +11 -11
  141. package/dist/api/resources/providers/client/Client.js +32 -32
  142. package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
  143. package/dist/api/resources/runs/client/Client.d.ts +7 -7
  144. package/dist/api/resources/runs/client/Client.js +14 -14
  145. package/dist/api/resources/runs/client/requests/{GetRunMessagesRequest.d.ts → ListRunMessagesRequest.d.ts} +1 -1
  146. package/dist/api/resources/runs/client/requests/index.d.ts +1 -1
  147. package/dist/api/resources/sources/client/Client.d.ts +4 -34
  148. package/dist/api/resources/sources/client/Client.js +10 -154
  149. package/dist/api/resources/sources/client/requests/index.d.ts +0 -2
  150. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  151. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  152. package/dist/api/resources/tag/client/Client.js +1 -1
  153. package/dist/api/resources/tools/client/Client.d.ts +9 -21
  154. package/dist/api/resources/tools/client/Client.js +20 -85
  155. package/dist/api/types/AgentState.d.ts +1 -1
  156. package/dist/api/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +2 -1
  157. package/dist/api/types/Block.d.ts +1 -1
  158. package/dist/api/types/ChatCompletionMessageToolCall.d.ts +11 -0
  159. package/dist/api/types/ContextWindowOverview.d.ts +2 -2
  160. package/{api/types/FunctionCallOutput.d.ts → dist/api/types/Function.d.ts} +3 -1
  161. package/{api/types/FunctionSchema.d.ts → dist/api/types/FunctionDefinition.d.ts} +4 -1
  162. package/dist/api/types/FunctionTool.d.ts +10 -0
  163. package/dist/api/types/LettaMessageUnion.d.ts +1 -21
  164. package/dist/api/types/LettaUsageStatistics.d.ts +1 -0
  165. package/{api/types/LettaSchemasMessageMessage.d.ts → dist/api/types/Message.d.ts} +5 -3
  166. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  167. package/dist/api/types/Source.d.ts +1 -1
  168. package/dist/api/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +2 -1
  169. package/dist/api/types/{LettaSchemasToolTool.d.ts → Tool.d.ts} +1 -1
  170. package/{api/types/LettaSchemasLettaMessageToolCall.d.ts → dist/api/types/ToolCall.d.ts} +1 -1
  171. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  172. package/dist/api/types/ToolCallMessageToolCall.d.ts +1 -1
  173. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  174. package/dist/api/types/ToolType.d.ts +2 -1
  175. package/dist/api/types/ToolType.js +1 -0
  176. package/dist/api/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +2 -1
  177. package/dist/api/types/index.d.ts +10 -43
  178. package/dist/api/types/index.js +10 -43
  179. package/dist/serialization/resources/agents/client/createArchivalMemory.d.ts +11 -0
  180. package/{serialization/resources/agents/resources/archivalMemory/client/create.js → dist/serialization/resources/agents/client/createArchivalMemory.js} +2 -2
  181. package/dist/serialization/resources/agents/client/index.d.ts +3 -0
  182. package/dist/serialization/resources/agents/client/index.js +4 -1
  183. package/dist/serialization/resources/agents/client/listArchivalMemory.d.ts +11 -0
  184. package/dist/serialization/resources/agents/{resources/archivalMemory/client/create.js → client/listArchivalMemory.js} +2 -2
  185. package/dist/serialization/resources/{tools/client/getByName.d.ts → agents/client/listCoreMemoryBlocks.d.ts} +4 -2
  186. package/dist/serialization/resources/{tools/client/getByName.js → agents/client/listCoreMemoryBlocks.js} +2 -1
  187. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -3
  188. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -5
  189. package/dist/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +12 -0
  190. package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents}/client/requests/CreateArchivalMemory.js +1 -1
  191. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  192. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  193. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
  194. package/dist/serialization/resources/agents/client/requests/index.js +3 -1
  195. package/dist/serialization/resources/agents/resources/index.d.ts +0 -3
  196. package/dist/serialization/resources/agents/resources/index.js +1 -4
  197. package/{serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts → dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.d.ts} +2 -2
  198. package/{serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js → dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +2 -2
  199. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
  200. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.js +1 -1
  201. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  202. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -2
  203. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +4 -25
  204. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +12 -17
  205. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  206. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  207. package/dist/serialization/resources/agents/resources/sources/client/index.d.ts +1 -1
  208. package/dist/serialization/resources/agents/resources/sources/client/index.js +2 -2
  209. package/{serialization/resources/agents/resources/sources/client/get.d.ts → dist/serialization/resources/agents/resources/sources/client/list.d.ts} +1 -1
  210. package/dist/serialization/resources/agents/resources/tools/client/list.d.ts +3 -3
  211. package/dist/serialization/resources/agents/resources/tools/client/list.js +2 -2
  212. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -17
  213. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +10 -15
  214. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +16 -0
  215. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemDirection.js} +7 -6
  216. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +10 -0
  217. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
  218. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +10 -0
  219. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderByValue.js → AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
  220. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOne.d.ts +15 -0
  221. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemOne.js} +5 -4
  222. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.d.ts +10 -0
  223. package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.js} +2 -2
  224. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts +14 -0
  225. package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +3 -2
  226. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemTags.d.ts → AgentsSearchRequestSearchItemZero.d.ts} +4 -4
  227. package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +3 -2
  228. package/dist/serialization/resources/agents/types/index.d.ts +7 -7
  229. package/dist/serialization/resources/agents/types/index.js +7 -7
  230. package/dist/serialization/resources/runs/client/index.d.ts +1 -1
  231. package/dist/serialization/resources/runs/client/index.js +2 -2
  232. package/{serialization/resources/runs/client/getRunMessages.d.ts → dist/serialization/resources/runs/client/listRunMessages.d.ts} +1 -1
  233. package/dist/serialization/resources/sources/client/requests/SourceCreate.d.ts +1 -1
  234. package/dist/serialization/resources/sources/client/requests/SourceCreate.js +1 -1
  235. package/dist/serialization/resources/sources/client/requests/SourceUpdate.d.ts +1 -1
  236. package/dist/serialization/resources/sources/client/requests/SourceUpdate.js +1 -1
  237. package/dist/serialization/resources/tools/client/addBaseTool.d.ts +3 -3
  238. package/dist/serialization/resources/tools/client/addBaseTool.js +2 -2
  239. package/dist/serialization/resources/tools/client/index.d.ts +0 -1
  240. package/dist/serialization/resources/tools/client/index.js +1 -2
  241. package/dist/serialization/resources/tools/client/list.d.ts +3 -3
  242. package/dist/serialization/resources/tools/client/list.js +2 -2
  243. package/dist/serialization/types/AgentState.d.ts +3 -3
  244. package/dist/serialization/types/AgentState.js +3 -3
  245. package/dist/serialization/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +3 -2
  246. package/dist/serialization/types/{AssistantMessageOutput.js → AssistantMessage.js} +3 -2
  247. package/dist/serialization/types/Block.d.ts +1 -1
  248. package/dist/serialization/types/Block.js +1 -1
  249. package/dist/serialization/types/BlockUpdate.d.ts +1 -1
  250. package/dist/serialization/types/BlockUpdate.js +1 -1
  251. package/dist/serialization/types/ChatCompletionMessageToolCall.d.ts +16 -0
  252. package/dist/serialization/types/{DeleteAssistantFileResponse.js → ChatCompletionMessageToolCall.js} +8 -5
  253. package/dist/serialization/types/ContextWindowOverview.d.ts +4 -4
  254. package/dist/serialization/types/ContextWindowOverview.js +4 -4
  255. package/dist/serialization/types/CreateBlock.d.ts +1 -1
  256. package/dist/serialization/types/CreateBlock.js +1 -1
  257. package/{serialization/types/FunctionCallOutput.d.ts → dist/serialization/types/Function.d.ts} +3 -2
  258. package/{serialization/types/FunctionCallOutput.js → dist/serialization/types/Function.js} +5 -3
  259. package/{serialization/types/FunctionSchema.d.ts → dist/serialization/types/FunctionDefinition.d.ts} +4 -2
  260. package/{serialization/types/FunctionSchema.js → dist/serialization/types/FunctionDefinition.js} +6 -3
  261. package/dist/serialization/types/FunctionTool.d.ts +15 -0
  262. package/dist/serialization/types/{ArchivalMemorySummary.js → FunctionTool.js} +8 -4
  263. package/dist/serialization/types/Job.d.ts +1 -1
  264. package/dist/serialization/types/Job.js +1 -1
  265. package/dist/serialization/types/LettaMessageUnion.d.ts +4 -22
  266. package/dist/serialization/types/LettaMessageUnion.js +11 -16
  267. package/dist/serialization/types/LettaUsageStatistics.d.ts +1 -0
  268. package/dist/serialization/types/LettaUsageStatistics.js +1 -0
  269. package/{serialization/types/LettaSchemasMessageMessage.d.ts → dist/serialization/types/Message.d.ts} +5 -4
  270. package/dist/serialization/types/{LettaSchemasMessageMessage.js → Message.js} +5 -4
  271. package/dist/serialization/types/Passage.d.ts +1 -1
  272. package/dist/serialization/types/Passage.js +1 -1
  273. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  274. package/dist/serialization/types/ReasoningMessage.js +1 -0
  275. package/dist/serialization/types/Run.d.ts +1 -1
  276. package/dist/serialization/types/Run.js +1 -1
  277. package/dist/serialization/types/Source.d.ts +1 -1
  278. package/dist/serialization/types/Source.js +1 -1
  279. package/dist/serialization/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +3 -2
  280. package/{serialization/types/SystemMessageOutput.js → dist/serialization/types/SystemMessage.js} +3 -2
  281. package/{serialization/types/LettaSchemasToolTool.d.ts → dist/serialization/types/Tool.d.ts} +2 -2
  282. package/{serialization/types/LettaSchemasToolTool.js → dist/serialization/types/Tool.js} +2 -2
  283. package/dist/serialization/types/{FunctionCallOutput.d.ts → ToolCall.d.ts} +4 -3
  284. package/{serialization/types/LettaSchemasLettaMessageToolCall.js → dist/serialization/types/ToolCall.js} +2 -2
  285. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  286. package/dist/serialization/types/ToolCallMessage.js +1 -0
  287. package/dist/serialization/types/ToolCallMessageToolCall.d.ts +2 -2
  288. package/dist/serialization/types/ToolCallMessageToolCall.js +2 -2
  289. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  290. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  291. package/dist/serialization/types/ToolType.d.ts +1 -1
  292. package/dist/serialization/types/ToolType.js +1 -0
  293. package/{serialization/types/SystemMessageOutput.d.ts → dist/serialization/types/UserMessage.d.ts} +3 -2
  294. package/dist/serialization/types/{UserMessageOutput.js → UserMessage.js} +3 -2
  295. package/dist/serialization/types/index.d.ts +10 -43
  296. package/dist/serialization/types/index.js +10 -43
  297. package/dist/version.d.ts +1 -1
  298. package/dist/version.js +1 -1
  299. package/package.json +1 -1
  300. package/reference.md +744 -679
  301. package/serialization/resources/agents/client/createArchivalMemory.d.ts +11 -0
  302. package/serialization/resources/agents/client/createArchivalMemory.js +42 -0
  303. package/serialization/resources/agents/client/index.d.ts +3 -0
  304. package/serialization/resources/agents/client/index.js +4 -1
  305. package/serialization/resources/agents/client/listArchivalMemory.d.ts +11 -0
  306. package/serialization/resources/agents/client/listArchivalMemory.js +42 -0
  307. package/serialization/resources/{tools/client/getByName.d.ts → agents/client/listCoreMemoryBlocks.d.ts} +4 -2
  308. package/serialization/resources/{tools/client/getByName.js → agents/client/listCoreMemoryBlocks.js} +2 -1
  309. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -3
  310. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -5
  311. package/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +12 -0
  312. package/{dist/serialization/resources/agents/resources/archivalMemory → serialization/resources/agents}/client/requests/CreateArchivalMemory.js +1 -1
  313. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  314. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  315. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  316. package/serialization/resources/agents/client/requests/index.js +3 -1
  317. package/serialization/resources/agents/resources/index.d.ts +0 -3
  318. package/serialization/resources/agents/resources/index.js +1 -4
  319. package/{dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts → serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.d.ts} +2 -2
  320. package/{dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js → serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +2 -2
  321. package/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
  322. package/serialization/resources/agents/resources/memoryVariables/types/index.js +1 -1
  323. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  324. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -2
  325. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +4 -25
  326. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +12 -17
  327. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  328. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  329. package/serialization/resources/agents/resources/sources/client/index.d.ts +1 -1
  330. package/serialization/resources/agents/resources/sources/client/index.js +2 -2
  331. package/{dist/serialization/resources/agents/resources/sources/client/get.d.ts → serialization/resources/agents/resources/sources/client/list.d.ts} +1 -1
  332. package/serialization/resources/agents/resources/tools/client/list.d.ts +3 -3
  333. package/serialization/resources/agents/resources/tools/client/list.js +2 -2
  334. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -17
  335. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +10 -15
  336. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +16 -0
  337. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.js +47 -0
  338. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +10 -0
  339. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
  340. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +10 -0
  341. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js +41 -0
  342. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOne.d.ts +15 -0
  343. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemOne.js} +5 -4
  344. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.d.ts +10 -0
  345. package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.js} +2 -2
  346. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts +14 -0
  347. package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +3 -2
  348. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemTags.d.ts → AgentsSearchRequestSearchItemZero.d.ts} +4 -4
  349. package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +3 -2
  350. package/serialization/resources/agents/types/index.d.ts +7 -7
  351. package/serialization/resources/agents/types/index.js +7 -7
  352. package/serialization/resources/runs/client/index.d.ts +1 -1
  353. package/serialization/resources/runs/client/index.js +2 -2
  354. package/{dist/serialization/resources/runs/client/getRunMessages.d.ts → serialization/resources/runs/client/listRunMessages.d.ts} +1 -1
  355. package/serialization/resources/sources/client/requests/SourceCreate.d.ts +1 -1
  356. package/serialization/resources/sources/client/requests/SourceCreate.js +1 -1
  357. package/serialization/resources/sources/client/requests/SourceUpdate.d.ts +1 -1
  358. package/serialization/resources/sources/client/requests/SourceUpdate.js +1 -1
  359. package/serialization/resources/tools/client/addBaseTool.d.ts +3 -3
  360. package/serialization/resources/tools/client/addBaseTool.js +2 -2
  361. package/serialization/resources/tools/client/index.d.ts +0 -1
  362. package/serialization/resources/tools/client/index.js +1 -2
  363. package/serialization/resources/tools/client/list.d.ts +3 -3
  364. package/serialization/resources/tools/client/list.js +2 -2
  365. package/serialization/types/AgentState.d.ts +3 -3
  366. package/serialization/types/AgentState.js +3 -3
  367. package/serialization/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +3 -2
  368. package/serialization/types/{AssistantMessageOutput.js → AssistantMessage.js} +3 -2
  369. package/serialization/types/Block.d.ts +1 -1
  370. package/serialization/types/Block.js +1 -1
  371. package/serialization/types/BlockUpdate.d.ts +1 -1
  372. package/serialization/types/BlockUpdate.js +1 -1
  373. package/serialization/types/ChatCompletionMessageToolCall.d.ts +16 -0
  374. package/{dist/serialization/types/DeleteAssistantResponse.js → serialization/types/ChatCompletionMessageToolCall.js} +8 -5
  375. package/serialization/types/ContextWindowOverview.d.ts +4 -4
  376. package/serialization/types/ContextWindowOverview.js +4 -4
  377. package/serialization/types/CreateBlock.d.ts +1 -1
  378. package/serialization/types/CreateBlock.js +1 -1
  379. package/{dist/serialization/types/ToolCallFunctionOutput.d.ts → serialization/types/Function.d.ts} +4 -3
  380. package/{dist/serialization/types/FunctionCallOutput.js → serialization/types/Function.js} +5 -3
  381. package/{dist/serialization/types/FunctionSchema.d.ts → serialization/types/FunctionDefinition.d.ts} +4 -2
  382. package/{dist/serialization/types/FunctionSchema.js → serialization/types/FunctionDefinition.js} +6 -3
  383. package/serialization/types/FunctionTool.d.ts +15 -0
  384. package/{dist/serialization/types/CreateAssistantFileRequest.js → serialization/types/FunctionTool.js} +8 -4
  385. package/serialization/types/Job.d.ts +1 -1
  386. package/serialization/types/Job.js +1 -1
  387. package/serialization/types/LettaMessageUnion.d.ts +4 -22
  388. package/serialization/types/LettaMessageUnion.js +11 -16
  389. package/serialization/types/LettaUsageStatistics.d.ts +1 -0
  390. package/serialization/types/LettaUsageStatistics.js +1 -0
  391. package/{dist/serialization/types/LettaSchemasMessageMessage.d.ts → serialization/types/Message.d.ts} +5 -4
  392. package/serialization/types/{LettaSchemasMessageMessage.js → Message.js} +5 -4
  393. package/serialization/types/Passage.d.ts +1 -1
  394. package/serialization/types/Passage.js +1 -1
  395. package/serialization/types/ReasoningMessage.d.ts +1 -0
  396. package/serialization/types/ReasoningMessage.js +1 -0
  397. package/serialization/types/Run.d.ts +1 -1
  398. package/serialization/types/Run.js +1 -1
  399. package/serialization/types/Source.d.ts +1 -1
  400. package/serialization/types/Source.js +1 -1
  401. package/{dist/serialization/types/UserMessageOutput.d.ts → serialization/types/SystemMessage.d.ts} +3 -2
  402. package/serialization/types/{UserMessageOutput.js → SystemMessage.js} +3 -2
  403. package/{dist/serialization/types/LettaSchemasToolTool.d.ts → serialization/types/Tool.d.ts} +2 -2
  404. package/{dist/serialization/types/LettaSchemasToolTool.js → serialization/types/Tool.js} +2 -2
  405. package/serialization/types/{ToolCallFunctionOutput.d.ts → ToolCall.d.ts} +3 -2
  406. package/{dist/serialization/types/LettaSchemasLettaMessageToolCall.js → serialization/types/ToolCall.js} +2 -2
  407. package/serialization/types/ToolCallMessage.d.ts +1 -0
  408. package/serialization/types/ToolCallMessage.js +1 -0
  409. package/serialization/types/ToolCallMessageToolCall.d.ts +2 -2
  410. package/serialization/types/ToolCallMessageToolCall.js +2 -2
  411. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  412. package/serialization/types/ToolReturnMessage.js +1 -0
  413. package/serialization/types/ToolType.d.ts +1 -1
  414. package/serialization/types/ToolType.js +1 -0
  415. package/serialization/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +3 -2
  416. package/{dist/serialization/types/SystemMessageOutput.js → serialization/types/UserMessage.js} +3 -2
  417. package/serialization/types/index.d.ts +10 -43
  418. package/serialization/types/index.js +10 -43
  419. package/version.d.ts +1 -1
  420. package/version.js +1 -1
  421. package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  422. package/api/resources/agents/resources/archivalMemory/client/requests/index.js +0 -2
  423. package/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  424. package/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  425. package/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  426. package/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  427. package/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  428. package/api/resources/agents/resources/recallMemory/index.js +0 -17
  429. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -8
  430. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -8
  431. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -8
  432. package/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +0 -15
  433. package/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +0 -15
  434. package/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +0 -15
  435. package/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +0 -15
  436. package/api/types/ArchivalMemorySummary.d.ts +0 -7
  437. package/api/types/AssistantFile.d.ts +0 -12
  438. package/api/types/AssistantMessageInput.d.ts +0 -10
  439. package/api/types/ChatCompletionRequest.d.ts +0 -29
  440. package/api/types/ChatCompletionRequestFunctionCall.d.ts +0 -5
  441. package/api/types/ChatCompletionRequestMessagesItem.d.ts +0 -5
  442. package/api/types/ChatCompletionRequestStop.d.ts +0 -4
  443. package/api/types/ChatCompletionRequestToolChoice.d.ts +0 -5
  444. package/api/types/ChatCompletionResponse.d.ts +0 -16
  445. package/api/types/Choice.d.ts +0 -11
  446. package/api/types/CreateAssistantFileRequest.d.ts +0 -7
  447. package/api/types/CreateAssistantRequest.d.ts +0 -21
  448. package/api/types/DeleteAssistantFileResponse.d.ts +0 -10
  449. package/api/types/DeleteAssistantResponse.d.ts +0 -10
  450. package/api/types/FunctionCallInput.d.ts +0 -6
  451. package/api/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -8
  452. package/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -9
  453. package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -10
  454. package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -5
  455. package/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -9
  456. package/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -5
  457. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -9
  458. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -5
  459. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -11
  460. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -5
  461. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -11
  462. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -5
  463. package/api/types/LettaSchemasToolTool.js +0 -5
  464. package/api/types/LogProbToken.d.ts +0 -8
  465. package/api/types/LogProbToken.js +0 -5
  466. package/api/types/MessageContentLogProb.d.ts +0 -10
  467. package/api/types/MessageContentLogProb.js +0 -5
  468. package/api/types/OpenAiAssistant.d.ts +0 -27
  469. package/api/types/OpenAiAssistant.js +0 -5
  470. package/api/types/RecallMemorySummary.d.ts +0 -7
  471. package/api/types/RecallMemorySummary.js +0 -5
  472. package/api/types/ResponseFormat.d.ts +0 -6
  473. package/api/types/ResponseFormat.js +0 -5
  474. package/api/types/SystemMessageInput.d.ts +0 -8
  475. package/api/types/SystemMessageInput.js +0 -5
  476. package/api/types/SystemMessageOutput.js +0 -5
  477. package/api/types/ToolCallFunctionOutput.d.ts +0 -9
  478. package/api/types/ToolCallFunctionOutput.js +0 -5
  479. package/api/types/ToolFunctionChoice.d.ts +0 -8
  480. package/api/types/ToolFunctionChoice.js +0 -5
  481. package/api/types/ToolInput.d.ts +0 -8
  482. package/api/types/ToolInput.js +0 -5
  483. package/api/types/ToolMessage.d.ts +0 -8
  484. package/api/types/ToolMessage.js +0 -5
  485. package/api/types/UserMessageInput.d.ts +0 -9
  486. package/api/types/UserMessageInput.js +0 -5
  487. package/api/types/UserMessageInputContent.d.ts +0 -4
  488. package/api/types/UserMessageInputContent.js +0 -5
  489. package/api/types/UserMessageOutput.js +0 -5
  490. package/dist/api/resources/agents/resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js +0 -5
  491. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  492. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.js +0 -2
  493. package/dist/api/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js +0 -5
  494. package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  495. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  496. package/dist/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  497. package/dist/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  498. package/dist/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  499. package/dist/api/resources/agents/resources/recallMemory/index.js +0 -17
  500. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.js +0 -5
  501. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -8
  502. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +0 -5
  503. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -8
  504. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -8
  505. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.js +0 -5
  506. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +0 -5
  507. package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +0 -15
  508. package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.js +0 -5
  509. package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +0 -15
  510. package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.js +0 -5
  511. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +0 -5
  512. package/dist/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +0 -15
  513. package/dist/api/resources/sources/client/requests/SourcesAttachRequest.js +0 -5
  514. package/dist/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +0 -15
  515. package/dist/api/resources/sources/client/requests/SourcesDetachRequest.js +0 -5
  516. package/dist/api/types/ArchivalMemorySummary.d.ts +0 -7
  517. package/dist/api/types/ArchivalMemorySummary.js +0 -5
  518. package/dist/api/types/AssistantFile.d.ts +0 -12
  519. package/dist/api/types/AssistantFile.js +0 -5
  520. package/dist/api/types/AssistantMessageInput.d.ts +0 -10
  521. package/dist/api/types/AssistantMessageInput.js +0 -5
  522. package/dist/api/types/AssistantMessageOutput.js +0 -5
  523. package/dist/api/types/ChatCompletionRequest.d.ts +0 -29
  524. package/dist/api/types/ChatCompletionRequest.js +0 -5
  525. package/dist/api/types/ChatCompletionRequestFunctionCall.d.ts +0 -5
  526. package/dist/api/types/ChatCompletionRequestFunctionCall.js +0 -5
  527. package/dist/api/types/ChatCompletionRequestMessagesItem.d.ts +0 -5
  528. package/dist/api/types/ChatCompletionRequestMessagesItem.js +0 -5
  529. package/dist/api/types/ChatCompletionRequestStop.d.ts +0 -4
  530. package/dist/api/types/ChatCompletionRequestStop.js +0 -5
  531. package/dist/api/types/ChatCompletionRequestToolChoice.d.ts +0 -5
  532. package/dist/api/types/ChatCompletionRequestToolChoice.js +0 -5
  533. package/dist/api/types/ChatCompletionResponse.d.ts +0 -16
  534. package/dist/api/types/ChatCompletionResponse.js +0 -5
  535. package/dist/api/types/Choice.d.ts +0 -11
  536. package/dist/api/types/Choice.js +0 -5
  537. package/dist/api/types/CreateAssistantFileRequest.d.ts +0 -7
  538. package/dist/api/types/CreateAssistantFileRequest.js +0 -5
  539. package/dist/api/types/CreateAssistantRequest.d.ts +0 -21
  540. package/dist/api/types/CreateAssistantRequest.js +0 -5
  541. package/dist/api/types/DeleteAssistantFileResponse.d.ts +0 -10
  542. package/dist/api/types/DeleteAssistantFileResponse.js +0 -5
  543. package/dist/api/types/DeleteAssistantResponse.d.ts +0 -10
  544. package/dist/api/types/DeleteAssistantResponse.js +0 -5
  545. package/dist/api/types/FunctionCallInput.d.ts +0 -6
  546. package/dist/api/types/FunctionCallInput.js +0 -5
  547. package/dist/api/types/FunctionCallOutput.d.ts +0 -7
  548. package/dist/api/types/FunctionCallOutput.js +0 -5
  549. package/dist/api/types/FunctionSchema.js +0 -5
  550. package/dist/api/types/LettaSchemasLettaMessageToolCall.js +0 -5
  551. package/dist/api/types/LettaSchemasMessageMessage.js +0 -5
  552. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -8
  553. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -5
  554. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -9
  555. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -5
  556. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -7
  557. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -5
  558. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -10
  559. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -5
  560. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -9
  561. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -5
  562. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -9
  563. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -5
  564. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -11
  565. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -5
  566. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -11
  567. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -5
  568. package/dist/api/types/LettaSchemasToolTool.js +0 -5
  569. package/dist/api/types/LogProbToken.d.ts +0 -8
  570. package/dist/api/types/LogProbToken.js +0 -5
  571. package/dist/api/types/MessageContentLogProb.d.ts +0 -10
  572. package/dist/api/types/MessageContentLogProb.js +0 -5
  573. package/dist/api/types/OpenAiAssistant.d.ts +0 -27
  574. package/dist/api/types/OpenAiAssistant.js +0 -5
  575. package/dist/api/types/RecallMemorySummary.d.ts +0 -7
  576. package/dist/api/types/RecallMemorySummary.js +0 -5
  577. package/dist/api/types/ResponseFormat.d.ts +0 -6
  578. package/dist/api/types/ResponseFormat.js +0 -5
  579. package/dist/api/types/SystemMessageInput.d.ts +0 -8
  580. package/dist/api/types/SystemMessageInput.js +0 -5
  581. package/dist/api/types/SystemMessageOutput.js +0 -5
  582. package/dist/api/types/ToolCallFunctionOutput.d.ts +0 -9
  583. package/dist/api/types/ToolCallFunctionOutput.js +0 -5
  584. package/dist/api/types/ToolFunctionChoice.d.ts +0 -8
  585. package/dist/api/types/ToolFunctionChoice.js +0 -5
  586. package/dist/api/types/ToolInput.d.ts +0 -8
  587. package/dist/api/types/ToolInput.js +0 -5
  588. package/dist/api/types/ToolMessage.d.ts +0 -8
  589. package/dist/api/types/ToolMessage.js +0 -5
  590. package/dist/api/types/UserMessageInput.d.ts +0 -9
  591. package/dist/api/types/UserMessageInput.js +0 -5
  592. package/dist/api/types/UserMessageInputContent.d.ts +0 -4
  593. package/dist/api/types/UserMessageInputContent.js +0 -5
  594. package/dist/api/types/UserMessageOutput.js +0 -5
  595. package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +0 -11
  596. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +0 -3
  597. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +0 -42
  598. package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +0 -11
  599. package/dist/serialization/resources/agents/resources/archivalMemory/client/list.js +0 -42
  600. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +0 -12
  601. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -1
  602. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +0 -5
  603. package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +0 -1
  604. package/dist/serialization/resources/agents/resources/archivalMemory/index.js +0 -17
  605. package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +0 -11
  606. package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +0 -42
  607. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -2
  608. package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +0 -38
  609. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  610. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  611. package/dist/serialization/resources/agents/resources/coreMemory/index.d.ts +0 -1
  612. package/dist/serialization/resources/agents/resources/coreMemory/index.js +0 -17
  613. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +0 -14
  614. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +0 -10
  615. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -15
  616. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -10
  617. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -10
  618. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +0 -12
  619. package/dist/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  620. package/dist/serialization/types/AssistantFile.d.ts +0 -15
  621. package/dist/serialization/types/AssistantFile.js +0 -46
  622. package/dist/serialization/types/AssistantMessageInput.d.ts +0 -16
  623. package/dist/serialization/types/AssistantMessageInput.js +0 -47
  624. package/dist/serialization/types/ChatCompletionRequest.d.ts +0 -38
  625. package/dist/serialization/types/ChatCompletionRequest.js +0 -69
  626. package/dist/serialization/types/ChatCompletionRequestFunctionCall.d.ts +0 -11
  627. package/dist/serialization/types/ChatCompletionRequestFunctionCall.js +0 -46
  628. package/dist/serialization/types/ChatCompletionRequestMessagesItem.d.ts +0 -14
  629. package/dist/serialization/types/ChatCompletionRequestMessagesItem.js +0 -45
  630. package/dist/serialization/types/ChatCompletionRequestStop.d.ts +0 -10
  631. package/dist/serialization/types/ChatCompletionRequestStop.js +0 -44
  632. package/dist/serialization/types/ChatCompletionRequestToolChoice.d.ts +0 -11
  633. package/dist/serialization/types/ChatCompletionRequestToolChoice.js +0 -47
  634. package/dist/serialization/types/ChatCompletionResponse.d.ts +0 -20
  635. package/dist/serialization/types/ChatCompletionResponse.js +0 -51
  636. package/dist/serialization/types/Choice.d.ts +0 -18
  637. package/dist/serialization/types/Choice.js +0 -51
  638. package/dist/serialization/types/CreateAssistantFileRequest.d.ts +0 -12
  639. package/dist/serialization/types/CreateAssistantRequest.d.ts +0 -19
  640. package/dist/serialization/types/CreateAssistantRequest.js +0 -50
  641. package/dist/serialization/types/DeleteAssistantFileResponse.d.ts +0 -14
  642. package/dist/serialization/types/DeleteAssistantResponse.d.ts +0 -14
  643. package/dist/serialization/types/FunctionCallInput.d.ts +0 -12
  644. package/dist/serialization/types/FunctionCallInput.js +0 -43
  645. package/dist/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +0 -14
  646. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -14
  647. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -45
  648. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -15
  649. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -46
  650. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -13
  651. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -44
  652. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -17
  653. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -48
  654. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -15
  655. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -46
  656. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -13
  657. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -44
  658. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -15
  659. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -46
  660. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -15
  661. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -46
  662. package/dist/serialization/types/LogProbToken.d.ts +0 -14
  663. package/dist/serialization/types/LogProbToken.js +0 -45
  664. package/dist/serialization/types/MessageContentLogProb.d.ts +0 -16
  665. package/dist/serialization/types/MessageContentLogProb.js +0 -47
  666. package/dist/serialization/types/OpenAiAssistant.d.ts +0 -21
  667. package/dist/serialization/types/OpenAiAssistant.js +0 -52
  668. package/dist/serialization/types/RecallMemorySummary.d.ts +0 -12
  669. package/dist/serialization/types/RecallMemorySummary.js +0 -43
  670. package/dist/serialization/types/ResponseFormat.d.ts +0 -12
  671. package/dist/serialization/types/ResponseFormat.js +0 -43
  672. package/dist/serialization/types/SystemMessageInput.d.ts +0 -14
  673. package/dist/serialization/types/SystemMessageInput.js +0 -45
  674. package/dist/serialization/types/ToolCallFunctionOutput.js +0 -44
  675. package/dist/serialization/types/ToolFunctionChoice.d.ts +0 -14
  676. package/dist/serialization/types/ToolFunctionChoice.js +0 -45
  677. package/dist/serialization/types/ToolInput.d.ts +0 -14
  678. package/dist/serialization/types/ToolInput.js +0 -45
  679. package/dist/serialization/types/ToolMessage.d.ts +0 -14
  680. package/dist/serialization/types/ToolMessage.js +0 -45
  681. package/dist/serialization/types/UserMessageInput.d.ts +0 -15
  682. package/dist/serialization/types/UserMessageInput.js +0 -46
  683. package/dist/serialization/types/UserMessageInputContent.d.ts +0 -10
  684. package/dist/serialization/types/UserMessageInputContent.js +0 -44
  685. package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +0 -11
  686. package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +0 -3
  687. package/serialization/resources/agents/resources/archivalMemory/client/index.js +0 -42
  688. package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +0 -11
  689. package/serialization/resources/agents/resources/archivalMemory/client/list.js +0 -42
  690. package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +0 -12
  691. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -1
  692. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +0 -5
  693. package/serialization/resources/agents/resources/archivalMemory/index.d.ts +0 -1
  694. package/serialization/resources/agents/resources/archivalMemory/index.js +0 -17
  695. package/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +0 -11
  696. package/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +0 -42
  697. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -2
  698. package/serialization/resources/agents/resources/coreMemory/client/index.js +0 -38
  699. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  700. package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  701. package/serialization/resources/agents/resources/coreMemory/index.d.ts +0 -1
  702. package/serialization/resources/agents/resources/coreMemory/index.js +0 -17
  703. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +0 -14
  704. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +0 -10
  705. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -15
  706. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +0 -46
  707. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -10
  708. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -10
  709. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +0 -41
  710. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +0 -12
  711. package/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  712. package/serialization/types/ArchivalMemorySummary.js +0 -43
  713. package/serialization/types/AssistantFile.d.ts +0 -15
  714. package/serialization/types/AssistantFile.js +0 -46
  715. package/serialization/types/AssistantMessageInput.d.ts +0 -16
  716. package/serialization/types/AssistantMessageInput.js +0 -47
  717. package/serialization/types/ChatCompletionRequest.d.ts +0 -38
  718. package/serialization/types/ChatCompletionRequest.js +0 -69
  719. package/serialization/types/ChatCompletionRequestFunctionCall.d.ts +0 -11
  720. package/serialization/types/ChatCompletionRequestFunctionCall.js +0 -46
  721. package/serialization/types/ChatCompletionRequestMessagesItem.d.ts +0 -14
  722. package/serialization/types/ChatCompletionRequestMessagesItem.js +0 -45
  723. package/serialization/types/ChatCompletionRequestStop.d.ts +0 -10
  724. package/serialization/types/ChatCompletionRequestStop.js +0 -44
  725. package/serialization/types/ChatCompletionRequestToolChoice.d.ts +0 -11
  726. package/serialization/types/ChatCompletionRequestToolChoice.js +0 -47
  727. package/serialization/types/ChatCompletionResponse.d.ts +0 -20
  728. package/serialization/types/ChatCompletionResponse.js +0 -51
  729. package/serialization/types/Choice.d.ts +0 -18
  730. package/serialization/types/Choice.js +0 -51
  731. package/serialization/types/CreateAssistantFileRequest.d.ts +0 -12
  732. package/serialization/types/CreateAssistantFileRequest.js +0 -43
  733. package/serialization/types/CreateAssistantRequest.d.ts +0 -19
  734. package/serialization/types/CreateAssistantRequest.js +0 -50
  735. package/serialization/types/DeleteAssistantFileResponse.d.ts +0 -14
  736. package/serialization/types/DeleteAssistantFileResponse.js +0 -45
  737. package/serialization/types/DeleteAssistantResponse.d.ts +0 -14
  738. package/serialization/types/DeleteAssistantResponse.js +0 -45
  739. package/serialization/types/FunctionCallInput.d.ts +0 -12
  740. package/serialization/types/FunctionCallInput.js +0 -43
  741. package/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +0 -14
  742. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -14
  743. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -45
  744. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -15
  745. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -46
  746. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -13
  747. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -44
  748. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -17
  749. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -48
  750. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -15
  751. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -46
  752. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -13
  753. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -44
  754. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -15
  755. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -46
  756. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -15
  757. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -46
  758. package/serialization/types/LogProbToken.d.ts +0 -14
  759. package/serialization/types/LogProbToken.js +0 -45
  760. package/serialization/types/MessageContentLogProb.d.ts +0 -16
  761. package/serialization/types/MessageContentLogProb.js +0 -47
  762. package/serialization/types/OpenAiAssistant.d.ts +0 -21
  763. package/serialization/types/OpenAiAssistant.js +0 -52
  764. package/serialization/types/RecallMemorySummary.d.ts +0 -12
  765. package/serialization/types/RecallMemorySummary.js +0 -43
  766. package/serialization/types/ResponseFormat.d.ts +0 -12
  767. package/serialization/types/ResponseFormat.js +0 -43
  768. package/serialization/types/SystemMessageInput.d.ts +0 -14
  769. package/serialization/types/SystemMessageInput.js +0 -45
  770. package/serialization/types/ToolCallFunctionOutput.js +0 -44
  771. package/serialization/types/ToolFunctionChoice.d.ts +0 -14
  772. package/serialization/types/ToolFunctionChoice.js +0 -45
  773. package/serialization/types/ToolInput.d.ts +0 -14
  774. package/serialization/types/ToolInput.js +0 -45
  775. package/serialization/types/ToolMessage.d.ts +0 -14
  776. package/serialization/types/ToolMessage.js +0 -45
  777. package/serialization/types/UserMessageInput.d.ts +0 -15
  778. package/serialization/types/UserMessageInput.js +0 -46
  779. package/serialization/types/UserMessageInputContent.d.ts +0 -10
  780. package/serialization/types/UserMessageInputContent.js +0 -44
  781. /package/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.d.ts +0 -0
  782. /package/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.js +0 -0
  783. /package/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js → client/requests/ListArchivalMemoryRequest.js} +0 -0
  784. /package/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.js → MemoryVariablesListResponse.js} +0 -0
  785. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemDirection.js} +0 -0
  786. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemOne.js} +0 -0
  787. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemTags.js → AgentsSearchRequestSearchItemTwo.js} +0 -0
  788. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemVersion.js → AgentsSearchRequestSearchItemZero.js} +0 -0
  789. /package/api/resources/{blocks/client/requests/LinkAgentMemoryBlockRequest.js → runs/client/requests/ListRunMessagesRequest.js} +0 -0
  790. /package/api/{resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.js → types/AssistantMessage.js} +0 -0
  791. /package/api/{resources/runs/client/requests/GetRunMessagesRequest.js → types/ChatCompletionMessageToolCall.js} +0 -0
  792. /package/api/{resources/sources/client/requests/SourcesAttachRequest.js → types/Function.js} +0 -0
  793. /package/api/{resources/sources/client/requests/SourcesDetachRequest.js → types/FunctionDefinition.js} +0 -0
  794. /package/api/types/{ArchivalMemorySummary.js → FunctionTool.js} +0 -0
  795. /package/api/types/{AssistantFile.js → Message.js} +0 -0
  796. /package/api/types/{AssistantMessageInput.js → SystemMessage.js} +0 -0
  797. /package/api/types/{AssistantMessageOutput.js → Tool.js} +0 -0
  798. /package/api/types/{ChatCompletionRequest.js → ToolCall.js} +0 -0
  799. /package/api/types/{ChatCompletionRequestFunctionCall.js → UserMessage.js} +0 -0
  800. /package/dist/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.d.ts +0 -0
  801. /package/dist/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.js +0 -0
  802. /package/{api/types/ChatCompletionRequestMessagesItem.js → dist/api/resources/agents/client/requests/ListArchivalMemoryRequest.js} +0 -0
  803. /package/{api/types/ChatCompletionRequestStop.js → dist/api/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +0 -0
  804. /package/{api/types/ChatCompletionRequestToolChoice.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.js} +0 -0
  805. /package/{api/types/ChatCompletionResponse.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOne.js} +0 -0
  806. /package/{api/types/Choice.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
  807. /package/{api/types/CreateAssistantFileRequest.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +0 -0
  808. /package/{api/types/CreateAssistantRequest.js → dist/api/resources/runs/client/requests/ListRunMessagesRequest.js} +0 -0
  809. /package/{api/types/DeleteAssistantFileResponse.js → dist/api/types/AssistantMessage.js} +0 -0
  810. /package/{api/types/DeleteAssistantResponse.js → dist/api/types/ChatCompletionMessageToolCall.js} +0 -0
  811. /package/{api/types/FunctionCallInput.js → dist/api/types/Function.js} +0 -0
  812. /package/{api/types/FunctionCallOutput.js → dist/api/types/FunctionDefinition.js} +0 -0
  813. /package/{api/types/FunctionSchema.js → dist/api/types/FunctionTool.js} +0 -0
  814. /package/{api/types/LettaSchemasLettaMessageToolCall.js → dist/api/types/Message.js} +0 -0
  815. /package/{api/types/LettaSchemasMessageMessage.js → dist/api/types/SystemMessage.js} +0 -0
  816. /package/{api/types/LettaSchemasOpenaiChatCompletionRequestTool.js → dist/api/types/Tool.js} +0 -0
  817. /package/{api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js → dist/api/types/ToolCall.js} +0 -0
  818. /package/{api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js → dist/api/types/UserMessage.js} +0 -0
  819. /package/dist/serialization/resources/agents/resources/sources/client/{get.js → list.js} +0 -0
  820. /package/dist/serialization/resources/runs/client/{getRunMessages.js → listRunMessages.js} +0 -0
  821. /package/serialization/resources/agents/resources/sources/client/{get.js → list.js} +0 -0
  822. /package/serialization/resources/runs/client/{getRunMessages.js → listRunMessages.js} +0 -0
@@ -51,32 +51,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.CoreMemory = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
- const Letta = __importStar(require("../../../../../index"));
55
54
  const url_join_1 = __importDefault(require("url-join"));
56
- const serializers = __importStar(require("../../../../../../serialization/index"));
57
55
  const errors = __importStar(require("../../../../../../errors/index"));
58
56
  class CoreMemory {
59
57
  constructor(_options = {}) {
60
58
  this._options = _options;
61
59
  }
62
60
  /**
63
- * Retrieve the messages in the context of a specific agent.
64
- *
65
61
  * @param {string} agentId
66
62
  * @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
67
63
  *
68
- * @throws {@link Letta.UnprocessableEntityError}
69
- *
70
64
  * @example
71
- * await client.agents.coreMemory.listInContext("agent_id")
65
+ * await client.agents.coreMemory.retrieve("agent_id")
72
66
  */
73
- listInContext(agentId, requestOptions) {
67
+ retrieve(agentId, requestOptions) {
74
68
  return __awaiter(this, void 0, void 0, function* () {
75
69
  var _a, _b, _c;
76
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
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/agents/${encodeURIComponent(agentId)}/memory/messages`),
71
+ 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/agents/${encodeURIComponent(agentId)}/core_memory`),
78
72
  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.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@letta-ai/letta-client/0.1.13", "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
74
  contentType: "application/json",
81
75
  requestType: "json",
82
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,97 +78,14 @@ class CoreMemory {
84
78
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
79
  });
86
80
  if (_response.ok) {
87
- return serializers.agents.coreMemory.listInContext.Response.parseOrThrow(_response.body, {
88
- unrecognizedObjectKeys: "passthrough",
89
- allowUnrecognizedUnionMembers: true,
90
- allowUnrecognizedEnumValues: true,
91
- skipValidation: true,
92
- breadcrumbsPrefix: ["response"],
93
- });
81
+ return;
94
82
  }
95
83
  if (_response.error.reason === "status-code") {
96
- switch (_response.error.statusCode) {
97
- case 422:
98
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
99
- unrecognizedObjectKeys: "passthrough",
100
- allowUnrecognizedUnionMembers: true,
101
- allowUnrecognizedEnumValues: true,
102
- skipValidation: true,
103
- breadcrumbsPrefix: ["response"],
104
- }));
105
- default:
106
- throw new errors.LettaError({
107
- statusCode: _response.error.statusCode,
108
- body: _response.error.body,
109
- });
110
- }
111
- }
112
- switch (_response.error.reason) {
113
- case "non-json":
114
- throw new errors.LettaError({
115
- statusCode: _response.error.statusCode,
116
- body: _response.error.rawBody,
117
- });
118
- case "timeout":
119
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/memory/messages.");
120
- case "unknown":
121
- throw new errors.LettaError({
122
- message: _response.error.errorMessage,
123
- });
124
- }
125
- });
126
- }
127
- /**
128
- * Retrieve the memory state of a specific agent.
129
- * This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.
130
- *
131
- * @param {string} agentId
132
- * @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
133
- *
134
- * @throws {@link Letta.UnprocessableEntityError}
135
- *
136
- * @example
137
- * await client.agents.coreMemory.get("agent_id")
138
- */
139
- get(agentId, requestOptions) {
140
- return __awaiter(this, void 0, void 0, function* () {
141
- var _a, _b, _c;
142
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
- 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/agents/${encodeURIComponent(agentId)}/memory`),
144
- method: "GET",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
146
- contentType: "application/json",
147
- requestType: "json",
148
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
149
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
150
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
151
- });
152
- if (_response.ok) {
153
- return serializers.Memory.parseOrThrow(_response.body, {
154
- unrecognizedObjectKeys: "passthrough",
155
- allowUnrecognizedUnionMembers: true,
156
- allowUnrecognizedEnumValues: true,
157
- skipValidation: true,
158
- breadcrumbsPrefix: ["response"],
84
+ throw new errors.LettaError({
85
+ statusCode: _response.error.statusCode,
86
+ body: _response.error.body,
159
87
  });
160
88
  }
161
- if (_response.error.reason === "status-code") {
162
- switch (_response.error.statusCode) {
163
- case 422:
164
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
165
- unrecognizedObjectKeys: "passthrough",
166
- allowUnrecognizedUnionMembers: true,
167
- allowUnrecognizedEnumValues: true,
168
- skipValidation: true,
169
- breadcrumbsPrefix: ["response"],
170
- }));
171
- default:
172
- throw new errors.LettaError({
173
- statusCode: _response.error.statusCode,
174
- body: _response.error.body,
175
- });
176
- }
177
- }
178
89
  switch (_response.error.reason) {
179
90
  case "non-json":
180
91
  throw new errors.LettaError({
@@ -182,7 +93,7 @@ class CoreMemory {
182
93
  body: _response.error.rawBody,
183
94
  });
184
95
  case "timeout":
185
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/memory.");
96
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/core_memory.");
186
97
  case "unknown":
187
98
  throw new errors.LettaError({
188
99
  message: _response.error.errorMessage,
@@ -191,24 +102,19 @@ class CoreMemory {
191
102
  });
192
103
  }
193
104
  /**
194
- * Retrieve a memory block from an agent.
195
- *
196
105
  * @param {string} agentId
197
- * @param {string} blockLabel
198
106
  * @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
199
107
  *
200
- * @throws {@link Letta.UnprocessableEntityError}
201
- *
202
108
  * @example
203
- * await client.agents.coreMemory.getBlock("agent_id", "block_label")
109
+ * await client.agents.coreMemory.listBlocks("agent_id")
204
110
  */
205
- getBlock(agentId, blockLabel, requestOptions) {
111
+ listBlocks(agentId, requestOptions) {
206
112
  return __awaiter(this, void 0, void 0, function* () {
207
113
  var _a, _b, _c;
208
114
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
- 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/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
115
+ 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/agents/${encodeURIComponent(agentId)}/core_memory/blocks`),
210
116
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
117
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@letta-ai/letta-client/0.1.13", "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),
212
118
  contentType: "application/json",
213
119
  requestType: "json",
214
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,30 +122,13 @@ class CoreMemory {
216
122
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
217
123
  });
218
124
  if (_response.ok) {
219
- return serializers.Block.parseOrThrow(_response.body, {
220
- unrecognizedObjectKeys: "passthrough",
221
- allowUnrecognizedUnionMembers: true,
222
- allowUnrecognizedEnumValues: true,
223
- skipValidation: true,
224
- breadcrumbsPrefix: ["response"],
225
- });
125
+ return;
226
126
  }
227
127
  if (_response.error.reason === "status-code") {
228
- switch (_response.error.statusCode) {
229
- case 422:
230
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
231
- unrecognizedObjectKeys: "passthrough",
232
- allowUnrecognizedUnionMembers: true,
233
- allowUnrecognizedEnumValues: true,
234
- skipValidation: true,
235
- breadcrumbsPrefix: ["response"],
236
- }));
237
- default:
238
- throw new errors.LettaError({
239
- statusCode: _response.error.statusCode,
240
- body: _response.error.body,
241
- });
242
- }
128
+ throw new errors.LettaError({
129
+ statusCode: _response.error.statusCode,
130
+ body: _response.error.body,
131
+ });
243
132
  }
244
133
  switch (_response.error.reason) {
245
134
  case "non-json":
@@ -248,7 +137,7 @@ class CoreMemory {
248
137
  body: _response.error.rawBody,
249
138
  });
250
139
  case "timeout":
251
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/memory/block/{block_label}.");
140
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/core_memory/blocks.");
252
141
  case "unknown":
253
142
  throw new errors.LettaError({
254
143
  message: _response.error.errorMessage,
@@ -257,24 +146,20 @@ class CoreMemory {
257
146
  });
258
147
  }
259
148
  /**
260
- * Removes a memory block from an agent by unlnking it. If the block is not linked to any other agent, it is deleted.
261
- *
262
149
  * @param {string} agentId
263
- * @param {string} blockLabel
150
+ * @param {string} blockId
264
151
  * @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
265
152
  *
266
- * @throws {@link Letta.UnprocessableEntityError}
267
- *
268
153
  * @example
269
- * await client.agents.coreMemory.removeBlock("agent_id", "block_label")
154
+ * await client.agents.coreMemory.attachBlock("agent_id", "block_id")
270
155
  */
271
- removeBlock(agentId, blockLabel, requestOptions) {
156
+ attachBlock(agentId, blockId, requestOptions) {
272
157
  return __awaiter(this, void 0, void 0, function* () {
273
158
  var _a, _b, _c;
274
159
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
275
- 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/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
276
- method: "DELETE",
277
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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
+ 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/agents/${encodeURIComponent(agentId)}/core_memory/blocks/attach/${encodeURIComponent(blockId)}`),
161
+ method: "PATCH",
162
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@letta-ai/letta-client/0.1.13", "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
163
  contentType: "application/json",
279
164
  requestType: "json",
280
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -282,30 +167,13 @@ class CoreMemory {
282
167
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
283
168
  });
284
169
  if (_response.ok) {
285
- return serializers.Memory.parseOrThrow(_response.body, {
286
- unrecognizedObjectKeys: "passthrough",
287
- allowUnrecognizedUnionMembers: true,
288
- allowUnrecognizedEnumValues: true,
289
- skipValidation: true,
290
- breadcrumbsPrefix: ["response"],
291
- });
170
+ return;
292
171
  }
293
172
  if (_response.error.reason === "status-code") {
294
- switch (_response.error.statusCode) {
295
- case 422:
296
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
297
- unrecognizedObjectKeys: "passthrough",
298
- allowUnrecognizedUnionMembers: true,
299
- allowUnrecognizedEnumValues: true,
300
- skipValidation: true,
301
- breadcrumbsPrefix: ["response"],
302
- }));
303
- default:
304
- throw new errors.LettaError({
305
- statusCode: _response.error.statusCode,
306
- body: _response.error.body,
307
- });
308
- }
173
+ throw new errors.LettaError({
174
+ statusCode: _response.error.statusCode,
175
+ body: _response.error.body,
176
+ });
309
177
  }
310
178
  switch (_response.error.reason) {
311
179
  case "non-json":
@@ -314,7 +182,7 @@ class CoreMemory {
314
182
  body: _response.error.rawBody,
315
183
  });
316
184
  case "timeout":
317
- throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/agents/{agent_id}/memory/block/{block_label}.");
185
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/core_memory/blocks/attach/{block_id}.");
318
186
  case "unknown":
319
187
  throw new errors.LettaError({
320
188
  message: _response.error.errorMessage,
@@ -323,57 +191,34 @@ class CoreMemory {
323
191
  });
324
192
  }
325
193
  /**
326
- * Removes a memory block from an agent by unlnking it. If the block is not linked to any other agent, it is deleted.
327
- *
328
194
  * @param {string} agentId
329
- * @param {string} blockLabel
330
- * @param {Letta.BlockUpdate} request
195
+ * @param {string} blockId
331
196
  * @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
332
197
  *
333
- * @throws {@link Letta.UnprocessableEntityError}
334
- *
335
198
  * @example
336
- * await client.agents.coreMemory.updateBlock("agent_id", "block_label", {})
199
+ * await client.agents.coreMemory.detachBlock("agent_id", "block_id")
337
200
  */
338
- updateBlock(agentId, blockLabel, request, requestOptions) {
201
+ detachBlock(agentId, blockId, requestOptions) {
339
202
  return __awaiter(this, void 0, void 0, function* () {
340
203
  var _a, _b, _c;
341
204
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
205
+ 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/agents/${encodeURIComponent(agentId)}/core_memory/blocks/detach/${encodeURIComponent(blockId)}`),
343
206
  method: "PATCH",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
207
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@letta-ai/letta-client/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
208
  contentType: "application/json",
346
209
  requestType: "json",
347
- body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
348
210
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
349
211
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
350
212
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
351
213
  });
352
214
  if (_response.ok) {
353
- return serializers.Block.parseOrThrow(_response.body, {
354
- unrecognizedObjectKeys: "passthrough",
355
- allowUnrecognizedUnionMembers: true,
356
- allowUnrecognizedEnumValues: true,
357
- skipValidation: true,
358
- breadcrumbsPrefix: ["response"],
359
- });
215
+ return;
360
216
  }
361
217
  if (_response.error.reason === "status-code") {
362
- switch (_response.error.statusCode) {
363
- case 422:
364
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
365
- unrecognizedObjectKeys: "passthrough",
366
- allowUnrecognizedUnionMembers: true,
367
- allowUnrecognizedEnumValues: true,
368
- skipValidation: true,
369
- breadcrumbsPrefix: ["response"],
370
- }));
371
- default:
372
- throw new errors.LettaError({
373
- statusCode: _response.error.statusCode,
374
- body: _response.error.body,
375
- });
376
- }
218
+ throw new errors.LettaError({
219
+ statusCode: _response.error.statusCode,
220
+ body: _response.error.body,
221
+ });
377
222
  }
378
223
  switch (_response.error.reason) {
379
224
  case "non-json":
@@ -382,7 +227,7 @@ class CoreMemory {
382
227
  body: _response.error.rawBody,
383
228
  });
384
229
  case "timeout":
385
- throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/memory/block/{block_label}.");
230
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/core_memory/blocks/detach/{block_id}.");
386
231
  case "unknown":
387
232
  throw new errors.LettaError({
388
233
  message: _response.error.errorMessage,
@@ -391,23 +236,20 @@ class CoreMemory {
391
236
  });
392
237
  }
393
238
  /**
394
- * Retrieve the memory blocks of a specific agent.
395
- *
396
239
  * @param {string} agentId
240
+ * @param {string} blockLabel
397
241
  * @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
398
242
  *
399
- * @throws {@link Letta.UnprocessableEntityError}
400
- *
401
243
  * @example
402
- * await client.agents.coreMemory.getBlocks("agent_id")
244
+ * await client.agents.coreMemory.retrieveBlock("agent_id", "block_label")
403
245
  */
404
- getBlocks(agentId, requestOptions) {
246
+ retrieveBlock(agentId, blockLabel, requestOptions) {
405
247
  return __awaiter(this, void 0, void 0, function* () {
406
248
  var _a, _b, _c;
407
249
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
408
- 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/agents/${encodeURIComponent(agentId)}/memory/block`),
250
+ 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/agents/${encodeURIComponent(agentId)}/core_memory/blocks/${encodeURIComponent(blockLabel)}`),
409
251
  method: "GET",
410
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
252
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@letta-ai/letta-client/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
411
253
  contentType: "application/json",
412
254
  requestType: "json",
413
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -415,30 +257,13 @@ class CoreMemory {
415
257
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
416
258
  });
417
259
  if (_response.ok) {
418
- return serializers.agents.coreMemory.getBlocks.Response.parseOrThrow(_response.body, {
419
- unrecognizedObjectKeys: "passthrough",
420
- allowUnrecognizedUnionMembers: true,
421
- allowUnrecognizedEnumValues: true,
422
- skipValidation: true,
423
- breadcrumbsPrefix: ["response"],
424
- });
260
+ return;
425
261
  }
426
262
  if (_response.error.reason === "status-code") {
427
- switch (_response.error.statusCode) {
428
- case 422:
429
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
430
- unrecognizedObjectKeys: "passthrough",
431
- allowUnrecognizedUnionMembers: true,
432
- allowUnrecognizedEnumValues: true,
433
- skipValidation: true,
434
- breadcrumbsPrefix: ["response"],
435
- }));
436
- default:
437
- throw new errors.LettaError({
438
- statusCode: _response.error.statusCode,
439
- body: _response.error.body,
440
- });
441
- }
263
+ throw new errors.LettaError({
264
+ statusCode: _response.error.statusCode,
265
+ body: _response.error.body,
266
+ });
442
267
  }
443
268
  switch (_response.error.reason) {
444
269
  case "non-json":
@@ -447,7 +272,7 @@ class CoreMemory {
447
272
  body: _response.error.rawBody,
448
273
  });
449
274
  case "timeout":
450
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/memory/block.");
275
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/core_memory/blocks/{block_label}.");
451
276
  case "unknown":
452
277
  throw new errors.LettaError({
453
278
  message: _response.error.errorMessage,
@@ -456,59 +281,34 @@ class CoreMemory {
456
281
  });
457
282
  }
458
283
  /**
459
- * Creates a memory block and links it to the agent.
460
- *
461
284
  * @param {string} agentId
462
- * @param {Letta.CreateBlock} request
285
+ * @param {string} blockLabel
463
286
  * @param {CoreMemory.RequestOptions} requestOptions - Request-specific configuration.
464
287
  *
465
- * @throws {@link Letta.UnprocessableEntityError}
466
- *
467
288
  * @example
468
- * await client.agents.coreMemory.addBlock("agent_id", {
469
- * value: "value",
470
- * label: "label"
471
- * })
289
+ * await client.agents.coreMemory.modifyBlock("agent_id", "block_label")
472
290
  */
473
- addBlock(agentId, request, requestOptions) {
291
+ modifyBlock(agentId, blockLabel, requestOptions) {
474
292
  return __awaiter(this, void 0, void 0, function* () {
475
293
  var _a, _b, _c;
476
294
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
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/agents/${encodeURIComponent(agentId)}/memory/block`),
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.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
295
+ 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/agents/${encodeURIComponent(agentId)}/core_memory/blocks/${encodeURIComponent(blockLabel)}`),
296
+ method: "PATCH",
297
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@letta-ai/letta-client/0.1.13", "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
298
  contentType: "application/json",
481
299
  requestType: "json",
482
- body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
483
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
484
301
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
485
302
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
486
303
  });
487
304
  if (_response.ok) {
488
- return serializers.Memory.parseOrThrow(_response.body, {
489
- unrecognizedObjectKeys: "passthrough",
490
- allowUnrecognizedUnionMembers: true,
491
- allowUnrecognizedEnumValues: true,
492
- skipValidation: true,
493
- breadcrumbsPrefix: ["response"],
494
- });
305
+ return;
495
306
  }
496
307
  if (_response.error.reason === "status-code") {
497
- switch (_response.error.statusCode) {
498
- case 422:
499
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
500
- unrecognizedObjectKeys: "passthrough",
501
- allowUnrecognizedUnionMembers: true,
502
- allowUnrecognizedEnumValues: true,
503
- skipValidation: true,
504
- breadcrumbsPrefix: ["response"],
505
- }));
506
- default:
507
- throw new errors.LettaError({
508
- statusCode: _response.error.statusCode,
509
- body: _response.error.body,
510
- });
511
- }
308
+ throw new errors.LettaError({
309
+ statusCode: _response.error.statusCode,
310
+ body: _response.error.body,
311
+ });
512
312
  }
513
313
  switch (_response.error.reason) {
514
314
  case "non-json":
@@ -517,7 +317,7 @@ class CoreMemory {
517
317
  body: _response.error.rawBody,
518
318
  });
519
319
  case "timeout":
520
- throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/memory/block.");
320
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/core_memory/blocks/{block_label}.");
521
321
  case "unknown":
522
322
  throw new errors.LettaError({
523
323
  message: _response.error.errorMessage,
@@ -8,8 +8,6 @@ export * as context from "./context";
8
8
  export * as tools from "./tools";
9
9
  export * as sources from "./sources";
10
10
  export * as coreMemory from "./coreMemory";
11
- export * as recallMemory from "./recallMemory";
12
11
  export * as archivalMemory from "./archivalMemory";
13
- export * from "./archivalMemory/client/requests";
14
12
  export * from "./messages/client/requests";
15
13
  export * from "./templates/client/requests";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.archivalMemory = exports.recallMemory = exports.coreMemory = exports.sources = exports.tools = exports.context = exports.memoryVariables = exports.templates = exports.messages = void 0;
39
+ exports.archivalMemory = exports.coreMemory = exports.sources = exports.tools = exports.context = exports.memoryVariables = exports.templates = exports.messages = void 0;
40
40
  exports.messages = __importStar(require("./messages"));
41
41
  __exportStar(require("./messages/types"), exports);
42
42
  exports.templates = __importStar(require("./templates"));
@@ -47,8 +47,6 @@ exports.context = __importStar(require("./context"));
47
47
  exports.tools = __importStar(require("./tools"));
48
48
  exports.sources = __importStar(require("./sources"));
49
49
  exports.coreMemory = __importStar(require("./coreMemory"));
50
- exports.recallMemory = __importStar(require("./recallMemory"));
51
50
  exports.archivalMemory = __importStar(require("./archivalMemory"));
52
- __exportStar(require("./archivalMemory/client/requests"), exports);
53
51
  __exportStar(require("./messages/client/requests"), exports);
54
52
  __exportStar(require("./templates/client/requests"), exports);
@@ -37,9 +37,9 @@ export declare class MemoryVariables {
37
37
  * @throws {@link Letta.NotFoundError}
38
38
  *
39
39
  * @example
40
- * await client.agents.memoryVariables.get("agent_id")
40
+ * await client.agents.memoryVariables.list("agent_id")
41
41
  */
42
- get(agentId: string, requestOptions?: MemoryVariables.RequestOptions): Promise<Letta.agents.MemoryVariablesGetResponse>;
42
+ list(agentId: string, requestOptions?: MemoryVariables.RequestOptions): Promise<Letta.agents.MemoryVariablesListResponse>;
43
43
  protected _getCustomAuthorizationHeaders(): Promise<{
44
44
  Authorization: string;
45
45
  }>;
@@ -70,15 +70,15 @@ class MemoryVariables {
70
70
  * @throws {@link Letta.NotFoundError}
71
71
  *
72
72
  * @example
73
- * await client.agents.memoryVariables.get("agent_id")
73
+ * await client.agents.memoryVariables.list("agent_id")
74
74
  */
75
- get(agentId, requestOptions) {
75
+ list(agentId, requestOptions) {
76
76
  return __awaiter(this, void 0, void 0, function* () {
77
77
  var _a, _b, _c;
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
- 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/agents/${encodeURIComponent(agentId)}/variables`),
79
+ 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/agents/${encodeURIComponent(agentId)}/core_memory/variables`),
80
80
  method: "GET",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
81
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@letta-ai/letta-client/0.1.13", "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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -86,7 +86,7 @@ class MemoryVariables {
86
86
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
87
  });
88
88
  if (_response.ok) {
89
- return serializers.agents.MemoryVariablesGetResponse.parseOrThrow(_response.body, {
89
+ return serializers.agents.MemoryVariablesListResponse.parseOrThrow(_response.body, {
90
90
  unrecognizedObjectKeys: "passthrough",
91
91
  allowUnrecognizedUnionMembers: true,
92
92
  allowUnrecognizedEnumValues: true,
@@ -112,7 +112,7 @@ class MemoryVariables {
112
112
  body: _response.error.rawBody,
113
113
  });
114
114
  case "timeout":
115
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/variables.");
115
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/core_memory/variables.");
116
116
  case "unknown":
117
117
  throw new errors.LettaError({
118
118
  message: _response.error.errorMessage,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface MemoryVariablesGetResponse {
4
+ export interface MemoryVariablesListResponse {
5
5
  variables: Record<string, string>;
6
6
  }
@@ -1 +1 @@
1
- export * from "./MemoryVariablesGetResponse";
1
+ export * from "./MemoryVariablesListResponse";