@letta-ai/letta-client 0.1.5 → 0.1.8

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 (540) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +10 -0
  3. package/api/resources/agents/client/Client.d.ts +18 -97
  4. package/api/resources/agents/client/Client.js +44 -436
  5. package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts → api/resources/agents/client/requests/AgentsSearchRequest.d.ts} +3 -3
  6. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  7. package/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
  8. package/api/resources/agents/client/requests/index.d.ts +2 -4
  9. package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  10. package/api/resources/agents/resources/context/client/Client.js +1 -1
  11. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
  12. package/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
  13. package/api/resources/agents/resources/index.d.ts +6 -2
  14. package/api/resources/agents/resources/index.js +7 -3
  15. package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
  16. package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
  17. package/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
  18. package/api/resources/agents/resources/memoryVariables/index.js +18 -0
  19. package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
  20. package/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  21. package/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
  22. package/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
  23. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  24. package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  25. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  26. package/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
  27. package/{dist/api/resources/agents/resources/memoryBlocks → api/resources/agents/resources/templates}/client/Client.js +126 -45
  28. package/api/resources/agents/resources/templates/client/index.d.ts +1 -0
  29. package/api/resources/agents/resources/templates/client/index.js +17 -0
  30. package/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +2 -2
  31. package/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
  32. package/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
  33. package/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  34. package/api/resources/agents/resources/templates/index.d.ts +2 -0
  35. package/api/resources/agents/resources/templates/index.js +18 -0
  36. package/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
  37. package/api/resources/agents/resources/templates/types/index.d.ts +1 -0
  38. package/api/resources/agents/resources/templates/types/index.js +17 -0
  39. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  40. package/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
  41. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
  42. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
  43. package/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
  44. package/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
  45. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
  46. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
  47. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
  48. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  49. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
  50. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
  51. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
  52. package/api/resources/agents/types/index.d.ts +8 -10
  53. package/api/resources/agents/types/index.js +8 -10
  54. package/api/resources/blocks/client/Client.js +7 -7
  55. package/api/resources/health/client/Client.js +1 -1
  56. package/api/resources/index.d.ts +4 -0
  57. package/api/resources/index.js +5 -1
  58. package/api/resources/jobs/client/Client.js +4 -4
  59. package/api/resources/models/client/Client.js +2 -2
  60. package/api/resources/providers/client/Client.d.ts +86 -0
  61. package/api/resources/providers/client/Client.js +336 -0
  62. package/api/resources/providers/client/index.d.ts +1 -0
  63. package/api/resources/providers/client/index.js +17 -0
  64. package/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
  65. package/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
  66. package/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
  67. package/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
  68. package/api/resources/providers/client/requests/index.d.ts +4 -0
  69. package/api/resources/runs/client/Client.d.ts +115 -0
  70. package/api/resources/runs/client/Client.js +500 -0
  71. package/api/resources/runs/client/index.d.ts +1 -0
  72. package/api/resources/runs/client/index.js +17 -0
  73. package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
  74. package/api/resources/runs/client/requests/index.d.ts +1 -0
  75. package/api/resources/sources/client/Client.js +8 -8
  76. package/api/resources/sources/resources/files/client/Client.js +3 -3
  77. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  78. package/api/resources/tools/client/Client.d.ts +3 -1
  79. package/api/resources/tools/client/Client.js +15 -13
  80. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
  81. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -2
  82. package/api/types/AgentType.d.ts +1 -2
  83. package/api/types/AgentType.js +0 -1
  84. package/api/types/Job.d.ts +2 -0
  85. package/api/types/JobType.d.ts +8 -0
  86. package/api/types/JobType.js +10 -0
  87. package/api/types/LettaSchemasToolTool.d.ts +4 -3
  88. package/api/types/Provider.d.ts +13 -0
  89. package/api/types/Run.d.ts +34 -0
  90. package/api/types/ToolCreate.d.ts +0 -2
  91. package/api/types/ToolType.d.ts +9 -0
  92. package/api/types/ToolType.js +11 -0
  93. package/api/types/index.d.ts +4 -0
  94. package/api/types/index.js +4 -0
  95. package/dist/Client.d.ts +6 -0
  96. package/dist/Client.js +10 -0
  97. package/dist/api/resources/agents/client/Client.d.ts +18 -97
  98. package/dist/api/resources/agents/client/Client.js +44 -436
  99. package/{api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts → dist/api/resources/agents/client/requests/AgentsSearchRequest.d.ts} +3 -3
  100. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  101. package/dist/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
  102. package/dist/api/resources/agents/client/requests/index.d.ts +2 -4
  103. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  104. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  105. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
  106. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
  107. package/dist/api/resources/agents/resources/index.d.ts +6 -2
  108. package/dist/api/resources/agents/resources/index.js +7 -3
  109. package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
  110. package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
  111. package/dist/api/resources/agents/resources/memoryVariables/client/index.js +2 -0
  112. package/dist/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
  113. package/dist/api/resources/agents/resources/memoryVariables/index.js +18 -0
  114. package/dist/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
  115. package/dist/api/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js +5 -0
  116. package/dist/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  117. package/dist/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
  118. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
  119. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  120. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  121. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  122. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
  123. package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/templates}/client/Client.js +126 -45
  124. package/dist/api/resources/agents/resources/templates/client/index.d.ts +1 -0
  125. package/dist/api/resources/agents/resources/templates/client/index.js +17 -0
  126. package/dist/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +2 -2
  127. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +5 -0
  128. package/dist/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
  129. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +5 -0
  130. package/dist/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
  131. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +5 -0
  132. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  133. package/dist/api/resources/agents/resources/templates/client/requests/index.js +2 -0
  134. package/dist/api/resources/agents/resources/templates/index.d.ts +2 -0
  135. package/dist/api/resources/agents/resources/templates/index.js +18 -0
  136. package/dist/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
  137. package/dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +5 -0
  138. package/dist/api/resources/agents/resources/templates/types/index.d.ts +1 -0
  139. package/dist/api/resources/agents/resources/templates/types/index.js +17 -0
  140. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  141. package/dist/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
  142. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
  143. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
  144. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.js +5 -0
  145. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
  146. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.js +5 -0
  147. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
  148. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
  149. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
  150. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +5 -0
  151. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
  152. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  153. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
  154. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
  155. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
  156. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +5 -0
  157. package/dist/api/resources/agents/types/index.d.ts +8 -10
  158. package/dist/api/resources/agents/types/index.js +8 -10
  159. package/dist/api/resources/blocks/client/Client.js +7 -7
  160. package/dist/api/resources/health/client/Client.js +1 -1
  161. package/dist/api/resources/index.d.ts +4 -0
  162. package/dist/api/resources/index.js +5 -1
  163. package/dist/api/resources/jobs/client/Client.js +4 -4
  164. package/dist/api/resources/models/client/Client.js +2 -2
  165. package/dist/api/resources/providers/client/Client.d.ts +86 -0
  166. package/dist/api/resources/providers/client/Client.js +336 -0
  167. package/dist/api/resources/providers/client/index.d.ts +1 -0
  168. package/dist/api/resources/providers/client/index.js +17 -0
  169. package/dist/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
  170. package/dist/api/resources/providers/client/requests/DeleteProviderRequest.js +5 -0
  171. package/dist/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
  172. package/dist/api/resources/providers/client/requests/ListProvidersRequest.js +5 -0
  173. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
  174. package/dist/api/resources/providers/client/requests/ProviderCreate.js +5 -0
  175. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
  176. package/dist/api/resources/providers/client/requests/ProviderUpdate.js +5 -0
  177. package/dist/api/resources/providers/client/requests/index.d.ts +4 -0
  178. package/dist/api/resources/providers/client/requests/index.js +2 -0
  179. package/dist/api/resources/runs/client/Client.d.ts +115 -0
  180. package/dist/api/resources/runs/client/Client.js +500 -0
  181. package/dist/api/resources/runs/client/index.d.ts +1 -0
  182. package/dist/api/resources/runs/client/index.js +17 -0
  183. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
  184. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
  185. package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
  186. package/dist/api/resources/runs/client/requests/index.js +2 -0
  187. package/dist/api/resources/sources/client/Client.js +8 -8
  188. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  189. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  190. package/dist/api/resources/tools/client/Client.d.ts +3 -1
  191. package/dist/api/resources/tools/client/Client.js +15 -13
  192. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
  193. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -2
  194. package/dist/api/types/AgentType.d.ts +1 -2
  195. package/dist/api/types/AgentType.js +0 -1
  196. package/dist/api/types/Job.d.ts +2 -0
  197. package/dist/api/types/JobType.d.ts +8 -0
  198. package/dist/api/types/JobType.js +10 -0
  199. package/dist/api/types/LettaSchemasToolTool.d.ts +4 -3
  200. package/dist/api/types/Provider.d.ts +13 -0
  201. package/dist/api/types/Provider.js +5 -0
  202. package/dist/api/types/Run.d.ts +34 -0
  203. package/dist/api/types/Run.js +5 -0
  204. package/dist/api/types/ToolCreate.d.ts +0 -2
  205. package/dist/api/types/ToolType.d.ts +9 -0
  206. package/dist/api/types/ToolType.js +11 -0
  207. package/dist/api/types/index.d.ts +4 -0
  208. package/dist/api/types/index.js +4 -0
  209. package/dist/serialization/resources/agents/client/index.d.ts +0 -1
  210. package/dist/serialization/resources/agents/client/index.js +1 -2
  211. package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
  212. package/{serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → dist/serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
  213. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  214. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  215. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -4
  216. package/dist/serialization/resources/agents/client/requests/index.js +3 -9
  217. package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
  218. package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +32 -0
  219. package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
  220. package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
  221. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
  222. package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
  223. package/dist/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
  224. package/dist/serialization/resources/agents/resources/coreMemory/index.js +17 -0
  225. package/dist/serialization/resources/agents/resources/index.d.ts +6 -1
  226. package/dist/serialization/resources/agents/resources/index.js +7 -2
  227. package/dist/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
  228. package/dist/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
  229. package/dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
  230. package/dist/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
  231. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  232. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
  233. package/dist/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
  234. package/dist/serialization/resources/agents/resources/templates/client/index.js +17 -0
  235. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
  236. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +33 -0
  237. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
  238. package/dist/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
  239. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
  240. package/{serialization/resources/agents/client/requests/AgentsMigrateRequest.js → dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
  241. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  242. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
  243. package/dist/serialization/resources/agents/resources/templates/index.d.ts +2 -0
  244. package/dist/serialization/resources/agents/resources/templates/index.js +18 -0
  245. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
  246. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
  247. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
  248. package/dist/serialization/resources/agents/resources/templates/types/index.js +17 -0
  249. package/dist/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
  250. package/dist/serialization/resources/agents/types/{AgentsMigrateResponse.js → AgentsSearchRequestCombinator.js} +2 -4
  251. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
  252. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItem.js} +13 -6
  253. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
  254. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
  255. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
  256. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
  257. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
  258. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItemOrderBy.js} +6 -5
  259. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
  260. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  261. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
  262. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
  263. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
  264. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
  265. package/dist/serialization/resources/agents/types/index.d.ts +8 -10
  266. package/dist/serialization/resources/agents/types/index.js +8 -10
  267. package/dist/serialization/resources/index.d.ts +3 -0
  268. package/dist/serialization/resources/index.js +4 -1
  269. package/dist/serialization/resources/providers/client/index.d.ts +2 -0
  270. package/{api/resources/agents/resources/memory/resources → dist/serialization/resources/providers/client}/index.js +6 -2
  271. package/dist/serialization/resources/providers/client/listProviders.d.ts +11 -0
  272. package/{serialization/resources/agents/types/AgentsMigrateResponse.js → dist/serialization/resources/providers/client/listProviders.js} +3 -4
  273. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
  274. package/{serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → dist/serialization/resources/providers/client/requests/ProviderCreate.js} +4 -3
  275. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
  276. package/dist/serialization/resources/{agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → providers/client/requests/ProviderUpdate.js} +4 -3
  277. package/dist/serialization/resources/providers/client/requests/index.d.ts +2 -0
  278. package/dist/serialization/resources/providers/client/requests/index.js +7 -0
  279. package/dist/serialization/resources/providers/index.d.ts +1 -0
  280. package/dist/serialization/resources/providers/index.js +17 -0
  281. package/dist/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
  282. package/dist/serialization/resources/runs/client/getRunMessages.js +32 -0
  283. package/dist/serialization/resources/runs/client/index.d.ts +3 -0
  284. package/dist/{api/resources/agents/resources/memory/resources → serialization/resources/runs/client}/index.js +4 -2
  285. package/dist/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → runs/client/listActiveRuns.d.ts} +3 -3
  286. package/dist/serialization/resources/{agents/client/getAgentMemoryBlocks.js → runs/client/listActiveRuns.js} +2 -2
  287. package/{serialization/resources/agents/client/getAgentMemoryBlocks.d.ts → dist/serialization/resources/runs/client/listRuns.d.ts} +3 -3
  288. package/{serialization/resources/agents/client/getAgentMemoryBlocks.js → dist/serialization/resources/runs/client/listRuns.js} +2 -2
  289. package/dist/serialization/resources/runs/index.d.ts +1 -0
  290. package/dist/serialization/resources/runs/index.js +17 -0
  291. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
  292. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
  293. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -1
  294. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -1
  295. package/dist/serialization/types/AgentType.d.ts +1 -1
  296. package/dist/serialization/types/AgentType.js +1 -7
  297. package/dist/serialization/types/Job.d.ts +2 -0
  298. package/dist/serialization/types/Job.js +2 -0
  299. package/dist/serialization/types/JobType.d.ts +10 -0
  300. package/dist/serialization/types/JobType.js +34 -0
  301. package/dist/serialization/types/LettaSchemasToolTool.d.ts +3 -2
  302. package/dist/serialization/types/LettaSchemasToolTool.js +3 -2
  303. package/dist/serialization/types/Provider.d.ts +15 -0
  304. package/dist/serialization/types/Provider.js +36 -0
  305. package/dist/serialization/types/Run.d.ts +22 -0
  306. package/dist/serialization/types/Run.js +43 -0
  307. package/dist/serialization/types/ToolCreate.d.ts +0 -1
  308. package/dist/serialization/types/ToolCreate.js +0 -1
  309. package/dist/serialization/types/ToolType.d.ts +10 -0
  310. package/dist/serialization/types/ToolType.js +35 -0
  311. package/dist/serialization/types/index.d.ts +4 -0
  312. package/dist/serialization/types/index.js +4 -0
  313. package/dist/version.d.ts +1 -1
  314. package/dist/version.js +1 -1
  315. package/package.json +1 -1
  316. package/reference.md +1048 -317
  317. package/serialization/resources/agents/client/index.d.ts +0 -1
  318. package/serialization/resources/agents/client/index.js +1 -2
  319. package/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
  320. package/{dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
  321. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  322. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  323. package/serialization/resources/agents/client/requests/index.d.ts +1 -4
  324. package/serialization/resources/agents/client/requests/index.js +3 -9
  325. package/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
  326. package/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +32 -0
  327. package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
  328. package/{dist/serialization/resources/agents/resources/memory/resources/messages → serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
  329. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
  330. package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
  331. package/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
  332. package/serialization/resources/agents/resources/coreMemory/index.js +17 -0
  333. package/serialization/resources/agents/resources/index.d.ts +6 -1
  334. package/serialization/resources/agents/resources/index.js +7 -2
  335. package/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
  336. package/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
  337. package/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
  338. package/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
  339. package/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  340. package/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
  341. package/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
  342. package/serialization/resources/agents/resources/templates/client/index.js +17 -0
  343. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
  344. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +33 -0
  345. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
  346. package/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
  347. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
  348. package/{dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.js → serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
  349. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  350. package/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
  351. package/serialization/resources/agents/resources/templates/index.d.ts +2 -0
  352. package/serialization/resources/agents/resources/templates/index.js +18 -0
  353. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
  354. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
  355. package/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
  356. package/serialization/resources/agents/resources/templates/types/index.js +17 -0
  357. package/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
  358. package/serialization/resources/agents/types/AgentsSearchRequestCombinator.js +31 -0
  359. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
  360. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +43 -0
  361. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
  362. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
  363. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
  364. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
  365. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
  366. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +36 -0
  367. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
  368. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js +31 -0
  369. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
  370. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
  371. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
  372. package/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
  373. package/serialization/resources/agents/types/index.d.ts +8 -10
  374. package/serialization/resources/agents/types/index.js +8 -10
  375. package/serialization/resources/index.d.ts +3 -0
  376. package/serialization/resources/index.js +4 -1
  377. package/serialization/resources/providers/client/index.d.ts +2 -0
  378. package/serialization/resources/providers/client/index.js +31 -0
  379. package/serialization/resources/providers/client/listProviders.d.ts +11 -0
  380. package/serialization/resources/providers/client/listProviders.js +32 -0
  381. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
  382. package/serialization/resources/providers/client/requests/ProviderCreate.js +34 -0
  383. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
  384. package/serialization/resources/providers/client/requests/ProviderUpdate.js +34 -0
  385. package/serialization/resources/providers/client/requests/index.d.ts +2 -0
  386. package/serialization/resources/providers/client/requests/index.js +7 -0
  387. package/serialization/resources/providers/index.d.ts +1 -0
  388. package/serialization/resources/providers/index.js +17 -0
  389. package/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
  390. package/serialization/resources/runs/client/getRunMessages.js +32 -0
  391. package/serialization/resources/runs/client/index.d.ts +3 -0
  392. package/{dist/serialization/resources/agents/resources/memory/resources → serialization/resources/runs/client}/index.js +4 -2
  393. package/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
  394. package/serialization/resources/runs/client/listActiveRuns.js +32 -0
  395. package/serialization/resources/runs/client/listRuns.d.ts +11 -0
  396. package/serialization/resources/runs/client/listRuns.js +32 -0
  397. package/serialization/resources/runs/index.d.ts +1 -0
  398. package/serialization/resources/runs/index.js +17 -0
  399. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
  400. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
  401. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -1
  402. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -1
  403. package/serialization/types/AgentType.d.ts +1 -1
  404. package/serialization/types/AgentType.js +1 -7
  405. package/serialization/types/Job.d.ts +2 -0
  406. package/serialization/types/Job.js +2 -0
  407. package/serialization/types/JobType.d.ts +10 -0
  408. package/serialization/types/JobType.js +34 -0
  409. package/serialization/types/LettaSchemasToolTool.d.ts +3 -2
  410. package/serialization/types/LettaSchemasToolTool.js +3 -2
  411. package/serialization/types/Provider.d.ts +15 -0
  412. package/serialization/types/Provider.js +36 -0
  413. package/serialization/types/Run.d.ts +22 -0
  414. package/serialization/types/Run.js +43 -0
  415. package/serialization/types/ToolCreate.d.ts +0 -1
  416. package/serialization/types/ToolCreate.js +0 -1
  417. package/serialization/types/ToolType.d.ts +10 -0
  418. package/serialization/types/ToolType.js +35 -0
  419. package/serialization/types/index.d.ts +4 -0
  420. package/serialization/types/index.js +4 -0
  421. package/version.d.ts +1 -1
  422. package/version.js +1 -1
  423. package/api/resources/agents/resources/memory/index.d.ts +0 -2
  424. package/api/resources/agents/resources/memory/index.js +0 -18
  425. package/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
  426. package/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
  427. package/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
  428. package/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
  429. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
  430. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
  431. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
  432. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
  433. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
  434. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
  435. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
  436. package/dist/api/resources/agents/resources/memory/index.d.ts +0 -2
  437. package/dist/api/resources/agents/resources/memory/index.js +0 -18
  438. package/dist/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
  439. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
  440. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
  441. package/dist/api/resources/agents/resources/memory/resources/messages/client/index.d.ts +0 -1
  442. package/dist/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
  443. package/dist/api/resources/agents/resources/memoryBlocks/client/index.d.ts +0 -1
  444. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
  445. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
  446. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
  447. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
  448. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
  449. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
  450. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
  451. package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
  452. package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
  453. package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
  454. package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
  455. package/dist/serialization/resources/agents/resources/memory/index.d.ts +0 -1
  456. package/dist/serialization/resources/agents/resources/memory/index.js +0 -17
  457. package/dist/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
  458. package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
  459. package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
  460. package/dist/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
  461. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
  462. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
  463. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
  464. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
  465. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
  466. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
  467. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
  468. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
  469. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
  470. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
  471. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
  472. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
  473. package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
  474. package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
  475. package/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
  476. package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
  477. package/serialization/resources/agents/resources/memory/index.d.ts +0 -1
  478. package/serialization/resources/agents/resources/memory/index.js +0 -17
  479. package/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
  480. package/serialization/resources/agents/resources/memory/resources/index.js +0 -27
  481. package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
  482. package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
  483. package/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
  484. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
  485. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +0 -31
  486. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
  487. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
  488. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
  489. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +0 -35
  490. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
  491. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
  492. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
  493. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +0 -36
  494. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
  495. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
  496. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
  497. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
  498. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
  499. /package/api/resources/agents/client/requests/{AgentsCreateTemplateFromAgentRequest.js → AgentsSearchRequest.js} +0 -0
  500. /package/api/resources/agents/client/requests/{AgentsCreateVersionRequest.js → ResetMessagesRequest.js} +0 -0
  501. /package/api/resources/agents/resources/{memory → coreMemory}/client/index.d.ts +0 -0
  502. /package/api/resources/agents/resources/{memory → coreMemory}/client/index.js +0 -0
  503. /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
  504. /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
  505. /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.d.ts +0 -0
  506. /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.js +0 -0
  507. /package/api/resources/agents/{client/requests/AgentsMigrateRequest.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
  508. /package/api/resources/agents/{client/requests/AgentsSearchDeployedAgentsRequest.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
  509. /package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
  510. /package/api/resources/agents/{types/AgentsMigrateResponse.js → resources/templates/client/requests/TemplatesMigrateRequest.js} +0 -0
  511. /package/api/resources/agents/resources/{memoryBlocks/client → templates/client/requests}/index.js +0 -0
  512. /package/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItem.js → resources/templates/types/TemplatesMigrateResponse.js} +0 -0
  513. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItem.js} +0 -0
  514. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemName.js} +0 -0
  515. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemOrderBy.js} +0 -0
  516. /package/{dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js} +0 -0
  517. /package/{dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.js → api/resources/providers/client/requests/DeleteProviderRequest.js} +0 -0
  518. /package/{dist/api/resources/agents/client/requests/AgentsMigrateRequest.js → api/resources/providers/client/requests/ListProvidersRequest.js} +0 -0
  519. /package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → api/resources/providers/client/requests/ProviderCreate.js} +0 -0
  520. /package/{dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.js → api/resources/providers/client/requests/ProviderUpdate.js} +0 -0
  521. /package/{dist/api/resources/agents/resources/memory/client → api/resources/providers/client/requests}/index.js +0 -0
  522. /package/api/resources/{agents/resources/memoryBlocks → providers}/index.d.ts +0 -0
  523. /package/api/resources/{agents/resources/memoryBlocks → providers}/index.js +0 -0
  524. /package/{dist/api/resources/agents/types/AgentsMigrateResponse.js → api/resources/runs/client/requests/GetRunMessagesRequest.js} +0 -0
  525. /package/{dist/api/resources/agents/resources/memory/resources/messages/client → api/resources/runs/client/requests}/index.js +0 -0
  526. /package/{dist/api/resources/agents/resources/memory/resources/messages → api/resources/runs}/index.d.ts +0 -0
  527. /package/{dist/api/resources/agents/resources/memory/resources/messages → api/resources/runs}/index.js +0 -0
  528. /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js → api/types/Provider.js} +0 -0
  529. /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js → api/types/Run.js} +0 -0
  530. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → client/requests/AgentsSearchRequest.js} +0 -0
  531. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js → client/requests/ResetMessagesRequest.js} +0 -0
  532. /package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/coreMemory}/client/index.d.ts +0 -0
  533. /package/dist/api/resources/agents/resources/{memoryBlocks → coreMemory}/client/index.js +0 -0
  534. /package/dist/api/resources/agents/resources/{memoryBlocks → coreMemory}/index.d.ts +0 -0
  535. /package/dist/api/resources/agents/resources/{memoryBlocks → coreMemory}/index.js +0 -0
  536. /package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/index.d.ts +0 -0
  537. /package/dist/{serialization/resources/agents/resources/memory/resources/messages → api/resources/providers}/index.d.ts +0 -0
  538. /package/dist/{serialization/resources/agents/resources/memory/resources/messages → api/resources/providers}/index.js +0 -0
  539. /package/{serialization/resources/agents/resources/memory/resources/messages → dist/api/resources/runs}/index.d.ts +0 -0
  540. /package/{serialization/resources/agents/resources/memory/resources/messages → dist/api/resources/runs}/index.js +0 -0
@@ -70,7 +70,7 @@ class Files {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
72
72
  method: "POST",
73
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
74
  requestType: "file",
75
75
  duplex: _maybeEncodedRequest.duplex,
76
76
  body: _maybeEncodedRequest.body,
@@ -145,7 +145,7 @@ class Files {
145
145
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
146
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
147
147
  method: "GET",
148
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
148
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
149
149
  contentType: "application/json",
150
150
  queryParameters: _queryParams,
151
151
  requestType: "json",
@@ -212,7 +212,7 @@ class Files {
212
212
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
213
213
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
214
214
  method: "DELETE",
215
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
215
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
216
216
  contentType: "application/json",
217
217
  requestType: "json",
218
218
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -66,7 +66,7 @@ class Passages {
66
66
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
67
67
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
68
68
  method: "GET",
69
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
69
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -135,7 +135,9 @@ export declare class Tools {
135
135
  * @example
136
136
  * await client.tools.runToolFromSource({
137
137
  * sourceCode: "source_code",
138
- * args: "args"
138
+ * args: {
139
+ * "key": "value"
140
+ * }
139
141
  * })
140
142
  */
141
143
  runToolFromSource(request: Letta.ToolRunFromSource, requestOptions?: Tools.RequestOptions): Promise<Letta.ToolReturnMessage>;
@@ -66,7 +66,7 @@ class Tools {
66
66
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
67
67
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
68
68
  method: "GET",
69
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
69
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -131,7 +131,7 @@ class Tools {
131
131
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
132
132
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
133
133
  method: "DELETE",
134
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
134
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -191,7 +191,7 @@ class Tools {
191
191
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
192
192
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
193
193
  method: "PATCH",
194
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
194
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
195
195
  contentType: "application/json",
196
196
  requestType: "json",
197
197
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -257,7 +257,7 @@ class Tools {
257
257
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
258
258
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/name/${encodeURIComponent(toolName)}`),
259
259
  method: "GET",
260
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
260
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
261
261
  contentType: "application/json",
262
262
  requestType: "json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -330,7 +330,7 @@ class Tools {
330
330
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
331
331
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
332
332
  method: "GET",
333
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
333
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
334
334
  contentType: "application/json",
335
335
  queryParameters: _queryParams,
336
336
  requestType: "json",
@@ -398,7 +398,7 @@ class Tools {
398
398
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
399
399
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
400
400
  method: "POST",
401
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
401
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
402
402
  contentType: "application/json",
403
403
  requestType: "json",
404
404
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -466,7 +466,7 @@ class Tools {
466
466
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
467
467
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
468
468
  method: "PUT",
469
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
469
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
470
470
  contentType: "application/json",
471
471
  requestType: "json",
472
472
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -531,7 +531,7 @@ class Tools {
531
531
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
532
532
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
533
533
  method: "POST",
534
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
534
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
535
535
  contentType: "application/json",
536
536
  requestType: "json",
537
537
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -590,7 +590,9 @@ class Tools {
590
590
  * @example
591
591
  * await client.tools.runToolFromSource({
592
592
  * sourceCode: "source_code",
593
- * args: "args"
593
+ * args: {
594
+ * "key": "value"
595
+ * }
594
596
  * })
595
597
  */
596
598
  runToolFromSource(request, requestOptions) {
@@ -599,7 +601,7 @@ class Tools {
599
601
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
600
602
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
601
603
  method: "POST",
602
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
604
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
603
605
  contentType: "application/json",
604
606
  requestType: "json",
605
607
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -664,7 +666,7 @@ class Tools {
664
666
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
665
667
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
666
668
  method: "GET",
667
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
669
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
668
670
  contentType: "application/json",
669
671
  requestType: "json",
670
672
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -729,7 +731,7 @@ class Tools {
729
731
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
730
732
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
731
733
  method: "GET",
732
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
734
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
733
735
  contentType: "application/json",
734
736
  requestType: "json",
735
737
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -794,7 +796,7 @@ class Tools {
794
796
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
795
797
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
796
798
  method: "POST",
797
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "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),
799
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
798
800
  contentType: "application/json",
799
801
  requestType: "json",
800
802
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -5,14 +5,18 @@
5
5
  * @example
6
6
  * {
7
7
  * sourceCode: "source_code",
8
- * args: "args"
8
+ * args: {
9
+ * "key": "value"
10
+ * }
9
11
  * }
10
12
  */
11
13
  export interface ToolRunFromSource {
12
14
  /** The source code of the function. */
13
15
  sourceCode: string;
14
- /** The arguments to pass to the tool (as stringified JSON). */
15
- args: string;
16
+ /** The arguments to pass to the tool. */
17
+ args: Record<string, unknown>;
18
+ /** The environment variables to pass to the tool. */
19
+ envVars?: Record<string, string>;
16
20
  /** The name of the tool to run. */
17
21
  name?: string;
18
22
  /** The type of the source code. */
@@ -13,11 +13,11 @@ export interface ToolUpdate {
13
13
  /** Metadata tags. */
14
14
  tags?: string[];
15
15
  /** The source code of the function. */
16
- module?: string;
17
- /** The source code of the function. */
18
16
  sourceCode?: string;
19
17
  /** The type of the source code. */
20
18
  sourceType?: string;
21
19
  /** The JSON schema of the function (auto-generated from source_code if not provided) */
22
20
  jsonSchema?: Record<string, unknown>;
21
+ /** The maximum number of characters in the response. */
22
+ returnCharLimit?: number;
23
23
  }
@@ -4,11 +4,10 @@
4
4
  /**
5
5
  * Enum to represent the type of agent.
6
6
  */
7
- export declare type AgentType = "memgpt_agent" | "split_thread_agent" | "o1_agent" | "offline_memory_agent" | "chat_only_agent";
7
+ export declare type AgentType = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent" | "chat_only_agent";
8
8
  export declare const AgentType: {
9
9
  readonly MemgptAgent: "memgpt_agent";
10
10
  readonly SplitThreadAgent: "split_thread_agent";
11
- readonly O1Agent: "o1_agent";
12
11
  readonly OfflineMemoryAgent: "offline_memory_agent";
13
12
  readonly ChatOnlyAgent: "chat_only_agent";
14
13
  };
@@ -7,7 +7,6 @@ exports.AgentType = void 0;
7
7
  exports.AgentType = {
8
8
  MemgptAgent: "memgpt_agent",
9
9
  SplitThreadAgent: "split_thread_agent",
10
- O1Agent: "o1_agent",
11
10
  OfflineMemoryAgent: "offline_memory_agent",
12
11
  ChatOnlyAgent: "chat_only_agent",
13
12
  };
@@ -27,6 +27,8 @@ export interface Job {
27
27
  completedAt?: Date;
28
28
  /** The metadata of the job. */
29
29
  metadata?: Record<string, unknown>;
30
+ /** The type of the job. */
31
+ jobType?: Letta.JobType;
30
32
  /** The human-friendly ID of the Job */
31
33
  id?: string;
32
34
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type JobType = "job" | "run";
5
+ export declare const JobType: {
6
+ readonly Job: "job";
7
+ readonly Run: "run";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.JobType = void 0;
7
+ exports.JobType = {
8
+ Job: "job",
9
+ Run: "run",
10
+ };
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * Representation of a tool, which is a function that can be called by the agent.
6
7
  *
@@ -14,18 +15,18 @@
14
15
  export interface LettaSchemasToolTool {
15
16
  /** The human-friendly ID of the Tool */
16
17
  id?: string;
18
+ /** The type of the tool. */
19
+ toolType?: Letta.ToolType;
17
20
  /** The description of the tool. */
18
21
  description?: string;
19
22
  /** The type of the source code. */
20
23
  sourceType?: string;
21
- /** The module of the function. */
22
- module?: string;
23
24
  /** The name of the function. */
24
25
  name?: string;
25
26
  /** Metadata tags. */
26
27
  tags?: string[];
27
28
  /** The source code of the function. */
28
- sourceCode: string;
29
+ sourceCode?: string;
29
30
  /** The JSON schema of the function. */
30
31
  jsonSchema?: Record<string, unknown>;
31
32
  /** The maximum number of characters in the response. */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Provider {
5
+ /** The id of the provider, lazily created by the database manager. */
6
+ id?: string;
7
+ /** The name of the provider */
8
+ name: string;
9
+ /** API key used for requests to the provider. */
10
+ apiKey?: string;
11
+ /** The last update timestamp of the provider. */
12
+ updatedAt?: Date;
13
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Representation of a run, which is a job with a 'run' prefix in its ID.
7
+ * Inherits all fields and behavior from Job except for the ID prefix.
8
+ *
9
+ * Parameters:
10
+ * id (str): The unique identifier of the run (prefixed with 'run-').
11
+ * status (JobStatus): The status of the run.
12
+ * created_at (datetime): The unix timestamp of when the run was created.
13
+ * completed_at (datetime): The unix timestamp of when the run was completed.
14
+ * user_id (str): The unique identifier of the user associated with the run.
15
+ */
16
+ export interface Run {
17
+ /** The id of the user that made this object. */
18
+ createdById?: string;
19
+ /** The id of the user that made this object. */
20
+ lastUpdatedById?: string;
21
+ /** The timestamp when the object was created. */
22
+ createdAt?: Date;
23
+ /** The timestamp when the object was last updated. */
24
+ updatedAt?: Date;
25
+ /** The status of the job. */
26
+ status?: Letta.JobStatus;
27
+ /** The unix timestamp of when the job was completed. */
28
+ completedAt?: Date;
29
+ /** The metadata of the job. */
30
+ metadata?: Record<string, unknown>;
31
+ jobType?: Letta.JobType;
32
+ /** The human-friendly ID of the Run */
33
+ id?: string;
34
+ }
@@ -9,8 +9,6 @@ export interface ToolCreate {
9
9
  /** Metadata tags. */
10
10
  tags?: string[];
11
11
  /** The source code of the function. */
12
- module?: string;
13
- /** The source code of the function. */
14
12
  sourceCode: string;
15
13
  /** The source type of the function. */
16
14
  sourceType?: string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ToolType = "custom" | "letta_core" | "letta_memory_core";
5
+ export declare const ToolType: {
6
+ readonly Custom: "custom";
7
+ readonly LettaCore: "letta_core";
8
+ readonly LettaMemoryCore: "letta_memory_core";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ToolType = void 0;
7
+ exports.ToolType = {
8
+ Custom: "custom",
9
+ LettaCore: "letta_core",
10
+ LettaMemoryCore: "letta_memory_core",
11
+ };
@@ -48,6 +48,7 @@ export * from "./Health";
48
48
  export * from "./InitToolRule";
49
49
  export * from "./Job";
50
50
  export * from "./JobStatus";
51
+ export * from "./JobType";
51
52
  export * from "./LlmConfigModelEndpointType";
52
53
  export * from "./LlmConfig";
53
54
  export * from "./LettaRequest";
@@ -65,9 +66,11 @@ export * from "./OpenAiAssistant";
65
66
  export * from "./Organization";
66
67
  export * from "./OrganizationCreate";
67
68
  export * from "./Passage";
69
+ export * from "./Provider";
68
70
  export * from "./ReasoningMessage";
69
71
  export * from "./RecallMemorySummary";
70
72
  export * from "./ResponseFormat";
73
+ export * from "./Run";
71
74
  export * from "./SandboxConfig";
72
75
  export * from "./SandboxConfigCreateConfig";
73
76
  export * from "./SandboxConfigCreate";
@@ -92,6 +95,7 @@ export * from "./ToolMessage";
92
95
  export * from "./ToolReturnMessageStatus";
93
96
  export * from "./ToolReturnMessage";
94
97
  export * from "./ToolRuleType";
98
+ export * from "./ToolType";
95
99
  export * from "./UsageStatistics";
96
100
  export * from "./User";
97
101
  export * from "./UserCreate";
@@ -64,6 +64,7 @@ __exportStar(require("./Health"), exports);
64
64
  __exportStar(require("./InitToolRule"), exports);
65
65
  __exportStar(require("./Job"), exports);
66
66
  __exportStar(require("./JobStatus"), exports);
67
+ __exportStar(require("./JobType"), exports);
67
68
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
68
69
  __exportStar(require("./LlmConfig"), exports);
69
70
  __exportStar(require("./LettaRequest"), exports);
@@ -81,9 +82,11 @@ __exportStar(require("./OpenAiAssistant"), exports);
81
82
  __exportStar(require("./Organization"), exports);
82
83
  __exportStar(require("./OrganizationCreate"), exports);
83
84
  __exportStar(require("./Passage"), exports);
85
+ __exportStar(require("./Provider"), exports);
84
86
  __exportStar(require("./ReasoningMessage"), exports);
85
87
  __exportStar(require("./RecallMemorySummary"), exports);
86
88
  __exportStar(require("./ResponseFormat"), exports);
89
+ __exportStar(require("./Run"), exports);
87
90
  __exportStar(require("./SandboxConfig"), exports);
88
91
  __exportStar(require("./SandboxConfigCreateConfig"), exports);
89
92
  __exportStar(require("./SandboxConfigCreate"), exports);
@@ -108,6 +111,7 @@ __exportStar(require("./ToolMessage"), exports);
108
111
  __exportStar(require("./ToolReturnMessageStatus"), exports);
109
112
  __exportStar(require("./ToolReturnMessage"), exports);
110
113
  __exportStar(require("./ToolRuleType"), exports);
114
+ __exportStar(require("./ToolType"), exports);
111
115
  __exportStar(require("./UsageStatistics"), exports);
112
116
  __exportStar(require("./User"), exports);
113
117
  __exportStar(require("./UserCreate"), exports);
package/dist/Client.d.ts CHANGED
@@ -10,6 +10,8 @@ import { Models } from "./api/resources/models/client/Client";
10
10
  import { Blocks } from "./api/resources/blocks/client/Client";
11
11
  import { Jobs } from "./api/resources/jobs/client/Client";
12
12
  import { Health } from "./api/resources/health/client/Client";
13
+ import { Providers } from "./api/resources/providers/client/Client";
14
+ import { Runs } from "./api/resources/runs/client/Client";
13
15
  export declare namespace LettaClient {
14
16
  interface Options {
15
17
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -36,6 +38,8 @@ export declare class LettaClient {
36
38
  protected _blocks: Blocks | undefined;
37
39
  protected _jobs: Jobs | undefined;
38
40
  protected _health: Health | undefined;
41
+ protected _providers: Providers | undefined;
42
+ protected _runs: Runs | undefined;
39
43
  constructor(_options?: LettaClient.Options);
40
44
  get tools(): Tools;
41
45
  get sources(): Sources;
@@ -44,4 +48,6 @@ export declare class LettaClient {
44
48
  get blocks(): Blocks;
45
49
  get jobs(): Jobs;
46
50
  get health(): Health;
51
+ get providers(): Providers;
52
+ get runs(): Runs;
47
53
  }
package/dist/Client.js CHANGED
@@ -11,6 +11,8 @@ const Client_4 = require("./api/resources/models/client/Client");
11
11
  const Client_5 = require("./api/resources/blocks/client/Client");
12
12
  const Client_6 = require("./api/resources/jobs/client/Client");
13
13
  const Client_7 = require("./api/resources/health/client/Client");
14
+ const Client_8 = require("./api/resources/providers/client/Client");
15
+ const Client_9 = require("./api/resources/runs/client/Client");
14
16
  class LettaClient {
15
17
  constructor(_options = {}) {
16
18
  this._options = _options;
@@ -43,5 +45,13 @@ class LettaClient {
43
45
  var _a;
44
46
  return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_7.Health(this._options)));
45
47
  }
48
+ get providers() {
49
+ var _a;
50
+ return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_8.Providers(this._options)));
51
+ }
52
+ get runs() {
53
+ var _a;
54
+ return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_9.Runs(this._options)));
55
+ }
46
56
  }
47
57
  exports.LettaClient = LettaClient;