@letta-ai/letta-client 0.1.68 → 0.1.69

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 (255) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  7. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  12. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts +4 -0
  13. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  14. package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  15. package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  16. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  17. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  18. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  19. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  20. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  21. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  22. package/api/resources/agents/types/index.d.ts +8 -4
  23. package/api/resources/agents/types/index.js +8 -4
  24. package/api/resources/blocks/client/Client.js +6 -6
  25. package/api/resources/groups/client/Client.js +7 -7
  26. package/api/resources/health/client/Client.js +1 -1
  27. package/api/resources/identities/client/Client.js +6 -6
  28. package/api/resources/jobs/client/Client.js +4 -4
  29. package/api/resources/models/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.js +4 -4
  31. package/api/resources/runs/client/Client.js +7 -7
  32. package/api/resources/sources/client/Client.js +6 -6
  33. package/api/resources/sources/resources/files/client/Client.js +3 -3
  34. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  35. package/api/resources/steps/client/Client.js +2 -2
  36. package/api/resources/tag/client/Client.js +1 -1
  37. package/api/resources/templates/client/Client.js +1 -1
  38. package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +2 -2
  39. package/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +1 -1
  40. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  41. package/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  42. package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  43. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  44. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  45. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  46. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  47. package/api/resources/templates/types/index.d.ts +8 -4
  48. package/api/resources/templates/types/index.js +8 -4
  49. package/api/resources/tools/client/Client.js +16 -16
  50. package/api/resources/voice/client/Client.js +1 -1
  51. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  52. package/api/types/MaxCountPerStepToolRule.d.ts +13 -0
  53. package/api/types/MaxCountPerStepToolRule.js +5 -0
  54. package/api/types/index.d.ts +1 -0
  55. package/api/types/index.js +1 -0
  56. package/dist/api/resources/agents/client/Client.js +10 -10
  57. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  58. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  62. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  63. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  64. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  65. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  66. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  67. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.js +5 -0
  68. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts +4 -0
  69. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js +5 -0
  70. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  71. package/dist/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  72. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFour.js +5 -0
  73. package/{api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  74. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js +5 -0
  75. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  76. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +5 -0
  77. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  78. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +5 -0
  79. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  80. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  81. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  82. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  83. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  84. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  85. package/dist/api/resources/agents/types/index.d.ts +8 -4
  86. package/dist/api/resources/agents/types/index.js +8 -4
  87. package/dist/api/resources/blocks/client/Client.js +6 -6
  88. package/dist/api/resources/groups/client/Client.js +7 -7
  89. package/dist/api/resources/health/client/Client.js +1 -1
  90. package/dist/api/resources/identities/client/Client.js +6 -6
  91. package/dist/api/resources/jobs/client/Client.js +4 -4
  92. package/dist/api/resources/models/client/Client.js +2 -2
  93. package/dist/api/resources/providers/client/Client.js +4 -4
  94. package/dist/api/resources/runs/client/Client.js +7 -7
  95. package/dist/api/resources/sources/client/Client.js +6 -6
  96. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  97. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  98. package/dist/api/resources/steps/client/Client.js +2 -2
  99. package/dist/api/resources/tag/client/Client.js +1 -1
  100. package/dist/api/resources/templates/client/Client.js +1 -1
  101. package/dist/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +2 -2
  102. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +5 -0
  103. package/{api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +1 -1
  104. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +5 -0
  105. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  106. package/{api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  107. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js +5 -0
  108. package/dist/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  109. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js +5 -0
  110. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  111. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +5 -0
  112. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  113. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +5 -0
  114. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  115. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  116. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  117. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  118. package/dist/api/resources/templates/types/index.d.ts +8 -4
  119. package/dist/api/resources/templates/types/index.js +8 -4
  120. package/dist/api/resources/tools/client/Client.js +16 -16
  121. package/dist/api/resources/voice/client/Client.js +1 -1
  122. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  123. package/dist/api/types/MaxCountPerStepToolRule.d.ts +13 -0
  124. package/dist/api/types/MaxCountPerStepToolRule.js +5 -0
  125. package/dist/api/types/index.d.ts +1 -0
  126. package/dist/api/types/index.js +1 -0
  127. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  128. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +4 -4
  129. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  130. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +2 -2
  131. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  132. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +4 -2
  133. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  134. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  135. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  136. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  137. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  138. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  139. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  140. package/dist/serialization/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +3 -3
  141. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  142. package/dist/serialization/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js} +5 -4
  143. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  144. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  145. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  146. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  147. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  148. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  149. package/dist/serialization/resources/agents/types/index.d.ts +8 -4
  150. package/dist/serialization/resources/agents/types/index.js +8 -4
  151. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +4 -4
  152. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +45 -0
  153. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  154. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +44 -0
  155. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  156. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.js +4 -2
  157. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  158. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  159. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  160. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  161. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  162. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  163. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  164. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  165. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  166. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  167. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  168. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  169. package/dist/serialization/resources/templates/types/index.d.ts +8 -4
  170. package/dist/serialization/resources/templates/types/index.js +8 -4
  171. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  172. package/dist/serialization/types/AgentStateToolRulesItem.js +2 -0
  173. package/dist/serialization/types/MaxCountPerStepToolRule.d.ts +14 -0
  174. package/dist/serialization/types/MaxCountPerStepToolRule.js +45 -0
  175. package/dist/serialization/types/index.d.ts +1 -0
  176. package/dist/serialization/types/index.js +1 -0
  177. package/dist/version.d.ts +1 -1
  178. package/dist/version.js +1 -1
  179. package/package.json +1 -1
  180. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  181. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +4 -4
  182. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts → AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  183. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +2 -2
  184. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  185. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +4 -2
  186. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  187. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  188. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  189. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  190. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  191. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  192. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  193. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  194. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  195. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  196. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  197. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  198. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  199. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  200. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  201. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  202. package/serialization/resources/agents/types/index.d.ts +8 -4
  203. package/serialization/resources/agents/types/index.js +8 -4
  204. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +4 -4
  205. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +45 -0
  206. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  207. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +44 -0
  208. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  209. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.js +4 -2
  210. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  211. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  212. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  213. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  214. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  215. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  216. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  217. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  218. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  219. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  220. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  221. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  222. package/serialization/resources/templates/types/index.d.ts +8 -4
  223. package/serialization/resources/templates/types/index.js +8 -4
  224. package/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  225. package/serialization/types/AgentStateToolRulesItem.js +2 -0
  226. package/serialization/types/MaxCountPerStepToolRule.d.ts +14 -0
  227. package/serialization/types/MaxCountPerStepToolRule.js +45 -0
  228. package/serialization/types/index.d.ts +1 -0
  229. package/serialization/types/index.js +1 -0
  230. package/version.d.ts +1 -1
  231. package/version.js +1 -1
  232. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +0 -4
  233. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +0 -8
  234. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +0 -4
  235. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +0 -8
  236. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +0 -14
  237. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +0 -14
  238. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js +0 -45
  239. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js +0 -44
  240. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +0 -0
  241. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +0 -0
  242. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +0 -0
  243. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +0 -0
  244. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js} +0 -0
  245. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +0 -0
  246. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js} +0 -0
  247. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js} +0 -0
  248. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js} +0 -0
  249. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js} +0 -0
  250. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +0 -0
  251. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +0 -0
  252. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js} +0 -0
  253. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +0 -0
  254. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js} +0 -0
  255. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js} +0 -0
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export interface TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName {
5
+ export interface TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour {
6
6
  toolName: string;
7
- type?: Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType;
7
+ type?: Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType;
8
8
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType = "continue_loop" | unknown;
4
+ export type TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType = "continue_loop" | unknown;
@@ -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 TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem = Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildren | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemOne | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemTwo | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMapping | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName;
5
+ export type TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem = Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildren | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemOne | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemTwo | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMapping | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour | Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export interface TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName {
5
+ export interface TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour {
6
6
  toolName: string;
7
- type?: Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType;
7
+ type?: Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType;
8
8
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType = "continue_loop" | unknown;
4
+ export type TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType = "continue_loop" | unknown;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit {
6
+ toolName: string;
7
+ type?: Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType;
8
+ maxCountLimit: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType = "max_count_per_step" | unknown;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit {
6
+ toolName: string;
7
+ type?: Letta.TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType;
8
+ maxCountLimit: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType = "max_count_per_step" | unknown;
@@ -17,8 +17,10 @@ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChildOutput
17
17
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild";
18
18
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping";
19
19
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChildOutputMapping";
20
- export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType";
21
- export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName";
20
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType";
21
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour";
22
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType";
23
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit";
22
24
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItem";
23
25
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildrenType";
24
26
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildren";
@@ -31,8 +33,10 @@ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOu
31
33
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild";
32
34
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping";
33
35
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMapping";
34
- export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType";
35
- export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName";
36
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType";
37
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour";
38
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType";
39
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit";
36
40
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem";
37
41
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolRules";
38
42
  export * from "./TemplatesCreateAgentsResponseAgentsItemMessageIdsItem";
@@ -33,8 +33,10 @@ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChil
33
33
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild"), exports);
34
34
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping"), exports);
35
35
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemChildOutputMapping"), exports);
36
- __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType"), exports);
37
- __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName"), exports);
36
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType"), exports);
37
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour"), exports);
38
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType"), exports);
39
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit"), exports);
38
40
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItem"), exports);
39
41
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildrenType"), exports);
40
42
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildren"), exports);
@@ -47,8 +49,10 @@ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem
47
49
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild"), exports);
48
50
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping"), exports);
49
51
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemChildOutputMapping"), exports);
50
- __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType"), exports);
51
- __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName"), exports);
52
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType"), exports);
53
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour"), exports);
54
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType"), exports);
55
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit"), exports);
52
56
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem"), exports);
53
57
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolRules"), exports);
54
58
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemMessageIdsItem"), exports);
@@ -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/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -278,7 +278,7 @@ class Tools {
278
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
279
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
280
280
  method: "GET",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
284
284
  requestType: "json",
@@ -346,7 +346,7 @@ class Tools {
346
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
347
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
348
348
  method: "POST",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
349
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Tools {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
416
416
  method: "PUT",
417
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
417
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
418
418
  contentType: "application/json",
419
419
  requestType: "json",
420
420
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -479,7 +479,7 @@ class Tools {
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
481
481
  method: "POST",
482
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
482
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -549,7 +549,7 @@ class Tools {
549
549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
550
550
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
551
551
  method: "POST",
552
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
552
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
553
553
  contentType: "application/json",
554
554
  requestType: "json",
555
555
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -614,7 +614,7 @@ class Tools {
614
614
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
615
615
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
616
616
  method: "GET",
617
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
617
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
618
618
  contentType: "application/json",
619
619
  requestType: "json",
620
620
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -679,7 +679,7 @@ class Tools {
679
679
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
680
680
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
681
681
  method: "GET",
682
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
682
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
683
683
  contentType: "application/json",
684
684
  requestType: "json",
685
685
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -744,7 +744,7 @@ class Tools {
744
744
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
745
745
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
746
746
  method: "POST",
747
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
747
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
748
748
  contentType: "application/json",
749
749
  requestType: "json",
750
750
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -808,7 +808,7 @@ class Tools {
808
808
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
809
809
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
810
810
  method: "GET",
811
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
811
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
812
812
  contentType: "application/json",
813
813
  requestType: "json",
814
814
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -877,7 +877,7 @@ class Tools {
877
877
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
878
878
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
879
879
  method: "PUT",
880
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
880
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
881
881
  contentType: "application/json",
882
882
  requestType: "json",
883
883
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -943,7 +943,7 @@ class Tools {
943
943
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
944
944
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
945
945
  method: "GET",
946
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
946
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
947
947
  contentType: "application/json",
948
948
  requestType: "json",
949
949
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1009,7 +1009,7 @@ class Tools {
1009
1009
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1010
1010
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1011
1011
  method: "POST",
1012
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
1012
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
1013
1013
  contentType: "application/json",
1014
1014
  requestType: "json",
1015
1015
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1074,7 +1074,7 @@ class Tools {
1074
1074
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1075
1075
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1076
1076
  method: "DELETE",
1077
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
1077
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
1078
1078
  contentType: "application/json",
1079
1079
  requestType: "json",
1080
1080
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Voice {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  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/voice/${encodeURIComponent(agentId)}/chat/completions`),
83
83
  method: "POST",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
84
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
@@ -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 AgentStateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.InitToolRule;
5
+ export type AgentStateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.InitToolRule;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.
6
+ */
7
+ export interface MaxCountPerStepToolRule {
8
+ /** The name of the tool. Must exist in the database for the user's organization. */
9
+ toolName: string;
10
+ type: "max_count_per_step";
11
+ /** The max limit for the total number of times this tool can be invoked in a single step. */
12
+ maxCountLimit: number;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -118,6 +118,7 @@ export * from "./LocalSandboxConfig";
118
118
  export * from "./McpServerType";
119
119
  export * from "./McpTool";
120
120
  export * from "./ManagerType";
121
+ export * from "./MaxCountPerStepToolRule";
121
122
  export * from "./Memory";
122
123
  export * from "./MessageContentItem";
123
124
  export * from "./Message";
@@ -134,6 +134,7 @@ __exportStar(require("./LocalSandboxConfig"), exports);
134
134
  __exportStar(require("./McpServerType"), exports);
135
135
  __exportStar(require("./McpTool"), exports);
136
136
  __exportStar(require("./ManagerType"), exports);
137
+ __exportStar(require("./MaxCountPerStepToolRule"), exports);
137
138
  __exportStar(require("./Memory"), exports);
138
139
  __exportStar(require("./MessageContentItem"), exports);
139
140
  __exportStar(require("./Message"), exports);
@@ -191,7 +191,7 @@ class Agents {
191
191
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
192
192
  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/"),
193
193
  method: "GET",
194
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
195
195
  contentType: "application/json",
196
196
  queryParameters: _queryParams,
197
197
  requestType: "json",
@@ -258,7 +258,7 @@ class Agents {
258
258
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
259
259
  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/"),
260
260
  method: "POST",
261
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -324,7 +324,7 @@ class Agents {
324
324
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
325
325
  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)}/export`),
326
326
  method: "GET",
327
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
327
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
328
328
  contentType: "application/json",
329
329
  requestType: "json",
330
330
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -403,7 +403,7 @@ class Agents {
403
403
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
404
404
  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/import"),
405
405
  method: "POST",
406
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
406
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
407
407
  queryParameters: _queryParams,
408
408
  requestType: "file",
409
409
  duplex: _maybeEncodedRequest.duplex,
@@ -470,7 +470,7 @@ class Agents {
470
470
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
471
471
  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)}`),
472
472
  method: "GET",
473
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
473
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
474
474
  contentType: "application/json",
475
475
  requestType: "json",
476
476
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -535,7 +535,7 @@ class Agents {
535
535
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
536
536
  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)}`),
537
537
  method: "DELETE",
538
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
538
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
539
539
  contentType: "application/json",
540
540
  requestType: "json",
541
541
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -595,7 +595,7 @@ class Agents {
595
595
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
596
596
  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)}`),
597
597
  method: "PATCH",
598
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
598
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
599
599
  contentType: "application/json",
600
600
  requestType: "json",
601
601
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -665,7 +665,7 @@ class Agents {
665
665
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
666
666
  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)}`),
667
667
  method: "PATCH",
668
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
668
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
669
669
  contentType: "application/json",
670
670
  requestType: "json",
671
671
  body: serializers.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -737,7 +737,7 @@ class Agents {
737
737
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
738
738
  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`),
739
739
  method: "PATCH",
740
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
740
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
741
741
  contentType: "application/json",
742
742
  queryParameters: _queryParams,
743
743
  requestType: "json",
@@ -803,7 +803,7 @@ class Agents {
803
803
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
804
804
  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"),
805
805
  method: "POST",
806
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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),
806
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
807
807
  contentType: "application/json",
808
808
  requestType: "json",
809
809
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -77,7 +77,7 @@ class Blocks {
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/blocks/${encodeURIComponent(blockLabel)}`),
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.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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,
@@ -144,7 +144,7 @@ class Blocks {
144
144
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
145
145
  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)}`),
146
146
  method: "PATCH",
147
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -210,7 +210,7 @@ class Blocks {
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`),
212
212
  method: "GET",
213
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +276,7 @@ class Blocks {
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/attach/${encodeURIComponent(blockId)}`),
278
278
  method: "PATCH",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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 Blocks {
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/detach/${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.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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,
@@ -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.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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,
@@ -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.68", "User-Agent": "@letta-ai/letta-client/0.1.68", "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.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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,