@letta-ai/letta-client 0.1.177 → 0.1.179

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 (400) 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/files/client/Client.js +3 -3
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.d.ts +2 -4
  10. package/api/resources/agents/resources/messages/client/Client.js +12 -14
  11. package/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +1 -5
  12. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  13. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  14. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  15. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  16. package/api/resources/batches/client/Client.js +4 -4
  17. package/api/resources/blocks/client/Client.js +6 -6
  18. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  19. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  20. package/api/resources/embeddingModels/client/Client.js +1 -1
  21. package/api/resources/folders/client/Client.js +9 -9
  22. package/api/resources/folders/resources/files/client/Client.js +3 -3
  23. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  24. package/api/resources/groups/client/Client.js +6 -6
  25. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  26. package/api/resources/health/client/Client.js +1 -1
  27. package/api/resources/identities/client/Client.js +7 -7
  28. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  29. package/api/resources/jobs/client/Client.js +5 -5
  30. package/api/resources/messages/client/Client.js +1 -1
  31. package/api/resources/models/client/Client.js +1 -1
  32. package/api/resources/projects/client/Client.js +1 -1
  33. package/api/resources/providers/client/Client.js +6 -6
  34. package/api/resources/runs/client/Client.js +4 -4
  35. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  36. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  37. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  38. package/api/resources/sources/client/Client.js +10 -10
  39. package/api/resources/sources/resources/files/client/Client.js +3 -3
  40. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  41. package/api/resources/steps/client/Client.js +3 -3
  42. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  43. package/api/resources/tags/client/Client.js +1 -1
  44. package/api/resources/telemetry/client/Client.js +1 -1
  45. package/api/resources/templates/client/Client.js +1 -1
  46. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  47. package/api/resources/tools/client/Client.js +20 -20
  48. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  49. package/api/resources/voice/client/Client.js +1 -1
  50. package/api/types/ChatCompletionAllowedToolChoiceParam.d.ts +8 -0
  51. package/api/types/ChatCompletionAllowedToolsParam.d.ts +8 -0
  52. package/api/types/ChatCompletionAllowedToolsParamMode.d.ts +8 -0
  53. package/api/types/ChatCompletionAllowedToolsParamMode.js +10 -0
  54. package/api/types/ChatCompletionAssistantMessageParam.d.ts +1 -1
  55. package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  56. package/api/types/ChatCompletionCustomToolParam.d.ts +8 -0
  57. package/api/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +1 -1
  58. package/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  59. package/api/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +1 -1
  60. package/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  61. package/api/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +8 -0
  62. package/api/types/ChatCompletionNamedToolChoiceCustomParam.js +5 -0
  63. package/api/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
  64. package/api/types/CodeInput.d.ts +3 -1
  65. package/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -1
  66. package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  67. package/api/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +2 -1
  68. package/api/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -0
  69. package/api/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +1 -1
  70. package/api/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +5 -0
  71. package/api/types/CompletionCreateParamsNonStreamingToolsItem.js +5 -0
  72. package/api/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +9 -0
  73. package/api/types/CompletionCreateParamsNonStreamingVerbosity.js +11 -0
  74. package/api/types/CompletionCreateParamsStreaming.d.ts +2 -1
  75. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  76. package/api/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +2 -1
  77. package/api/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -0
  78. package/api/types/CompletionCreateParamsStreamingToolChoice.d.ts +1 -1
  79. package/api/types/CompletionCreateParamsStreamingToolsItem.d.ts +5 -0
  80. package/api/types/CompletionCreateParamsStreamingToolsItem.js +5 -0
  81. package/api/types/CompletionCreateParamsStreamingVerbosity.d.ts +9 -0
  82. package/api/types/CompletionCreateParamsStreamingVerbosity.js +11 -0
  83. package/api/types/CustomFormatGrammar.d.ts +8 -0
  84. package/api/types/CustomFormatGrammar.js +5 -0
  85. package/api/types/CustomFormatGrammarGrammar.d.ts +8 -0
  86. package/api/types/CustomFormatGrammarGrammar.js +5 -0
  87. package/api/types/CustomFormatGrammarGrammarSyntax.d.ts +8 -0
  88. package/api/types/CustomFormatGrammarGrammarSyntax.js +10 -0
  89. package/api/types/CustomFormatText.d.ts +6 -0
  90. package/api/types/CustomFormatText.js +5 -0
  91. package/api/types/McpTool.d.ts +2 -0
  92. package/api/types/McpToolHealth.d.ts +12 -0
  93. package/api/types/McpToolHealth.js +5 -0
  94. package/api/types/Message.d.ts +1 -1
  95. package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +9 -0
  96. package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +5 -0
  97. package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +5 -0
  98. package/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +5 -0
  99. package/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +7 -0
  100. package/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +5 -0
  101. package/api/types/{OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts → OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts} +1 -1
  102. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  103. package/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +6 -0
  104. package/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +5 -0
  105. package/api/types/index.d.ts +24 -4
  106. package/api/types/index.js +24 -4
  107. package/dist/api/resources/agents/client/Client.js +10 -10
  108. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  109. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  110. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  111. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  112. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  113. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  114. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  115. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +2 -4
  116. package/dist/api/resources/agents/resources/messages/client/Client.js +12 -14
  117. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +1 -5
  118. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  119. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  120. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  121. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  122. package/dist/api/resources/batches/client/Client.js +4 -4
  123. package/dist/api/resources/blocks/client/Client.js +6 -6
  124. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  125. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  126. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  127. package/dist/api/resources/folders/client/Client.js +9 -9
  128. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  129. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  130. package/dist/api/resources/groups/client/Client.js +6 -6
  131. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  132. package/dist/api/resources/health/client/Client.js +1 -1
  133. package/dist/api/resources/identities/client/Client.js +7 -7
  134. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  135. package/dist/api/resources/jobs/client/Client.js +5 -5
  136. package/dist/api/resources/messages/client/Client.js +1 -1
  137. package/dist/api/resources/models/client/Client.js +1 -1
  138. package/dist/api/resources/projects/client/Client.js +1 -1
  139. package/dist/api/resources/providers/client/Client.js +6 -6
  140. package/dist/api/resources/runs/client/Client.js +4 -4
  141. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  142. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  143. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  144. package/dist/api/resources/sources/client/Client.js +10 -10
  145. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  146. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  147. package/dist/api/resources/steps/client/Client.js +3 -3
  148. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  149. package/dist/api/resources/tags/client/Client.js +1 -1
  150. package/dist/api/resources/telemetry/client/Client.js +1 -1
  151. package/dist/api/resources/templates/client/Client.js +1 -1
  152. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  153. package/dist/api/resources/tools/client/Client.js +20 -20
  154. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  155. package/dist/api/resources/voice/client/Client.js +1 -1
  156. package/dist/api/types/ChatCompletionAllowedToolChoiceParam.d.ts +8 -0
  157. package/dist/api/types/ChatCompletionAllowedToolChoiceParam.js +5 -0
  158. package/dist/api/types/ChatCompletionAllowedToolsParam.d.ts +8 -0
  159. package/dist/api/types/ChatCompletionAllowedToolsParam.js +5 -0
  160. package/dist/api/types/ChatCompletionAllowedToolsParamMode.d.ts +8 -0
  161. package/dist/api/types/ChatCompletionAllowedToolsParamMode.js +10 -0
  162. package/dist/api/types/ChatCompletionAssistantMessageParam.d.ts +1 -1
  163. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  164. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
  165. package/dist/api/types/ChatCompletionCustomToolParam.d.ts +8 -0
  166. package/dist/api/types/ChatCompletionCustomToolParam.js +5 -0
  167. package/dist/api/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +1 -1
  168. package/dist/api/types/ChatCompletionFunctionToolParam.js +5 -0
  169. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  170. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
  171. package/dist/api/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +1 -1
  172. package/dist/api/types/ChatCompletionMessageFunctionToolCall.js +5 -0
  173. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  174. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
  175. package/dist/api/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +8 -0
  176. package/dist/api/types/ChatCompletionNamedToolChoiceCustomParam.js +5 -0
  177. package/dist/api/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
  178. package/dist/api/types/CodeInput.d.ts +3 -1
  179. package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -1
  180. package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  181. package/dist/api/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +2 -1
  182. package/dist/api/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -0
  183. package/dist/api/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +1 -1
  184. package/dist/api/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +5 -0
  185. package/dist/api/types/CompletionCreateParamsNonStreamingToolsItem.js +5 -0
  186. package/dist/api/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +9 -0
  187. package/dist/api/types/CompletionCreateParamsNonStreamingVerbosity.js +11 -0
  188. package/dist/api/types/CompletionCreateParamsStreaming.d.ts +2 -1
  189. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  190. package/dist/api/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +2 -1
  191. package/dist/api/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -0
  192. package/dist/api/types/CompletionCreateParamsStreamingToolChoice.d.ts +1 -1
  193. package/dist/api/types/CompletionCreateParamsStreamingToolsItem.d.ts +5 -0
  194. package/dist/api/types/CompletionCreateParamsStreamingToolsItem.js +5 -0
  195. package/dist/api/types/CompletionCreateParamsStreamingVerbosity.d.ts +9 -0
  196. package/dist/api/types/CompletionCreateParamsStreamingVerbosity.js +11 -0
  197. package/dist/api/types/CustomFormatGrammar.d.ts +8 -0
  198. package/dist/api/types/CustomFormatGrammar.js +5 -0
  199. package/dist/api/types/CustomFormatGrammarGrammar.d.ts +8 -0
  200. package/dist/api/types/CustomFormatGrammarGrammar.js +5 -0
  201. package/dist/api/types/CustomFormatGrammarGrammarSyntax.d.ts +8 -0
  202. package/dist/api/types/CustomFormatGrammarGrammarSyntax.js +10 -0
  203. package/dist/api/types/CustomFormatText.d.ts +6 -0
  204. package/dist/api/types/CustomFormatText.js +5 -0
  205. package/dist/api/types/McpTool.d.ts +2 -0
  206. package/dist/api/types/McpToolHealth.d.ts +12 -0
  207. package/dist/api/types/McpToolHealth.js +5 -0
  208. package/dist/api/types/Message.d.ts +1 -1
  209. package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +9 -0
  210. package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +5 -0
  211. package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +5 -0
  212. package/dist/api/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +5 -0
  213. package/dist/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +7 -0
  214. package/dist/api/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +5 -0
  215. package/dist/api/types/{OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts → OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts} +1 -1
  216. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  217. package/dist/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +6 -0
  218. package/dist/api/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +5 -0
  219. package/dist/api/types/index.d.ts +24 -4
  220. package/dist/api/types/index.js +24 -4
  221. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +0 -1
  222. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +0 -1
  223. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  224. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  225. package/dist/serialization/types/ChatCompletionAllowedToolChoiceParam.d.ts +14 -0
  226. package/dist/serialization/types/ChatCompletionAllowedToolChoiceParam.js +45 -0
  227. package/dist/serialization/types/ChatCompletionAllowedToolsParam.d.ts +14 -0
  228. package/dist/serialization/types/ChatCompletionAllowedToolsParam.js +45 -0
  229. package/dist/serialization/types/ChatCompletionAllowedToolsParamMode.d.ts +10 -0
  230. package/dist/serialization/types/ChatCompletionAllowedToolsParamMode.js +41 -0
  231. package/dist/serialization/types/ChatCompletionAssistantMessageParam.d.ts +2 -2
  232. package/dist/serialization/types/ChatCompletionAssistantMessageParam.js +2 -2
  233. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  234. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  235. package/dist/serialization/types/ChatCompletionCustomToolParam.d.ts +14 -0
  236. package/dist/serialization/types/ChatCompletionCustomToolParam.js +45 -0
  237. package/dist/serialization/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +2 -2
  238. package/dist/serialization/types/{ChatCompletionToolParam.js → ChatCompletionFunctionToolParam.js} +2 -2
  239. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  240. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  241. package/dist/serialization/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +2 -2
  242. package/dist/serialization/types/{ChatCompletionMessageToolCall.js → ChatCompletionMessageFunctionToolCall.js} +2 -2
  243. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  244. package/dist/serialization/types/{ChatCompletionMessageToolCallParam.js → ChatCompletionMessageFunctionToolCallParam.js} +4 -4
  245. package/dist/serialization/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +14 -0
  246. package/dist/serialization/types/ChatCompletionNamedToolChoiceCustomParam.js +45 -0
  247. package/dist/serialization/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
  248. package/dist/serialization/types/ChatCompletionStreamOptionsParam.js +1 -0
  249. package/dist/serialization/types/CodeInput.d.ts +1 -0
  250. package/dist/serialization/types/CodeInput.js +1 -0
  251. package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +4 -2
  252. package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +4 -2
  253. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  254. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +7 -0
  255. package/dist/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +1 -1
  256. package/dist/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -1
  257. package/dist/serialization/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +3 -1
  258. package/dist/serialization/types/CompletionCreateParamsNonStreamingToolChoice.js +4 -0
  259. package/dist/serialization/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +12 -0
  260. package/dist/serialization/types/CompletionCreateParamsNonStreamingToolsItem.js +43 -0
  261. package/dist/serialization/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +10 -0
  262. package/dist/serialization/types/CompletionCreateParamsNonStreamingVerbosity.js +41 -0
  263. package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +4 -2
  264. package/dist/serialization/types/CompletionCreateParamsStreaming.js +4 -2
  265. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  266. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +7 -0
  267. package/dist/serialization/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +1 -1
  268. package/dist/serialization/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -1
  269. package/dist/serialization/types/CompletionCreateParamsStreamingToolChoice.d.ts +3 -1
  270. package/dist/serialization/types/CompletionCreateParamsStreamingToolChoice.js +4 -0
  271. package/dist/serialization/types/CompletionCreateParamsStreamingToolsItem.d.ts +12 -0
  272. package/dist/serialization/types/CompletionCreateParamsStreamingToolsItem.js +43 -0
  273. package/dist/serialization/types/CompletionCreateParamsStreamingVerbosity.d.ts +10 -0
  274. package/dist/serialization/types/CompletionCreateParamsStreamingVerbosity.js +41 -0
  275. package/dist/serialization/types/CustomFormatGrammar.d.ts +14 -0
  276. package/dist/serialization/types/CustomFormatGrammar.js +45 -0
  277. package/dist/serialization/types/CustomFormatGrammarGrammar.d.ts +14 -0
  278. package/dist/serialization/types/CustomFormatGrammarGrammar.js +45 -0
  279. package/dist/serialization/types/CustomFormatGrammarGrammarSyntax.d.ts +10 -0
  280. package/dist/serialization/types/CustomFormatGrammarGrammarSyntax.js +41 -0
  281. package/dist/serialization/types/CustomFormatText.d.ts +12 -0
  282. package/dist/serialization/types/CustomFormatText.js +43 -0
  283. package/dist/serialization/types/McpTool.d.ts +2 -0
  284. package/dist/serialization/types/McpTool.js +2 -0
  285. package/dist/serialization/types/McpToolHealth.d.ts +13 -0
  286. package/dist/serialization/types/McpToolHealth.js +44 -0
  287. package/dist/serialization/types/Message.d.ts +2 -2
  288. package/dist/serialization/types/Message.js +2 -2
  289. package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +15 -0
  290. package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +46 -0
  291. package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +12 -0
  292. package/dist/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +43 -0
  293. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +13 -0
  294. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +44 -0
  295. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  296. package/{serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js} +2 -2
  297. package/dist/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +12 -0
  298. package/dist/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +43 -0
  299. package/dist/serialization/types/index.d.ts +24 -4
  300. package/dist/serialization/types/index.js +24 -4
  301. package/dist/version.d.ts +1 -1
  302. package/dist/version.js +1 -1
  303. package/package.json +1 -1
  304. package/reference.md +1 -3
  305. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +0 -1
  306. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +0 -1
  307. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  308. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  309. package/serialization/types/ChatCompletionAllowedToolChoiceParam.d.ts +14 -0
  310. package/serialization/types/ChatCompletionAllowedToolChoiceParam.js +45 -0
  311. package/serialization/types/ChatCompletionAllowedToolsParam.d.ts +14 -0
  312. package/serialization/types/ChatCompletionAllowedToolsParam.js +45 -0
  313. package/serialization/types/ChatCompletionAllowedToolsParamMode.d.ts +10 -0
  314. package/serialization/types/ChatCompletionAllowedToolsParamMode.js +41 -0
  315. package/serialization/types/ChatCompletionAssistantMessageParam.d.ts +2 -2
  316. package/serialization/types/ChatCompletionAssistantMessageParam.js +2 -2
  317. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  318. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  319. package/serialization/types/ChatCompletionCustomToolParam.d.ts +14 -0
  320. package/serialization/types/ChatCompletionCustomToolParam.js +45 -0
  321. package/serialization/types/{ChatCompletionToolParam.d.ts → ChatCompletionFunctionToolParam.d.ts} +2 -2
  322. package/serialization/types/{ChatCompletionToolParam.js → ChatCompletionFunctionToolParam.js} +2 -2
  323. package/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  324. package/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  325. package/serialization/types/{ChatCompletionMessageToolCall.d.ts → ChatCompletionMessageFunctionToolCall.d.ts} +2 -2
  326. package/serialization/types/{ChatCompletionMessageToolCall.js → ChatCompletionMessageFunctionToolCall.js} +2 -2
  327. package/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  328. package/serialization/types/{ChatCompletionMessageToolCallParam.js → ChatCompletionMessageFunctionToolCallParam.js} +4 -4
  329. package/serialization/types/ChatCompletionNamedToolChoiceCustomParam.d.ts +14 -0
  330. package/serialization/types/ChatCompletionNamedToolChoiceCustomParam.js +45 -0
  331. package/serialization/types/ChatCompletionStreamOptionsParam.d.ts +1 -0
  332. package/serialization/types/ChatCompletionStreamOptionsParam.js +1 -0
  333. package/serialization/types/CodeInput.d.ts +1 -0
  334. package/serialization/types/CodeInput.js +1 -0
  335. package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +4 -2
  336. package/serialization/types/CompletionCreateParamsNonStreaming.js +4 -2
  337. package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  338. package/serialization/types/CompletionCreateParamsNonStreamingModel.js +7 -0
  339. package/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.d.ts +1 -1
  340. package/serialization/types/CompletionCreateParamsNonStreamingReasoningEffort.js +1 -1
  341. package/serialization/types/CompletionCreateParamsNonStreamingToolChoice.d.ts +3 -1
  342. package/serialization/types/CompletionCreateParamsNonStreamingToolChoice.js +4 -0
  343. package/serialization/types/CompletionCreateParamsNonStreamingToolsItem.d.ts +12 -0
  344. package/serialization/types/CompletionCreateParamsNonStreamingToolsItem.js +43 -0
  345. package/serialization/types/CompletionCreateParamsNonStreamingVerbosity.d.ts +10 -0
  346. package/serialization/types/CompletionCreateParamsNonStreamingVerbosity.js +41 -0
  347. package/serialization/types/CompletionCreateParamsStreaming.d.ts +4 -2
  348. package/serialization/types/CompletionCreateParamsStreaming.js +4 -2
  349. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  350. package/serialization/types/CompletionCreateParamsStreamingModel.js +7 -0
  351. package/serialization/types/CompletionCreateParamsStreamingReasoningEffort.d.ts +1 -1
  352. package/serialization/types/CompletionCreateParamsStreamingReasoningEffort.js +1 -1
  353. package/serialization/types/CompletionCreateParamsStreamingToolChoice.d.ts +3 -1
  354. package/serialization/types/CompletionCreateParamsStreamingToolChoice.js +4 -0
  355. package/serialization/types/CompletionCreateParamsStreamingToolsItem.d.ts +12 -0
  356. package/serialization/types/CompletionCreateParamsStreamingToolsItem.js +43 -0
  357. package/serialization/types/CompletionCreateParamsStreamingVerbosity.d.ts +10 -0
  358. package/serialization/types/CompletionCreateParamsStreamingVerbosity.js +41 -0
  359. package/serialization/types/CustomFormatGrammar.d.ts +14 -0
  360. package/serialization/types/CustomFormatGrammar.js +45 -0
  361. package/serialization/types/CustomFormatGrammarGrammar.d.ts +14 -0
  362. package/serialization/types/CustomFormatGrammarGrammar.js +45 -0
  363. package/serialization/types/CustomFormatGrammarGrammarSyntax.d.ts +10 -0
  364. package/serialization/types/CustomFormatGrammarGrammarSyntax.js +41 -0
  365. package/serialization/types/CustomFormatText.d.ts +12 -0
  366. package/serialization/types/CustomFormatText.js +43 -0
  367. package/serialization/types/McpTool.d.ts +2 -0
  368. package/serialization/types/McpTool.js +2 -0
  369. package/serialization/types/McpToolHealth.d.ts +13 -0
  370. package/serialization/types/McpToolHealth.js +44 -0
  371. package/serialization/types/Message.d.ts +2 -2
  372. package/serialization/types/Message.js +2 -2
  373. package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.d.ts +15 -0
  374. package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustom.js +46 -0
  375. package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.d.ts +12 -0
  376. package/serialization/types/OpenaiTypesChatChatCompletionCustomToolParamCustomFormat.js +43 -0
  377. package/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.d.ts +13 -0
  378. package/serialization/types/OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom.js +44 -0
  379. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  380. package/{dist/serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js} +2 -2
  381. package/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.d.ts +12 -0
  382. package/serialization/types/OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom.js +43 -0
  383. package/serialization/types/index.d.ts +24 -4
  384. package/serialization/types/index.js +24 -4
  385. package/version.d.ts +1 -1
  386. package/version.js +1 -1
  387. package/api/types/ChatCompletionMessageToolCallParam.d.ts +0 -9
  388. package/dist/api/types/ChatCompletionMessageToolCallParam.d.ts +0 -9
  389. package/dist/serialization/types/ChatCompletionMessageToolCallParam.d.ts +0 -15
  390. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts +0 -13
  391. package/serialization/types/ChatCompletionMessageToolCallParam.d.ts +0 -15
  392. package/serialization/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts +0 -13
  393. /package/api/types/{ChatCompletionMessageToolCall.js → ChatCompletionAllowedToolChoiceParam.js} +0 -0
  394. /package/api/types/{ChatCompletionMessageToolCallParam.js → ChatCompletionAllowedToolsParam.js} +0 -0
  395. /package/api/types/{ChatCompletionToolParam.js → ChatCompletionAssistantMessageParamToolCallsItem.js} +0 -0
  396. /package/api/types/{OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → ChatCompletionCustomToolParam.js} +0 -0
  397. /package/{dist/api/types/ChatCompletionMessageToolCall.js → api/types/ChatCompletionFunctionToolParam.js} +0 -0
  398. /package/{dist/api/types/ChatCompletionMessageToolCallParam.js → api/types/ChatCompletionMessageCustomToolCallParam.js} +0 -0
  399. /package/{dist/api/types/ChatCompletionToolParam.js → api/types/ChatCompletionMessageFunctionToolCall.js} +0 -0
  400. /package/{dist/api/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.js → api/types/ChatCompletionMessageFunctionToolCallParam.js} +0 -0
@@ -207,7 +207,7 @@ class Agents {
207
207
  method: "GET",
208
208
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
209
209
  ? yield core.Supplier.get(this._options.project)
210
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-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
211
  contentType: "application/json",
212
212
  queryParameters: _queryParams,
213
213
  requestType: "json",
@@ -284,7 +284,7 @@ class Agents {
284
284
  method: "POST",
285
285
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
286
286
  ? yield core.Supplier.get(this._options.project)
287
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
288
288
  contentType: "application/json",
289
289
  requestType: "json",
290
290
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -360,7 +360,7 @@ class Agents {
360
360
  method: "GET",
361
361
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
362
362
  ? yield core.Supplier.get(this._options.project)
363
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
364
364
  contentType: "application/json",
365
365
  requestType: "json",
366
366
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -449,7 +449,7 @@ class Agents {
449
449
  method: "GET",
450
450
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
451
451
  ? yield core.Supplier.get(this._options.project)
452
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
452
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
453
453
  contentType: "application/json",
454
454
  queryParameters: _queryParams,
455
455
  requestType: "json",
@@ -546,7 +546,7 @@ class Agents {
546
546
  method: "POST",
547
547
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
548
548
  ? yield core.Supplier.get(this._options.project)
549
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
549
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "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),
550
550
  requestType: "file",
551
551
  duplex: _maybeEncodedRequest.duplex,
552
552
  body: _maybeEncodedRequest.body,
@@ -634,7 +634,7 @@ class Agents {
634
634
  method: "GET",
635
635
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
636
636
  ? yield core.Supplier.get(this._options.project)
637
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
637
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
638
638
  contentType: "application/json",
639
639
  queryParameters: _queryParams,
640
640
  requestType: "json",
@@ -711,7 +711,7 @@ class Agents {
711
711
  method: "DELETE",
712
712
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
713
713
  ? yield core.Supplier.get(this._options.project)
714
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
714
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
715
715
  contentType: "application/json",
716
716
  requestType: "json",
717
717
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -779,7 +779,7 @@ class Agents {
779
779
  method: "PATCH",
780
780
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
781
781
  ? yield core.Supplier.get(this._options.project)
782
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
782
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
783
783
  contentType: "application/json",
784
784
  requestType: "json",
785
785
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -865,7 +865,7 @@ class Agents {
865
865
  method: "POST",
866
866
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
867
867
  ? yield core.Supplier.get(this._options.project)
868
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
868
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
869
869
  contentType: "application/json",
870
870
  queryParameters: _queryParams,
871
871
  requestType: "json",
@@ -933,7 +933,7 @@ class Agents {
933
933
  method: "POST",
934
934
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
935
935
  ? yield core.Supplier.get(this._options.project)
936
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
936
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
937
937
  contentType: "application/json",
938
938
  requestType: "json",
939
939
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -82,7 +82,7 @@ class Blocks {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Blocks {
160
160
  method: "PATCH",
161
161
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
162
162
  ? yield core.Supplier.get(this._options.project)
163
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Blocks {
237
237
  method: "GET",
238
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
239
  ? yield core.Supplier.get(this._options.project)
240
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class Blocks {
314
314
  method: "PATCH",
315
315
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
316
316
  ? yield core.Supplier.get(this._options.project)
317
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
317
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -391,7 +391,7 @@ class Blocks {
391
391
  method: "PATCH",
392
392
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
393
393
  ? yield core.Supplier.get(this._options.project)
394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
395
395
  contentType: "application/json",
396
396
  requestType: "json",
397
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Context {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class CoreMemory {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Files {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class Files {
165
165
  method: "PATCH",
166
166
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
167
167
  ? yield core.Supplier.get(this._options.project)
168
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,7 +245,7 @@ class Files {
245
245
  method: "PATCH",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class Folders {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Folders {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Folders {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-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
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Groups {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-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
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -83,7 +83,7 @@ class MemoryVariables {
83
83
  method: "GET",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,11 +103,9 @@ export declare class Messages {
103
103
  * @throws {@link Letta.UnprocessableEntityError}
104
104
  *
105
105
  * @example
106
- * await client.agents.messages.cancel("agent_id", {
107
- * cancelAgentRunRequestAgentId: "agent_id"
108
- * })
106
+ * await client.agents.messages.cancel("agent_id")
109
107
  */
110
- cancel(agentId: string, request: Letta.agents.CancelAgentRunRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
108
+ cancel(agentId: string, request?: Letta.agents.CancelAgentRunRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
111
109
  private __cancel;
112
110
  /**
113
111
  * Asynchronously process a user message and return a run object.
@@ -108,7 +108,7 @@ class Messages {
108
108
  method: "GET",
109
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
110
110
  ? yield core.Supplier.get(this._options.project)
111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -195,7 +195,7 @@ class Messages {
195
195
  method: "POST",
196
196
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
197
197
  ? yield core.Supplier.get(this._options.project)
198
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
199
  contentType: "application/json",
200
200
  requestType: "json",
201
201
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -276,7 +276,7 @@ class Messages {
276
276
  method: "PATCH",
277
277
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
278
278
  ? yield core.Supplier.get(this._options.project)
279
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-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
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -347,7 +347,7 @@ class Messages {
347
347
  method: "POST",
348
348
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
349
349
  ? yield core.Supplier.get(this._options.project)
350
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
350
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
351
351
  contentType: "application/json",
352
352
  requestType: "json",
353
353
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -425,22 +425,20 @@ class Messages {
425
425
  * @throws {@link Letta.UnprocessableEntityError}
426
426
  *
427
427
  * @example
428
- * await client.agents.messages.cancel("agent_id", {
429
- * cancelAgentRunRequestAgentId: "agent_id"
430
- * })
428
+ * await client.agents.messages.cancel("agent_id")
431
429
  */
432
- cancel(agentId, request, requestOptions) {
430
+ cancel(agentId, request = {}, requestOptions) {
433
431
  return core.HttpResponsePromise.fromPromise(this.__cancel(agentId, request, requestOptions));
434
432
  }
435
- __cancel(agentId, request, requestOptions) {
436
- return __awaiter(this, void 0, void 0, function* () {
433
+ __cancel(agentId_1) {
434
+ return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
437
435
  var _a, _b, _c;
438
436
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
439
437
  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/cancel`),
440
438
  method: "POST",
441
439
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
442
440
  ? yield core.Supplier.get(this._options.project)
443
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
441
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
444
442
  contentType: "application/json",
445
443
  requestType: "json",
446
444
  body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -530,7 +528,7 @@ class Messages {
530
528
  method: "POST",
531
529
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
532
530
  ? yield core.Supplier.get(this._options.project)
533
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
531
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
534
532
  contentType: "application/json",
535
533
  requestType: "json",
536
534
  body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -613,7 +611,7 @@ class Messages {
613
611
  method: "PATCH",
614
612
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
615
613
  ? yield core.Supplier.get(this._options.project)
616
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
614
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
617
615
  contentType: "application/json",
618
616
  queryParameters: _queryParams,
619
617
  requestType: "json",
@@ -703,7 +701,7 @@ class Messages {
703
701
  method: "POST",
704
702
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
705
703
  ? yield core.Supplier.get(this._options.project)
706
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
704
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
707
705
  contentType: "application/json",
708
706
  requestType: "json",
709
707
  body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
@@ -3,13 +3,9 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * cancelAgentRunRequestAgentId: "agent_id"
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface CancelAgentRunRequest {
11
- /** ID of the agent to cancel runs for */
12
- cancelAgentRunRequestAgentId: string;
13
9
  /** Optional list of run IDs to cancel */
14
10
  runIds?: string[];
15
11
  }
@@ -99,7 +99,7 @@ class Passages {
99
99
  method: "GET",
100
100
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
101
101
  ? yield core.Supplier.get(this._options.project)
102
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -179,7 +179,7 @@ class Passages {
179
179
  method: "POST",
180
180
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
181
181
  ? yield core.Supplier.get(this._options.project)
182
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -257,7 +257,7 @@ class Passages {
257
257
  method: "DELETE",
258
258
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
259
259
  ? yield core.Supplier.get(this._options.project)
260
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
261
  contentType: "application/json",
262
262
  requestType: "json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -328,7 +328,7 @@ class Passages {
328
328
  method: "PATCH",
329
329
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
330
330
  ? yield core.Supplier.get(this._options.project)
331
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
331
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
332
  contentType: "application/json",
333
333
  requestType: "json",
334
334
  body: serializers.agents.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -82,7 +82,7 @@ class Sources {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Sources {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Sources {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-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
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -104,7 +104,7 @@ class Templates {
104
104
  method: "POST",
105
105
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
106
106
  ? yield core.Supplier.get(this._options.project)
107
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
110
110
  requestType: "json",
@@ -179,7 +179,7 @@ class Templates {
179
179
  method: "POST",
180
180
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
181
181
  ? yield core.Supplier.get(this._options.project)
182
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -263,7 +263,7 @@ class Templates {
263
263
  method: "POST",
264
264
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
265
265
  ? yield core.Supplier.get(this._options.project)
266
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
267
267
  contentType: "application/json",
268
268
  requestType: "json",
269
269
  body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -158,7 +158,7 @@ class Tools {
158
158
  method: "PATCH",
159
159
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
160
160
  ? yield core.Supplier.get(this._options.project)
161
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
162
  contentType: "application/json",
163
163
  requestType: "json",
164
164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Tools {
235
235
  method: "PATCH",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-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
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -80,7 +80,7 @@ class Batches {
80
80
  method: "GET",
81
81
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
82
  ? yield core.Supplier.get(this._options.project)
83
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -168,7 +168,7 @@ class Batches {
168
168
  method: "POST",
169
169
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
170
170
  ? yield core.Supplier.get(this._options.project)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
172
  contentType: "application/json",
173
173
  requestType: "json",
174
174
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -245,7 +245,7 @@ class Batches {
245
245
  method: "GET",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -321,7 +321,7 @@ class Batches {
321
321
  method: "PATCH",
322
322
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
323
323
  ? yield core.Supplier.get(this._options.project)
324
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
324
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.179", "User-Agent": "@letta-ai/letta-client/0.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
325
325
  contentType: "application/json",
326
326
  requestType: "json",
327
327
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,