@letta-ai/letta-client 0.1.5 → 0.1.7

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 (461) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/agents/client/Client.d.ts +14 -106
  4. package/api/resources/agents/client/Client.js +31 -495
  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/index.d.ts +1 -4
  7. package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  8. package/api/resources/agents/resources/context/client/Client.js +1 -1
  9. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
  10. package/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
  11. package/api/resources/agents/resources/index.d.ts +6 -2
  12. package/api/resources/agents/resources/index.js +7 -3
  13. package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
  14. package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
  15. package/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
  16. package/api/resources/agents/resources/memoryVariables/index.js +18 -0
  17. package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
  18. package/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  19. package/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
  20. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  21. package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  22. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  23. package/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
  24. package/{dist/api/resources/agents/resources/memoryBlocks → api/resources/agents/resources/templates}/client/Client.js +126 -45
  25. package/api/resources/agents/resources/templates/client/index.d.ts +1 -0
  26. package/api/resources/agents/resources/templates/client/index.js +17 -0
  27. package/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +1 -1
  28. package/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
  29. package/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
  30. package/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  31. package/api/resources/agents/resources/templates/index.d.ts +2 -0
  32. package/api/resources/agents/resources/templates/index.js +18 -0
  33. package/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
  34. package/api/resources/agents/resources/templates/types/index.d.ts +1 -0
  35. package/api/resources/agents/resources/templates/types/index.js +17 -0
  36. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  37. package/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
  38. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
  39. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
  40. package/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
  41. package/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
  42. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
  43. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
  44. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
  45. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  46. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
  47. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
  48. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
  49. package/api/resources/agents/types/index.d.ts +8 -10
  50. package/api/resources/agents/types/index.js +8 -10
  51. package/api/resources/blocks/client/Client.js +7 -7
  52. package/api/resources/health/client/Client.js +1 -1
  53. package/api/resources/index.d.ts +2 -0
  54. package/api/resources/index.js +3 -1
  55. package/api/resources/jobs/client/Client.js +4 -4
  56. package/api/resources/models/client/Client.js +2 -2
  57. package/api/resources/providers/client/Client.d.ts +86 -0
  58. package/api/resources/providers/client/Client.js +336 -0
  59. package/api/resources/providers/client/index.d.ts +1 -0
  60. package/api/resources/providers/client/index.js +17 -0
  61. package/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
  62. package/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
  63. package/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
  64. package/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
  65. package/api/resources/providers/client/requests/index.d.ts +4 -0
  66. package/api/resources/sources/client/Client.js +8 -8
  67. package/api/resources/sources/resources/files/client/Client.js +3 -3
  68. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  69. package/api/resources/tools/client/Client.d.ts +3 -1
  70. package/api/resources/tools/client/Client.js +15 -13
  71. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
  72. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  73. package/api/types/AgentType.d.ts +1 -2
  74. package/api/types/AgentType.js +0 -1
  75. package/api/types/LettaSchemasToolTool.d.ts +4 -1
  76. package/api/types/Provider.d.ts +13 -0
  77. package/api/types/ToolType.d.ts +9 -0
  78. package/api/types/ToolType.js +11 -0
  79. package/api/types/index.d.ts +2 -0
  80. package/api/types/index.js +2 -0
  81. package/dist/Client.d.ts +3 -0
  82. package/dist/Client.js +5 -0
  83. package/dist/api/resources/agents/client/Client.d.ts +14 -106
  84. package/dist/api/resources/agents/client/Client.js +31 -495
  85. package/{api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts → dist/api/resources/agents/client/requests/AgentsSearchRequest.d.ts} +3 -3
  86. package/dist/api/resources/agents/client/requests/index.d.ts +1 -4
  87. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  88. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  89. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
  90. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
  91. package/dist/api/resources/agents/resources/index.d.ts +6 -2
  92. package/dist/api/resources/agents/resources/index.js +7 -3
  93. package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
  94. package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
  95. package/dist/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
  96. package/dist/api/resources/agents/resources/memoryVariables/index.js +18 -0
  97. package/dist/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
  98. package/dist/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  99. package/dist/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
  100. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  101. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  102. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  103. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
  104. package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/templates}/client/Client.js +126 -45
  105. package/dist/api/resources/agents/resources/templates/client/index.d.ts +1 -0
  106. package/dist/api/resources/agents/resources/templates/client/index.js +17 -0
  107. package/dist/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +1 -1
  108. package/dist/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
  109. package/dist/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
  110. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  111. package/dist/api/resources/agents/resources/templates/client/requests/index.js +2 -0
  112. package/dist/api/resources/agents/resources/templates/index.d.ts +2 -0
  113. package/dist/api/resources/agents/resources/templates/index.js +18 -0
  114. package/dist/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
  115. package/dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +5 -0
  116. package/dist/api/resources/agents/resources/templates/types/index.d.ts +1 -0
  117. package/dist/api/resources/agents/resources/templates/types/index.js +17 -0
  118. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  119. package/dist/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
  120. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
  121. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
  122. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.js +5 -0
  123. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
  124. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.js +5 -0
  125. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
  126. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
  127. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
  128. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +5 -0
  129. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
  130. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  131. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
  132. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
  133. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
  134. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +5 -0
  135. package/dist/api/resources/agents/types/index.d.ts +8 -10
  136. package/dist/api/resources/agents/types/index.js +8 -10
  137. package/dist/api/resources/blocks/client/Client.js +7 -7
  138. package/dist/api/resources/health/client/Client.js +1 -1
  139. package/dist/api/resources/index.d.ts +2 -0
  140. package/dist/api/resources/index.js +3 -1
  141. package/dist/api/resources/jobs/client/Client.js +4 -4
  142. package/dist/api/resources/models/client/Client.js +2 -2
  143. package/dist/api/resources/providers/client/Client.d.ts +86 -0
  144. package/dist/api/resources/providers/client/Client.js +336 -0
  145. package/dist/api/resources/providers/client/index.d.ts +1 -0
  146. package/dist/api/resources/providers/client/index.js +17 -0
  147. package/dist/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
  148. package/dist/api/resources/providers/client/requests/DeleteProviderRequest.js +5 -0
  149. package/dist/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
  150. package/dist/api/resources/providers/client/requests/ListProvidersRequest.js +5 -0
  151. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
  152. package/dist/api/resources/providers/client/requests/ProviderCreate.js +5 -0
  153. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
  154. package/dist/api/resources/providers/client/requests/ProviderUpdate.js +5 -0
  155. package/dist/api/resources/providers/client/requests/index.d.ts +4 -0
  156. package/dist/api/resources/providers/client/requests/index.js +2 -0
  157. package/dist/api/resources/sources/client/Client.js +8 -8
  158. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  159. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  160. package/dist/api/resources/tools/client/Client.d.ts +3 -1
  161. package/dist/api/resources/tools/client/Client.js +15 -13
  162. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
  163. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  164. package/dist/api/types/AgentType.d.ts +1 -2
  165. package/dist/api/types/AgentType.js +0 -1
  166. package/dist/api/types/LettaSchemasToolTool.d.ts +4 -1
  167. package/dist/api/types/Provider.d.ts +13 -0
  168. package/dist/api/types/Provider.js +5 -0
  169. package/dist/api/types/ToolType.d.ts +9 -0
  170. package/dist/api/types/ToolType.js +11 -0
  171. package/dist/api/types/index.d.ts +2 -0
  172. package/dist/api/types/index.js +2 -0
  173. package/dist/serialization/resources/agents/client/index.d.ts +0 -1
  174. package/dist/serialization/resources/agents/client/index.js +1 -2
  175. package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
  176. package/{serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → dist/serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
  177. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -4
  178. package/dist/serialization/resources/agents/client/requests/index.js +3 -9
  179. package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
  180. package/{serialization/resources/agents/client/getAgentMemoryBlocks.js → dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js} +2 -2
  181. package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
  182. package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
  183. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
  184. package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
  185. package/dist/serialization/resources/agents/resources/index.d.ts +6 -1
  186. package/dist/serialization/resources/agents/resources/index.js +7 -2
  187. package/dist/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
  188. package/dist/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
  189. package/dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
  190. package/dist/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
  191. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  192. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
  193. package/dist/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
  194. package/dist/serialization/resources/agents/resources/templates/client/index.js +17 -0
  195. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
  196. package/{serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js} +3 -3
  197. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
  198. package/dist/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
  199. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
  200. package/{serialization/resources/agents/client/requests/AgentsMigrateRequest.js → dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
  201. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  202. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
  203. package/dist/serialization/resources/agents/resources/templates/index.d.ts +2 -0
  204. package/dist/serialization/resources/agents/resources/templates/index.js +18 -0
  205. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
  206. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
  207. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
  208. package/dist/serialization/resources/agents/resources/templates/types/index.js +17 -0
  209. package/dist/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
  210. package/dist/serialization/resources/agents/types/{AgentsMigrateResponse.js → AgentsSearchRequestCombinator.js} +2 -4
  211. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
  212. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItem.js} +13 -6
  213. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
  214. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
  215. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
  216. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
  217. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
  218. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItemOrderBy.js} +6 -5
  219. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
  220. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  221. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
  222. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
  223. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
  224. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
  225. package/dist/serialization/resources/agents/types/index.d.ts +8 -10
  226. package/dist/serialization/resources/agents/types/index.js +8 -10
  227. package/dist/serialization/resources/index.d.ts +2 -0
  228. package/dist/serialization/resources/index.js +3 -1
  229. package/dist/serialization/resources/providers/client/index.d.ts +2 -0
  230. package/dist/serialization/resources/{agents/resources/memory/resources → providers/client}/index.js +6 -2
  231. package/dist/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → providers/client/listProviders.d.ts} +3 -3
  232. package/{serialization/resources/agents/types/AgentsMigrateResponse.js → dist/serialization/resources/providers/client/listProviders.js} +3 -4
  233. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
  234. package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +34 -0
  235. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
  236. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +34 -0
  237. package/dist/serialization/resources/providers/client/requests/index.d.ts +2 -0
  238. package/dist/serialization/resources/providers/client/requests/index.js +7 -0
  239. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
  240. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
  241. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  242. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  243. package/dist/serialization/types/AgentType.d.ts +1 -1
  244. package/dist/serialization/types/AgentType.js +1 -7
  245. package/dist/serialization/types/LettaSchemasToolTool.d.ts +3 -1
  246. package/dist/serialization/types/LettaSchemasToolTool.js +3 -1
  247. package/dist/serialization/types/Provider.d.ts +15 -0
  248. package/dist/serialization/types/Provider.js +36 -0
  249. package/dist/serialization/types/ToolType.d.ts +10 -0
  250. package/dist/serialization/types/ToolType.js +35 -0
  251. package/dist/serialization/types/index.d.ts +2 -0
  252. package/dist/serialization/types/index.js +2 -0
  253. package/dist/version.d.ts +1 -1
  254. package/dist/version.js +1 -1
  255. package/package.json +1 -1
  256. package/reference.md +591 -317
  257. package/serialization/resources/agents/client/index.d.ts +0 -1
  258. package/serialization/resources/agents/client/index.js +1 -2
  259. package/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
  260. package/{dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
  261. package/serialization/resources/agents/client/requests/index.d.ts +1 -4
  262. package/serialization/resources/agents/client/requests/index.js +3 -9
  263. package/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
  264. package/{dist/serialization/resources/agents/client/getAgentMemoryBlocks.js → serialization/resources/agents/resources/coreMemory/client/getBlocks.js} +2 -2
  265. package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
  266. package/{dist/serialization/resources/agents/resources/memory/resources/messages → serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
  267. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
  268. package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
  269. package/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
  270. package/serialization/resources/agents/resources/coreMemory/index.js +17 -0
  271. package/serialization/resources/agents/resources/index.d.ts +6 -1
  272. package/serialization/resources/agents/resources/index.js +7 -2
  273. package/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
  274. package/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
  275. package/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
  276. package/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
  277. package/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  278. package/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
  279. package/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
  280. package/serialization/resources/agents/resources/templates/client/index.js +17 -0
  281. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
  282. package/{dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js} +3 -3
  283. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
  284. package/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
  285. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
  286. package/{dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.js → serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
  287. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  288. package/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
  289. package/serialization/resources/agents/resources/templates/index.d.ts +2 -0
  290. package/serialization/resources/agents/resources/templates/index.js +18 -0
  291. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
  292. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
  293. package/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
  294. package/serialization/resources/agents/resources/templates/types/index.js +17 -0
  295. package/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
  296. package/serialization/resources/agents/types/AgentsSearchRequestCombinator.js +31 -0
  297. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
  298. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +43 -0
  299. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
  300. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
  301. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
  302. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
  303. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
  304. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +36 -0
  305. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
  306. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js +31 -0
  307. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
  308. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
  309. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
  310. package/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
  311. package/serialization/resources/agents/types/index.d.ts +8 -10
  312. package/serialization/resources/agents/types/index.js +8 -10
  313. package/serialization/resources/index.d.ts +2 -0
  314. package/serialization/resources/index.js +3 -1
  315. package/serialization/resources/providers/client/index.d.ts +2 -0
  316. package/{api/resources/agents/resources/memory/resources → serialization/resources/providers/client}/index.js +6 -2
  317. package/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → providers/client/listProviders.d.ts} +3 -3
  318. package/serialization/resources/providers/client/listProviders.js +32 -0
  319. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
  320. package/serialization/resources/providers/client/requests/ProviderCreate.js +34 -0
  321. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
  322. package/serialization/resources/providers/client/requests/ProviderUpdate.js +34 -0
  323. package/serialization/resources/providers/client/requests/index.d.ts +2 -0
  324. package/serialization/resources/providers/client/requests/index.js +7 -0
  325. package/serialization/resources/providers/index.d.ts +1 -0
  326. package/serialization/resources/providers/index.js +17 -0
  327. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
  328. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
  329. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  330. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  331. package/serialization/types/AgentType.d.ts +1 -1
  332. package/serialization/types/AgentType.js +1 -7
  333. package/serialization/types/LettaSchemasToolTool.d.ts +3 -1
  334. package/serialization/types/LettaSchemasToolTool.js +3 -1
  335. package/serialization/types/Provider.d.ts +15 -0
  336. package/serialization/types/Provider.js +36 -0
  337. package/serialization/types/ToolType.d.ts +10 -0
  338. package/serialization/types/ToolType.js +35 -0
  339. package/serialization/types/index.d.ts +2 -0
  340. package/serialization/types/index.js +2 -0
  341. package/version.d.ts +1 -1
  342. package/version.js +1 -1
  343. package/api/resources/agents/resources/memory/index.d.ts +0 -2
  344. package/api/resources/agents/resources/memory/index.js +0 -18
  345. package/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
  346. package/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
  347. package/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
  348. package/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
  349. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
  350. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
  351. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
  352. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
  353. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
  354. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
  355. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
  356. package/dist/api/resources/agents/resources/memory/index.d.ts +0 -2
  357. package/dist/api/resources/agents/resources/memory/index.js +0 -18
  358. package/dist/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
  359. package/dist/api/resources/agents/resources/memory/resources/index.js +0 -27
  360. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
  361. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
  362. package/dist/api/resources/agents/resources/memory/resources/messages/client/index.d.ts +0 -1
  363. package/dist/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
  364. package/dist/api/resources/agents/resources/memoryBlocks/client/index.d.ts +0 -1
  365. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
  366. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
  367. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
  368. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
  369. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
  370. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
  371. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
  372. package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
  373. package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
  374. package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
  375. package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
  376. package/dist/serialization/resources/agents/resources/memory/index.d.ts +0 -1
  377. package/dist/serialization/resources/agents/resources/memory/index.js +0 -17
  378. package/dist/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
  379. package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
  380. package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
  381. package/dist/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
  382. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
  383. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
  384. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
  385. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
  386. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
  387. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
  388. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
  389. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
  390. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
  391. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
  392. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
  393. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
  394. package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
  395. package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
  396. package/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
  397. package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
  398. package/serialization/resources/agents/resources/memory/index.d.ts +0 -1
  399. package/serialization/resources/agents/resources/memory/index.js +0 -17
  400. package/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
  401. package/serialization/resources/agents/resources/memory/resources/index.js +0 -27
  402. package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
  403. package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
  404. package/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
  405. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
  406. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +0 -31
  407. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
  408. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
  409. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
  410. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +0 -35
  411. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
  412. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
  413. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
  414. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +0 -36
  415. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
  416. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
  417. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
  418. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
  419. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
  420. /package/api/resources/agents/client/requests/{AgentsCreateTemplateFromAgentRequest.js → AgentsSearchRequest.js} +0 -0
  421. /package/api/resources/agents/resources/{memory → coreMemory}/client/index.d.ts +0 -0
  422. /package/api/resources/agents/resources/{memory → coreMemory}/client/index.js +0 -0
  423. /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
  424. /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
  425. /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.d.ts +0 -0
  426. /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.js +0 -0
  427. /package/api/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
  428. /package/api/resources/agents/{client/requests/AgentsMigrateRequest.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
  429. /package/api/resources/agents/{client/requests/AgentsSearchDeployedAgentsRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
  430. /package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/templates/client/requests/TemplatesMigrateRequest.js} +0 -0
  431. /package/api/resources/agents/resources/{memoryBlocks/client → templates/client/requests}/index.js +0 -0
  432. /package/api/resources/agents/{types/AgentsMigrateResponse.js → resources/templates/types/TemplatesMigrateResponse.js} +0 -0
  433. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItem.js → AgentsSearchRequestSearchItem.js} +0 -0
  434. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItemName.js} +0 -0
  435. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemOrderBy.js} +0 -0
  436. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +0 -0
  437. /package/{dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → api/resources/providers/client/requests/DeleteProviderRequest.js} +0 -0
  438. /package/{dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.js → api/resources/providers/client/requests/ListProvidersRequest.js} +0 -0
  439. /package/{dist/api/resources/agents/client/requests/AgentsMigrateRequest.js → api/resources/providers/client/requests/ProviderCreate.js} +0 -0
  440. /package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → api/resources/providers/client/requests/ProviderUpdate.js} +0 -0
  441. /package/{dist/api/resources/agents/resources/memory/client → api/resources/providers/client/requests}/index.js +0 -0
  442. /package/api/resources/{agents/resources/memoryBlocks → providers}/index.d.ts +0 -0
  443. /package/api/resources/{agents/resources/memoryBlocks → providers}/index.js +0 -0
  444. /package/{dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.js → api/types/Provider.js} +0 -0
  445. /package/dist/api/resources/agents/{types/AgentsMigrateResponse.js → client/requests/AgentsSearchRequest.js} +0 -0
  446. /package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/coreMemory}/client/index.d.ts +0 -0
  447. /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.js +0 -0
  448. /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
  449. /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
  450. /package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/index.d.ts +0 -0
  451. /package/dist/api/resources/agents/resources/{memoryBlocks → memoryVariables}/client/index.js +0 -0
  452. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItem.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
  453. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemName.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
  454. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
  455. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js → resources/templates/client/requests/TemplatesMigrateRequest.js} +0 -0
  456. /package/dist/api/resources/{agents/resources/memoryBlocks → providers}/index.d.ts +0 -0
  457. /package/dist/api/resources/{agents/resources/memoryBlocks → providers}/index.js +0 -0
  458. /package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
  459. /package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
  460. /package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/providers}/index.d.ts +0 -0
  461. /package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/providers}/index.js +0 -0
@@ -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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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, string>;
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. */
@@ -20,4 +20,6 @@ export interface ToolUpdate {
20
20
  sourceType?: string;
21
21
  /** The JSON schema of the function (auto-generated from source_code if not provided) */
22
22
  jsonSchema?: Record<string, unknown>;
23
+ /** The maximum number of characters in the response. */
24
+ returnCharLimit?: number;
23
25
  }
@@ -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
  };
@@ -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,6 +15,8 @@
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. */
@@ -25,7 +28,7 @@ export interface LettaSchemasToolTool {
25
28
  /** Metadata tags. */
26
29
  tags?: string[];
27
30
  /** The source code of the function. */
28
- sourceCode: string;
31
+ sourceCode?: string;
29
32
  /** The JSON schema of the function. */
30
33
  jsonSchema?: Record<string, unknown>;
31
34
  /** 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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,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
+ };
@@ -65,6 +65,7 @@ export * from "./OpenAiAssistant";
65
65
  export * from "./Organization";
66
66
  export * from "./OrganizationCreate";
67
67
  export * from "./Passage";
68
+ export * from "./Provider";
68
69
  export * from "./ReasoningMessage";
69
70
  export * from "./RecallMemorySummary";
70
71
  export * from "./ResponseFormat";
@@ -92,6 +93,7 @@ export * from "./ToolMessage";
92
93
  export * from "./ToolReturnMessageStatus";
93
94
  export * from "./ToolReturnMessage";
94
95
  export * from "./ToolRuleType";
96
+ export * from "./ToolType";
95
97
  export * from "./UsageStatistics";
96
98
  export * from "./User";
97
99
  export * from "./UserCreate";
@@ -81,6 +81,7 @@ __exportStar(require("./OpenAiAssistant"), exports);
81
81
  __exportStar(require("./Organization"), exports);
82
82
  __exportStar(require("./OrganizationCreate"), exports);
83
83
  __exportStar(require("./Passage"), exports);
84
+ __exportStar(require("./Provider"), exports);
84
85
  __exportStar(require("./ReasoningMessage"), exports);
85
86
  __exportStar(require("./RecallMemorySummary"), exports);
86
87
  __exportStar(require("./ResponseFormat"), exports);
@@ -108,6 +109,7 @@ __exportStar(require("./ToolMessage"), exports);
108
109
  __exportStar(require("./ToolReturnMessageStatus"), exports);
109
110
  __exportStar(require("./ToolReturnMessage"), exports);
110
111
  __exportStar(require("./ToolRuleType"), exports);
112
+ __exportStar(require("./ToolType"), exports);
111
113
  __exportStar(require("./UsageStatistics"), exports);
112
114
  __exportStar(require("./User"), exports);
113
115
  __exportStar(require("./UserCreate"), exports);
@@ -1,3 +1,2 @@
1
1
  export * as list from "./list";
2
- export * as getAgentMemoryBlocks from "./getAgentMemoryBlocks";
3
2
  export * from "./requests";
@@ -26,7 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.getAgentMemoryBlocks = exports.list = void 0;
29
+ exports.list = void 0;
30
30
  exports.list = __importStar(require("./list"));
31
- exports.getAgentMemoryBlocks = __importStar(require("./getAgentMemoryBlocks"));
32
31
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Letta from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { AgentsSearchRequestSearchItem } from "../../types/AgentsSearchRequestSearchItem";
8
+ import { AgentsSearchRequestCombinator } from "../../types/AgentsSearchRequestCombinator";
9
+ export declare const AgentsSearchRequest: core.serialization.Schema<serializers.AgentsSearchRequest.Raw, Letta.AgentsSearchRequest>;
10
+ export declare namespace AgentsSearchRequest {
11
+ interface Raw {
12
+ search?: AgentsSearchRequestSearchItem.Raw[] | null;
13
+ project_id?: string | null;
14
+ combinator?: AgentsSearchRequestCombinator.Raw | null;
15
+ limit?: number | null;
16
+ offset?: number | null;
17
+ }
18
+ }
@@ -26,14 +26,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.AgentsSearchDeployedAgentsRequest = void 0;
29
+ exports.AgentsSearchRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
- const AgentsSearchDeployedAgentsRequestSearchItem_1 = require("../../types/AgentsSearchDeployedAgentsRequestSearchItem");
32
- const AgentsSearchDeployedAgentsRequestCombinator_1 = require("../../types/AgentsSearchDeployedAgentsRequestCombinator");
33
- exports.AgentsSearchDeployedAgentsRequest = core.serialization.object({
34
- search: core.serialization.list(AgentsSearchDeployedAgentsRequestSearchItem_1.AgentsSearchDeployedAgentsRequestSearchItem).optional(),
31
+ const AgentsSearchRequestSearchItem_1 = require("../../types/AgentsSearchRequestSearchItem");
32
+ const AgentsSearchRequestCombinator_1 = require("../../types/AgentsSearchRequestCombinator");
33
+ exports.AgentsSearchRequest = core.serialization.object({
34
+ search: core.serialization.list(AgentsSearchRequestSearchItem_1.AgentsSearchRequestSearchItem).optional(),
35
35
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
36
- combinator: AgentsSearchDeployedAgentsRequestCombinator_1.AgentsSearchDeployedAgentsRequestCombinator.optional(),
36
+ combinator: AgentsSearchRequestCombinator_1.AgentsSearchRequestCombinator.optional(),
37
37
  limit: core.serialization.number().optional(),
38
38
  offset: core.serialization.number().optional(),
39
39
  });
@@ -1,6 +1,3 @@
1
1
  export { CreateAgentRequest } from "./CreateAgentRequest";
2
2
  export { UpdateAgent } from "./UpdateAgent";
3
- export { AgentsSearchDeployedAgentsRequest } from "./AgentsSearchDeployedAgentsRequest";
4
- export { AgentsCreateVersionRequest } from "./AgentsCreateVersionRequest";
5
- export { AgentsMigrateRequest } from "./AgentsMigrateRequest";
6
- export { AgentsCreateTemplateFromAgentRequest } from "./AgentsCreateTemplateFromAgentRequest";
3
+ export { AgentsSearchRequest } from "./AgentsSearchRequest";
@@ -1,15 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentsCreateTemplateFromAgentRequest = exports.AgentsMigrateRequest = exports.AgentsCreateVersionRequest = exports.AgentsSearchDeployedAgentsRequest = exports.UpdateAgent = exports.CreateAgentRequest = void 0;
3
+ exports.AgentsSearchRequest = exports.UpdateAgent = exports.CreateAgentRequest = void 0;
4
4
  var CreateAgentRequest_1 = require("./CreateAgentRequest");
5
5
  Object.defineProperty(exports, "CreateAgentRequest", { enumerable: true, get: function () { return CreateAgentRequest_1.CreateAgentRequest; } });
6
6
  var UpdateAgent_1 = require("./UpdateAgent");
7
7
  Object.defineProperty(exports, "UpdateAgent", { enumerable: true, get: function () { return UpdateAgent_1.UpdateAgent; } });
8
- var AgentsSearchDeployedAgentsRequest_1 = require("./AgentsSearchDeployedAgentsRequest");
9
- Object.defineProperty(exports, "AgentsSearchDeployedAgentsRequest", { enumerable: true, get: function () { return AgentsSearchDeployedAgentsRequest_1.AgentsSearchDeployedAgentsRequest; } });
10
- var AgentsCreateVersionRequest_1 = require("./AgentsCreateVersionRequest");
11
- Object.defineProperty(exports, "AgentsCreateVersionRequest", { enumerable: true, get: function () { return AgentsCreateVersionRequest_1.AgentsCreateVersionRequest; } });
12
- var AgentsMigrateRequest_1 = require("./AgentsMigrateRequest");
13
- Object.defineProperty(exports, "AgentsMigrateRequest", { enumerable: true, get: function () { return AgentsMigrateRequest_1.AgentsMigrateRequest; } });
14
- var AgentsCreateTemplateFromAgentRequest_1 = require("./AgentsCreateTemplateFromAgentRequest");
15
- Object.defineProperty(exports, "AgentsCreateTemplateFromAgentRequest", { enumerable: true, get: function () { return AgentsCreateTemplateFromAgentRequest_1.AgentsCreateTemplateFromAgentRequest; } });
8
+ var AgentsSearchRequest_1 = require("./AgentsSearchRequest");
9
+ Object.defineProperty(exports, "AgentsSearchRequest", { enumerable: true, get: function () { return AgentsSearchRequest_1.AgentsSearchRequest; } });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as Letta from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { Block } from "../../../../../types/Block";
8
+ export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.getBlocks.Response.Raw, Letta.Block[]>;
9
+ export declare namespace Response {
10
+ type Raw = Block.Raw[];
11
+ }
@@ -27,6 +27,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Response = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- const Block_1 = require("../../../types/Block");
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const Block_1 = require("../../../../../types/Block");
32
32
  exports.Response = core.serialization.list(Block_1.Block);
@@ -1 +1,2 @@
1
1
  export * as listInContext from "./listInContext";
2
+ export * as getBlocks from "./getBlocks";
@@ -23,5 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.listInContext = void 0;
26
+ exports.getBlocks = exports.listInContext = void 0;
27
27
  exports.listInContext = __importStar(require("./listInContext"));
28
+ exports.getBlocks = __importStar(require("./getBlocks"));
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as Letta from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { LettaSchemasMessageMessage } from "../../../../../types/LettaSchemasMessageMessage";
8
+ export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.listInContext.Response.Raw, Letta.LettaSchemasMessageMessage[]>;
9
+ export declare namespace Response {
10
+ type Raw = LettaSchemasMessageMessage.Raw[];
11
+ }
@@ -27,6 +27,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Response = void 0;
30
- const core = __importStar(require("../../../../../../../../core"));
31
- const LettaSchemasMessageMessage_1 = require("../../../../../../../types/LettaSchemasMessageMessage");
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const LettaSchemasMessageMessage_1 = require("../../../../../types/LettaSchemasMessageMessage");
32
32
  exports.Response = core.serialization.list(LettaSchemasMessageMessage_1.LettaSchemasMessageMessage);
@@ -1,8 +1,13 @@
1
1
  export * as messages from "./messages";
2
2
  export * from "./messages/types";
3
+ export * as templates from "./templates";
4
+ export * from "./templates/types";
5
+ export * as memoryVariables from "./memoryVariables";
6
+ export * from "./memoryVariables/types";
3
7
  export * as tools from "./tools";
4
8
  export * as sources from "./sources";
9
+ export * as coreMemory from "./coreMemory";
5
10
  export * as archivalMemory from "./archivalMemory";
6
- export * as memory from "./memory";
7
11
  export * from "./archivalMemory/client/requests";
8
12
  export * from "./messages/client/requests";
13
+ export * from "./templates/client/requests";
@@ -26,12 +26,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.memory = exports.archivalMemory = exports.sources = exports.tools = exports.messages = void 0;
29
+ exports.archivalMemory = exports.coreMemory = exports.sources = exports.tools = exports.memoryVariables = exports.templates = exports.messages = void 0;
30
30
  exports.messages = __importStar(require("./messages"));
31
31
  __exportStar(require("./messages/types"), exports);
32
+ exports.templates = __importStar(require("./templates"));
33
+ __exportStar(require("./templates/types"), exports);
34
+ exports.memoryVariables = __importStar(require("./memoryVariables"));
35
+ __exportStar(require("./memoryVariables/types"), exports);
32
36
  exports.tools = __importStar(require("./tools"));
33
37
  exports.sources = __importStar(require("./sources"));
38
+ exports.coreMemory = __importStar(require("./coreMemory"));
34
39
  exports.archivalMemory = __importStar(require("./archivalMemory"));
35
- exports.memory = __importStar(require("./memory"));
36
40
  __exportStar(require("./archivalMemory/client/requests"), exports);
37
41
  __exportStar(require("./messages/client/requests"), exports);
42
+ __exportStar(require("./templates/client/requests"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as Letta from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const MemoryVariablesGetResponse: core.serialization.ObjectSchema<serializers.agents.MemoryVariablesGetResponse.Raw, Letta.agents.MemoryVariablesGetResponse>;
8
+ export declare namespace MemoryVariablesGetResponse {
9
+ interface Raw {
10
+ variables: Record<string, string>;
11
+ }
12
+ }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.AgentsGetAgentVariablesResponse = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- exports.AgentsGetAgentVariablesResponse = core.serialization.object({
29
+ exports.MemoryVariablesGetResponse = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.MemoryVariablesGetResponse = core.serialization.object({
32
32
  variables: core.serialization.record(core.serialization.string(), core.serialization.string()),
33
33
  });
@@ -0,0 +1 @@
1
+ export * from "./MemoryVariablesGetResponse";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./MemoryVariablesGetResponse"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index";
5
+ import * as Letta from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ export declare const TemplatesCreateRequest: core.serialization.Schema<serializers.agents.TemplatesCreateRequest.Raw, Letta.agents.TemplatesCreateRequest>;
8
+ export declare namespace TemplatesCreateRequest {
9
+ interface Raw {
10
+ project_id?: string | null;
11
+ }
12
+ }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.AgentsCreateTemplateFromAgentRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- exports.AgentsCreateTemplateFromAgentRequest = core.serialization.object({
29
+ exports.TemplatesCreateRequest = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ exports.TemplatesCreateRequest = core.serialization.object({
32
32
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
33
33
  });