@letta-ai/letta-client 0.1.17 → 0.1.19

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 (384) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/api/resources/agents/client/Client.js +7 -7
  4. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +6 -0
  5. package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  10. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  11. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  12. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  13. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  14. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/health/client/Client.js +1 -1
  17. package/api/resources/index.d.ts +2 -0
  18. package/api/resources/index.js +3 -1
  19. package/api/resources/jobs/client/Client.js +4 -4
  20. package/api/resources/models/client/Client.js +2 -2
  21. package/api/resources/providers/client/Client.js +4 -4
  22. package/api/resources/runs/client/Client.js +6 -6
  23. package/api/resources/sources/client/Client.js +6 -6
  24. package/api/resources/sources/resources/files/client/Client.js +3 -3
  25. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  26. package/api/resources/steps/client/Client.d.ts +57 -0
  27. package/api/resources/steps/client/Client.js +224 -0
  28. package/api/resources/steps/client/index.d.ts +1 -0
  29. package/api/resources/steps/client/index.js +17 -0
  30. package/api/resources/steps/client/requests/ListStepsRequest.d.ts +37 -0
  31. package/api/resources/steps/client/requests/index.d.ts +1 -0
  32. package/api/resources/steps/client/requests/index.js +2 -0
  33. package/api/resources/steps/index.d.ts +1 -0
  34. package/api/resources/steps/index.js +17 -0
  35. package/api/resources/tag/client/Client.js +1 -1
  36. package/api/resources/templates/client/Client.js +1 -1
  37. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +3 -0
  38. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +5 -0
  39. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +4 -0
  40. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +5 -0
  41. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +4 -0
  42. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +5 -0
  43. package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts} +1 -1
  44. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  45. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  46. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  47. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  48. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  49. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  50. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  51. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  52. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  53. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -1
  54. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  55. package/api/resources/templates/types/index.d.ts +7 -13
  56. package/api/resources/templates/types/index.js +7 -13
  57. package/api/resources/tools/client/Client.js +15 -12
  58. package/api/resources/tools/client/requests/ToolsListRequest.d.ts +1 -0
  59. package/api/types/AgentState.d.ts +6 -0
  60. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  61. package/api/types/ChildToolRule.d.ts +1 -2
  62. package/api/types/ConditionalToolRule.d.ts +1 -2
  63. package/api/types/InitToolRule.d.ts +1 -2
  64. package/api/types/LocalSandboxConfig.d.ts +4 -1
  65. package/api/types/PipRequirement.d.ts +9 -0
  66. package/api/types/Step.d.ts +34 -0
  67. package/api/types/TerminalToolRule.d.ts +1 -2
  68. package/api/types/ToolType.d.ts +2 -1
  69. package/api/types/ToolType.js +1 -0
  70. package/api/types/index.d.ts +2 -1
  71. package/api/types/index.js +2 -1
  72. package/dist/Client.d.ts +3 -0
  73. package/dist/Client.js +9 -4
  74. package/dist/api/resources/agents/client/Client.js +7 -7
  75. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +6 -0
  76. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  78. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  79. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  80. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  81. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  84. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  85. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  86. package/dist/api/resources/blocks/client/Client.js +6 -6
  87. package/dist/api/resources/health/client/Client.js +1 -1
  88. package/dist/api/resources/index.d.ts +2 -0
  89. package/dist/api/resources/index.js +3 -1
  90. package/dist/api/resources/jobs/client/Client.js +4 -4
  91. package/dist/api/resources/models/client/Client.js +2 -2
  92. package/dist/api/resources/providers/client/Client.js +4 -4
  93. package/dist/api/resources/runs/client/Client.js +6 -6
  94. package/dist/api/resources/sources/client/Client.js +6 -6
  95. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  96. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  97. package/dist/api/resources/steps/client/Client.d.ts +57 -0
  98. package/dist/api/resources/steps/client/Client.js +224 -0
  99. package/dist/api/resources/steps/client/index.d.ts +1 -0
  100. package/dist/api/resources/steps/client/index.js +17 -0
  101. package/dist/api/resources/steps/client/requests/ListStepsRequest.d.ts +37 -0
  102. package/dist/api/resources/steps/client/requests/index.d.ts +1 -0
  103. package/dist/api/resources/steps/client/requests/index.js +2 -0
  104. package/dist/api/resources/steps/index.d.ts +1 -0
  105. package/dist/api/resources/steps/index.js +17 -0
  106. package/dist/api/resources/tag/client/Client.js +1 -1
  107. package/dist/api/resources/templates/client/Client.js +1 -1
  108. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +3 -0
  109. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +5 -0
  110. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +4 -0
  111. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +5 -0
  112. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +4 -0
  113. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +5 -0
  114. package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts} +1 -1
  115. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  116. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  117. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  118. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  119. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  120. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  121. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  122. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  123. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  124. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -1
  125. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  126. package/dist/api/resources/templates/types/index.d.ts +7 -13
  127. package/dist/api/resources/templates/types/index.js +7 -13
  128. package/dist/api/resources/tools/client/Client.js +15 -12
  129. package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +1 -0
  130. package/dist/api/types/AgentState.d.ts +6 -0
  131. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  132. package/dist/api/types/ChildToolRule.d.ts +1 -2
  133. package/dist/api/types/ConditionalToolRule.d.ts +1 -2
  134. package/dist/api/types/InitToolRule.d.ts +1 -2
  135. package/dist/api/types/LocalSandboxConfig.d.ts +4 -1
  136. package/dist/api/types/PipRequirement.d.ts +9 -0
  137. package/dist/api/types/Step.d.ts +34 -0
  138. package/dist/api/types/TerminalToolRule.d.ts +1 -2
  139. package/dist/api/types/ToolType.d.ts +2 -1
  140. package/dist/api/types/ToolType.js +1 -0
  141. package/dist/api/types/index.d.ts +2 -1
  142. package/dist/api/types/index.js +2 -1
  143. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -0
  144. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -0
  145. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +3 -3
  146. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +3 -3
  147. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +3 -3
  148. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +3 -3
  149. package/dist/serialization/resources/index.d.ts +1 -0
  150. package/dist/serialization/resources/index.js +2 -1
  151. package/dist/serialization/resources/steps/client/index.d.ts +1 -0
  152. package/dist/serialization/resources/steps/client/index.js +37 -0
  153. package/dist/serialization/resources/steps/client/listSteps.d.ts +11 -0
  154. package/{serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → dist/serialization/resources/steps/client/listSteps.js} +3 -2
  155. package/dist/serialization/resources/steps/index.d.ts +1 -0
  156. package/dist/serialization/resources/steps/index.js +17 -0
  157. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +6 -0
  158. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +6 -0
  159. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +11 -0
  160. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js +47 -0
  161. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +10 -0
  162. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js} +2 -2
  163. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +11 -0
  164. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +6 -8
  165. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +10 -0
  166. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js +41 -0
  167. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +11 -0
  168. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +6 -8
  169. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts +10 -0
  170. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js +41 -0
  171. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  172. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.js +0 -5
  173. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  174. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.js +1 -6
  175. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -2
  176. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.js +0 -2
  177. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  178. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.js +0 -5
  179. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  180. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.js +1 -6
  181. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  182. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.js +1 -6
  183. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  184. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.js +1 -6
  185. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  186. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.js +1 -6
  187. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  188. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.js +1 -6
  189. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  190. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  191. package/dist/serialization/resources/templates/types/index.d.ts +7 -13
  192. package/dist/serialization/resources/templates/types/index.js +7 -13
  193. package/dist/serialization/types/AgentState.d.ts +3 -0
  194. package/dist/serialization/types/AgentState.js +3 -0
  195. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +3 -3
  196. package/dist/serialization/types/AgentStateToolRulesItem.js +3 -3
  197. package/dist/serialization/types/ChildToolRule.d.ts +1 -2
  198. package/dist/serialization/types/ChildToolRule.js +1 -2
  199. package/dist/serialization/types/ConditionalToolRule.d.ts +1 -2
  200. package/dist/serialization/types/ConditionalToolRule.js +1 -2
  201. package/dist/serialization/types/InitToolRule.d.ts +1 -2
  202. package/dist/serialization/types/InitToolRule.js +1 -2
  203. package/dist/serialization/types/LocalSandboxConfig.d.ts +3 -1
  204. package/dist/serialization/types/LocalSandboxConfig.js +3 -1
  205. package/dist/serialization/types/PipRequirement.d.ts +13 -0
  206. package/dist/serialization/types/{ToolRuleType.js → PipRequirement.js} +5 -9
  207. package/dist/serialization/types/Step.d.ts +26 -0
  208. package/dist/serialization/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js → types/Step.js} +18 -6
  209. package/dist/serialization/types/TerminalToolRule.d.ts +1 -2
  210. package/dist/serialization/types/TerminalToolRule.js +1 -2
  211. package/dist/serialization/types/ToolType.d.ts +1 -1
  212. package/dist/serialization/types/ToolType.js +1 -0
  213. package/dist/serialization/types/index.d.ts +2 -1
  214. package/dist/serialization/types/index.js +2 -1
  215. package/dist/version.d.ts +1 -1
  216. package/dist/version.js +1 -1
  217. package/package.json +1 -1
  218. package/reference.md +129 -0
  219. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -0
  220. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -0
  221. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +3 -3
  222. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +3 -3
  223. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +3 -3
  224. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +3 -3
  225. package/serialization/resources/index.d.ts +1 -0
  226. package/serialization/resources/index.js +2 -1
  227. package/serialization/resources/steps/client/index.d.ts +1 -0
  228. package/serialization/resources/steps/client/index.js +37 -0
  229. package/serialization/resources/steps/client/listSteps.d.ts +11 -0
  230. package/serialization/resources/steps/client/listSteps.js +42 -0
  231. package/serialization/resources/steps/index.d.ts +1 -0
  232. package/serialization/resources/steps/index.js +17 -0
  233. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +6 -0
  234. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +6 -0
  235. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +11 -0
  236. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js +47 -0
  237. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +10 -0
  238. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js +41 -0
  239. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +11 -0
  240. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js → serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +6 -8
  241. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +10 -0
  242. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js +41 -0
  243. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +11 -0
  244. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js → serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +6 -8
  245. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts +10 -0
  246. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js +41 -0
  247. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  248. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.js +0 -5
  249. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  250. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.js +1 -6
  251. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -2
  252. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.js +0 -2
  253. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  254. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.js +0 -5
  255. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  256. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.js +1 -6
  257. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  258. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.js +1 -6
  259. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  260. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.js +1 -6
  261. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  262. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.js +1 -6
  263. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  264. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.js +1 -6
  265. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  266. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  267. package/serialization/resources/templates/types/index.d.ts +7 -13
  268. package/serialization/resources/templates/types/index.js +7 -13
  269. package/serialization/types/AgentState.d.ts +3 -0
  270. package/serialization/types/AgentState.js +3 -0
  271. package/serialization/types/AgentStateToolRulesItem.d.ts +3 -3
  272. package/serialization/types/AgentStateToolRulesItem.js +3 -3
  273. package/serialization/types/ChildToolRule.d.ts +1 -2
  274. package/serialization/types/ChildToolRule.js +1 -2
  275. package/serialization/types/ConditionalToolRule.d.ts +1 -2
  276. package/serialization/types/ConditionalToolRule.js +1 -2
  277. package/serialization/types/InitToolRule.d.ts +1 -2
  278. package/serialization/types/InitToolRule.js +1 -2
  279. package/serialization/types/LocalSandboxConfig.d.ts +3 -1
  280. package/serialization/types/LocalSandboxConfig.js +3 -1
  281. package/serialization/types/PipRequirement.d.ts +13 -0
  282. package/serialization/types/{ToolRuleType.js → PipRequirement.js} +5 -9
  283. package/serialization/types/Step.d.ts +26 -0
  284. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js → serialization/types/Step.js} +18 -6
  285. package/serialization/types/TerminalToolRule.d.ts +1 -2
  286. package/serialization/types/TerminalToolRule.js +1 -2
  287. package/serialization/types/ToolType.d.ts +1 -1
  288. package/serialization/types/ToolType.js +1 -0
  289. package/serialization/types/index.d.ts +2 -1
  290. package/serialization/types/index.js +2 -1
  291. package/version.d.ts +1 -1
  292. package/version.js +1 -1
  293. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -5
  294. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -11
  295. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -5
  296. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -4
  297. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -4
  298. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -9
  299. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -4
  300. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -8
  301. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -4
  302. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -8
  303. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -4
  304. package/api/types/ToolRuleType.d.ts +0 -15
  305. package/api/types/ToolRuleType.js +0 -14
  306. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -5
  307. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -11
  308. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -5
  309. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -4
  310. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -4
  311. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -9
  312. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js +0 -5
  313. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -4
  314. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js +0 -5
  315. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -8
  316. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js +0 -5
  317. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -4
  318. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js +0 -5
  319. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -8
  320. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js +0 -5
  321. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -4
  322. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js +0 -5
  323. package/dist/api/types/ToolRuleType.d.ts +0 -15
  324. package/dist/api/types/ToolRuleType.js +0 -14
  325. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -14
  326. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js +0 -50
  327. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -19
  328. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js +0 -50
  329. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -11
  330. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js +0 -47
  331. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -10
  332. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js +0 -41
  333. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts +0 -10
  334. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -10
  335. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -15
  336. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js +0 -46
  337. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -10
  338. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -14
  339. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -10
  340. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -14
  341. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -10
  342. package/dist/serialization/types/ToolRuleType.d.ts +0 -10
  343. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -14
  344. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js +0 -50
  345. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -19
  346. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js +0 -50
  347. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -11
  348. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js +0 -47
  349. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -10
  350. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js +0 -41
  351. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts +0 -10
  352. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -10
  353. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js +0 -49
  354. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -15
  355. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js +0 -46
  356. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -10
  357. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js +0 -49
  358. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -14
  359. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js +0 -45
  360. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -10
  361. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js +0 -49
  362. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -14
  363. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js +0 -45
  364. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -10
  365. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js +0 -49
  366. package/serialization/types/ToolRuleType.d.ts +0 -10
  367. /package/api/resources/{templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js → steps/client/requests/ListStepsRequest.js} +0 -0
  368. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js} +0 -0
  369. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js} +0 -0
  370. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +0 -0
  371. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js} +0 -0
  372. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +0 -0
  373. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js} +0 -0
  374. /package/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js → types/PipRequirement.js} +0 -0
  375. /package/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js → types/Step.js} +0 -0
  376. /package/{api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js → dist/api/resources/steps/client/requests/ListStepsRequest.js} +0 -0
  377. /package/{api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js → dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js} +0 -0
  378. /package/{api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js → dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js} +0 -0
  379. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +0 -0
  380. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js} +0 -0
  381. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +0 -0
  382. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js} +0 -0
  383. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → types/PipRequirement.js} +0 -0
  384. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js → types/Step.js} +0 -0
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio";
4
+ export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
5
5
  export declare const ToolType: {
6
6
  readonly Custom: "custom";
7
7
  readonly LettaCore: "letta_core";
8
8
  readonly LettaMemoryCore: "letta_memory_core";
9
9
  readonly LettaMultiAgentCore: "letta_multi_agent_core";
10
10
  readonly ExternalComposio: "external_composio";
11
+ readonly ExternalLangchain: "external_langchain";
11
12
  };
@@ -10,4 +10,5 @@ exports.ToolType = {
10
10
  LettaMemoryCore: "letta_memory_core",
11
11
  LettaMultiAgentCore: "letta_multi_agent_core",
12
12
  ExternalComposio: "external_composio",
13
+ ExternalLangchain: "external_langchain",
13
14
  };
@@ -109,6 +109,7 @@ export * from "./MessageRole";
109
109
  export * from "./Organization";
110
110
  export * from "./OrganizationCreate";
111
111
  export * from "./Passage";
112
+ export * from "./PipRequirement";
112
113
  export * from "./Provider";
113
114
  export * from "./ReasoningMessage";
114
115
  export * from "./ResponseFormatJsonObject";
@@ -125,6 +126,7 @@ export * from "./SandboxEnvironmentVariableCreate";
125
126
  export * from "./SandboxEnvironmentVariableUpdate";
126
127
  export * from "./SandboxType";
127
128
  export * from "./Source";
129
+ export * from "./Step";
128
130
  export * from "./SystemMessageContent";
129
131
  export * from "./SystemMessage";
130
132
  export * from "./TerminalToolRule";
@@ -137,7 +139,6 @@ export * from "./ToolCallMessage";
137
139
  export * from "./ToolCreate";
138
140
  export * from "./ToolReturnMessageStatus";
139
141
  export * from "./ToolReturnMessage";
140
- export * from "./ToolRuleType";
141
142
  export * from "./ToolType";
142
143
  export * from "./UsageStatistics";
143
144
  export * from "./User";
@@ -125,6 +125,7 @@ __exportStar(require("./MessageRole"), exports);
125
125
  __exportStar(require("./Organization"), exports);
126
126
  __exportStar(require("./OrganizationCreate"), exports);
127
127
  __exportStar(require("./Passage"), exports);
128
+ __exportStar(require("./PipRequirement"), exports);
128
129
  __exportStar(require("./Provider"), exports);
129
130
  __exportStar(require("./ReasoningMessage"), exports);
130
131
  __exportStar(require("./ResponseFormatJsonObject"), exports);
@@ -141,6 +142,7 @@ __exportStar(require("./SandboxEnvironmentVariableCreate"), exports);
141
142
  __exportStar(require("./SandboxEnvironmentVariableUpdate"), exports);
142
143
  __exportStar(require("./SandboxType"), exports);
143
144
  __exportStar(require("./Source"), exports);
145
+ __exportStar(require("./Step"), exports);
144
146
  __exportStar(require("./SystemMessageContent"), exports);
145
147
  __exportStar(require("./SystemMessage"), exports);
146
148
  __exportStar(require("./TerminalToolRule"), exports);
@@ -153,7 +155,6 @@ __exportStar(require("./ToolCallMessage"), exports);
153
155
  __exportStar(require("./ToolCreate"), exports);
154
156
  __exportStar(require("./ToolReturnMessageStatus"), exports);
155
157
  __exportStar(require("./ToolReturnMessage"), exports);
156
- __exportStar(require("./ToolRuleType"), exports);
157
158
  __exportStar(require("./ToolType"), exports);
158
159
  __exportStar(require("./UsageStatistics"), exports);
159
160
  __exportStar(require("./User"), exports);
package/dist/Client.d.ts CHANGED
@@ -12,6 +12,7 @@ import { Jobs } from "./api/resources/jobs/client/Client";
12
12
  import { Health } from "./api/resources/health/client/Client";
13
13
  import { Providers } from "./api/resources/providers/client/Client";
14
14
  import { Runs } from "./api/resources/runs/client/Client";
15
+ import { Steps } from "./api/resources/steps/client/Client";
15
16
  import { Tag } from "./api/resources/tag/client/Client";
16
17
  import { Templates } from "./api/resources/templates/client/Client";
17
18
  export declare namespace LettaClient {
@@ -44,6 +45,7 @@ export declare class LettaClient {
44
45
  protected _health: Health | undefined;
45
46
  protected _providers: Providers | undefined;
46
47
  protected _runs: Runs | undefined;
48
+ protected _steps: Steps | undefined;
47
49
  protected _tag: Tag | undefined;
48
50
  protected _templates: Templates | undefined;
49
51
  constructor(_options?: LettaClient.Options);
@@ -56,6 +58,7 @@ export declare class LettaClient {
56
58
  get health(): Health;
57
59
  get providers(): Providers;
58
60
  get runs(): Runs;
61
+ get steps(): Steps;
59
62
  get tag(): Tag;
60
63
  get templates(): Templates;
61
64
  }
package/dist/Client.js CHANGED
@@ -13,8 +13,9 @@ const Client_6 = require("./api/resources/jobs/client/Client");
13
13
  const Client_7 = require("./api/resources/health/client/Client");
14
14
  const Client_8 = require("./api/resources/providers/client/Client");
15
15
  const Client_9 = require("./api/resources/runs/client/Client");
16
- const Client_10 = require("./api/resources/tag/client/Client");
17
- const Client_11 = require("./api/resources/templates/client/Client");
16
+ const Client_10 = require("./api/resources/steps/client/Client");
17
+ const Client_11 = require("./api/resources/tag/client/Client");
18
+ const Client_12 = require("./api/resources/templates/client/Client");
18
19
  class LettaClient {
19
20
  constructor(_options = {}) {
20
21
  this._options = _options;
@@ -55,13 +56,17 @@ class LettaClient {
55
56
  var _a;
56
57
  return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_9.Runs(this._options)));
57
58
  }
59
+ get steps() {
60
+ var _a;
61
+ return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_10.Steps(this._options)));
62
+ }
58
63
  get tag() {
59
64
  var _a;
60
- return ((_a = this._tag) !== null && _a !== void 0 ? _a : (this._tag = new Client_10.Tag(this._options)));
65
+ return ((_a = this._tag) !== null && _a !== void 0 ? _a : (this._tag = new Client_11.Tag(this._options)));
61
66
  }
62
67
  get templates() {
63
68
  var _a;
64
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_11.Templates(this._options)));
69
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_12.Templates(this._options)));
65
70
  }
66
71
  }
67
72
  exports.LettaClient = LettaClient;
@@ -145,7 +145,7 @@ class Agents {
145
145
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
146
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
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.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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",
@@ -211,7 +211,7 @@ class Agents {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
213
213
  method: "POST",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Agents {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
280
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -342,7 +342,7 @@ class Agents {
342
342
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
343
343
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
344
344
  method: "DELETE",
345
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
346
  contentType: "application/json",
347
347
  requestType: "json",
348
348
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -402,7 +402,7 @@ class Agents {
402
402
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
403
403
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
404
404
  method: "PATCH",
405
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
405
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
406
406
  contentType: "application/json",
407
407
  requestType: "json",
408
408
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -474,7 +474,7 @@ class Agents {
474
474
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
475
475
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/reset-messages`),
476
476
  method: "PATCH",
477
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
477
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
478
478
  contentType: "application/json",
479
479
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -540,7 +540,7 @@ class Agents {
540
540
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
541
541
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/search"),
542
542
  method: "POST",
543
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
543
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
544
544
  contentType: "application/json",
545
545
  requestType: "json",
546
546
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -59,4 +59,10 @@ export interface CreateAgentRequest {
59
59
  toolExecEnvironmentVariables?: Record<string, string | undefined>;
60
60
  /** The variables that should be set for the agent. */
61
61
  memoryVariables?: Record<string, string | undefined>;
62
+ /** The id of the project the agent belongs to. */
63
+ projectId?: string;
64
+ /** The id of the template the agent belongs to. */
65
+ templateId?: string;
66
+ /** The base template id of the agent. */
67
+ baseTemplateId?: string;
62
68
  }
@@ -88,7 +88,7 @@ class ArchivalMemory {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival-memory`),
90
90
  method: "GET",
91
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
91
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
92
92
  contentType: "application/json",
93
93
  queryParameters: _queryParams,
94
94
  requestType: "json",
@@ -157,7 +157,7 @@ class ArchivalMemory {
157
157
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
158
158
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival-memory`),
159
159
  method: "POST",
160
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class ArchivalMemory {
224
224
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
225
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival-memory/${encodeURIComponent(memoryId)}`),
226
226
  method: "DELETE",
227
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
227
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Context {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/context`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,7 +77,7 @@ class CoreMemory {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/core-memory`),
79
79
  method: "GET",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -143,7 +143,7 @@ class CoreMemory {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
145
145
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -210,7 +210,7 @@ class CoreMemory {
210
210
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
211
211
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
212
212
  method: "PATCH",
213
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
213
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
214
214
  contentType: "application/json",
215
215
  requestType: "json",
216
216
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -276,7 +276,7 @@ class CoreMemory {
276
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
277
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/core-memory/blocks`),
278
278
  method: "GET",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -342,7 +342,7 @@ class CoreMemory {
342
342
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
343
343
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/core-memory/blocks/attach/${encodeURIComponent(blockId)}`),
344
344
  method: "PATCH",
345
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
346
  contentType: "application/json",
347
347
  requestType: "json",
348
348
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class CoreMemory {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/core-memory/blocks/detach/${encodeURIComponent(blockId)}`),
410
410
  method: "PATCH",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -78,7 +78,7 @@ class MemoryVariables {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/core-memory/variables`),
80
80
  method: "GET",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -97,7 +97,7 @@ class Messages {
97
97
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
98
98
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages`),
99
99
  method: "GET",
100
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
100
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
103
103
  requestType: "json",
@@ -170,7 +170,7 @@ class Messages {
170
170
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
171
171
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages`),
172
172
  method: "POST",
173
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
173
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
174
174
  contentType: "application/json",
175
175
  requestType: "json",
176
176
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -238,7 +238,7 @@ class Messages {
238
238
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
239
239
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages/${encodeURIComponent(messageId)}`),
240
240
  method: "PATCH",
241
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
241
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
242
242
  contentType: "application/json",
243
243
  requestType: "json",
244
244
  body: serializers.agents.MessageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -298,7 +298,7 @@ class Messages {
298
298
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
299
299
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages/stream`),
300
300
  method: "POST",
301
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
301
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
302
302
  contentType: "application/json",
303
303
  requestType: "json",
304
304
  body: serializers.agents.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -382,7 +382,7 @@ class Messages {
382
382
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
383
383
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages/async`),
384
384
  method: "POST",
385
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
385
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
386
386
  contentType: "application/json",
387
387
  requestType: "json",
388
388
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -77,7 +77,7 @@ class Sources {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/sources/attach/${encodeURIComponent(sourceId)}`),
79
79
  method: "PATCH",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -143,7 +143,7 @@ class Sources {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/sources/detach/${encodeURIComponent(sourceId)}`),
145
145
  method: "PATCH",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Sources {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/sources`),
210
210
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -96,7 +96,7 @@ class Templates {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/version-template`),
98
98
  method: "POST",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -163,7 +163,7 @@ class Templates {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/migrate`),
165
165
  method: "POST",
166
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
166
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Templates {
237
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
238
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/template`),
239
239
  method: "POST",
240
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
240
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -142,7 +142,7 @@ class Tools {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools/attach/${encodeURIComponent(toolId)}`),
144
144
  method: "PATCH",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Tools {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools/detach/${encodeURIComponent(toolId)}`),
210
210
  method: "PATCH",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type CreateAgentRequestToolRulesItem = Letta.ChildToolRule | Letta.InitToolRule | Letta.TerminalToolRule | Letta.ConditionalToolRule;
5
+ export type CreateAgentRequestToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.TerminalToolRule | Letta.InitToolRule;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type UpdateAgentToolRulesItem = Letta.ChildToolRule | Letta.InitToolRule | Letta.TerminalToolRule | Letta.ConditionalToolRule;
5
+ export type UpdateAgentToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.TerminalToolRule | Letta.InitToolRule;
@@ -85,7 +85,7 @@ class Blocks {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
87
87
  method: "GET",
88
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
88
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -152,7 +152,7 @@ class Blocks {
152
152
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
153
153
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
154
154
  method: "POST",
155
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
155
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
156
156
  contentType: "application/json",
157
157
  requestType: "json",
158
158
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -216,7 +216,7 @@ class Blocks {
216
216
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
217
217
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
218
218
  method: "GET",
219
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
219
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -279,7 +279,7 @@ class Blocks {
279
279
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
280
280
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
281
281
  method: "DELETE",
282
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
282
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
283
283
  contentType: "application/json",
284
284
  requestType: "json",
285
285
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -343,7 +343,7 @@ class Blocks {
343
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
344
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
345
345
  method: "PATCH",
346
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
347
  contentType: "application/json",
348
348
  requestType: "json",
349
349
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -410,7 +410,7 @@ class Blocks {
410
410
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
411
411
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}/agents`),
412
412
  method: "GET",
413
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
413
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
414
414
  contentType: "application/json",
415
415
  requestType: "json",
416
416
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,