@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
@@ -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,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : 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),
160
+ : 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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : 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),
228
+ : 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),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -307,7 +307,7 @@ class Tools {
307
307
  method: "GET",
308
308
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
309
309
  ? yield core.Supplier.get(this._options.project)
310
- : 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),
310
+ : 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),
311
311
  contentType: "application/json",
312
312
  queryParameters: _queryParams,
313
313
  requestType: "json",
@@ -395,7 +395,7 @@ class Tools {
395
395
  method: "GET",
396
396
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
397
397
  ? yield core.Supplier.get(this._options.project)
398
- : 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),
398
+ : 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),
399
399
  contentType: "application/json",
400
400
  queryParameters: _queryParams,
401
401
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "POST",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : 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),
477
+ : 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),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "PUT",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : 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),
556
+ : 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),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -629,7 +629,7 @@ class Tools {
629
629
  method: "POST",
630
630
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
631
631
  ? yield core.Supplier.get(this._options.project)
632
- : 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),
632
+ : 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),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -710,7 +710,7 @@ class Tools {
710
710
  method: "POST",
711
711
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
712
712
  ? yield core.Supplier.get(this._options.project)
713
- : 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),
713
+ : 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),
714
714
  contentType: "application/json",
715
715
  requestType: "json",
716
716
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -788,7 +788,7 @@ class Tools {
788
788
  method: "GET",
789
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
790
790
  ? yield core.Supplier.get(this._options.project)
791
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
791
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
792
792
  contentType: "application/json",
793
793
  requestType: "json",
794
794
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -864,7 +864,7 @@ class Tools {
864
864
  method: "GET",
865
865
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
866
866
  ? yield core.Supplier.get(this._options.project)
867
- : 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),
867
+ : 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),
868
868
  contentType: "application/json",
869
869
  requestType: "json",
870
870
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -940,7 +940,7 @@ class Tools {
940
940
  method: "POST",
941
941
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
942
942
  ? yield core.Supplier.get(this._options.project)
943
- : 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),
943
+ : 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),
944
944
  contentType: "application/json",
945
945
  requestType: "json",
946
946
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1017,7 +1017,7 @@ class Tools {
1017
1017
  method: "GET",
1018
1018
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1019
1019
  ? yield core.Supplier.get(this._options.project)
1020
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1020
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1021
1021
  contentType: "application/json",
1022
1022
  requestType: "json",
1023
1023
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1097,7 +1097,7 @@ class Tools {
1097
1097
  method: "PUT",
1098
1098
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1099
1099
  ? yield core.Supplier.get(this._options.project)
1100
- : 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),
1100
+ : 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),
1101
1101
  contentType: "application/json",
1102
1102
  requestType: "json",
1103
1103
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1174,7 +1174,7 @@ class Tools {
1174
1174
  method: "GET",
1175
1175
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1176
1176
  ? yield core.Supplier.get(this._options.project)
1177
- : 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),
1177
+ : 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),
1178
1178
  contentType: "application/json",
1179
1179
  requestType: "json",
1180
1180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "POST",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : 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),
1254
+ : 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),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1327,7 +1327,7 @@ class Tools {
1327
1327
  method: "DELETE",
1328
1328
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1329
1329
  ? yield core.Supplier.get(this._options.project)
1330
- : 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),
1330
+ : 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),
1331
1331
  contentType: "application/json",
1332
1332
  requestType: "json",
1333
1333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1404,7 +1404,7 @@ class Tools {
1404
1404
  method: "PATCH",
1405
1405
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1406
1406
  ? yield core.Supplier.get(this._options.project)
1407
- : 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),
1407
+ : 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),
1408
1408
  contentType: "application/json",
1409
1409
  requestType: "json",
1410
1410
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1486,7 +1486,7 @@ class Tools {
1486
1486
  method: "POST",
1487
1487
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1488
1488
  ? yield core.Supplier.get(this._options.project)
1489
- : 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),
1489
+ : 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),
1490
1490
  contentType: "application/json",
1491
1491
  requestType: "json",
1492
1492
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1547,7 +1547,7 @@ class Tools {
1547
1547
  method: "POST",
1548
1548
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1549
1549
  ? yield core.Supplier.get(this._options.project)
1550
- : 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),
1550
+ : 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),
1551
1551
  contentType: "application/json",
1552
1552
  requestType: "json",
1553
1553
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -25,4 +25,6 @@ export interface ToolUpdate {
25
25
  pipRequirements?: Letta.PipRequirement[];
26
26
  /** Optional list of npm packages required by this tool. */
27
27
  npmRequirements?: Letta.NpmRequirement[];
28
+ /** A dictionary of additional metadata for the tool. */
29
+ metadata?: Record<string, unknown>;
28
30
  }
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ChatCompletionAllowedToolChoiceParam {
6
+ allowedTools: Letta.ChatCompletionAllowedToolsParam;
7
+ type: "allowed_tools";
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ChatCompletionAllowedToolsParam {
6
+ mode: Letta.ChatCompletionAllowedToolsParamMode;
7
+ tools: Record<string, unknown>[];
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ChatCompletionAllowedToolsParamMode = "auto" | "required";
5
+ export declare const ChatCompletionAllowedToolsParamMode: {
6
+ readonly Auto: "auto";
7
+ readonly Required: "required";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ChatCompletionAllowedToolsParamMode = void 0;
7
+ exports.ChatCompletionAllowedToolsParamMode = {
8
+ Auto: "auto",
9
+ Required: "required",
10
+ };
@@ -9,5 +9,5 @@ export interface ChatCompletionAssistantMessageParam {
9
9
  functionCall?: Letta.FunctionCall;
10
10
  name?: string;
11
11
  refusal?: string;
12
- toolCalls?: Letta.ChatCompletionMessageToolCallParam[];
12
+ toolCalls?: Letta.ChatCompletionAssistantMessageParamToolCallsItem[];
13
13
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type ChatCompletionAssistantMessageParamToolCallsItem = Letta.ChatCompletionMessageFunctionToolCallParam | Letta.ChatCompletionMessageCustomToolCallParam;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ChatCompletionCustomToolParam {
6
+ custom: Letta.OpenaiTypesChatChatCompletionCustomToolParamCustom;
7
+ type: "custom";
8
+ }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export interface ChatCompletionToolParam {
5
+ export interface ChatCompletionFunctionToolParam {
6
6
  function: Letta.FunctionDefinitionInput;
7
7
  type: "function";
8
8
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ChatCompletionMessageCustomToolCallParam {
6
+ id: string;
7
+ custom: Letta.OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom;
8
+ type: "custom";
9
+ }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export interface ChatCompletionMessageToolCall {
5
+ export interface ChatCompletionMessageFunctionToolCall {
6
6
  id: string;
7
7
  function: Letta.FunctionOutput;
8
8
  type: "function";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ChatCompletionMessageFunctionToolCallParam {
6
+ id: string;
7
+ function: Letta.OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction;
8
+ type: "function";
9
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ChatCompletionNamedToolChoiceCustomParam {
6
+ custom: Letta.OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom;
7
+ type: "custom";
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ChatCompletionStreamOptionsParam {
5
+ includeObfuscation?: boolean;
5
6
  includeUsage?: boolean;
6
7
  }
@@ -2,6 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface CodeInput {
5
- /** Python source code to parse for JSON schema */
5
+ /** Source code to parse for JSON schema */
6
6
  code: string;
7
+ /** The source type of the code (python or typescript) */
8
+ sourceType?: string;
7
9
  }
@@ -30,10 +30,11 @@ export interface CompletionCreateParamsNonStreaming {
30
30
  streamOptions?: Letta.ChatCompletionStreamOptionsParam;
31
31
  temperature?: number;
32
32
  toolChoice?: Letta.CompletionCreateParamsNonStreamingToolChoice;
33
- tools?: Letta.ChatCompletionToolParam[];
33
+ tools?: Letta.CompletionCreateParamsNonStreamingToolsItem[];
34
34
  topLogprobs?: number;
35
35
  topP?: number;
36
36
  user?: string;
37
+ verbosity?: Letta.CompletionCreateParamsNonStreamingVerbosity;
37
38
  webSearchOptions?: Letta.WebSearchOptions;
38
39
  stream?: boolean;
39
40
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CompletionCreateParamsNonStreamingModel = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
4
+ export type CompletionCreateParamsNonStreamingModel = string | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-2025-08-07" | "gpt-5-mini-2025-08-07" | "gpt-5-nano-2025-08-07" | "gpt-5-chat-latest" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CompletionCreateParamsNonStreamingReasoningEffort = "low" | "medium" | "high";
4
+ export type CompletionCreateParamsNonStreamingReasoningEffort = "minimal" | "low" | "medium" | "high";
5
5
  export declare const CompletionCreateParamsNonStreamingReasoningEffort: {
6
+ readonly Minimal: "minimal";
6
7
  readonly Low: "low";
7
8
  readonly Medium: "medium";
8
9
  readonly High: "high";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CompletionCreateParamsNonStreamingReasoningEffort = void 0;
7
7
  exports.CompletionCreateParamsNonStreamingReasoningEffort = {
8
+ Minimal: "minimal",
8
9
  Low: "low",
9
10
  Medium: "medium",
10
11
  High: "high",
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type CompletionCreateParamsNonStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionNamedToolChoiceParam;
5
+ export type CompletionCreateParamsNonStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionAllowedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceCustomParam;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type CompletionCreateParamsNonStreamingToolsItem = Letta.ChatCompletionFunctionToolParam | Letta.ChatCompletionCustomToolParam;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CompletionCreateParamsNonStreamingVerbosity = "low" | "medium" | "high";
5
+ export declare const CompletionCreateParamsNonStreamingVerbosity: {
6
+ readonly Low: "low";
7
+ readonly Medium: "medium";
8
+ readonly High: "high";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CompletionCreateParamsNonStreamingVerbosity = void 0;
7
+ exports.CompletionCreateParamsNonStreamingVerbosity = {
8
+ Low: "low",
9
+ Medium: "medium",
10
+ High: "high",
11
+ };
@@ -30,10 +30,11 @@ export interface CompletionCreateParamsStreaming {
30
30
  streamOptions?: Letta.ChatCompletionStreamOptionsParam;
31
31
  temperature?: number;
32
32
  toolChoice?: Letta.CompletionCreateParamsStreamingToolChoice;
33
- tools?: Letta.ChatCompletionToolParam[];
33
+ tools?: Letta.CompletionCreateParamsStreamingToolsItem[];
34
34
  topLogprobs?: number;
35
35
  topP?: number;
36
36
  user?: string;
37
+ verbosity?: Letta.CompletionCreateParamsStreamingVerbosity;
37
38
  webSearchOptions?: Letta.WebSearchOptions;
38
39
  stream: boolean;
39
40
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CompletionCreateParamsStreamingModel = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
4
+ export type CompletionCreateParamsStreamingModel = string | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-2025-08-07" | "gpt-5-mini-2025-08-07" | "gpt-5-nano-2025-08-07" | "gpt-5-chat-latest" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-audio-preview-2025-06-03" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CompletionCreateParamsStreamingReasoningEffort = "low" | "medium" | "high";
4
+ export type CompletionCreateParamsStreamingReasoningEffort = "minimal" | "low" | "medium" | "high";
5
5
  export declare const CompletionCreateParamsStreamingReasoningEffort: {
6
+ readonly Minimal: "minimal";
6
7
  readonly Low: "low";
7
8
  readonly Medium: "medium";
8
9
  readonly High: "high";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CompletionCreateParamsStreamingReasoningEffort = void 0;
7
7
  exports.CompletionCreateParamsStreamingReasoningEffort = {
8
+ Minimal: "minimal",
8
9
  Low: "low",
9
10
  Medium: "medium",
10
11
  High: "high",
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type CompletionCreateParamsStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionNamedToolChoiceParam;
5
+ export type CompletionCreateParamsStreamingToolChoice = "none" | "auto" | "required" | Letta.ChatCompletionAllowedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceParam | Letta.ChatCompletionNamedToolChoiceCustomParam;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type CompletionCreateParamsStreamingToolsItem = Letta.ChatCompletionFunctionToolParam | Letta.ChatCompletionCustomToolParam;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CompletionCreateParamsStreamingVerbosity = "low" | "medium" | "high";
5
+ export declare const CompletionCreateParamsStreamingVerbosity: {
6
+ readonly Low: "low";
7
+ readonly Medium: "medium";
8
+ readonly High: "high";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CompletionCreateParamsStreamingVerbosity = void 0;
7
+ exports.CompletionCreateParamsStreamingVerbosity = {
8
+ Low: "low",
9
+ Medium: "medium",
10
+ High: "high",
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface CustomFormatGrammar {
6
+ grammar: Letta.CustomFormatGrammarGrammar;
7
+ type: "grammar";
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface CustomFormatGrammarGrammar {
6
+ definition: string;
7
+ syntax: Letta.CustomFormatGrammarGrammarSyntax;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CustomFormatGrammarGrammarSyntax = "lark" | "regex";
5
+ export declare const CustomFormatGrammarGrammarSyntax: {
6
+ readonly Lark: "lark";
7
+ readonly Regex: "regex";
8
+ };