@letta-ai/letta-client 0.1.12 → 0.1.14

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 (788) hide show
  1. package/api/resources/agents/client/Client.d.ts +129 -10
  2. package/api/resources/agents/client/Client.js +636 -29
  3. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  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 -21
  7. package/api/resources/agents/resources/archivalMemory/client/Client.js +22 -98
  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 +16 -46
  13. package/api/resources/agents/resources/coreMemory/client/Client.js +64 -199
  14. package/api/resources/agents/resources/index.d.ts +0 -1
  15. package/api/resources/agents/resources/index.js +0 -1
  16. package/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -2
  17. package/api/resources/agents/resources/memoryVariables/client/Client.js +4 -4
  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 +2 -2
  22. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  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 +2 -2
  52. package/api/resources/providers/client/Client.js +9 -9
  53. package/api/resources/providers/client/requests/ListProvidersRequest.d.ts +1 -1
  54. package/api/resources/runs/client/Client.d.ts +10 -9
  55. package/api/resources/runs/client/Client.js +25 -21
  56. package/{dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts → api/resources/runs/client/requests/ListRunMessagesRequest.d.ts} +8 -4
  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 +6 -6
  62. package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +1 -1
  63. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  64. package/api/resources/tag/client/Client.js +4 -4
  65. package/api/resources/tag/client/requests/ListTagsRequest.d.ts +1 -1
  66. package/api/resources/tools/client/Client.d.ts +9 -9
  67. package/api/resources/tools/client/Client.js +23 -23
  68. package/api/resources/tools/client/requests/ToolsListRequest.d.ts +1 -1
  69. package/api/types/AgentState.d.ts +1 -1
  70. package/{dist/api/types/AssistantMessageOutput.d.ts → api/types/AssistantMessage.d.ts} +2 -1
  71. package/api/types/Block.d.ts +1 -1
  72. package/api/types/ChatCompletionMessageToolCall.d.ts +11 -0
  73. package/api/types/ContextWindowOverview.d.ts +2 -2
  74. package/api/types/{LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts → Function.d.ts} +4 -2
  75. package/{dist/api/types/FunctionSchema.d.ts → api/types/FunctionDefinition.d.ts} +4 -1
  76. package/api/types/FunctionTool.d.ts +10 -0
  77. package/api/types/LettaMessageUnion.d.ts +1 -21
  78. package/api/types/LettaUsageStatistics.d.ts +1 -0
  79. package/api/types/{LettaSchemasMessageMessage.d.ts → Message.d.ts} +3 -3
  80. package/api/types/ReasoningMessage.d.ts +1 -0
  81. package/api/types/Source.d.ts +1 -1
  82. package/api/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +2 -1
  83. package/{dist/api/types/LettaSchemasToolTool.d.ts → api/types/Tool.d.ts} +1 -1
  84. package/{dist/api/types/LettaSchemasLettaMessageToolCall.d.ts → api/types/ToolCall.d.ts} +1 -1
  85. package/api/types/ToolCallMessage.d.ts +1 -0
  86. package/api/types/ToolCallMessageToolCall.d.ts +1 -1
  87. package/api/types/ToolReturnMessage.d.ts +1 -0
  88. package/api/types/ToolType.d.ts +2 -1
  89. package/api/types/ToolType.js +1 -0
  90. package/api/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +2 -1
  91. package/api/types/index.d.ts +10 -41
  92. package/api/types/index.js +10 -41
  93. package/dist/api/resources/agents/client/Client.d.ts +129 -10
  94. package/dist/api/resources/agents/client/Client.js +636 -29
  95. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  96. package/dist/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → client/requests/ListArchivalMemoryRequest.d.ts} +1 -1
  97. package/dist/api/resources/agents/client/requests/index.d.ts +2 -0
  98. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +4 -21
  99. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +22 -98
  100. package/dist/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
  101. package/dist/api/resources/agents/resources/archivalMemory/client/index.js +0 -15
  102. package/dist/api/resources/agents/resources/context/client/Client.d.ts +2 -2
  103. package/dist/api/resources/agents/resources/context/client/Client.js +3 -3
  104. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +16 -46
  105. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +64 -199
  106. package/dist/api/resources/agents/resources/index.d.ts +0 -1
  107. package/dist/api/resources/agents/resources/index.js +0 -1
  108. package/dist/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -2
  109. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +4 -4
  110. package/dist/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.d.ts → MemoryVariablesListResponse.d.ts} +1 -1
  111. package/dist/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
  112. package/dist/api/resources/agents/resources/memoryVariables/types/index.js +1 -1
  113. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
  114. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  115. package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +1 -1
  116. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -24
  117. package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  118. package/dist/api/resources/agents/resources/sources/client/Client.d.ts +28 -2
  119. package/dist/api/resources/agents/resources/sources/client/Client.js +136 -4
  120. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  121. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +7 -7
  122. package/dist/api/resources/agents/resources/tools/client/Client.js +13 -13
  123. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -15
  124. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +9 -0
  125. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +8 -0
  126. package/{api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
  127. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +8 -0
  128. package/{api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
  129. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemName.d.ts → AgentsSearchRequestSearchItemOne.d.ts} +3 -2
  130. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.d.ts → AgentsSearchRequestSearchItemOneOperator.d.ts} +2 -2
  131. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemOneOperator.js} +2 -2
  132. package/{api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts} +2 -1
  133. package/{api/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts → dist/api/resources/agents/types/AgentsSearchRequestSearchItemZero.d.ts} +2 -1
  134. package/dist/api/resources/agents/types/index.d.ts +7 -7
  135. package/dist/api/resources/agents/types/index.js +7 -7
  136. package/dist/api/resources/blocks/client/Client.d.ts +4 -34
  137. package/dist/api/resources/blocks/client/Client.js +9 -141
  138. package/dist/api/resources/blocks/client/requests/index.d.ts +0 -2
  139. package/dist/api/resources/health/client/Client.js +1 -1
  140. package/dist/api/resources/jobs/client/Client.d.ts +2 -2
  141. package/dist/api/resources/jobs/client/Client.js +6 -6
  142. package/dist/api/resources/models/client/Client.js +2 -2
  143. package/dist/api/resources/providers/client/Client.d.ts +2 -2
  144. package/dist/api/resources/providers/client/Client.js +9 -9
  145. package/dist/api/resources/providers/client/requests/ListProvidersRequest.d.ts +1 -1
  146. package/dist/api/resources/runs/client/Client.d.ts +10 -9
  147. package/dist/api/resources/runs/client/Client.js +25 -21
  148. package/{api/resources/runs/client/requests/GetRunMessagesRequest.d.ts → dist/api/resources/runs/client/requests/ListRunMessagesRequest.d.ts} +8 -4
  149. package/dist/api/resources/runs/client/requests/index.d.ts +1 -1
  150. package/dist/api/resources/sources/client/Client.d.ts +4 -34
  151. package/dist/api/resources/sources/client/Client.js +10 -154
  152. package/dist/api/resources/sources/client/requests/index.d.ts +0 -2
  153. package/dist/api/resources/sources/resources/files/client/Client.js +6 -6
  154. package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +1 -1
  155. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  156. package/dist/api/resources/tag/client/Client.js +4 -4
  157. package/dist/api/resources/tag/client/requests/ListTagsRequest.d.ts +1 -1
  158. package/dist/api/resources/tools/client/Client.d.ts +9 -9
  159. package/dist/api/resources/tools/client/Client.js +23 -23
  160. package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +1 -1
  161. package/dist/api/types/AgentState.d.ts +1 -1
  162. package/{api/types/AssistantMessageOutput.d.ts → dist/api/types/AssistantMessage.d.ts} +2 -1
  163. package/dist/api/types/Block.d.ts +1 -1
  164. package/dist/api/types/ChatCompletionMessageToolCall.d.ts +11 -0
  165. package/dist/api/types/ContextWindowOverview.d.ts +2 -2
  166. package/{api/types/FunctionCallOutput.d.ts → dist/api/types/Function.d.ts} +3 -1
  167. package/{api/types/FunctionSchema.d.ts → dist/api/types/FunctionDefinition.d.ts} +4 -1
  168. package/dist/api/types/FunctionTool.d.ts +10 -0
  169. package/dist/api/types/LettaMessageUnion.d.ts +1 -21
  170. package/dist/api/types/LettaUsageStatistics.d.ts +1 -0
  171. package/dist/api/types/{LettaSchemasMessageMessage.d.ts → Message.d.ts} +3 -3
  172. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  173. package/dist/api/types/Source.d.ts +1 -1
  174. package/dist/api/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +2 -1
  175. package/{api/types/LettaSchemasToolTool.d.ts → dist/api/types/Tool.d.ts} +1 -1
  176. package/{api/types/LettaSchemasLettaMessageToolCall.d.ts → dist/api/types/ToolCall.d.ts} +1 -1
  177. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  178. package/dist/api/types/ToolCallMessageToolCall.d.ts +1 -1
  179. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  180. package/dist/api/types/ToolType.d.ts +2 -1
  181. package/dist/api/types/ToolType.js +1 -0
  182. package/dist/api/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +2 -1
  183. package/dist/api/types/index.d.ts +10 -41
  184. package/dist/api/types/index.js +10 -41
  185. package/dist/serialization/resources/agents/client/createArchivalMemory.d.ts +11 -0
  186. package/dist/serialization/resources/agents/{resources/archivalMemory/client/list.js → client/createArchivalMemory.js} +2 -2
  187. package/dist/serialization/resources/agents/client/index.d.ts +3 -0
  188. package/dist/serialization/resources/agents/client/index.js +4 -1
  189. package/dist/serialization/resources/agents/client/listArchivalMemory.d.ts +11 -0
  190. package/dist/serialization/resources/agents/{resources/archivalMemory/client/create.js → client/listArchivalMemory.js} +2 -2
  191. package/dist/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +11 -0
  192. package/{serialization/resources/agents/resources/coreMemory/client/list.js → dist/serialization/resources/agents/client/listCoreMemoryBlocks.js} +2 -2
  193. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  194. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  195. package/dist/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +12 -0
  196. package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents}/client/requests/CreateArchivalMemory.js +1 -1
  197. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  198. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  199. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
  200. package/dist/serialization/resources/agents/client/requests/index.js +3 -1
  201. package/dist/serialization/resources/agents/resources/index.d.ts +0 -3
  202. package/dist/serialization/resources/agents/resources/index.js +1 -4
  203. package/{serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts → dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.d.ts} +2 -2
  204. package/{serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js → dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +2 -2
  205. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
  206. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.js +1 -1
  207. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  208. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -2
  209. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +4 -25
  210. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +12 -17
  211. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  212. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  213. package/dist/serialization/resources/agents/resources/sources/client/index.d.ts +1 -1
  214. package/dist/serialization/resources/agents/resources/sources/client/index.js +2 -2
  215. package/{serialization/resources/agents/resources/sources/client/get.d.ts → dist/serialization/resources/agents/resources/sources/client/list.d.ts} +1 -1
  216. package/dist/serialization/resources/agents/resources/tools/client/list.d.ts +3 -3
  217. package/dist/serialization/resources/agents/resources/tools/client/list.js +2 -2
  218. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -17
  219. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +10 -15
  220. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +16 -0
  221. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemDirection.js} +7 -6
  222. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +10 -0
  223. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
  224. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +10 -0
  225. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderByValue.js → AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
  226. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOne.d.ts +15 -0
  227. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemOne.js} +5 -4
  228. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.d.ts +10 -0
  229. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderByDirection.js → AgentsSearchRequestSearchItemOneOperator.js} +2 -2
  230. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts +14 -0
  231. package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +3 -2
  232. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemTags.d.ts → AgentsSearchRequestSearchItemZero.d.ts} +4 -4
  233. package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +3 -2
  234. package/dist/serialization/resources/agents/types/index.d.ts +7 -7
  235. package/dist/serialization/resources/agents/types/index.js +7 -7
  236. package/dist/serialization/resources/runs/client/index.d.ts +1 -1
  237. package/dist/serialization/resources/runs/client/index.js +2 -2
  238. package/dist/serialization/resources/runs/client/{getRunMessages.d.ts → listRunMessages.d.ts} +1 -1
  239. package/dist/serialization/resources/sources/client/requests/SourceCreate.d.ts +1 -1
  240. package/dist/serialization/resources/sources/client/requests/SourceCreate.js +1 -1
  241. package/dist/serialization/resources/sources/client/requests/SourceUpdate.d.ts +1 -1
  242. package/dist/serialization/resources/sources/client/requests/SourceUpdate.js +1 -1
  243. package/dist/serialization/resources/tools/client/addBaseTool.d.ts +3 -3
  244. package/dist/serialization/resources/tools/client/addBaseTool.js +2 -2
  245. package/dist/serialization/resources/tools/client/list.d.ts +3 -3
  246. package/dist/serialization/resources/tools/client/list.js +2 -2
  247. package/dist/serialization/types/AgentState.d.ts +3 -3
  248. package/dist/serialization/types/AgentState.js +3 -3
  249. package/{serialization/types/AssistantMessageOutput.d.ts → dist/serialization/types/AssistantMessage.d.ts} +3 -2
  250. package/dist/serialization/types/{AssistantMessageOutput.js → AssistantMessage.js} +3 -2
  251. package/dist/serialization/types/Block.d.ts +1 -1
  252. package/dist/serialization/types/Block.js +1 -1
  253. package/dist/serialization/types/BlockUpdate.d.ts +1 -1
  254. package/dist/serialization/types/BlockUpdate.js +1 -1
  255. package/dist/serialization/types/ChatCompletionMessageToolCall.d.ts +16 -0
  256. package/dist/serialization/types/{DeleteAssistantFileResponse.js → ChatCompletionMessageToolCall.js} +8 -5
  257. package/dist/serialization/types/ContextWindowOverview.d.ts +4 -4
  258. package/dist/serialization/types/ContextWindowOverview.js +4 -4
  259. package/dist/serialization/types/CreateBlock.d.ts +1 -1
  260. package/dist/serialization/types/CreateBlock.js +1 -1
  261. package/dist/serialization/types/{FunctionCallOutput.d.ts → Function.d.ts} +3 -2
  262. package/{serialization/types/FunctionCallOutput.js → dist/serialization/types/Function.js} +5 -3
  263. package/{serialization/types/FunctionSchema.d.ts → dist/serialization/types/FunctionDefinition.d.ts} +4 -2
  264. package/{serialization/types/FunctionSchema.js → dist/serialization/types/FunctionDefinition.js} +6 -3
  265. package/dist/serialization/types/FunctionTool.d.ts +15 -0
  266. package/dist/serialization/types/{ChatCompletionRequestStop.js → FunctionTool.js} +8 -5
  267. package/dist/serialization/types/Job.d.ts +1 -1
  268. package/dist/serialization/types/Job.js +1 -1
  269. package/dist/serialization/types/LettaMessageUnion.d.ts +4 -22
  270. package/dist/serialization/types/LettaMessageUnion.js +11 -16
  271. package/dist/serialization/types/LettaUsageStatistics.d.ts +1 -0
  272. package/dist/serialization/types/LettaUsageStatistics.js +1 -0
  273. package/{serialization/types/LettaSchemasMessageMessage.d.ts → dist/serialization/types/Message.d.ts} +4 -4
  274. package/{serialization/types/LettaSchemasMessageMessage.js → dist/serialization/types/Message.js} +4 -4
  275. package/dist/serialization/types/Passage.d.ts +1 -1
  276. package/dist/serialization/types/Passage.js +1 -1
  277. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  278. package/dist/serialization/types/ReasoningMessage.js +1 -0
  279. package/dist/serialization/types/Run.d.ts +1 -1
  280. package/dist/serialization/types/Run.js +1 -1
  281. package/dist/serialization/types/Source.d.ts +1 -1
  282. package/dist/serialization/types/Source.js +1 -1
  283. package/{serialization/types/SystemMessageOutput.d.ts → dist/serialization/types/SystemMessage.d.ts} +3 -2
  284. package/dist/serialization/types/{UserMessageOutput.js → SystemMessage.js} +3 -2
  285. package/dist/serialization/types/{LettaSchemasToolTool.d.ts → Tool.d.ts} +2 -2
  286. package/dist/serialization/types/{LettaSchemasToolTool.js → Tool.js} +2 -2
  287. package/{serialization/types/FunctionCallOutput.d.ts → dist/serialization/types/ToolCall.d.ts} +4 -3
  288. package/{serialization/types/LettaSchemasLettaMessageToolCall.js → dist/serialization/types/ToolCall.js} +2 -2
  289. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  290. package/dist/serialization/types/ToolCallMessage.js +1 -0
  291. package/dist/serialization/types/ToolCallMessageToolCall.d.ts +2 -2
  292. package/dist/serialization/types/ToolCallMessageToolCall.js +2 -2
  293. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  294. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  295. package/dist/serialization/types/ToolType.d.ts +1 -1
  296. package/dist/serialization/types/ToolType.js +1 -0
  297. package/dist/serialization/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +3 -2
  298. package/dist/serialization/types/{SystemMessageOutput.js → UserMessage.js} +3 -2
  299. package/dist/serialization/types/index.d.ts +10 -41
  300. package/dist/serialization/types/index.js +10 -41
  301. package/dist/version.d.ts +1 -1
  302. package/dist/version.js +1 -1
  303. package/package.json +1 -1
  304. package/reference.md +889 -569
  305. package/serialization/resources/agents/client/createArchivalMemory.d.ts +11 -0
  306. package/serialization/resources/agents/{resources/archivalMemory/client/create.js → client/createArchivalMemory.js} +2 -2
  307. package/serialization/resources/agents/client/index.d.ts +3 -0
  308. package/serialization/resources/agents/client/index.js +4 -1
  309. package/serialization/resources/agents/client/listArchivalMemory.d.ts +11 -0
  310. package/serialization/resources/agents/{resources/archivalMemory/client/list.js → client/listArchivalMemory.js} +2 -2
  311. package/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +11 -0
  312. package/{dist/serialization/resources/agents/resources/coreMemory/client/list.js → serialization/resources/agents/client/listCoreMemoryBlocks.js} +2 -2
  313. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  314. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  315. package/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +12 -0
  316. package/{dist/serialization/resources/agents/resources/archivalMemory → serialization/resources/agents}/client/requests/CreateArchivalMemory.js +1 -1
  317. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  318. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  319. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  320. package/serialization/resources/agents/client/requests/index.js +3 -1
  321. package/serialization/resources/agents/resources/index.d.ts +0 -3
  322. package/serialization/resources/agents/resources/index.js +1 -4
  323. package/{dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts → serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.d.ts} +2 -2
  324. package/{dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js → serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +2 -2
  325. package/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
  326. package/serialization/resources/agents/resources/memoryVariables/types/index.js +1 -1
  327. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  328. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -2
  329. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +4 -25
  330. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +12 -17
  331. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  332. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  333. package/serialization/resources/agents/resources/sources/client/index.d.ts +1 -1
  334. package/serialization/resources/agents/resources/sources/client/index.js +2 -2
  335. package/{dist/serialization/resources/agents/resources/sources/client/get.d.ts → serialization/resources/agents/resources/sources/client/list.d.ts} +1 -1
  336. package/serialization/resources/agents/resources/tools/client/list.d.ts +3 -3
  337. package/serialization/resources/agents/resources/tools/client/list.js +2 -2
  338. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -17
  339. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +10 -15
  340. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +16 -0
  341. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.js +47 -0
  342. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +10 -0
  343. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
  344. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +10 -0
  345. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js +41 -0
  346. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOne.d.ts +15 -0
  347. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemOne.js} +5 -4
  348. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.d.ts +10 -0
  349. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderByDirection.js → AgentsSearchRequestSearchItemOneOperator.js} +2 -2
  350. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts +14 -0
  351. package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +3 -2
  352. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemTags.d.ts → AgentsSearchRequestSearchItemZero.d.ts} +4 -4
  353. package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +3 -2
  354. package/serialization/resources/agents/types/index.d.ts +7 -7
  355. package/serialization/resources/agents/types/index.js +7 -7
  356. package/serialization/resources/runs/client/index.d.ts +1 -1
  357. package/serialization/resources/runs/client/index.js +2 -2
  358. package/serialization/resources/runs/client/{getRunMessages.d.ts → listRunMessages.d.ts} +1 -1
  359. package/serialization/resources/sources/client/requests/SourceCreate.d.ts +1 -1
  360. package/serialization/resources/sources/client/requests/SourceCreate.js +1 -1
  361. package/serialization/resources/sources/client/requests/SourceUpdate.d.ts +1 -1
  362. package/serialization/resources/sources/client/requests/SourceUpdate.js +1 -1
  363. package/serialization/resources/tools/client/addBaseTool.d.ts +3 -3
  364. package/serialization/resources/tools/client/addBaseTool.js +2 -2
  365. package/serialization/resources/tools/client/list.d.ts +3 -3
  366. package/serialization/resources/tools/client/list.js +2 -2
  367. package/serialization/types/AgentState.d.ts +3 -3
  368. package/serialization/types/AgentState.js +3 -3
  369. package/{dist/serialization/types/AssistantMessageOutput.d.ts → serialization/types/AssistantMessage.d.ts} +3 -2
  370. package/serialization/types/{AssistantMessageOutput.js → AssistantMessage.js} +3 -2
  371. package/serialization/types/Block.d.ts +1 -1
  372. package/serialization/types/Block.js +1 -1
  373. package/serialization/types/BlockUpdate.d.ts +1 -1
  374. package/serialization/types/BlockUpdate.js +1 -1
  375. package/serialization/types/ChatCompletionMessageToolCall.d.ts +16 -0
  376. package/{dist/serialization/types/DeleteAssistantResponse.js → serialization/types/ChatCompletionMessageToolCall.js} +8 -5
  377. package/serialization/types/ContextWindowOverview.d.ts +4 -4
  378. package/serialization/types/ContextWindowOverview.js +4 -4
  379. package/serialization/types/CreateBlock.d.ts +1 -1
  380. package/serialization/types/CreateBlock.js +1 -1
  381. package/serialization/types/{ToolCallFunctionOutput.d.ts → Function.d.ts} +4 -3
  382. package/{dist/serialization/types/FunctionCallOutput.js → serialization/types/Function.js} +5 -3
  383. package/{dist/serialization/types/FunctionSchema.d.ts → serialization/types/FunctionDefinition.d.ts} +4 -2
  384. package/{dist/serialization/types/FunctionSchema.js → serialization/types/FunctionDefinition.js} +6 -3
  385. package/serialization/types/FunctionTool.d.ts +15 -0
  386. package/{dist/serialization/types/CreateAssistantFileRequest.js → serialization/types/FunctionTool.js} +8 -4
  387. package/serialization/types/Job.d.ts +1 -1
  388. package/serialization/types/Job.js +1 -1
  389. package/serialization/types/LettaMessageUnion.d.ts +4 -22
  390. package/serialization/types/LettaMessageUnion.js +11 -16
  391. package/serialization/types/LettaUsageStatistics.d.ts +1 -0
  392. package/serialization/types/LettaUsageStatistics.js +1 -0
  393. package/{dist/serialization/types/LettaSchemasMessageMessage.d.ts → serialization/types/Message.d.ts} +4 -4
  394. package/{dist/serialization/types/LettaSchemasMessageMessage.js → serialization/types/Message.js} +4 -4
  395. package/serialization/types/Passage.d.ts +1 -1
  396. package/serialization/types/Passage.js +1 -1
  397. package/serialization/types/ReasoningMessage.d.ts +1 -0
  398. package/serialization/types/ReasoningMessage.js +1 -0
  399. package/serialization/types/Run.d.ts +1 -1
  400. package/serialization/types/Run.js +1 -1
  401. package/serialization/types/Source.d.ts +1 -1
  402. package/serialization/types/Source.js +1 -1
  403. package/serialization/types/{UserMessageOutput.d.ts → SystemMessage.d.ts} +3 -2
  404. package/serialization/types/{UserMessageOutput.js → SystemMessage.js} +3 -2
  405. package/serialization/types/{LettaSchemasToolTool.d.ts → Tool.d.ts} +2 -2
  406. package/serialization/types/{LettaSchemasToolTool.js → Tool.js} +2 -2
  407. package/{dist/serialization/types/ToolCallFunctionOutput.d.ts → serialization/types/ToolCall.d.ts} +3 -2
  408. package/{dist/serialization/types/LettaSchemasLettaMessageToolCall.js → serialization/types/ToolCall.js} +2 -2
  409. package/serialization/types/ToolCallMessage.d.ts +1 -0
  410. package/serialization/types/ToolCallMessage.js +1 -0
  411. package/serialization/types/ToolCallMessageToolCall.d.ts +2 -2
  412. package/serialization/types/ToolCallMessageToolCall.js +2 -2
  413. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  414. package/serialization/types/ToolReturnMessage.js +1 -0
  415. package/serialization/types/ToolType.d.ts +1 -1
  416. package/serialization/types/ToolType.js +1 -0
  417. package/{dist/serialization/types/SystemMessageOutput.d.ts → serialization/types/UserMessage.d.ts} +3 -2
  418. package/serialization/types/{SystemMessageOutput.js → UserMessage.js} +3 -2
  419. package/serialization/types/index.d.ts +10 -41
  420. package/serialization/types/index.js +10 -41
  421. package/version.d.ts +1 -1
  422. package/version.js +1 -1
  423. package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  424. package/api/resources/agents/resources/archivalMemory/client/requests/index.js +0 -2
  425. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -8
  426. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -8
  427. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -8
  428. package/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +0 -15
  429. package/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +0 -15
  430. package/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +0 -15
  431. package/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +0 -15
  432. package/api/types/AssistantFile.d.ts +0 -12
  433. package/api/types/AssistantMessageInput.d.ts +0 -10
  434. package/api/types/ChatCompletionRequest.d.ts +0 -29
  435. package/api/types/ChatCompletionRequestFunctionCall.d.ts +0 -5
  436. package/api/types/ChatCompletionRequestMessagesItem.d.ts +0 -5
  437. package/api/types/ChatCompletionRequestStop.d.ts +0 -4
  438. package/api/types/ChatCompletionRequestToolChoice.d.ts +0 -5
  439. package/api/types/ChatCompletionResponse.d.ts +0 -16
  440. package/api/types/Choice.d.ts +0 -11
  441. package/api/types/CreateAssistantFileRequest.d.ts +0 -7
  442. package/api/types/CreateAssistantRequest.d.ts +0 -21
  443. package/api/types/DeleteAssistantFileResponse.d.ts +0 -10
  444. package/api/types/DeleteAssistantResponse.d.ts +0 -10
  445. package/api/types/FunctionCallInput.d.ts +0 -6
  446. package/api/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -8
  447. package/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -9
  448. package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -10
  449. package/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -9
  450. package/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -5
  451. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -9
  452. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -5
  453. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -11
  454. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -5
  455. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -11
  456. package/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -5
  457. package/api/types/LettaSchemasToolTool.js +0 -5
  458. package/api/types/LogProbToken.d.ts +0 -8
  459. package/api/types/LogProbToken.js +0 -5
  460. package/api/types/MessageContentLogProb.d.ts +0 -10
  461. package/api/types/MessageContentLogProb.js +0 -5
  462. package/api/types/OpenAiAssistant.d.ts +0 -27
  463. package/api/types/OpenAiAssistant.js +0 -5
  464. package/api/types/ResponseFormat.d.ts +0 -6
  465. package/api/types/ResponseFormat.js +0 -5
  466. package/api/types/SystemMessageInput.d.ts +0 -8
  467. package/api/types/SystemMessageInput.js +0 -5
  468. package/api/types/SystemMessageOutput.js +0 -5
  469. package/api/types/ToolCallFunctionOutput.d.ts +0 -9
  470. package/api/types/ToolCallFunctionOutput.js +0 -5
  471. package/api/types/ToolFunctionChoice.d.ts +0 -8
  472. package/api/types/ToolFunctionChoice.js +0 -5
  473. package/api/types/ToolInput.d.ts +0 -8
  474. package/api/types/ToolInput.js +0 -5
  475. package/api/types/ToolMessage.d.ts +0 -8
  476. package/api/types/ToolMessage.js +0 -5
  477. package/api/types/UserMessageInput.d.ts +0 -9
  478. package/api/types/UserMessageInput.js +0 -5
  479. package/api/types/UserMessageInputContent.d.ts +0 -4
  480. package/api/types/UserMessageInputContent.js +0 -5
  481. package/api/types/UserMessageOutput.js +0 -5
  482. package/dist/api/resources/agents/resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js +0 -5
  483. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  484. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.js +0 -2
  485. package/dist/api/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js +0 -5
  486. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.js +0 -5
  487. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -8
  488. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +0 -5
  489. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -8
  490. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -8
  491. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.js +0 -5
  492. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +0 -5
  493. package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +0 -15
  494. package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.js +0 -5
  495. package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +0 -15
  496. package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.js +0 -5
  497. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +0 -5
  498. package/dist/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +0 -15
  499. package/dist/api/resources/sources/client/requests/SourcesAttachRequest.js +0 -5
  500. package/dist/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +0 -15
  501. package/dist/api/resources/sources/client/requests/SourcesDetachRequest.js +0 -5
  502. package/dist/api/types/AssistantFile.d.ts +0 -12
  503. package/dist/api/types/AssistantFile.js +0 -5
  504. package/dist/api/types/AssistantMessageInput.d.ts +0 -10
  505. package/dist/api/types/AssistantMessageInput.js +0 -5
  506. package/dist/api/types/AssistantMessageOutput.js +0 -5
  507. package/dist/api/types/ChatCompletionRequest.d.ts +0 -29
  508. package/dist/api/types/ChatCompletionRequest.js +0 -5
  509. package/dist/api/types/ChatCompletionRequestFunctionCall.d.ts +0 -5
  510. package/dist/api/types/ChatCompletionRequestFunctionCall.js +0 -5
  511. package/dist/api/types/ChatCompletionRequestMessagesItem.d.ts +0 -5
  512. package/dist/api/types/ChatCompletionRequestMessagesItem.js +0 -5
  513. package/dist/api/types/ChatCompletionRequestStop.d.ts +0 -4
  514. package/dist/api/types/ChatCompletionRequestStop.js +0 -5
  515. package/dist/api/types/ChatCompletionRequestToolChoice.d.ts +0 -5
  516. package/dist/api/types/ChatCompletionRequestToolChoice.js +0 -5
  517. package/dist/api/types/ChatCompletionResponse.d.ts +0 -16
  518. package/dist/api/types/ChatCompletionResponse.js +0 -5
  519. package/dist/api/types/Choice.d.ts +0 -11
  520. package/dist/api/types/Choice.js +0 -5
  521. package/dist/api/types/CreateAssistantFileRequest.d.ts +0 -7
  522. package/dist/api/types/CreateAssistantFileRequest.js +0 -5
  523. package/dist/api/types/CreateAssistantRequest.d.ts +0 -21
  524. package/dist/api/types/CreateAssistantRequest.js +0 -5
  525. package/dist/api/types/DeleteAssistantFileResponse.d.ts +0 -10
  526. package/dist/api/types/DeleteAssistantFileResponse.js +0 -5
  527. package/dist/api/types/DeleteAssistantResponse.d.ts +0 -10
  528. package/dist/api/types/DeleteAssistantResponse.js +0 -5
  529. package/dist/api/types/FunctionCallInput.d.ts +0 -6
  530. package/dist/api/types/FunctionCallInput.js +0 -5
  531. package/dist/api/types/FunctionCallOutput.d.ts +0 -7
  532. package/dist/api/types/FunctionCallOutput.js +0 -5
  533. package/dist/api/types/FunctionSchema.js +0 -5
  534. package/dist/api/types/LettaSchemasLettaMessageToolCall.js +0 -5
  535. package/dist/api/types/LettaSchemasMessageMessage.js +0 -5
  536. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -8
  537. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -5
  538. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -9
  539. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -5
  540. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -7
  541. package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -5
  542. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -10
  543. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -5
  544. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -9
  545. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -5
  546. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -9
  547. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -5
  548. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -11
  549. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -5
  550. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -11
  551. package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -5
  552. package/dist/api/types/LettaSchemasToolTool.js +0 -5
  553. package/dist/api/types/LogProbToken.d.ts +0 -8
  554. package/dist/api/types/LogProbToken.js +0 -5
  555. package/dist/api/types/MessageContentLogProb.d.ts +0 -10
  556. package/dist/api/types/MessageContentLogProb.js +0 -5
  557. package/dist/api/types/OpenAiAssistant.d.ts +0 -27
  558. package/dist/api/types/OpenAiAssistant.js +0 -5
  559. package/dist/api/types/ResponseFormat.d.ts +0 -6
  560. package/dist/api/types/ResponseFormat.js +0 -5
  561. package/dist/api/types/SystemMessageInput.d.ts +0 -8
  562. package/dist/api/types/SystemMessageInput.js +0 -5
  563. package/dist/api/types/SystemMessageOutput.js +0 -5
  564. package/dist/api/types/ToolCallFunctionOutput.d.ts +0 -9
  565. package/dist/api/types/ToolCallFunctionOutput.js +0 -5
  566. package/dist/api/types/ToolFunctionChoice.d.ts +0 -8
  567. package/dist/api/types/ToolFunctionChoice.js +0 -5
  568. package/dist/api/types/ToolInput.d.ts +0 -8
  569. package/dist/api/types/ToolInput.js +0 -5
  570. package/dist/api/types/ToolMessage.d.ts +0 -8
  571. package/dist/api/types/ToolMessage.js +0 -5
  572. package/dist/api/types/UserMessageInput.d.ts +0 -9
  573. package/dist/api/types/UserMessageInput.js +0 -5
  574. package/dist/api/types/UserMessageInputContent.d.ts +0 -4
  575. package/dist/api/types/UserMessageInputContent.js +0 -5
  576. package/dist/api/types/UserMessageOutput.js +0 -5
  577. package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +0 -11
  578. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +0 -3
  579. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +0 -42
  580. package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +0 -11
  581. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +0 -12
  582. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -1
  583. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +0 -5
  584. package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +0 -1
  585. package/dist/serialization/resources/agents/resources/archivalMemory/index.js +0 -17
  586. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
  587. package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +0 -37
  588. package/dist/serialization/resources/agents/resources/coreMemory/client/list.d.ts +0 -11
  589. package/dist/serialization/resources/agents/resources/coreMemory/index.d.ts +0 -1
  590. package/dist/serialization/resources/agents/resources/coreMemory/index.js +0 -17
  591. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +0 -14
  592. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +0 -10
  593. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -15
  594. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -10
  595. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -10
  596. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +0 -12
  597. package/dist/serialization/types/AssistantFile.d.ts +0 -15
  598. package/dist/serialization/types/AssistantFile.js +0 -46
  599. package/dist/serialization/types/AssistantMessageInput.d.ts +0 -16
  600. package/dist/serialization/types/AssistantMessageInput.js +0 -47
  601. package/dist/serialization/types/ChatCompletionRequest.d.ts +0 -38
  602. package/dist/serialization/types/ChatCompletionRequest.js +0 -69
  603. package/dist/serialization/types/ChatCompletionRequestFunctionCall.d.ts +0 -11
  604. package/dist/serialization/types/ChatCompletionRequestFunctionCall.js +0 -46
  605. package/dist/serialization/types/ChatCompletionRequestMessagesItem.d.ts +0 -14
  606. package/dist/serialization/types/ChatCompletionRequestMessagesItem.js +0 -45
  607. package/dist/serialization/types/ChatCompletionRequestStop.d.ts +0 -10
  608. package/dist/serialization/types/ChatCompletionRequestToolChoice.d.ts +0 -11
  609. package/dist/serialization/types/ChatCompletionRequestToolChoice.js +0 -47
  610. package/dist/serialization/types/ChatCompletionResponse.d.ts +0 -20
  611. package/dist/serialization/types/ChatCompletionResponse.js +0 -51
  612. package/dist/serialization/types/Choice.d.ts +0 -18
  613. package/dist/serialization/types/Choice.js +0 -51
  614. package/dist/serialization/types/CreateAssistantFileRequest.d.ts +0 -12
  615. package/dist/serialization/types/CreateAssistantRequest.d.ts +0 -19
  616. package/dist/serialization/types/CreateAssistantRequest.js +0 -50
  617. package/dist/serialization/types/DeleteAssistantFileResponse.d.ts +0 -14
  618. package/dist/serialization/types/DeleteAssistantResponse.d.ts +0 -14
  619. package/dist/serialization/types/FunctionCallInput.d.ts +0 -12
  620. package/dist/serialization/types/FunctionCallInput.js +0 -43
  621. package/dist/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +0 -14
  622. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -14
  623. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -45
  624. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -15
  625. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -46
  626. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -13
  627. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -44
  628. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -17
  629. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -48
  630. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -15
  631. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -46
  632. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -13
  633. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -44
  634. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -15
  635. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -46
  636. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -15
  637. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -46
  638. package/dist/serialization/types/LogProbToken.d.ts +0 -14
  639. package/dist/serialization/types/LogProbToken.js +0 -45
  640. package/dist/serialization/types/MessageContentLogProb.d.ts +0 -16
  641. package/dist/serialization/types/MessageContentLogProb.js +0 -47
  642. package/dist/serialization/types/OpenAiAssistant.d.ts +0 -21
  643. package/dist/serialization/types/OpenAiAssistant.js +0 -52
  644. package/dist/serialization/types/ResponseFormat.d.ts +0 -12
  645. package/dist/serialization/types/ResponseFormat.js +0 -43
  646. package/dist/serialization/types/SystemMessageInput.d.ts +0 -14
  647. package/dist/serialization/types/SystemMessageInput.js +0 -45
  648. package/dist/serialization/types/ToolCallFunctionOutput.js +0 -44
  649. package/dist/serialization/types/ToolFunctionChoice.d.ts +0 -14
  650. package/dist/serialization/types/ToolFunctionChoice.js +0 -45
  651. package/dist/serialization/types/ToolInput.d.ts +0 -14
  652. package/dist/serialization/types/ToolInput.js +0 -45
  653. package/dist/serialization/types/ToolMessage.d.ts +0 -14
  654. package/dist/serialization/types/ToolMessage.js +0 -45
  655. package/dist/serialization/types/UserMessageInput.d.ts +0 -15
  656. package/dist/serialization/types/UserMessageInput.js +0 -46
  657. package/dist/serialization/types/UserMessageInputContent.d.ts +0 -10
  658. package/dist/serialization/types/UserMessageInputContent.js +0 -44
  659. package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +0 -11
  660. package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +0 -3
  661. package/serialization/resources/agents/resources/archivalMemory/client/index.js +0 -42
  662. package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +0 -11
  663. package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +0 -12
  664. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -1
  665. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +0 -5
  666. package/serialization/resources/agents/resources/archivalMemory/index.d.ts +0 -1
  667. package/serialization/resources/agents/resources/archivalMemory/index.js +0 -17
  668. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
  669. package/serialization/resources/agents/resources/coreMemory/client/index.js +0 -37
  670. package/serialization/resources/agents/resources/coreMemory/client/list.d.ts +0 -11
  671. package/serialization/resources/agents/resources/coreMemory/index.d.ts +0 -1
  672. package/serialization/resources/agents/resources/coreMemory/index.js +0 -17
  673. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +0 -14
  674. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +0 -10
  675. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -15
  676. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +0 -46
  677. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -10
  678. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -10
  679. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +0 -41
  680. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +0 -12
  681. package/serialization/types/AssistantFile.d.ts +0 -15
  682. package/serialization/types/AssistantFile.js +0 -46
  683. package/serialization/types/AssistantMessageInput.d.ts +0 -16
  684. package/serialization/types/AssistantMessageInput.js +0 -47
  685. package/serialization/types/ChatCompletionRequest.d.ts +0 -38
  686. package/serialization/types/ChatCompletionRequest.js +0 -69
  687. package/serialization/types/ChatCompletionRequestFunctionCall.d.ts +0 -11
  688. package/serialization/types/ChatCompletionRequestFunctionCall.js +0 -46
  689. package/serialization/types/ChatCompletionRequestMessagesItem.d.ts +0 -14
  690. package/serialization/types/ChatCompletionRequestMessagesItem.js +0 -45
  691. package/serialization/types/ChatCompletionRequestStop.d.ts +0 -10
  692. package/serialization/types/ChatCompletionRequestStop.js +0 -44
  693. package/serialization/types/ChatCompletionRequestToolChoice.d.ts +0 -11
  694. package/serialization/types/ChatCompletionRequestToolChoice.js +0 -47
  695. package/serialization/types/ChatCompletionResponse.d.ts +0 -20
  696. package/serialization/types/ChatCompletionResponse.js +0 -51
  697. package/serialization/types/Choice.d.ts +0 -18
  698. package/serialization/types/Choice.js +0 -51
  699. package/serialization/types/CreateAssistantFileRequest.d.ts +0 -12
  700. package/serialization/types/CreateAssistantFileRequest.js +0 -43
  701. package/serialization/types/CreateAssistantRequest.d.ts +0 -19
  702. package/serialization/types/CreateAssistantRequest.js +0 -50
  703. package/serialization/types/DeleteAssistantFileResponse.d.ts +0 -14
  704. package/serialization/types/DeleteAssistantFileResponse.js +0 -45
  705. package/serialization/types/DeleteAssistantResponse.d.ts +0 -14
  706. package/serialization/types/DeleteAssistantResponse.js +0 -45
  707. package/serialization/types/FunctionCallInput.d.ts +0 -12
  708. package/serialization/types/FunctionCallInput.js +0 -43
  709. package/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +0 -14
  710. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -14
  711. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -45
  712. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -15
  713. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -46
  714. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -13
  715. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -44
  716. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -17
  717. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -48
  718. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -15
  719. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -46
  720. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -13
  721. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -44
  722. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -15
  723. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -46
  724. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -15
  725. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -46
  726. package/serialization/types/LogProbToken.d.ts +0 -14
  727. package/serialization/types/LogProbToken.js +0 -45
  728. package/serialization/types/MessageContentLogProb.d.ts +0 -16
  729. package/serialization/types/MessageContentLogProb.js +0 -47
  730. package/serialization/types/OpenAiAssistant.d.ts +0 -21
  731. package/serialization/types/OpenAiAssistant.js +0 -52
  732. package/serialization/types/ResponseFormat.d.ts +0 -12
  733. package/serialization/types/ResponseFormat.js +0 -43
  734. package/serialization/types/SystemMessageInput.d.ts +0 -14
  735. package/serialization/types/SystemMessageInput.js +0 -45
  736. package/serialization/types/ToolCallFunctionOutput.js +0 -44
  737. package/serialization/types/ToolFunctionChoice.d.ts +0 -14
  738. package/serialization/types/ToolFunctionChoice.js +0 -45
  739. package/serialization/types/ToolInput.d.ts +0 -14
  740. package/serialization/types/ToolInput.js +0 -45
  741. package/serialization/types/ToolMessage.d.ts +0 -14
  742. package/serialization/types/ToolMessage.js +0 -45
  743. package/serialization/types/UserMessageInput.d.ts +0 -15
  744. package/serialization/types/UserMessageInput.js +0 -46
  745. package/serialization/types/UserMessageInputContent.d.ts +0 -10
  746. package/serialization/types/UserMessageInputContent.js +0 -44
  747. /package/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.d.ts +0 -0
  748. /package/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.js +0 -0
  749. /package/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js → client/requests/ListArchivalMemoryRequest.js} +0 -0
  750. /package/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.js → MemoryVariablesListResponse.js} +0 -0
  751. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemDirection.js} +0 -0
  752. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemOne.js} +0 -0
  753. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemTags.js → AgentsSearchRequestSearchItemTwo.js} +0 -0
  754. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemVersion.js → AgentsSearchRequestSearchItemZero.js} +0 -0
  755. /package/api/resources/{blocks/client/requests/LinkAgentMemoryBlockRequest.js → runs/client/requests/ListRunMessagesRequest.js} +0 -0
  756. /package/api/{resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.js → types/AssistantMessage.js} +0 -0
  757. /package/api/{resources/runs/client/requests/GetRunMessagesRequest.js → types/ChatCompletionMessageToolCall.js} +0 -0
  758. /package/api/{resources/sources/client/requests/SourcesAttachRequest.js → types/Function.js} +0 -0
  759. /package/api/{resources/sources/client/requests/SourcesDetachRequest.js → types/FunctionDefinition.js} +0 -0
  760. /package/api/types/{AssistantFile.js → FunctionTool.js} +0 -0
  761. /package/api/types/{AssistantMessageInput.js → Message.js} +0 -0
  762. /package/api/types/{AssistantMessageOutput.js → SystemMessage.js} +0 -0
  763. /package/api/types/{ChatCompletionRequest.js → Tool.js} +0 -0
  764. /package/api/types/{ChatCompletionRequestFunctionCall.js → ToolCall.js} +0 -0
  765. /package/api/types/{ChatCompletionRequestMessagesItem.js → UserMessage.js} +0 -0
  766. /package/dist/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.d.ts +0 -0
  767. /package/dist/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.js +0 -0
  768. /package/{api/types/ChatCompletionRequestStop.js → dist/api/resources/agents/client/requests/ListArchivalMemoryRequest.js} +0 -0
  769. /package/{api/types/ChatCompletionRequestToolChoice.js → dist/api/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +0 -0
  770. /package/{api/types/ChatCompletionResponse.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.js} +0 -0
  771. /package/{api/types/Choice.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOne.js} +0 -0
  772. /package/{api/types/CreateAssistantFileRequest.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
  773. /package/{api/types/CreateAssistantRequest.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +0 -0
  774. /package/{api/types/DeleteAssistantFileResponse.js → dist/api/resources/runs/client/requests/ListRunMessagesRequest.js} +0 -0
  775. /package/{api/types/DeleteAssistantResponse.js → dist/api/types/AssistantMessage.js} +0 -0
  776. /package/{api/types/FunctionCallInput.js → dist/api/types/ChatCompletionMessageToolCall.js} +0 -0
  777. /package/{api/types/FunctionCallOutput.js → dist/api/types/Function.js} +0 -0
  778. /package/{api/types/FunctionSchema.js → dist/api/types/FunctionDefinition.js} +0 -0
  779. /package/{api/types/LettaSchemasLettaMessageToolCall.js → dist/api/types/FunctionTool.js} +0 -0
  780. /package/{api/types/LettaSchemasMessageMessage.js → dist/api/types/Message.js} +0 -0
  781. /package/{api/types/LettaSchemasOpenaiChatCompletionRequestTool.js → dist/api/types/SystemMessage.js} +0 -0
  782. /package/{api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js → dist/api/types/Tool.js} +0 -0
  783. /package/{api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js → dist/api/types/ToolCall.js} +0 -0
  784. /package/{api/types/LettaSchemasOpenaiChatCompletionResponseMessage.js → dist/api/types/UserMessage.js} +0 -0
  785. /package/dist/serialization/resources/agents/resources/sources/client/{get.js → list.js} +0 -0
  786. /package/dist/serialization/resources/runs/client/{getRunMessages.js → listRunMessages.js} +0 -0
  787. /package/serialization/resources/agents/resources/sources/client/{get.js → list.js} +0 -0
  788. /package/serialization/resources/runs/client/{getRunMessages.js → listRunMessages.js} +0 -0
@@ -35,9 +35,9 @@ export declare class Tools {
35
35
  * @throws {@link Letta.UnprocessableEntityError}
36
36
  *
37
37
  * @example
38
- * await client.tools.get("tool_id")
38
+ * await client.tools.retrieve("tool_id")
39
39
  */
40
- get(toolId: string, requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool>;
40
+ retrieve(toolId: string, requestOptions?: Tools.RequestOptions): Promise<Letta.Tool>;
41
41
  /**
42
42
  * Delete a tool by name
43
43
  *
@@ -60,9 +60,9 @@ export declare class Tools {
60
60
  * @throws {@link Letta.UnprocessableEntityError}
61
61
  *
62
62
  * @example
63
- * await client.tools.update("tool_id")
63
+ * await client.tools.modify("tool_id")
64
64
  */
65
- update(toolId: string, request?: Letta.ToolUpdate, requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool>;
65
+ modify(toolId: string, request?: Letta.ToolUpdate, requestOptions?: Tools.RequestOptions): Promise<Letta.Tool>;
66
66
  /**
67
67
  * Get a list of all tools available to agents belonging to the org of the user
68
68
  *
@@ -74,7 +74,7 @@ export declare class Tools {
74
74
  * @example
75
75
  * await client.tools.list()
76
76
  */
77
- list(request?: Letta.ToolsListRequest, requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool[]>;
77
+ list(request?: Letta.ToolsListRequest, requestOptions?: Tools.RequestOptions): Promise<Letta.Tool[]>;
78
78
  /**
79
79
  * Create a new tool
80
80
  *
@@ -88,7 +88,7 @@ export declare class Tools {
88
88
  * sourceCode: "source_code"
89
89
  * })
90
90
  */
91
- create(request: Letta.ToolCreate, requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool>;
91
+ create(request: Letta.ToolCreate, requestOptions?: Tools.RequestOptions): Promise<Letta.Tool>;
92
92
  /**
93
93
  * Create or update a tool
94
94
  *
@@ -102,7 +102,7 @@ export declare class Tools {
102
102
  * sourceCode: "source_code"
103
103
  * })
104
104
  */
105
- upsert(request: Letta.ToolCreate, requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool>;
105
+ upsert(request: Letta.ToolCreate, requestOptions?: Tools.RequestOptions): Promise<Letta.Tool>;
106
106
  /**
107
107
  * Upsert base tools
108
108
  *
@@ -113,7 +113,7 @@ export declare class Tools {
113
113
  * @example
114
114
  * await client.tools.addBaseTool()
115
115
  */
116
- addBaseTool(requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool[]>;
116
+ addBaseTool(requestOptions?: Tools.RequestOptions): Promise<Letta.Tool[]>;
117
117
  /**
118
118
  * Attempt to build a tool from source, then run it on the provided arguments
119
119
  *
@@ -165,7 +165,7 @@ export declare class Tools {
165
165
  * @example
166
166
  * await client.tools.addComposioTool("composio_action_name")
167
167
  */
168
- addComposioTool(composioActionName: string, requestOptions?: Tools.RequestOptions): Promise<Letta.LettaSchemasToolTool>;
168
+ addComposioTool(composioActionName: string, requestOptions?: Tools.RequestOptions): Promise<Letta.Tool>;
169
169
  protected _getCustomAuthorizationHeaders(): Promise<{
170
170
  Authorization: string;
171
171
  }>;
@@ -68,15 +68,15 @@ class Tools {
68
68
  * @throws {@link Letta.UnprocessableEntityError}
69
69
  *
70
70
  * @example
71
- * await client.tools.get("tool_id")
71
+ * await client.tools.retrieve("tool_id")
72
72
  */
73
- get(toolId, requestOptions) {
73
+ retrieve(toolId, requestOptions) {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
75
  var _a, _b, _c;
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Tools {
84
84
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
85
  });
86
86
  if (_response.ok) {
87
- return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
87
+ return serializers.Tool.parseOrThrow(_response.body, {
88
88
  unrecognizedObjectKeys: "passthrough",
89
89
  allowUnrecognizedUnionMembers: true,
90
90
  allowUnrecognizedEnumValues: true,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -193,15 +193,15 @@ class Tools {
193
193
  * @throws {@link Letta.UnprocessableEntityError}
194
194
  *
195
195
  * @example
196
- * await client.tools.update("tool_id")
196
+ * await client.tools.modify("tool_id")
197
197
  */
198
- update(toolId_1) {
198
+ modify(toolId_1) {
199
199
  return __awaiter(this, arguments, void 0, function* (toolId, request = {}, requestOptions) {
200
200
  var _a, _b, _c;
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -210,7 +210,7 @@ class Tools {
210
210
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
211
211
  });
212
212
  if (_response.ok) {
213
- return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
213
+ return serializers.Tool.parseOrThrow(_response.body, {
214
214
  unrecognizedObjectKeys: "passthrough",
215
215
  allowUnrecognizedUnionMembers: true,
216
216
  allowUnrecognizedEnumValues: true,
@@ -264,10 +264,10 @@ class Tools {
264
264
  list() {
265
265
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
266
266
  var _a, _b, _c;
267
- const { cursor, limit } = request;
267
+ const { after, limit } = request;
268
268
  const _queryParams = {};
269
- if (cursor != null) {
270
- _queryParams["cursor"] = cursor;
269
+ if (after != null) {
270
+ _queryParams["after"] = after;
271
271
  }
272
272
  if (limit != null) {
273
273
  _queryParams["limit"] = limit.toString();
@@ -275,7 +275,7 @@ class Tools {
275
275
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
276
276
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
277
277
  method: "GET",
278
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
279
  contentType: "application/json",
280
280
  queryParameters: _queryParams,
281
281
  requestType: "json",
@@ -343,7 +343,7 @@ class Tools {
343
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
344
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
345
345
  method: "POST",
346
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
347
  contentType: "application/json",
348
348
  requestType: "json",
349
349
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -352,7 +352,7 @@ class Tools {
352
352
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
353
353
  });
354
354
  if (_response.ok) {
355
- return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
355
+ return serializers.Tool.parseOrThrow(_response.body, {
356
356
  unrecognizedObjectKeys: "passthrough",
357
357
  allowUnrecognizedUnionMembers: true,
358
358
  allowUnrecognizedEnumValues: true,
@@ -411,7 +411,7 @@ class Tools {
411
411
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
412
412
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
413
413
  method: "PUT",
414
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
414
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
415
415
  contentType: "application/json",
416
416
  requestType: "json",
417
417
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -420,7 +420,7 @@ class Tools {
420
420
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
421
421
  });
422
422
  if (_response.ok) {
423
- return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
423
+ return serializers.Tool.parseOrThrow(_response.body, {
424
424
  unrecognizedObjectKeys: "passthrough",
425
425
  allowUnrecognizedUnionMembers: true,
426
426
  allowUnrecognizedEnumValues: true,
@@ -476,7 +476,7 @@ class Tools {
476
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
477
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
478
478
  method: "POST",
479
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
479
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
480
480
  contentType: "application/json",
481
481
  requestType: "json",
482
482
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -546,7 +546,7 @@ class Tools {
546
546
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
547
547
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
548
548
  method: "POST",
549
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
549
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
550
550
  contentType: "application/json",
551
551
  requestType: "json",
552
552
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -611,7 +611,7 @@ class Tools {
611
611
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
612
612
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
613
613
  method: "GET",
614
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
614
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
615
615
  contentType: "application/json",
616
616
  requestType: "json",
617
617
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -676,7 +676,7 @@ class Tools {
676
676
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
677
677
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
678
678
  method: "GET",
679
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
679
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
680
680
  contentType: "application/json",
681
681
  requestType: "json",
682
682
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -741,7 +741,7 @@ class Tools {
741
741
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
742
742
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
743
743
  method: "POST",
744
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
744
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.14", "User-Agent": "@letta-ai/letta-client/0.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
745
745
  contentType: "application/json",
746
746
  requestType: "json",
747
747
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -749,7 +749,7 @@ class Tools {
749
749
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
750
750
  });
751
751
  if (_response.ok) {
752
- return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
752
+ return serializers.Tool.parseOrThrow(_response.body, {
753
753
  unrecognizedObjectKeys: "passthrough",
754
754
  allowUnrecognizedUnionMembers: true,
755
755
  allowUnrecognizedEnumValues: true,
@@ -6,6 +6,6 @@
6
6
  * {}
7
7
  */
8
8
  export interface ToolsListRequest {
9
- cursor?: string;
9
+ after?: string;
10
10
  limit?: number;
11
11
  }
@@ -48,7 +48,7 @@ export interface AgentState {
48
48
  /** The in-context memory of the agent. */
49
49
  memory: Letta.Memory;
50
50
  /** The tools used by the agent. */
51
- tools: Letta.LettaSchemasToolTool[];
51
+ tools: Letta.Tool[];
52
52
  /** The sources used by the agent. */
53
53
  sources: Letta.Source[];
54
54
  /** The tags associated with the agent. */
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface AssistantMessageOutput {
4
+ export interface AssistantMessage {
5
5
  id: string;
6
6
  date: Date;
7
+ messageType: "assistant_message";
7
8
  assistantMessage: string;
8
9
  }
@@ -12,7 +12,7 @@
12
12
  * label (str): The label of the block (e.g. 'human', 'persona'). This defines a category for the block.
13
13
  * template_name (str): The name of the block template (if it is a template).
14
14
  * description (str): Description of the block.
15
- * metadata_ (Dict): Metadata of the block.
15
+ * metadata (Dict): Metadata of the block.
16
16
  * user_id (str): The unique identifier of the user associated with the block.
17
17
  */
18
18
  export interface Block {
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ChatCompletionMessageToolCall {
6
+ id: string;
7
+ function: Letta.Function;
8
+ type: "function";
9
+ /** Accepts any additional properties */
10
+ [key: string]: any;
11
+ }
@@ -35,9 +35,9 @@ export interface ContextWindowOverview {
35
35
  /** The number of tokens in the functions definitions. */
36
36
  numTokensFunctionsDefinitions: number;
37
37
  /** The content of the functions definitions. */
38
- functionsDefinitions?: Letta.LettaSchemasOpenaiChatCompletionRequestTool[];
38
+ functionsDefinitions?: Letta.FunctionTool[];
39
39
  /** The number of tokens in the messages list. */
40
40
  numTokensMessages: number;
41
41
  /** The messages in the context window. */
42
- messages: Letta.LettaSchemasMessageMessage[];
42
+ messages: Letta.Message[];
43
43
  }
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface LettaSchemasOpenaiChatCompletionRequestToolCallFunction {
5
- name: string;
4
+ export interface Function {
6
5
  arguments: string;
6
+ name: string;
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
7
9
  }
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface FunctionSchema {
4
+ export interface FunctionDefinition {
5
5
  name: string;
6
6
  description?: string;
7
7
  parameters?: Record<string, unknown>;
8
+ strict?: boolean;
9
+ /** Accepts any additional properties */
10
+ [key: string]: any;
8
11
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface FunctionTool {
6
+ function: Letta.FunctionDefinition;
7
+ type: "function";
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -2,24 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type LettaMessageUnion = Letta.LettaMessageUnion.SystemMessage | Letta.LettaMessageUnion.UserMessage | Letta.LettaMessageUnion.ReasoningMessage | Letta.LettaMessageUnion.ToolCallMessage | Letta.LettaMessageUnion.ToolReturnMessage | Letta.LettaMessageUnion.AssistantMessage;
6
- export declare namespace LettaMessageUnion {
7
- interface SystemMessage extends Letta.SystemMessageOutput {
8
- messageType: "system_message";
9
- }
10
- interface UserMessage extends Letta.UserMessageOutput {
11
- messageType: "user_message";
12
- }
13
- interface ReasoningMessage extends Letta.ReasoningMessage {
14
- messageType: "reasoning_message";
15
- }
16
- interface ToolCallMessage extends Letta.ToolCallMessage {
17
- messageType: "tool_call_message";
18
- }
19
- interface ToolReturnMessage extends Letta.ToolReturnMessage {
20
- messageType: "tool_return_message";
21
- }
22
- interface AssistantMessage extends Letta.AssistantMessageOutput {
23
- messageType: "assistant_message";
24
- }
25
- }
5
+ export type LettaMessageUnion = Letta.SystemMessage | Letta.UserMessage | Letta.ReasoningMessage | Letta.ToolCallMessage | Letta.ToolReturnMessage | Letta.AssistantMessage;
@@ -11,6 +11,7 @@
11
11
  * step_count (int): The number of steps taken by the agent.
12
12
  */
13
13
  export interface LettaUsageStatistics {
14
+ messageType?: "usage_statistics";
14
15
  /** The number of tokens generated by the agent. */
15
16
  completionTokens?: number;
16
17
  /** The number of tokens in the prompt. */
@@ -14,10 +14,10 @@ import * as Letta from "../index";
14
14
  * model (str): The model used to make the function call.
15
15
  * name (str): The name of the participant.
16
16
  * created_at (datetime): The time the message was created.
17
- * tool_calls (List[ToolCall]): The list of tool calls requested.
17
+ * tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
18
18
  * tool_call_id (str): The id of the tool call.
19
19
  */
20
- export interface LettaSchemasMessageMessage {
20
+ export interface Message {
21
21
  /** The id of the user that made this object. */
22
22
  createdById?: string;
23
23
  /** The id of the user that made this object. */
@@ -39,7 +39,7 @@ export interface LettaSchemasMessageMessage {
39
39
  /** The name of the participant. */
40
40
  name?: string;
41
41
  /** The list of tool calls requested. */
42
- toolCalls?: Letta.LettaSchemasOpenaiChatCompletionsToolCallOutput[];
42
+ toolCalls?: Letta.ChatCompletionMessageToolCall[];
43
43
  /** The id of the tool call. */
44
44
  toolCallId?: string;
45
45
  /** The id of the step that this message was created in. */
@@ -12,5 +12,6 @@
12
12
  export interface ReasoningMessage {
13
13
  id: string;
14
14
  date: Date;
15
+ messageType: "reasoning_message";
15
16
  reasoning: string;
16
17
  }
@@ -10,7 +10,7 @@ import * as Letta from "../index";
10
10
  * name (str): The name of the source.
11
11
  * embedding_config (EmbeddingConfig): The embedding configuration used by the source.
12
12
  * user_id (str): The ID of the user that created the source.
13
- * metadata_ (dict): Metadata associated with the source.
13
+ * metadata (dict): Metadata associated with the source.
14
14
  * description (str): The description of the source.
15
15
  */
16
16
  export interface Source {
@@ -9,8 +9,9 @@
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
11
  */
12
- export interface SystemMessageOutput {
12
+ export interface SystemMessage {
13
13
  id: string;
14
14
  date: Date;
15
+ messageType: "system_message";
15
16
  message: string;
16
17
  }
@@ -12,7 +12,7 @@ import * as Letta from "../index";
12
12
  * source_code (str): The source code of the function.
13
13
  * json_schema (Dict): The JSON schema of the function.
14
14
  */
15
- export interface LettaSchemasToolTool {
15
+ export interface Tool {
16
16
  /** The human-friendly ID of the Tool */
17
17
  id?: string;
18
18
  /** The type of the tool. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface LettaSchemasLettaMessageToolCall {
4
+ export interface ToolCall {
5
5
  name: string;
6
6
  arguments: string;
7
7
  toolCallId: string;
@@ -13,5 +13,6 @@ import * as Letta from "../index";
13
13
  export interface ToolCallMessage {
14
14
  id: string;
15
15
  date: Date;
16
+ messageType: "tool_call_message";
16
17
  toolCall: Letta.ToolCallMessageToolCall;
17
18
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type ToolCallMessageToolCall = Letta.LettaSchemasLettaMessageToolCall | Letta.ToolCallDelta;
5
+ export type ToolCallMessageToolCall = Letta.ToolCall | Letta.ToolCallDelta;
@@ -17,6 +17,7 @@ import * as Letta from "../index";
17
17
  export interface ToolReturnMessage {
18
18
  id: string;
19
19
  date: Date;
20
+ messageType: "tool_return_message";
20
21
  toolReturn: string;
21
22
  status: Letta.ToolReturnMessageStatus;
22
23
  toolCallId: string;
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core";
4
+ export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio";
5
5
  export declare const ToolType: {
6
6
  readonly Custom: "custom";
7
7
  readonly LettaCore: "letta_core";
8
8
  readonly LettaMemoryCore: "letta_memory_core";
9
9
  readonly LettaMultiAgentCore: "letta_multi_agent_core";
10
+ readonly ExternalComposio: "external_composio";
10
11
  };
@@ -9,4 +9,5 @@ exports.ToolType = {
9
9
  LettaCore: "letta_core",
10
10
  LettaMemoryCore: "letta_memory_core",
11
11
  LettaMultiAgentCore: "letta_multi_agent_core",
12
+ ExternalComposio: "external_composio",
12
13
  };
@@ -9,8 +9,9 @@
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
11
  */
12
- export interface UserMessageOutput {
12
+ export interface UserMessage {
13
13
  id: string;
14
14
  date: Date;
15
+ messageType: "user_message";
15
16
  message: string;
16
17
  }