@letta-ai/letta-client 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (884) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +37 -32
  3. package/README.md +320 -88
  4. package/api/errors/GoneError.d.ts +8 -0
  5. package/api/errors/GoneError.js +52 -0
  6. package/api/errors/index.d.ts +1 -0
  7. package/api/errors/index.js +1 -0
  8. package/api/resources/agents/client/Client.d.ts +8 -11
  9. package/api/resources/agents/client/Client.js +19 -24
  10. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  11. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  12. package/api/resources/agents/resources/blocks/client/Client.d.ts +12 -12
  13. package/api/resources/agents/resources/blocks/client/Client.js +17 -17
  14. package/api/resources/agents/resources/context/client/Client.d.ts +2 -2
  15. package/api/resources/agents/resources/context/client/Client.js +3 -3
  16. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -2
  17. package/api/resources/agents/resources/coreMemory/client/Client.js +3 -3
  18. package/api/resources/agents/resources/files/client/Client.d.ts +10 -10
  19. package/api/resources/agents/resources/files/client/Client.js +14 -14
  20. package/api/resources/agents/resources/folders/client/Client.d.ts +8 -8
  21. package/api/resources/agents/resources/folders/client/Client.js +11 -11
  22. package/api/resources/agents/resources/groups/client/Client.d.ts +2 -2
  23. package/api/resources/agents/resources/groups/client/Client.js +3 -3
  24. package/api/resources/agents/resources/index.d.ts +0 -3
  25. package/api/resources/agents/resources/index.js +1 -4
  26. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  27. package/api/resources/agents/resources/messages/client/Client.d.ts +17 -17
  28. package/api/resources/agents/resources/messages/client/Client.js +27 -27
  29. package/api/resources/agents/resources/passages/client/Client.d.ts +8 -8
  30. package/api/resources/agents/resources/passages/client/Client.js +13 -13
  31. package/api/resources/agents/resources/sources/client/Client.d.ts +8 -8
  32. package/api/resources/agents/resources/sources/client/Client.js +11 -11
  33. package/api/resources/agents/resources/tools/client/Client.d.ts +10 -10
  34. package/api/resources/agents/resources/tools/client/Client.js +14 -14
  35. package/api/resources/archives/client/Client.d.ts +2 -2
  36. package/api/resources/archives/client/Client.js +5 -5
  37. package/api/resources/batches/client/Client.js +4 -4
  38. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  39. package/api/resources/blocks/client/Client.d.ts +6 -6
  40. package/api/resources/blocks/client/Client.js +12 -12
  41. package/api/resources/blocks/resources/agents/client/Client.d.ts +2 -2
  42. package/api/resources/blocks/resources/agents/client/Client.js +3 -3
  43. package/api/resources/chat/client/Client.d.ts +61 -0
  44. package/api/resources/chat/client/Client.js +158 -0
  45. package/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
  46. package/api/resources/chat/client/requests/index.d.ts +1 -0
  47. package/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
  48. package/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
  49. package/api/resources/chat/types/index.d.ts +2 -0
  50. package/api/resources/{agents/resources/templates → chat}/types/index.js +2 -1
  51. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  52. package/api/resources/folders/client/Client.js +8 -8
  53. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  54. package/api/resources/folders/resources/files/client/Client.js +3 -3
  55. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  56. package/api/resources/groups/client/Client.d.ts +6 -6
  57. package/api/resources/groups/client/Client.js +12 -12
  58. package/api/resources/groups/resources/messages/client/Client.d.ts +9 -9
  59. package/api/resources/groups/resources/messages/client/Client.js +14 -14
  60. package/api/resources/health/client/Client.js +1 -1
  61. package/api/resources/identities/client/Client.d.ts +6 -6
  62. package/api/resources/identities/client/Client.js +13 -13
  63. package/api/resources/identities/resources/agents/client/Client.d.ts +2 -2
  64. package/api/resources/identities/resources/agents/client/Client.js +3 -3
  65. package/api/resources/identities/resources/blocks/client/Client.d.ts +2 -2
  66. package/api/resources/identities/resources/blocks/client/Client.js +3 -3
  67. package/api/resources/identities/resources/properties/client/Client.d.ts +2 -2
  68. package/api/resources/identities/resources/properties/client/Client.js +3 -3
  69. package/api/resources/index.d.ts +3 -0
  70. package/api/resources/index.js +4 -1
  71. package/api/resources/jobs/client/Client.d.ts +6 -6
  72. package/api/resources/jobs/client/Client.js +11 -11
  73. package/api/resources/models/client/Client.js +2 -2
  74. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  75. package/api/resources/projects/client/Client.js +1 -1
  76. package/api/resources/providers/client/Client.d.ts +8 -8
  77. package/api/resources/providers/client/Client.js +15 -15
  78. package/api/resources/runs/client/Client.js +6 -6
  79. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  80. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  81. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  82. package/api/resources/sources/client/Client.d.ts +11 -11
  83. package/api/resources/sources/client/Client.js +21 -21
  84. package/api/resources/sources/resources/files/client/Client.d.ts +6 -6
  85. package/api/resources/sources/resources/files/client/Client.js +9 -9
  86. package/api/resources/sources/resources/passages/client/Client.d.ts +2 -2
  87. package/api/resources/sources/resources/passages/client/Client.js +3 -3
  88. package/api/resources/steps/client/Client.d.ts +2 -2
  89. package/api/resources/steps/client/Client.js +4 -4
  90. package/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
  91. package/api/resources/steps/resources/feedback/client/Client.js +3 -3
  92. package/api/resources/steps/resources/messages/client/Client.d.ts +2 -2
  93. package/api/resources/steps/resources/messages/client/Client.js +3 -3
  94. package/api/resources/steps/resources/metrics/client/Client.d.ts +2 -2
  95. package/api/resources/steps/resources/metrics/client/Client.js +3 -3
  96. package/api/resources/steps/resources/trace/client/Client.d.ts +2 -2
  97. package/api/resources/steps/resources/trace/client/Client.js +3 -3
  98. package/api/resources/tags/client/Client.js +1 -1
  99. package/api/resources/telemetry/client/Client.js +1 -1
  100. package/api/resources/templates/client/Client.d.ts +1 -1
  101. package/api/resources/templates/client/Client.js +14 -14
  102. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  103. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  104. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
  105. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
  106. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +5 -0
  107. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +4 -0
  108. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +1 -0
  109. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +5 -0
  110. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +4 -0
  111. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +5 -0
  112. package/api/resources/templates/types/index.d.ts +6 -0
  113. package/api/resources/templates/types/index.js +6 -0
  114. package/api/resources/tools/client/Client.d.ts +6 -6
  115. package/api/resources/tools/client/Client.js +23 -23
  116. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  117. package/api/resources/voice/client/Client.d.ts +8 -0
  118. package/api/resources/voice/client/Client.js +11 -1
  119. package/api/types/Annotation.d.ts +10 -0
  120. package/api/types/Annotation.js +5 -0
  121. package/api/types/AnnotationUrlCitation.d.ts +11 -0
  122. package/api/types/AnnotationUrlCitation.js +5 -0
  123. package/api/types/ApprovalRequestMessage.d.ts +4 -0
  124. package/api/types/ApprovalRequestMessageAllowedToolCalls.d.ts +8 -0
  125. package/api/types/ApprovalRequestMessageAllowedToolCalls.js +5 -0
  126. package/api/types/ApprovalRequestMessageRequestedToolCalls.d.ts +8 -0
  127. package/api/types/ApprovalRequestMessageRequestedToolCalls.js +5 -0
  128. package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → api/types/Audio.d.ts} +2 -2
  129. package/api/types/Audio.js +5 -0
  130. package/api/types/ChatCompletion.d.ts +16 -0
  131. package/api/types/ChatCompletion.js +5 -0
  132. package/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
  133. package/api/types/ChatCompletionAssistantMessageParam.js +5 -0
  134. package/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
  135. package/api/types/ChatCompletionAssistantMessageParamContent.js +5 -0
  136. package/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
  137. package/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
  138. package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  139. package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
  140. package/api/types/ChatCompletionAudio.d.ts +11 -0
  141. package/api/types/ChatCompletionAudio.js +5 -0
  142. package/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
  143. package/api/types/ChatCompletionContentPartImageParam.js +5 -0
  144. package/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
  145. package/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
  146. package/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
  147. package/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
  148. package/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
  149. package/api/types/ChatCompletionContentPartTextParam.js +5 -0
  150. package/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
  151. package/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
  152. package/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
  153. package/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
  154. package/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
  155. package/api/types/ChatCompletionFunctionMessageParam.js +5 -0
  156. package/api/types/ChatCompletionMessage.d.ts +15 -0
  157. package/api/types/ChatCompletionMessage.js +5 -0
  158. package/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
  159. package/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
  160. package/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  161. package/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
  162. package/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  163. package/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  164. package/{dist/api/types/ChatCompletionMessageFunctionToolCall.d.ts → api/types/ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  165. package/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  166. package/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  167. package/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
  168. package/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
  169. package/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
  170. package/api/types/ChatCompletionServiceTier.d.ts +11 -0
  171. package/api/types/ChatCompletionServiceTier.js +13 -0
  172. package/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
  173. package/api/types/ChatCompletionSystemMessageParam.js +5 -0
  174. package/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
  175. package/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
  176. package/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
  177. package/api/types/ChatCompletionTokenLogprob.js +5 -0
  178. package/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
  179. package/api/types/ChatCompletionToolMessageParam.js +5 -0
  180. package/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
  181. package/api/types/ChatCompletionToolMessageParamContent.js +5 -0
  182. package/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
  183. package/api/types/ChatCompletionUserMessageParam.js +5 -0
  184. package/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
  185. package/api/types/ChatCompletionUserMessageParamContent.js +5 -0
  186. package/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
  187. package/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
  188. package/api/types/Choice.d.ts +12 -0
  189. package/api/types/Choice.js +5 -0
  190. package/api/types/ChoiceFinishReason.d.ts +11 -0
  191. package/api/types/ChoiceFinishReason.js +13 -0
  192. package/api/types/ChoiceLogprobs.d.ts +10 -0
  193. package/api/types/ChoiceLogprobs.js +5 -0
  194. package/api/types/CompletionTokensDetails.d.ts +11 -0
  195. package/api/types/CompletionTokensDetails.js +5 -0
  196. package/api/types/CompletionUsage.d.ts +13 -0
  197. package/api/types/CompletionUsage.js +5 -0
  198. package/api/types/CustomInput.d.ts +7 -0
  199. package/api/types/CustomInput.js +5 -0
  200. package/api/types/CustomOutput.d.ts +9 -0
  201. package/api/types/CustomOutput.js +5 -0
  202. package/api/types/FileFile.d.ts +8 -0
  203. package/api/types/FileFile.js +5 -0
  204. package/api/types/File_.d.ts +8 -0
  205. package/api/types/File_.js +5 -0
  206. package/api/types/FunctionCallInput.d.ts +7 -0
  207. package/api/types/FunctionCallInput.js +5 -0
  208. package/api/types/FunctionCallOutput.d.ts +9 -0
  209. package/api/types/FunctionCallOutput.js +5 -0
  210. package/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
  211. package/api/types/FunctionOutput.js +5 -0
  212. package/api/types/ImageUrl.d.ts +8 -0
  213. package/api/types/ImageUrl.js +5 -0
  214. package/api/types/ImageUrlDetail.d.ts +9 -0
  215. package/api/types/ImageUrlDetail.js +11 -0
  216. package/api/types/InputAudio.d.ts +8 -0
  217. package/api/types/InputAudio.js +5 -0
  218. package/api/types/InputAudioFormat.d.ts +8 -0
  219. package/api/types/InputAudioFormat.js +10 -0
  220. package/api/types/InternalTemplateAgentCreate.d.ts +2 -0
  221. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -0
  222. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +3 -1
  223. package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
  224. package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
  225. package/api/types/LettaSchemasAgentFileToolSchema.d.ts +2 -0
  226. package/api/types/LlmConfig.d.ts +4 -0
  227. package/api/types/Message.d.ts +1 -1
  228. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  229. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  230. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
  231. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  232. package/api/types/PromptTokensDetails.d.ts +9 -0
  233. package/api/types/PromptTokensDetails.js +5 -0
  234. package/api/types/RunMetrics.d.ts +2 -0
  235. package/api/types/Tool.d.ts +2 -0
  236. package/api/types/ToolCreate.d.ts +2 -0
  237. package/api/types/TopLogprob.d.ts +10 -0
  238. package/api/types/TopLogprob.js +5 -0
  239. package/api/types/index.d.ts +55 -2
  240. package/api/types/index.js +55 -2
  241. package/dist/Client.d.ts +3 -0
  242. package/dist/Client.js +37 -32
  243. package/dist/api/errors/GoneError.d.ts +8 -0
  244. package/dist/api/errors/GoneError.js +52 -0
  245. package/dist/api/errors/index.d.ts +1 -0
  246. package/dist/api/errors/index.js +1 -0
  247. package/dist/api/resources/agents/client/Client.d.ts +8 -11
  248. package/dist/api/resources/agents/client/Client.js +19 -24
  249. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  250. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  251. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +12 -12
  252. package/dist/api/resources/agents/resources/blocks/client/Client.js +17 -17
  253. package/dist/api/resources/agents/resources/context/client/Client.d.ts +2 -2
  254. package/dist/api/resources/agents/resources/context/client/Client.js +3 -3
  255. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -2
  256. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +3 -3
  257. package/dist/api/resources/agents/resources/files/client/Client.d.ts +10 -10
  258. package/dist/api/resources/agents/resources/files/client/Client.js +14 -14
  259. package/dist/api/resources/agents/resources/folders/client/Client.d.ts +8 -8
  260. package/dist/api/resources/agents/resources/folders/client/Client.js +11 -11
  261. package/dist/api/resources/agents/resources/groups/client/Client.d.ts +2 -2
  262. package/dist/api/resources/agents/resources/groups/client/Client.js +3 -3
  263. package/dist/api/resources/agents/resources/index.d.ts +0 -3
  264. package/dist/api/resources/agents/resources/index.js +1 -4
  265. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  266. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +17 -17
  267. package/dist/api/resources/agents/resources/messages/client/Client.js +27 -27
  268. package/dist/api/resources/agents/resources/passages/client/Client.d.ts +8 -8
  269. package/dist/api/resources/agents/resources/passages/client/Client.js +13 -13
  270. package/dist/api/resources/agents/resources/sources/client/Client.d.ts +8 -8
  271. package/dist/api/resources/agents/resources/sources/client/Client.js +11 -11
  272. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -10
  273. package/dist/api/resources/agents/resources/tools/client/Client.js +14 -14
  274. package/dist/api/resources/archives/client/Client.d.ts +2 -2
  275. package/dist/api/resources/archives/client/Client.js +5 -5
  276. package/dist/api/resources/batches/client/Client.js +4 -4
  277. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  278. package/dist/api/resources/blocks/client/Client.d.ts +6 -6
  279. package/dist/api/resources/blocks/client/Client.js +12 -12
  280. package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +2 -2
  281. package/dist/api/resources/blocks/resources/agents/client/Client.js +3 -3
  282. package/dist/api/resources/chat/client/Client.d.ts +61 -0
  283. package/dist/api/resources/chat/client/Client.js +158 -0
  284. package/dist/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
  285. package/dist/api/resources/chat/client/requests/ChatCompletionRequest.js +5 -0
  286. package/dist/api/resources/chat/client/requests/index.d.ts +1 -0
  287. package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
  288. package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.js +5 -0
  289. package/dist/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
  290. package/dist/api/resources/chat/types/ChatCompletionRequestStop.js +5 -0
  291. package/dist/api/resources/chat/types/index.d.ts +2 -0
  292. package/dist/api/resources/chat/types/index.js +18 -0
  293. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  294. package/dist/api/resources/folders/client/Client.js +8 -8
  295. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  296. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  297. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  298. package/dist/api/resources/groups/client/Client.d.ts +6 -6
  299. package/dist/api/resources/groups/client/Client.js +12 -12
  300. package/dist/api/resources/groups/resources/messages/client/Client.d.ts +9 -9
  301. package/dist/api/resources/groups/resources/messages/client/Client.js +14 -14
  302. package/dist/api/resources/health/client/Client.js +1 -1
  303. package/dist/api/resources/identities/client/Client.d.ts +6 -6
  304. package/dist/api/resources/identities/client/Client.js +13 -13
  305. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +2 -2
  306. package/dist/api/resources/identities/resources/agents/client/Client.js +3 -3
  307. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +2 -2
  308. package/dist/api/resources/identities/resources/blocks/client/Client.js +3 -3
  309. package/dist/api/resources/identities/resources/properties/client/Client.d.ts +2 -2
  310. package/dist/api/resources/identities/resources/properties/client/Client.js +3 -3
  311. package/dist/api/resources/index.d.ts +3 -0
  312. package/dist/api/resources/index.js +4 -1
  313. package/dist/api/resources/jobs/client/Client.d.ts +6 -6
  314. package/dist/api/resources/jobs/client/Client.js +11 -11
  315. package/dist/api/resources/models/client/Client.js +2 -2
  316. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  317. package/dist/api/resources/projects/client/Client.js +1 -1
  318. package/dist/api/resources/providers/client/Client.d.ts +8 -8
  319. package/dist/api/resources/providers/client/Client.js +15 -15
  320. package/dist/api/resources/runs/client/Client.js +6 -6
  321. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  322. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  323. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  324. package/dist/api/resources/sources/client/Client.d.ts +11 -11
  325. package/dist/api/resources/sources/client/Client.js +21 -21
  326. package/dist/api/resources/sources/resources/files/client/Client.d.ts +6 -6
  327. package/dist/api/resources/sources/resources/files/client/Client.js +9 -9
  328. package/dist/api/resources/sources/resources/passages/client/Client.d.ts +2 -2
  329. package/dist/api/resources/sources/resources/passages/client/Client.js +3 -3
  330. package/dist/api/resources/steps/client/Client.d.ts +2 -2
  331. package/dist/api/resources/steps/client/Client.js +4 -4
  332. package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
  333. package/dist/api/resources/steps/resources/feedback/client/Client.js +3 -3
  334. package/dist/api/resources/steps/resources/messages/client/Client.d.ts +2 -2
  335. package/dist/api/resources/steps/resources/messages/client/Client.js +3 -3
  336. package/dist/api/resources/steps/resources/metrics/client/Client.d.ts +2 -2
  337. package/dist/api/resources/steps/resources/metrics/client/Client.js +3 -3
  338. package/dist/api/resources/steps/resources/trace/client/Client.d.ts +2 -2
  339. package/dist/api/resources/steps/resources/trace/client/Client.js +3 -3
  340. package/dist/api/resources/tags/client/Client.js +1 -1
  341. package/dist/api/resources/telemetry/client/Client.js +1 -1
  342. package/dist/api/resources/templates/client/Client.d.ts +1 -1
  343. package/dist/api/resources/templates/client/Client.js +14 -14
  344. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  345. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  346. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
  347. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +5 -0
  348. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
  349. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +5 -0
  350. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +5 -0
  351. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +5 -0
  352. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +4 -0
  353. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +5 -0
  354. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +1 -0
  355. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +5 -0
  356. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +5 -0
  357. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +4 -0
  358. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +5 -0
  359. package/dist/api/resources/templates/types/index.d.ts +6 -0
  360. package/dist/api/resources/templates/types/index.js +6 -0
  361. package/dist/api/resources/tools/client/Client.d.ts +6 -6
  362. package/dist/api/resources/tools/client/Client.js +23 -23
  363. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  364. package/dist/api/resources/voice/client/Client.d.ts +8 -0
  365. package/dist/api/resources/voice/client/Client.js +11 -1
  366. package/dist/api/types/Annotation.d.ts +10 -0
  367. package/dist/api/types/Annotation.js +5 -0
  368. package/dist/api/types/AnnotationUrlCitation.d.ts +11 -0
  369. package/dist/api/types/AnnotationUrlCitation.js +5 -0
  370. package/dist/api/types/ApprovalRequestMessage.d.ts +4 -0
  371. package/dist/api/types/ApprovalRequestMessageAllowedToolCalls.d.ts +8 -0
  372. package/dist/api/types/ApprovalRequestMessageAllowedToolCalls.js +5 -0
  373. package/dist/api/types/ApprovalRequestMessageRequestedToolCalls.d.ts +8 -0
  374. package/dist/api/types/ApprovalRequestMessageRequestedToolCalls.js +5 -0
  375. package/{api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → dist/api/types/Audio.d.ts} +2 -2
  376. package/dist/api/types/Audio.js +5 -0
  377. package/dist/api/types/ChatCompletion.d.ts +16 -0
  378. package/dist/api/types/ChatCompletion.js +5 -0
  379. package/dist/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
  380. package/dist/api/types/ChatCompletionAssistantMessageParam.js +5 -0
  381. package/dist/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
  382. package/dist/api/types/ChatCompletionAssistantMessageParamContent.js +5 -0
  383. package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
  384. package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
  385. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  386. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
  387. package/dist/api/types/ChatCompletionAudio.d.ts +11 -0
  388. package/dist/api/types/ChatCompletionAudio.js +5 -0
  389. package/dist/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
  390. package/dist/api/types/ChatCompletionContentPartImageParam.js +5 -0
  391. package/dist/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
  392. package/dist/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
  393. package/dist/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
  394. package/dist/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
  395. package/dist/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
  396. package/dist/api/types/ChatCompletionContentPartTextParam.js +5 -0
  397. package/dist/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
  398. package/dist/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
  399. package/dist/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
  400. package/dist/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
  401. package/dist/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
  402. package/dist/api/types/ChatCompletionFunctionMessageParam.js +5 -0
  403. package/dist/api/types/ChatCompletionMessage.d.ts +15 -0
  404. package/dist/api/types/ChatCompletionMessage.js +5 -0
  405. package/dist/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
  406. package/dist/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
  407. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  408. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
  409. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  410. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  411. package/{api/types/ChatCompletionMessageFunctionToolCall.d.ts → dist/api/types/ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  412. package/dist/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  413. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  414. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
  415. package/dist/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
  416. package/dist/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
  417. package/dist/api/types/ChatCompletionServiceTier.d.ts +11 -0
  418. package/dist/api/types/ChatCompletionServiceTier.js +13 -0
  419. package/dist/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
  420. package/dist/api/types/ChatCompletionSystemMessageParam.js +5 -0
  421. package/dist/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
  422. package/dist/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
  423. package/dist/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
  424. package/dist/api/types/ChatCompletionTokenLogprob.js +5 -0
  425. package/dist/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
  426. package/dist/api/types/ChatCompletionToolMessageParam.js +5 -0
  427. package/dist/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
  428. package/dist/api/types/ChatCompletionToolMessageParamContent.js +5 -0
  429. package/dist/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
  430. package/dist/api/types/ChatCompletionUserMessageParam.js +5 -0
  431. package/dist/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
  432. package/dist/api/types/ChatCompletionUserMessageParamContent.js +5 -0
  433. package/dist/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
  434. package/dist/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
  435. package/dist/api/types/Choice.d.ts +12 -0
  436. package/dist/api/types/Choice.js +5 -0
  437. package/dist/api/types/ChoiceFinishReason.d.ts +11 -0
  438. package/dist/api/types/ChoiceFinishReason.js +13 -0
  439. package/dist/api/types/ChoiceLogprobs.d.ts +10 -0
  440. package/dist/api/types/ChoiceLogprobs.js +5 -0
  441. package/dist/api/types/CompletionTokensDetails.d.ts +11 -0
  442. package/dist/api/types/CompletionTokensDetails.js +5 -0
  443. package/dist/api/types/CompletionUsage.d.ts +13 -0
  444. package/dist/api/types/CompletionUsage.js +5 -0
  445. package/dist/api/types/CustomInput.d.ts +7 -0
  446. package/dist/api/types/CustomInput.js +5 -0
  447. package/dist/api/types/CustomOutput.d.ts +9 -0
  448. package/dist/api/types/CustomOutput.js +5 -0
  449. package/dist/api/types/FileFile.d.ts +8 -0
  450. package/dist/api/types/FileFile.js +5 -0
  451. package/dist/api/types/File_.d.ts +8 -0
  452. package/dist/api/types/File_.js +5 -0
  453. package/dist/api/types/FunctionCallInput.d.ts +7 -0
  454. package/dist/api/types/FunctionCallInput.js +5 -0
  455. package/dist/api/types/FunctionCallOutput.d.ts +9 -0
  456. package/dist/api/types/FunctionCallOutput.js +5 -0
  457. package/dist/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
  458. package/dist/api/types/FunctionOutput.js +5 -0
  459. package/dist/api/types/ImageUrl.d.ts +8 -0
  460. package/dist/api/types/ImageUrl.js +5 -0
  461. package/dist/api/types/ImageUrlDetail.d.ts +9 -0
  462. package/dist/api/types/ImageUrlDetail.js +11 -0
  463. package/dist/api/types/InputAudio.d.ts +8 -0
  464. package/dist/api/types/InputAudio.js +5 -0
  465. package/dist/api/types/InputAudioFormat.d.ts +8 -0
  466. package/dist/api/types/InputAudioFormat.js +10 -0
  467. package/dist/api/types/InternalTemplateAgentCreate.d.ts +2 -0
  468. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -0
  469. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +3 -1
  470. package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
  471. package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
  472. package/dist/api/types/LettaSchemasAgentFileToolSchema.d.ts +2 -0
  473. package/dist/api/types/LlmConfig.d.ts +4 -0
  474. package/dist/api/types/Message.d.ts +1 -1
  475. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  476. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  477. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
  478. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  479. package/dist/api/types/PromptTokensDetails.d.ts +9 -0
  480. package/dist/api/types/PromptTokensDetails.js +5 -0
  481. package/dist/api/types/RunMetrics.d.ts +2 -0
  482. package/dist/api/types/Tool.d.ts +2 -0
  483. package/dist/api/types/ToolCreate.d.ts +2 -0
  484. package/dist/api/types/TopLogprob.d.ts +10 -0
  485. package/dist/api/types/TopLogprob.js +5 -0
  486. package/dist/api/types/index.d.ts +55 -2
  487. package/dist/api/types/index.js +55 -2
  488. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  489. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  490. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  491. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  492. package/dist/serialization/resources/agents/resources/index.d.ts +0 -3
  493. package/dist/serialization/resources/agents/resources/index.js +1 -4
  494. package/dist/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
  495. package/{serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → dist/serialization/resources/chat/client/requests/ChatCompletionRequest.js} +16 -6
  496. package/dist/serialization/resources/chat/client/requests/index.d.ts +1 -0
  497. package/dist/serialization/resources/chat/client/requests/index.js +5 -0
  498. package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
  499. package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
  500. package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
  501. package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
  502. package/dist/serialization/resources/chat/types/index.d.ts +2 -0
  503. package/dist/serialization/resources/chat/types/index.js +18 -0
  504. package/dist/serialization/resources/index.d.ts +3 -0
  505. package/dist/serialization/resources/index.js +4 -1
  506. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +4 -0
  507. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +4 -0
  508. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
  509. package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +9 -7
  510. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
  511. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
  512. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +11 -0
  513. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +47 -0
  514. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +10 -0
  515. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +41 -0
  516. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +2 -0
  517. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.js +2 -0
  518. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +11 -0
  519. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +46 -0
  520. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +10 -0
  521. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +41 -0
  522. package/dist/serialization/resources/templates/types/index.d.ts +6 -0
  523. package/dist/serialization/resources/templates/types/index.js +6 -0
  524. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  525. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  526. package/dist/serialization/types/Annotation.d.ts +15 -0
  527. package/dist/serialization/types/Annotation.js +47 -0
  528. package/dist/serialization/types/AnnotationUrlCitation.d.ts +16 -0
  529. package/dist/serialization/types/AnnotationUrlCitation.js +48 -0
  530. package/dist/serialization/types/ApprovalRequestMessage.d.ts +4 -0
  531. package/dist/serialization/types/ApprovalRequestMessage.js +4 -0
  532. package/dist/serialization/types/ApprovalRequestMessageAllowedToolCalls.d.ts +12 -0
  533. package/dist/serialization/types/ApprovalRequestMessageAllowedToolCalls.js +43 -0
  534. package/dist/serialization/types/ApprovalRequestMessageRequestedToolCalls.d.ts +12 -0
  535. package/dist/serialization/types/ApprovalRequestMessageRequestedToolCalls.js +43 -0
  536. package/dist/serialization/types/Audio.d.ts +12 -0
  537. package/{serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → dist/serialization/types/Audio.js} +4 -4
  538. package/dist/serialization/types/ChatCompletion.d.ts +23 -0
  539. package/dist/serialization/types/ChatCompletion.js +55 -0
  540. package/dist/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
  541. package/dist/serialization/types/ChatCompletionAssistantMessageParam.js +53 -0
  542. package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
  543. package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
  544. package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
  545. package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
  546. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  547. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  548. package/dist/serialization/types/ChatCompletionAudio.d.ts +16 -0
  549. package/dist/serialization/types/ChatCompletionAudio.js +48 -0
  550. package/dist/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
  551. package/dist/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
  552. package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
  553. package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
  554. package/dist/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
  555. package/dist/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
  556. package/dist/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
  557. package/dist/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
  558. package/dist/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
  559. package/dist/serialization/types/ChatCompletionDeveloperMessageParam.js +46 -0
  560. package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
  561. package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
  562. package/dist/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
  563. package/dist/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
  564. package/dist/serialization/types/ChatCompletionMessage.d.ts +23 -0
  565. package/dist/serialization/types/ChatCompletionMessage.js +55 -0
  566. package/dist/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
  567. package/dist/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
  568. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  569. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  570. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  571. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  572. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
  573. package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
  574. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  575. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
  576. package/dist/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
  577. package/dist/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
  578. package/dist/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
  579. package/dist/serialization/types/ChatCompletionServiceTier.js +41 -0
  580. package/dist/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
  581. package/dist/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
  582. package/dist/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
  583. package/dist/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
  584. package/dist/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
  585. package/dist/serialization/types/ChatCompletionTokenLogprob.js +49 -0
  586. package/dist/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
  587. package/dist/serialization/types/ChatCompletionToolMessageParam.js +46 -0
  588. package/dist/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
  589. package/dist/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
  590. package/dist/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
  591. package/dist/serialization/types/ChatCompletionUserMessageParam.js +46 -0
  592. package/dist/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
  593. package/dist/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
  594. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
  595. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
  596. package/dist/serialization/types/Choice.d.ts +19 -0
  597. package/dist/serialization/types/Choice.js +51 -0
  598. package/dist/serialization/types/ChoiceFinishReason.d.ts +10 -0
  599. package/dist/serialization/types/ChoiceFinishReason.js +41 -0
  600. package/dist/serialization/types/ChoiceLogprobs.d.ts +15 -0
  601. package/dist/serialization/types/ChoiceLogprobs.js +47 -0
  602. package/dist/serialization/types/CompletionTokensDetails.d.ts +16 -0
  603. package/dist/serialization/types/CompletionTokensDetails.js +48 -0
  604. package/dist/serialization/types/CompletionUsage.d.ts +19 -0
  605. package/dist/serialization/types/CompletionUsage.js +51 -0
  606. package/dist/serialization/types/CustomInput.d.ts +13 -0
  607. package/dist/serialization/{resources/agents/resources/templates/types/TemplatesMigrateResponse.js → types/CustomInput.js} +5 -4
  608. package/dist/serialization/types/CustomOutput.d.ts +14 -0
  609. package/dist/serialization/types/CustomOutput.js +46 -0
  610. package/dist/serialization/types/FileFile.d.ts +14 -0
  611. package/dist/serialization/types/FileFile.js +45 -0
  612. package/dist/serialization/types/File_.d.ts +14 -0
  613. package/dist/serialization/types/File_.js +45 -0
  614. package/dist/serialization/types/FunctionCallInput.d.ts +13 -0
  615. package/dist/serialization/types/FunctionCallInput.js +44 -0
  616. package/dist/serialization/types/FunctionCallOutput.d.ts +14 -0
  617. package/dist/serialization/types/FunctionCallOutput.js +46 -0
  618. package/{serialization/types/Function.d.ts → dist/serialization/types/FunctionOutput.d.ts} +2 -2
  619. package/{serialization/types/Function.js → dist/serialization/types/FunctionOutput.js} +2 -2
  620. package/dist/serialization/types/ImageUrl.d.ts +14 -0
  621. package/dist/serialization/types/ImageUrl.js +45 -0
  622. package/dist/serialization/types/ImageUrlDetail.d.ts +10 -0
  623. package/dist/serialization/types/ImageUrlDetail.js +41 -0
  624. package/dist/serialization/types/InputAudio.d.ts +14 -0
  625. package/dist/serialization/types/InputAudio.js +45 -0
  626. package/dist/serialization/types/InputAudioFormat.d.ts +10 -0
  627. package/dist/serialization/types/InputAudioFormat.js +41 -0
  628. package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  629. package/dist/serialization/types/InternalTemplateAgentCreate.js +1 -0
  630. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  631. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  632. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +4 -2
  633. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +4 -2
  634. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
  635. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
  636. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +1 -0
  637. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.js +1 -0
  638. package/dist/serialization/types/LlmConfig.d.ts +2 -0
  639. package/dist/serialization/types/LlmConfig.js +2 -0
  640. package/dist/serialization/types/Message.d.ts +2 -2
  641. package/dist/serialization/types/Message.js +2 -2
  642. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  643. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  644. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  645. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
  646. package/dist/serialization/types/PromptTokensDetails.d.ts +14 -0
  647. package/dist/serialization/types/PromptTokensDetails.js +46 -0
  648. package/dist/serialization/types/RunMetrics.d.ts +1 -0
  649. package/dist/serialization/types/RunMetrics.js +1 -0
  650. package/dist/serialization/types/Tool.d.ts +1 -0
  651. package/dist/serialization/types/Tool.js +1 -0
  652. package/dist/serialization/types/ToolCreate.d.ts +1 -0
  653. package/dist/serialization/types/ToolCreate.js +1 -0
  654. package/dist/serialization/types/TopLogprob.d.ts +15 -0
  655. package/dist/serialization/types/TopLogprob.js +47 -0
  656. package/dist/serialization/types/index.d.ts +55 -2
  657. package/dist/serialization/types/index.js +55 -2
  658. package/dist/version.d.ts +1 -1
  659. package/dist/version.js +1 -1
  660. package/package.json +1 -1
  661. package/reference.md +336 -395
  662. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  663. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  664. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  665. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  666. package/serialization/resources/agents/resources/index.d.ts +0 -3
  667. package/serialization/resources/agents/resources/index.js +1 -4
  668. package/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
  669. package/serialization/resources/chat/client/requests/ChatCompletionRequest.js +55 -0
  670. package/serialization/resources/chat/client/requests/index.d.ts +1 -0
  671. package/serialization/resources/chat/client/requests/index.js +5 -0
  672. package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
  673. package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
  674. package/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
  675. package/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
  676. package/serialization/resources/chat/types/index.d.ts +2 -0
  677. package/serialization/resources/chat/types/index.js +18 -0
  678. package/serialization/resources/index.d.ts +3 -0
  679. package/serialization/resources/index.js +4 -1
  680. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +4 -0
  681. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +4 -0
  682. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
  683. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +47 -0
  684. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
  685. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
  686. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.d.ts +11 -0
  687. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js +47 -0
  688. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.d.ts +10 -0
  689. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js +41 -0
  690. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.d.ts +2 -0
  691. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem.js +2 -0
  692. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.d.ts +11 -0
  693. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js +46 -0
  694. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.d.ts +10 -0
  695. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecutionItem.js +41 -0
  696. package/serialization/resources/templates/types/index.d.ts +6 -0
  697. package/serialization/resources/templates/types/index.js +6 -0
  698. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  699. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  700. package/serialization/types/Annotation.d.ts +15 -0
  701. package/serialization/types/Annotation.js +47 -0
  702. package/serialization/types/AnnotationUrlCitation.d.ts +16 -0
  703. package/serialization/types/AnnotationUrlCitation.js +48 -0
  704. package/serialization/types/ApprovalRequestMessage.d.ts +4 -0
  705. package/serialization/types/ApprovalRequestMessage.js +4 -0
  706. package/serialization/types/ApprovalRequestMessageAllowedToolCalls.d.ts +12 -0
  707. package/serialization/types/ApprovalRequestMessageAllowedToolCalls.js +43 -0
  708. package/serialization/types/ApprovalRequestMessageRequestedToolCalls.d.ts +12 -0
  709. package/serialization/types/ApprovalRequestMessageRequestedToolCalls.js +43 -0
  710. package/serialization/types/Audio.d.ts +12 -0
  711. package/serialization/types/Audio.js +43 -0
  712. package/serialization/types/ChatCompletion.d.ts +23 -0
  713. package/serialization/types/ChatCompletion.js +55 -0
  714. package/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
  715. package/serialization/types/ChatCompletionAssistantMessageParam.js +53 -0
  716. package/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
  717. package/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
  718. package/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
  719. package/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
  720. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  721. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  722. package/serialization/types/ChatCompletionAudio.d.ts +16 -0
  723. package/serialization/types/ChatCompletionAudio.js +48 -0
  724. package/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
  725. package/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
  726. package/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
  727. package/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
  728. package/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
  729. package/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
  730. package/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
  731. package/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
  732. package/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
  733. package/serialization/types/ChatCompletionDeveloperMessageParam.js +46 -0
  734. package/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
  735. package/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
  736. package/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
  737. package/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
  738. package/serialization/types/ChatCompletionMessage.d.ts +23 -0
  739. package/serialization/types/ChatCompletionMessage.js +55 -0
  740. package/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
  741. package/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
  742. package/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  743. package/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  744. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  745. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  746. package/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
  747. package/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
  748. package/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  749. package/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
  750. package/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
  751. package/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
  752. package/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
  753. package/serialization/types/ChatCompletionServiceTier.js +41 -0
  754. package/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
  755. package/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
  756. package/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
  757. package/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
  758. package/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
  759. package/serialization/types/ChatCompletionTokenLogprob.js +49 -0
  760. package/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
  761. package/serialization/types/ChatCompletionToolMessageParam.js +46 -0
  762. package/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
  763. package/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
  764. package/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
  765. package/serialization/types/ChatCompletionUserMessageParam.js +46 -0
  766. package/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
  767. package/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
  768. package/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
  769. package/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
  770. package/serialization/types/Choice.d.ts +19 -0
  771. package/serialization/types/Choice.js +51 -0
  772. package/serialization/types/ChoiceFinishReason.d.ts +10 -0
  773. package/serialization/types/ChoiceFinishReason.js +41 -0
  774. package/serialization/types/ChoiceLogprobs.d.ts +15 -0
  775. package/serialization/types/ChoiceLogprobs.js +47 -0
  776. package/serialization/types/CompletionTokensDetails.d.ts +16 -0
  777. package/serialization/types/CompletionTokensDetails.js +48 -0
  778. package/serialization/types/CompletionUsage.d.ts +19 -0
  779. package/serialization/types/CompletionUsage.js +51 -0
  780. package/serialization/types/CustomInput.d.ts +13 -0
  781. package/serialization/types/CustomInput.js +44 -0
  782. package/serialization/types/CustomOutput.d.ts +14 -0
  783. package/serialization/types/CustomOutput.js +46 -0
  784. package/serialization/types/FileFile.d.ts +14 -0
  785. package/serialization/types/FileFile.js +45 -0
  786. package/serialization/types/File_.d.ts +14 -0
  787. package/serialization/types/File_.js +45 -0
  788. package/serialization/types/FunctionCallInput.d.ts +13 -0
  789. package/serialization/types/FunctionCallInput.js +44 -0
  790. package/serialization/types/FunctionCallOutput.d.ts +14 -0
  791. package/serialization/types/FunctionCallOutput.js +46 -0
  792. package/{dist/serialization/types/Function.d.ts → serialization/types/FunctionOutput.d.ts} +2 -2
  793. package/{dist/serialization/types/Function.js → serialization/types/FunctionOutput.js} +2 -2
  794. package/serialization/types/ImageUrl.d.ts +14 -0
  795. package/serialization/types/ImageUrl.js +45 -0
  796. package/serialization/types/ImageUrlDetail.d.ts +10 -0
  797. package/serialization/types/ImageUrlDetail.js +41 -0
  798. package/serialization/types/InputAudio.d.ts +14 -0
  799. package/serialization/types/InputAudio.js +45 -0
  800. package/serialization/types/InputAudioFormat.d.ts +10 -0
  801. package/serialization/types/InputAudioFormat.js +41 -0
  802. package/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  803. package/serialization/types/InternalTemplateAgentCreate.js +1 -0
  804. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  805. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  806. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +4 -2
  807. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +4 -2
  808. package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
  809. package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
  810. package/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +1 -0
  811. package/serialization/types/LettaSchemasAgentFileToolSchema.js +1 -0
  812. package/serialization/types/LlmConfig.d.ts +2 -0
  813. package/serialization/types/LlmConfig.js +2 -0
  814. package/serialization/types/Message.d.ts +2 -2
  815. package/serialization/types/Message.js +2 -2
  816. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  817. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  818. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  819. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
  820. package/serialization/types/PromptTokensDetails.d.ts +14 -0
  821. package/serialization/types/PromptTokensDetails.js +46 -0
  822. package/serialization/types/RunMetrics.d.ts +1 -0
  823. package/serialization/types/RunMetrics.js +1 -0
  824. package/serialization/types/Tool.d.ts +1 -0
  825. package/serialization/types/Tool.js +1 -0
  826. package/serialization/types/ToolCreate.d.ts +1 -0
  827. package/serialization/types/ToolCreate.js +1 -0
  828. package/serialization/types/TopLogprob.d.ts +15 -0
  829. package/serialization/types/TopLogprob.js +47 -0
  830. package/serialization/types/index.d.ts +55 -2
  831. package/serialization/types/index.js +55 -2
  832. package/version.d.ts +1 -1
  833. package/version.js +1 -1
  834. package/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
  835. package/api/resources/agents/resources/templates/client/Client.js +0 -250
  836. package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
  837. package/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  838. package/api/resources/agents/resources/templates/types/index.d.ts +0 -1
  839. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
  840. package/dist/api/resources/agents/resources/templates/client/Client.js +0 -250
  841. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
  842. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  843. package/dist/api/resources/agents/resources/templates/types/index.d.ts +0 -1
  844. package/dist/api/resources/agents/resources/templates/types/index.js +0 -17
  845. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
  846. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  847. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
  848. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
  849. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
  850. package/dist/serialization/resources/agents/resources/templates/types/index.js +0 -17
  851. package/dist/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
  852. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
  853. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  854. package/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
  855. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
  856. package/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
  857. package/serialization/resources/agents/resources/templates/types/index.js +0 -17
  858. package/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
  859. /package/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  860. /package/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  861. /package/api/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → chat/client/requests/ChatCompletionRequest.js} +0 -0
  862. /package/api/resources/{agents/resources/templates → chat}/client/requests/index.js +0 -0
  863. /package/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  864. /package/api/resources/{agents/resources/templates → chat}/index.js +0 -0
  865. /package/api/resources/{agents/resources/templates/types/TemplatesMigrateResponse.js → chat/types/ChatCompletionRequestMessagesItem.js} +0 -0
  866. /package/api/{types/ChatCompletionMessageFunctionToolCall.js → resources/chat/types/ChatCompletionRequestStop.js} +0 -0
  867. /package/api/{types/Function.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +0 -0
  868. /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js} +0 -0
  869. /package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCalls.js} +0 -0
  870. /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigParallelToolCallsItem.js} +0 -0
  871. /package/{dist/api/types/Function.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemEnableParallelExecution.js} +0 -0
  872. /package/dist/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  873. /package/dist/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  874. /package/dist/api/resources/{agents/resources/templates → chat}/client/requests/index.js +0 -0
  875. /package/dist/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  876. /package/dist/api/resources/{agents/resources/templates → chat}/index.js +0 -0
  877. /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  878. /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  879. /package/dist/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  880. /package/dist/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
  881. /package/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  882. /package/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  883. /package/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  884. /package/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
@@ -62,14 +62,14 @@ class Messages {
62
62
  /**
63
63
  * Retrieve message history for an agent.
64
64
  *
65
- * @param {string} agentId
65
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
66
66
  * @param {Letta.agents.MessagesListRequest} request
67
67
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
68
68
  *
69
69
  * @throws {@link Letta.UnprocessableEntityError}
70
70
  *
71
71
  * @example
72
- * await client.agents.messages.list("agent_id", {
72
+ * await client.agents.messages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
73
73
  * before: "before",
74
74
  * after: "after",
75
75
  * limit: 1,
@@ -127,7 +127,7 @@ class Messages {
127
127
  method: "GET",
128
128
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
129
129
  ? yield core.Supplier.get(this._options.project)
130
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
131
  contentType: "application/json",
132
132
  queryParameters: _queryParams,
133
133
  requestType: "json",
@@ -186,14 +186,14 @@ class Messages {
186
186
  * Process a user message and return the agent's response.
187
187
  * This endpoint accepts a message from a user and processes it through the agent.
188
188
  *
189
- * @param {string} agentId
189
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
190
190
  * @param {Letta.LettaRequest} request
191
191
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
192
192
  *
193
193
  * @throws {@link Letta.UnprocessableEntityError}
194
194
  *
195
195
  * @example
196
- * await client.agents.messages.create("agent_id", {
196
+ * await client.agents.messages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
197
197
  * messages: [{
198
198
  * role: "user",
199
199
  * content: [{
@@ -214,7 +214,7 @@ class Messages {
214
214
  method: "POST",
215
215
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
216
216
  ? yield core.Supplier.get(this._options.project)
217
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
217
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
218
218
  contentType: "application/json",
219
219
  requestType: "json",
220
220
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -272,15 +272,15 @@ class Messages {
272
272
  /**
273
273
  * Update the details of a message associated with an agent.
274
274
  *
275
- * @param {string} agentId
276
- * @param {string} messageId
275
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
276
+ * @param {string} messageId - The ID of the message in the format 'message-<uuid4>'
277
277
  * @param {Letta.agents.MessagesModifyRequest} request
278
278
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
279
279
  *
280
280
  * @throws {@link Letta.UnprocessableEntityError}
281
281
  *
282
282
  * @example
283
- * await client.agents.messages.modify("agent_id", "message_id", {
283
+ * await client.agents.messages.modify("agent-123e4567-e89b-42d3-8456-426614174000", "message-123e4567-e89b-42d3-8456-426614174000", {
284
284
  * content: "content"
285
285
  * })
286
286
  */
@@ -295,7 +295,7 @@ class Messages {
295
295
  method: "PATCH",
296
296
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
297
297
  ? yield core.Supplier.get(this._options.project)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
299
  contentType: "application/json",
300
300
  requestType: "json",
301
301
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -366,7 +366,7 @@ class Messages {
366
366
  method: "POST",
367
367
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
368
368
  ? yield core.Supplier.get(this._options.project)
369
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
369
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
370
370
  contentType: "application/json",
371
371
  requestType: "json",
372
372
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -437,14 +437,14 @@ class Messages {
437
437
  *
438
438
  * Note to cancel active runs associated with an agent, redis is required.
439
439
  *
440
- * @param {string} agentId
440
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
441
441
  * @param {Letta.agents.CancelAgentRunRequest} request
442
442
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
443
443
  *
444
444
  * @throws {@link Letta.UnprocessableEntityError}
445
445
  *
446
446
  * @example
447
- * await client.agents.messages.cancel("agent_id")
447
+ * await client.agents.messages.cancel("agent-123e4567-e89b-42d3-8456-426614174000")
448
448
  */
449
449
  cancel(agentId, request = {}, requestOptions) {
450
450
  return core.HttpResponsePromise.fromPromise(this.__cancel(agentId, request, requestOptions));
@@ -457,7 +457,7 @@ class Messages {
457
457
  method: "POST",
458
458
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
459
459
  ? yield core.Supplier.get(this._options.project)
460
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
460
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
461
461
  contentType: "application/json",
462
462
  requestType: "json",
463
463
  body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -536,7 +536,7 @@ class Messages {
536
536
  method: "POST",
537
537
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
538
538
  ? yield core.Supplier.get(this._options.project)
539
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
539
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
540
540
  contentType: "application/json",
541
541
  requestType: "json",
542
542
  body: serializers.agents.MessageSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -597,14 +597,14 @@ class Messages {
597
597
  *
598
598
  * This is "asynchronous" in the sense that it's a background run and explicitly must be fetched by the run ID.
599
599
  *
600
- * @param {string} agentId
600
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
601
601
  * @param {Letta.agents.LettaAsyncRequest} request
602
602
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
603
603
  *
604
604
  * @throws {@link Letta.UnprocessableEntityError}
605
605
  *
606
606
  * @example
607
- * await client.agents.messages.createAsync("agent_id", {
607
+ * await client.agents.messages.createAsync("agent-123e4567-e89b-42d3-8456-426614174000", {
608
608
  * messages: [{
609
609
  * role: "user",
610
610
  * content: [{
@@ -625,7 +625,7 @@ class Messages {
625
625
  method: "POST",
626
626
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
627
627
  ? yield core.Supplier.get(this._options.project)
628
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
628
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
629
629
  contentType: "application/json",
630
630
  requestType: "json",
631
631
  body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -683,14 +683,14 @@ class Messages {
683
683
  /**
684
684
  * Resets the messages for an agent
685
685
  *
686
- * @param {string} agentId
686
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
687
687
  * @param {Letta.agents.MessagesResetRequest} request
688
688
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
689
689
  *
690
690
  * @throws {@link Letta.UnprocessableEntityError}
691
691
  *
692
692
  * @example
693
- * await client.agents.messages.reset("agent_id", {
693
+ * await client.agents.messages.reset("agent-123e4567-e89b-42d3-8456-426614174000", {
694
694
  * addDefaultInitialMessages: true
695
695
  * })
696
696
  */
@@ -710,7 +710,7 @@ class Messages {
710
710
  method: "PATCH",
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": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-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": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-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
  queryParameters: _queryParams,
716
716
  requestType: "json",
@@ -772,14 +772,14 @@ class Messages {
772
772
  * the LLM request, then returns the raw request payload that would
773
773
  * be sent to the LLM provider. Useful for debugging and inspection.
774
774
  *
775
- * @param {string} agentId
775
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
776
776
  * @param {Letta.agents.MessagesPreviewRequest} request
777
777
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
778
778
  *
779
779
  * @throws {@link Letta.UnprocessableEntityError}
780
780
  *
781
781
  * @example
782
- * await client.agents.messages.preview("agent_id", {
782
+ * await client.agents.messages.preview("agent-123e4567-e89b-42d3-8456-426614174000", {
783
783
  * messages: [{
784
784
  * role: "user",
785
785
  * content: [{
@@ -800,7 +800,7 @@ class Messages {
800
800
  method: "POST",
801
801
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
802
802
  ? yield core.Supplier.get(this._options.project)
803
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
803
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
804
804
  contentType: "application/json",
805
805
  requestType: "json",
806
806
  body: serializers.agents.MessagesPreviewRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -861,14 +861,14 @@ class Messages {
861
861
  * This endpoint summarizes the current message history for a given agent,
862
862
  * truncating and compressing it down to the specified `max_message_length`.
863
863
  *
864
- * @param {string} agentId
864
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
865
865
  * @param {Letta.agents.MessagesSummarizeRequest} request
866
866
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
867
867
  *
868
868
  * @throws {@link Letta.UnprocessableEntityError}
869
869
  *
870
870
  * @example
871
- * await client.agents.messages.summarize("agent_id", {
871
+ * await client.agents.messages.summarize("agent-123e4567-e89b-42d3-8456-426614174000", {
872
872
  * maxMessageLength: 1
873
873
  * })
874
874
  */
@@ -886,7 +886,7 @@ class Messages {
886
886
  method: "POST",
887
887
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
888
888
  ? yield core.Supplier.get(this._options.project)
889
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
889
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
890
890
  contentType: "application/json",
891
891
  queryParameters: _queryParams,
892
892
  requestType: "json",
@@ -33,14 +33,14 @@ export declare class Passages {
33
33
  /**
34
34
  * Retrieve the memories in an agent's archival memory store (paginated query).
35
35
  *
36
- * @param {string} agentId
36
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
37
37
  * @param {Letta.agents.PassagesListRequest} request
38
38
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
39
39
  *
40
40
  * @throws {@link Letta.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.agents.passages.list("agent_id", {
43
+ * await client.agents.passages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
44
44
  * after: "after",
45
45
  * before: "before",
46
46
  * limit: 1,
@@ -53,14 +53,14 @@ export declare class Passages {
53
53
  /**
54
54
  * Insert a memory into an agent's archival memory store.
55
55
  *
56
- * @param {string} agentId
56
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
57
57
  * @param {Letta.agents.CreateArchivalMemory} request
58
58
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
59
59
  *
60
60
  * @throws {@link Letta.UnprocessableEntityError}
61
61
  *
62
62
  * @example
63
- * await client.agents.passages.create("agent_id", {
63
+ * await client.agents.passages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
64
64
  * text: "text"
65
65
  * })
66
66
  */
@@ -73,14 +73,14 @@ export declare class Passages {
73
73
  * an agent's archival memory store directly via the API. The search uses the same functionality
74
74
  * as the agent's archival_memory_search tool but is accessible for external API usage.
75
75
  *
76
- * @param {string} agentId
76
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
77
77
  * @param {Letta.agents.PassagesSearchRequest} request
78
78
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
79
79
  *
80
80
  * @throws {@link Letta.UnprocessableEntityError}
81
81
  *
82
82
  * @example
83
- * await client.agents.passages.search("agent_id", {
83
+ * await client.agents.passages.search("agent-123e4567-e89b-42d3-8456-426614174000", {
84
84
  * query: "query",
85
85
  * tagMatchMode: "any",
86
86
  * topK: 1,
@@ -94,13 +94,13 @@ export declare class Passages {
94
94
  * Delete a memory from an agent's archival memory store.
95
95
  *
96
96
  * @param {string} agentId
97
- * @param {string} memoryId
97
+ * @param {string} memoryId - The ID of the agent in the format 'agent-<uuid4>'
98
98
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
99
99
  *
100
100
  * @throws {@link Letta.UnprocessableEntityError}
101
101
  *
102
102
  * @example
103
- * await client.agents.passages.delete("agent_id", "memory_id")
103
+ * await client.agents.passages.delete("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000")
104
104
  */
105
105
  delete(agentId: string, memoryId: string, requestOptions?: Passages.RequestOptions): core.HttpResponsePromise<unknown>;
106
106
  private __delete;
@@ -62,14 +62,14 @@ class Passages {
62
62
  /**
63
63
  * Retrieve the memories in an agent's archival memory store (paginated query).
64
64
  *
65
- * @param {string} agentId
65
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
66
66
  * @param {Letta.agents.PassagesListRequest} request
67
67
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
68
68
  *
69
69
  * @throws {@link Letta.UnprocessableEntityError}
70
70
  *
71
71
  * @example
72
- * await client.agents.passages.list("agent_id", {
72
+ * await client.agents.passages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
73
73
  * after: "after",
74
74
  * before: "before",
75
75
  * limit: 1,
@@ -105,7 +105,7 @@ class Passages {
105
105
  method: "GET",
106
106
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
107
107
  ? yield core.Supplier.get(this._options.project)
108
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -163,14 +163,14 @@ class Passages {
163
163
  /**
164
164
  * Insert a memory into an agent's archival memory store.
165
165
  *
166
- * @param {string} agentId
166
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
167
167
  * @param {Letta.agents.CreateArchivalMemory} request
168
168
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
169
169
  *
170
170
  * @throws {@link Letta.UnprocessableEntityError}
171
171
  *
172
172
  * @example
173
- * await client.agents.passages.create("agent_id", {
173
+ * await client.agents.passages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
174
174
  * text: "text"
175
175
  * })
176
176
  */
@@ -185,7 +185,7 @@ class Passages {
185
185
  method: "POST",
186
186
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
187
187
  ? yield core.Supplier.get(this._options.project)
188
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -247,14 +247,14 @@ class Passages {
247
247
  * an agent's archival memory store directly via the API. The search uses the same functionality
248
248
  * as the agent's archival_memory_search tool but is accessible for external API usage.
249
249
  *
250
- * @param {string} agentId
250
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
251
251
  * @param {Letta.agents.PassagesSearchRequest} request
252
252
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
253
253
  *
254
254
  * @throws {@link Letta.UnprocessableEntityError}
255
255
  *
256
256
  * @example
257
- * await client.agents.passages.search("agent_id", {
257
+ * await client.agents.passages.search("agent-123e4567-e89b-42d3-8456-426614174000", {
258
258
  * query: "query",
259
259
  * tagMatchMode: "any",
260
260
  * topK: 1,
@@ -296,7 +296,7 @@ class Passages {
296
296
  method: "GET",
297
297
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
298
298
  ? yield core.Supplier.get(this._options.project)
299
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
300
  contentType: "application/json",
301
301
  queryParameters: _queryParams,
302
302
  requestType: "json",
@@ -355,13 +355,13 @@ class Passages {
355
355
  * Delete a memory from an agent's archival memory store.
356
356
  *
357
357
  * @param {string} agentId
358
- * @param {string} memoryId
358
+ * @param {string} memoryId - The ID of the agent in the format 'agent-<uuid4>'
359
359
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
360
360
  *
361
361
  * @throws {@link Letta.UnprocessableEntityError}
362
362
  *
363
363
  * @example
364
- * await client.agents.passages.delete("agent_id", "memory_id")
364
+ * await client.agents.passages.delete("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000")
365
365
  */
366
366
  delete(agentId, memoryId, requestOptions) {
367
367
  return core.HttpResponsePromise.fromPromise(this.__delete(agentId, memoryId, requestOptions));
@@ -374,7 +374,7 @@ class Passages {
374
374
  method: "DELETE",
375
375
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
376
376
  ? yield core.Supplier.get(this._options.project)
377
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
377
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
378
378
  contentType: "application/json",
379
379
  requestType: "json",
380
380
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -438,7 +438,7 @@ class Passages {
438
438
  method: "PATCH",
439
439
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
440
440
  ? yield core.Supplier.get(this._options.project)
441
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-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": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
442
442
  contentType: "application/json",
443
443
  requestType: "json",
444
444
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -33,42 +33,42 @@ export declare class Sources {
33
33
  /**
34
34
  * Attach a source to an agent.
35
35
  *
36
- * @param {string} agentId
37
- * @param {string} sourceId
36
+ * @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
37
+ * @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
38
38
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
39
39
  *
40
40
  * @throws {@link Letta.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.agents.sources.attach("agent_id", "source_id")
43
+ * await client.agents.sources.attach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
44
44
  */
45
45
  attach(agentId: string, sourceId: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
46
46
  private __attach;
47
47
  /**
48
48
  * Detach a source from an agent.
49
49
  *
50
- * @param {string} agentId
51
- * @param {string} sourceId
50
+ * @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
51
+ * @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
52
52
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
53
53
  *
54
54
  * @throws {@link Letta.UnprocessableEntityError}
55
55
  *
56
56
  * @example
57
- * await client.agents.sources.detach("agent_id", "source_id")
57
+ * await client.agents.sources.detach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
58
58
  */
59
59
  detach(agentId: string, sourceId: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
60
60
  private __detach;
61
61
  /**
62
62
  * Get the sources associated with an agent.
63
63
  *
64
- * @param {string} agentId
64
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
65
65
  * @param {Letta.agents.SourcesListRequest} request
66
66
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
67
67
  *
68
68
  * @throws {@link Letta.UnprocessableEntityError}
69
69
  *
70
70
  * @example
71
- * await client.agents.sources.list("agent_id", {
71
+ * await client.agents.sources.list("agent-123e4567-e89b-42d3-8456-426614174000", {
72
72
  * before: "before",
73
73
  * after: "after",
74
74
  * limit: 1,
@@ -62,14 +62,14 @@ class Sources {
62
62
  /**
63
63
  * Attach a source to an agent.
64
64
  *
65
- * @param {string} agentId
66
- * @param {string} sourceId
65
+ * @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
66
+ * @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
67
67
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
68
68
  *
69
69
  * @throws {@link Letta.UnprocessableEntityError}
70
70
  *
71
71
  * @example
72
- * await client.agents.sources.attach("agent_id", "source_id")
72
+ * await client.agents.sources.attach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
73
73
  */
74
74
  attach(agentId, sourceId, requestOptions) {
75
75
  return core.HttpResponsePromise.fromPromise(this.__attach(agentId, sourceId, requestOptions));
@@ -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": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-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": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-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,
@@ -139,14 +139,14 @@ class Sources {
139
139
  /**
140
140
  * Detach a source from an agent.
141
141
  *
142
- * @param {string} agentId
143
- * @param {string} sourceId
142
+ * @param {string} agentId - The ID of the source in the format 'source-<uuid4>'
143
+ * @param {string} sourceId - The ID of the agent in the format 'agent-<uuid4>'
144
144
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
145
145
  *
146
146
  * @throws {@link Letta.UnprocessableEntityError}
147
147
  *
148
148
  * @example
149
- * await client.agents.sources.detach("agent_id", "source_id")
149
+ * await client.agents.sources.detach("source-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
150
150
  */
151
151
  detach(agentId, sourceId, requestOptions) {
152
152
  return core.HttpResponsePromise.fromPromise(this.__detach(agentId, sourceId, requestOptions));
@@ -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": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-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": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-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,
@@ -216,14 +216,14 @@ class Sources {
216
216
  /**
217
217
  * Get the sources associated with an agent.
218
218
  *
219
- * @param {string} agentId
219
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
220
220
  * @param {Letta.agents.SourcesListRequest} request
221
221
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
222
222
  *
223
223
  * @throws {@link Letta.UnprocessableEntityError}
224
224
  *
225
225
  * @example
226
- * await client.agents.sources.list("agent_id", {
226
+ * await client.agents.sources.list("agent-123e4567-e89b-42d3-8456-426614174000", {
227
227
  * before: "before",
228
228
  * after: "after",
229
229
  * limit: 1,
@@ -261,7 +261,7 @@ class Sources {
261
261
  method: "GET",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.4", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  queryParameters: _queryParams,
267
267
  requestType: "json",
@@ -33,14 +33,14 @@ export declare class Tools {
33
33
  /**
34
34
  * Get tools from an existing agent
35
35
  *
36
- * @param {string} agentId
36
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
37
37
  * @param {Letta.agents.ToolsListRequest} request
38
38
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
39
39
  *
40
40
  * @throws {@link Letta.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.agents.tools.list("agent_id", {
43
+ * await client.agents.tools.list("agent-123e4567-e89b-42d3-8456-426614174000", {
44
44
  * before: "before",
45
45
  * after: "after",
46
46
  * limit: 1,
@@ -53,35 +53,35 @@ export declare class Tools {
53
53
  /**
54
54
  * Attach a tool to an agent.
55
55
  *
56
- * @param {string} agentId
57
- * @param {string} toolId
56
+ * @param {string} agentId - The ID of the tool in the format 'tool-<uuid4>'
57
+ * @param {string} toolId - The ID of the agent in the format 'agent-<uuid4>'
58
58
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
59
59
  *
60
60
  * @throws {@link Letta.UnprocessableEntityError}
61
61
  *
62
62
  * @example
63
- * await client.agents.tools.attach("agent_id", "tool_id")
63
+ * await client.agents.tools.attach("tool-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
64
64
  */
65
65
  attach(agentId: string, toolId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
66
66
  private __attach;
67
67
  /**
68
68
  * Detach a tool from an agent.
69
69
  *
70
- * @param {string} agentId
71
- * @param {string} toolId
70
+ * @param {string} agentId - The ID of the tool in the format 'tool-<uuid4>'
71
+ * @param {string} toolId - The ID of the agent in the format 'agent-<uuid4>'
72
72
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
73
73
  *
74
74
  * @throws {@link Letta.UnprocessableEntityError}
75
75
  *
76
76
  * @example
77
- * await client.agents.tools.detach("agent_id", "tool_id")
77
+ * await client.agents.tools.detach("tool-123e4567-e89b-42d3-8456-426614174000", "agent-123e4567-e89b-42d3-8456-426614174000")
78
78
  */
79
79
  detach(agentId: string, toolId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
80
80
  private __detach;
81
81
  /**
82
82
  * Attach a tool to an agent.
83
83
  *
84
- * @param {string} agentId
84
+ * @param {string} agentId - The ID of the agent in the format 'agent-<uuid4>'
85
85
  * @param {string} toolName
86
86
  * @param {Letta.agents.ToolsModifyApprovalRequest} request
87
87
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
@@ -89,7 +89,7 @@ export declare class Tools {
89
89
  * @throws {@link Letta.UnprocessableEntityError}
90
90
  *
91
91
  * @example
92
- * await client.agents.tools.modifyApproval("agent_id", "tool_name", {
92
+ * await client.agents.tools.modifyApproval("agent-123e4567-e89b-42d3-8456-426614174000", "tool_name", {
93
93
  * requiresApproval: true
94
94
  * })
95
95
  */