@letta-ai/letta-client 0.1.67 → 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 (317) 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/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  21. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  22. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  23. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  24. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  25. package/api/resources/agents/types/index.d.ts +10 -4
  26. package/api/resources/agents/types/index.js +10 -4
  27. package/api/resources/blocks/client/Client.js +6 -6
  28. package/api/resources/groups/client/Client.js +7 -7
  29. package/api/resources/health/client/Client.js +1 -1
  30. package/api/resources/identities/client/Client.js +6 -6
  31. package/api/resources/jobs/client/Client.js +4 -4
  32. package/api/resources/models/client/Client.js +2 -2
  33. package/api/resources/providers/client/Client.js +4 -4
  34. package/api/resources/runs/client/Client.js +7 -7
  35. package/api/resources/sources/client/Client.js +6 -6
  36. package/api/resources/sources/resources/files/client/Client.js +3 -3
  37. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  38. package/api/resources/steps/client/Client.js +2 -2
  39. package/api/resources/tag/client/Client.js +1 -1
  40. package/api/resources/templates/client/Client.js +1 -1
  41. package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +2 -2
  42. package/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +1 -1
  43. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  44. package/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  45. package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  46. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  47. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  48. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  49. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  50. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  51. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  52. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
  53. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  54. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +5 -0
  55. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  56. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +5 -0
  57. package/api/resources/templates/types/index.d.ts +10 -4
  58. package/api/resources/templates/types/index.js +10 -4
  59. package/api/resources/tools/client/Client.js +16 -16
  60. package/api/resources/voice/client/Client.js +1 -1
  61. package/api/types/AgentSchema.d.ts +1 -1
  62. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  63. package/api/types/MaxCountPerStepToolRule.d.ts +13 -0
  64. package/api/types/MaxCountPerStepToolRule.js +5 -0
  65. package/api/types/Tool.d.ts +2 -0
  66. package/api/types/ToolSchema.d.ts +1 -0
  67. package/api/types/index.d.ts +1 -0
  68. package/api/types/index.js +1 -0
  69. package/dist/api/resources/agents/client/Client.js +10 -10
  70. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  71. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  75. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  78. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  79. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  80. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.js +5 -0
  81. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts +4 -0
  82. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js +5 -0
  83. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  84. package/dist/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  85. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFour.js +5 -0
  86. package/{api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  87. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js +5 -0
  88. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  89. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +5 -0
  90. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  91. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +5 -0
  92. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  93. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  94. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  95. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  96. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  97. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  98. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js +5 -0
  99. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  100. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js +5 -0
  101. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  102. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  103. package/dist/api/resources/agents/types/index.d.ts +10 -4
  104. package/dist/api/resources/agents/types/index.js +10 -4
  105. package/dist/api/resources/blocks/client/Client.js +6 -6
  106. package/dist/api/resources/groups/client/Client.js +7 -7
  107. package/dist/api/resources/health/client/Client.js +1 -1
  108. package/dist/api/resources/identities/client/Client.js +6 -6
  109. package/dist/api/resources/jobs/client/Client.js +4 -4
  110. package/dist/api/resources/models/client/Client.js +2 -2
  111. package/dist/api/resources/providers/client/Client.js +4 -4
  112. package/dist/api/resources/runs/client/Client.js +7 -7
  113. package/dist/api/resources/sources/client/Client.js +6 -6
  114. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  115. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  116. package/dist/api/resources/steps/client/Client.js +2 -2
  117. package/dist/api/resources/tag/client/Client.js +1 -1
  118. package/dist/api/resources/templates/client/Client.js +1 -1
  119. package/dist/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +2 -2
  120. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +5 -0
  121. package/{api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +1 -1
  122. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +5 -0
  123. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  124. package/{api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  125. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js +5 -0
  126. package/dist/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  127. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js +5 -0
  128. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  129. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +5 -0
  130. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  131. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +5 -0
  132. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  133. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  134. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  135. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  136. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
  137. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  138. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +5 -0
  139. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  140. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +5 -0
  141. package/dist/api/resources/templates/types/index.d.ts +10 -4
  142. package/dist/api/resources/templates/types/index.js +10 -4
  143. package/dist/api/resources/tools/client/Client.js +16 -16
  144. package/dist/api/resources/voice/client/Client.js +1 -1
  145. package/dist/api/types/AgentSchema.d.ts +1 -1
  146. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  147. package/dist/api/types/MaxCountPerStepToolRule.d.ts +13 -0
  148. package/dist/api/types/MaxCountPerStepToolRule.js +5 -0
  149. package/dist/api/types/Tool.d.ts +2 -0
  150. package/dist/api/types/ToolSchema.d.ts +1 -0
  151. package/dist/api/types/index.d.ts +1 -0
  152. package/dist/api/types/index.js +1 -0
  153. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  154. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +4 -4
  155. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  156. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +2 -2
  157. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  158. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +4 -2
  159. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  160. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  161. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  162. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  163. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  164. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  165. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  166. package/dist/serialization/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +3 -3
  167. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  168. package/dist/serialization/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js} +5 -4
  169. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  170. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  171. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  172. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  173. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  174. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js +46 -0
  175. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  176. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js +41 -0
  177. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  178. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  179. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  180. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  181. package/dist/serialization/resources/agents/types/index.d.ts +10 -4
  182. package/dist/serialization/resources/agents/types/index.js +10 -4
  183. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +4 -4
  184. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +45 -0
  185. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  186. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +44 -0
  187. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  188. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.js +4 -2
  189. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  190. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  191. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  192. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  193. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  194. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  195. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  196. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  197. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  198. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  199. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  200. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  201. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  202. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  203. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  204. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +46 -0
  205. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  206. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +41 -0
  207. package/dist/serialization/resources/templates/types/index.d.ts +10 -4
  208. package/dist/serialization/resources/templates/types/index.js +10 -4
  209. package/dist/serialization/types/AgentSchema.d.ts +1 -1
  210. package/dist/serialization/types/AgentSchema.js +1 -1
  211. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  212. package/dist/serialization/types/AgentStateToolRulesItem.js +2 -0
  213. package/dist/serialization/types/MaxCountPerStepToolRule.d.ts +14 -0
  214. package/dist/serialization/types/MaxCountPerStepToolRule.js +45 -0
  215. package/dist/serialization/types/Tool.d.ts +1 -0
  216. package/dist/serialization/types/Tool.js +1 -0
  217. package/dist/serialization/types/ToolSchema.d.ts +1 -0
  218. package/dist/serialization/types/ToolSchema.js +1 -0
  219. package/dist/serialization/types/index.d.ts +1 -0
  220. package/dist/serialization/types/index.js +1 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  225. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +4 -4
  226. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts → AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  227. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +2 -2
  228. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  229. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +4 -2
  230. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  231. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  232. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  233. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  234. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  235. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  236. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  237. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  238. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  239. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  240. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  241. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  242. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  243. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  244. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  245. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js +46 -0
  246. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  247. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js +41 -0
  248. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  249. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  250. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  251. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  252. package/serialization/resources/agents/types/index.d.ts +10 -4
  253. package/serialization/resources/agents/types/index.js +10 -4
  254. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +4 -4
  255. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +45 -0
  256. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  257. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +44 -0
  258. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  259. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.js +4 -2
  260. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  261. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  262. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  263. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  264. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  265. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  266. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  267. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  268. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  269. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  270. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  271. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  272. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  273. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  274. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  275. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +46 -0
  276. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  277. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +41 -0
  278. package/serialization/resources/templates/types/index.d.ts +10 -4
  279. package/serialization/resources/templates/types/index.js +10 -4
  280. package/serialization/types/AgentSchema.d.ts +1 -1
  281. package/serialization/types/AgentSchema.js +1 -1
  282. package/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  283. package/serialization/types/AgentStateToolRulesItem.js +2 -0
  284. package/serialization/types/MaxCountPerStepToolRule.d.ts +14 -0
  285. package/serialization/types/MaxCountPerStepToolRule.js +45 -0
  286. package/serialization/types/Tool.d.ts +1 -0
  287. package/serialization/types/Tool.js +1 -0
  288. package/serialization/types/ToolSchema.d.ts +1 -0
  289. package/serialization/types/ToolSchema.js +1 -0
  290. package/serialization/types/index.d.ts +1 -0
  291. package/serialization/types/index.js +1 -0
  292. package/version.d.ts +1 -1
  293. package/version.js +1 -1
  294. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +0 -4
  295. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +0 -8
  296. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +0 -4
  297. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +0 -8
  298. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +0 -14
  299. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +0 -14
  300. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js +0 -45
  301. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js +0 -44
  302. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +0 -0
  303. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +0 -0
  304. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +0 -0
  305. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +0 -0
  306. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js} +0 -0
  307. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +0 -0
  308. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js} +0 -0
  309. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js} +0 -0
  310. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js} +0 -0
  311. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js} +0 -0
  312. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js} +0 -0
  313. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js} +0 -0
  314. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +0 -0
  315. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +0 -0
  316. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js} +0 -0
  317. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +0 -0
@@ -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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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,
@@ -97,7 +97,7 @@ class Messages {
97
97
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
98
98
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages`),
99
99
  method: "GET",
100
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
103
103
  requestType: "json",
@@ -173,7 +173,7 @@ class Messages {
173
173
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
174
174
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages`),
175
175
  method: "POST",
176
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
176
+ 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),
177
177
  contentType: "application/json",
178
178
  requestType: "json",
179
179
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -243,7 +243,7 @@ class Messages {
243
243
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
244
244
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages/${encodeURIComponent(messageId)}`),
245
245
  method: "PATCH",
246
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
246
+ 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),
247
247
  contentType: "application/json",
248
248
  requestType: "json",
249
249
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -303,7 +303,7 @@ class Messages {
303
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
304
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages/stream`),
305
305
  method: "POST",
306
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
306
+ 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),
307
307
  contentType: "application/json",
308
308
  requestType: "json",
309
309
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -390,7 +390,7 @@ class Messages {
390
390
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
391
391
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages/async`),
392
392
  method: "POST",
393
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
393
+ 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),
394
394
  contentType: "application/json",
395
395
  requestType: "json",
396
396
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -88,7 +88,7 @@ class Passages {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival-memory`),
90
90
  method: "GET",
91
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
92
92
  contentType: "application/json",
93
93
  queryParameters: _queryParams,
94
94
  requestType: "json",
@@ -157,7 +157,7 @@ class Passages {
157
157
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
158
158
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival-memory`),
159
159
  method: "POST",
160
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class Passages {
224
224
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
225
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival-memory/${encodeURIComponent(memoryId)}`),
226
226
  method: "DELETE",
227
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,7 +77,7 @@ class Sources {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/sources/attach/${encodeURIComponent(sourceId)}`),
79
79
  method: "PATCH",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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,
@@ -143,7 +143,7 @@ class Sources {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/sources/detach/${encodeURIComponent(sourceId)}`),
145
145
  method: "PATCH",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Sources {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/sources`),
210
210
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -96,7 +96,7 @@ class Templates {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/version-template`),
98
98
  method: "POST",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -163,7 +163,7 @@ class Templates {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/migrate`),
165
165
  method: "POST",
166
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -236,7 +236,7 @@ class Templates {
236
236
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
237
237
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/template`),
238
238
  method: "POST",
239
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
239
+ 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),
240
240
  contentType: "application/json",
241
241
  requestType: "json",
242
242
  body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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,
@@ -142,7 +142,7 @@ class Tools {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools/attach/${encodeURIComponent(toolId)}`),
144
144
  method: "PATCH",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Tools {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools/detach/${encodeURIComponent(toolId)}`),
210
210
  method: "PATCH",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface AgentsSearchResponseAgentsItemToolRulesItemFour {
6
+ toolName: string;
7
+ type?: Letta.AgentsSearchResponseAgentsItemToolRulesItemFourType;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AgentsSearchResponseAgentsItemToolRulesItemFourType = "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 AgentsSearchResponseAgentsItemToolRulesItemItem = Letta.AgentsSearchResponseAgentsItemToolRulesItemItemChildren | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemOne | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemTwo | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemToolName;
5
+ export type AgentsSearchResponseAgentsItemToolRulesItemItem = Letta.AgentsSearchResponseAgentsItemToolRulesItemItemChildren | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemOne | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemTwo | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemFour | Letta.AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit;
@@ -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 AgentsSearchResponseAgentsItemToolRulesItemItemToolName {
5
+ export interface AgentsSearchResponseAgentsItemToolRulesItemItemFour {
6
6
  toolName: string;
7
- type?: Letta.AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType;
7
+ type?: Letta.AgentsSearchResponseAgentsItemToolRulesItemItemFourType;
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 AgentsSearchResponseAgentsItemToolRulesItemToolNameType = "continue_loop" | unknown;
4
+ export type AgentsSearchResponseAgentsItemToolRulesItemItemFourType = "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 AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit {
6
+ toolName: string;
7
+ type?: Letta.AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType;
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 AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType = "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 AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit {
6
+ toolName: string;
7
+ type?: Letta.AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType;
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 AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType = "max_count_per_step" | unknown;
@@ -16,4 +16,5 @@ export interface AgentsSearchResponseAgentsItemToolsItem {
16
16
  returnCharLimit?: number;
17
17
  createdById?: Letta.AgentsSearchResponseAgentsItemToolsItemCreatedById;
18
18
  lastUpdatedById?: Letta.AgentsSearchResponseAgentsItemToolsItemLastUpdatedById;
19
+ metadata?: Letta.AgentsSearchResponseAgentsItemToolsItemMetadata;
19
20
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type AgentsSearchResponseAgentsItemToolsItemMetadata = unknown | string | undefined | (Letta.AgentsSearchResponseAgentsItemToolsItemMetadataItem | undefined)[];
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AgentsSearchResponseAgentsItemToolsItemMetadataItem = unknown | string | undefined;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type CreateAgentRequestToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.InitToolRule;
5
+ export type CreateAgentRequestToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.InitToolRule;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type UpdateAgentToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.InitToolRule;
5
+ export type UpdateAgentToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.InitToolRule;
@@ -24,8 +24,10 @@ export * from "./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMappingDe
24
24
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild";
25
25
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping";
26
26
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMapping";
27
- export * from "./AgentsSearchResponseAgentsItemToolRulesItemToolNameType";
28
- export * from "./AgentsSearchResponseAgentsItemToolRulesItemToolName";
27
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemFourType";
28
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemFour";
29
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType";
30
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit";
29
31
  export * from "./AgentsSearchResponseAgentsItemToolRulesItem";
30
32
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemChildrenType";
31
33
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemChildren";
@@ -38,8 +40,10 @@ export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMappi
38
40
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild";
39
41
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping";
40
42
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping";
41
- export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType";
42
- export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemToolName";
43
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemFourType";
44
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemFour";
45
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType";
46
+ export * from "./AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit";
43
47
  export * from "./AgentsSearchResponseAgentsItemToolRulesItemItem";
44
48
  export * from "./AgentsSearchResponseAgentsItemToolRules";
45
49
  export * from "./AgentsSearchResponseAgentsItemMessageIdsItem";
@@ -117,6 +121,8 @@ export * from "./AgentsSearchResponseAgentsItemToolsItemCreatedByIdItem";
117
121
  export * from "./AgentsSearchResponseAgentsItemToolsItemCreatedById";
118
122
  export * from "./AgentsSearchResponseAgentsItemToolsItemLastUpdatedByIdItem";
119
123
  export * from "./AgentsSearchResponseAgentsItemToolsItemLastUpdatedById";
124
+ export * from "./AgentsSearchResponseAgentsItemToolsItemMetadataItem";
125
+ export * from "./AgentsSearchResponseAgentsItemToolsItemMetadata";
120
126
  export * from "./AgentsSearchResponseAgentsItemToolsItem";
121
127
  export * from "./AgentsSearchResponseAgentsItemSourcesItemId";
122
128
  export * from "./AgentsSearchResponseAgentsItemSourcesItemDescriptionItem";
@@ -40,8 +40,10 @@ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMa
40
40
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild"), exports);
41
41
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping"), exports);
42
42
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemChildOutputMapping"), exports);
43
- __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemToolNameType"), exports);
44
- __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemToolName"), exports);
43
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemFourType"), exports);
44
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemFour"), exports);
45
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType"), exports);
46
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit"), exports);
45
47
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItem"), exports);
46
48
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemChildrenType"), exports);
47
49
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemChildren"), exports);
@@ -54,8 +56,10 @@ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutp
54
56
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild"), exports);
55
57
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping"), exports);
56
58
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping"), exports);
57
- __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType"), exports);
58
- __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemToolName"), exports);
59
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemFourType"), exports);
60
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemFour"), exports);
61
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType"), exports);
62
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit"), exports);
59
63
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRulesItemItem"), exports);
60
64
  __exportStar(require("./AgentsSearchResponseAgentsItemToolRules"), exports);
61
65
  __exportStar(require("./AgentsSearchResponseAgentsItemMessageIdsItem"), exports);
@@ -133,6 +137,8 @@ __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemCreatedByIdItem")
133
137
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemCreatedById"), exports);
134
138
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemLastUpdatedByIdItem"), exports);
135
139
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemLastUpdatedById"), exports);
140
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemMetadataItem"), exports);
141
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemMetadata"), exports);
136
142
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItem"), exports);
137
143
  __exportStar(require("./AgentsSearchResponseAgentsItemSourcesItemId"), exports);
138
144
  __exportStar(require("./AgentsSearchResponseAgentsItemSourcesItemDescriptionItem"), exports);