@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
package/reference.md CHANGED
@@ -165,7 +165,7 @@ Update an existing archive's name and/or description.
165
165
  <dd>
166
166
 
167
167
  ```typescript
168
- await client.archives.modifyArchive("archive_id");
168
+ await client.archives.modifyArchive("archive-123e4567-e89b-42d3-8456-426614174000");
169
169
  ```
170
170
 
171
171
  </dd>
@@ -181,7 +181,7 @@ await client.archives.modifyArchive("archive_id");
181
181
  <dl>
182
182
  <dd>
183
183
 
184
- **archiveId:** `string`
184
+ **archiveId:** `string` — The ID of the archive in the format 'archive-<uuid4>'
185
185
 
186
186
  </dd>
187
187
  </dl>
@@ -238,7 +238,7 @@ Get a tool by ID
238
238
  <dd>
239
239
 
240
240
  ```typescript
241
- await client.tools.retrieve("tool_id");
241
+ await client.tools.retrieve("tool-123e4567-e89b-42d3-8456-426614174000");
242
242
  ```
243
243
 
244
244
  </dd>
@@ -254,7 +254,7 @@ await client.tools.retrieve("tool_id");
254
254
  <dl>
255
255
  <dd>
256
256
 
257
- **toolId:** `string`
257
+ **toolId:** `string` — The ID of the tool in the format 'tool-<uuid4>'
258
258
 
259
259
  </dd>
260
260
  </dl>
@@ -301,7 +301,7 @@ Delete a tool by name
301
301
  <dd>
302
302
 
303
303
  ```typescript
304
- await client.tools.delete("tool_id");
304
+ await client.tools.delete("tool-123e4567-e89b-42d3-8456-426614174000");
305
305
  ```
306
306
 
307
307
  </dd>
@@ -317,7 +317,7 @@ await client.tools.delete("tool_id");
317
317
  <dl>
318
318
  <dd>
319
319
 
320
- **toolId:** `string`
320
+ **toolId:** `string` — The ID of the tool in the format 'tool-<uuid4>'
321
321
 
322
322
  </dd>
323
323
  </dl>
@@ -364,7 +364,7 @@ Update an existing tool
364
364
  <dd>
365
365
 
366
366
  ```typescript
367
- await client.tools.modify("tool_id");
367
+ await client.tools.modify("tool-123e4567-e89b-42d3-8456-426614174000");
368
368
  ```
369
369
 
370
370
  </dd>
@@ -380,7 +380,7 @@ await client.tools.modify("tool_id");
380
380
  <dl>
381
381
  <dd>
382
382
 
383
- **toolId:** `string`
383
+ **toolId:** `string` — The ID of the tool in the format 'tool-<uuid4>'
384
384
 
385
385
  </dd>
386
386
  </dl>
@@ -1414,7 +1414,7 @@ Get all sources
1414
1414
  <dd>
1415
1415
 
1416
1416
  ```typescript
1417
- await client.sources.retrieve("source_id");
1417
+ await client.sources.retrieve("source-123e4567-e89b-42d3-8456-426614174000");
1418
1418
  ```
1419
1419
 
1420
1420
  </dd>
@@ -1430,7 +1430,7 @@ await client.sources.retrieve("source_id");
1430
1430
  <dl>
1431
1431
  <dd>
1432
1432
 
1433
- **sourceId:** `string`
1433
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
1434
1434
 
1435
1435
  </dd>
1436
1436
  </dl>
@@ -1477,7 +1477,7 @@ Delete a data source.
1477
1477
  <dd>
1478
1478
 
1479
1479
  ```typescript
1480
- await client.sources.delete("source_id");
1480
+ await client.sources.delete("source-123e4567-e89b-42d3-8456-426614174000");
1481
1481
  ```
1482
1482
 
1483
1483
  </dd>
@@ -1493,7 +1493,7 @@ await client.sources.delete("source_id");
1493
1493
  <dl>
1494
1494
  <dd>
1495
1495
 
1496
- **sourceId:** `string`
1496
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
1497
1497
 
1498
1498
  </dd>
1499
1499
  </dl>
@@ -1540,7 +1540,7 @@ Update the name or documentation of an existing data source.
1540
1540
  <dd>
1541
1541
 
1542
1542
  ```typescript
1543
- await client.sources.modify("source_id", {});
1543
+ await client.sources.modify("source-123e4567-e89b-42d3-8456-426614174000", {});
1544
1544
  ```
1545
1545
 
1546
1546
  </dd>
@@ -1556,7 +1556,7 @@ await client.sources.modify("source_id", {});
1556
1556
  <dl>
1557
1557
  <dd>
1558
1558
 
1559
- **sourceId:** `string`
1559
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
1560
1560
 
1561
1561
  </dd>
1562
1562
  </dl>
@@ -1865,7 +1865,7 @@ Get all agent IDs that have the specified source attached.
1865
1865
  <dd>
1866
1866
 
1867
1867
  ```typescript
1868
- await client.sources.getAgentsForSource("source_id");
1868
+ await client.sources.getAgentsForSource("source-123e4567-e89b-42d3-8456-426614174000");
1869
1869
  ```
1870
1870
 
1871
1871
  </dd>
@@ -1881,7 +1881,7 @@ await client.sources.getAgentsForSource("source_id");
1881
1881
  <dl>
1882
1882
  <dd>
1883
1883
 
1884
- **sourceId:** `string`
1884
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
1885
1885
 
1886
1886
  </dd>
1887
1887
  </dl>
@@ -1928,9 +1928,13 @@ Retrieve metadata for a specific file by its ID.
1928
1928
  <dd>
1929
1929
 
1930
1930
  ```typescript
1931
- await client.sources.getFileMetadata("source_id", "file_id", {
1932
- includeContent: true,
1933
- });
1931
+ await client.sources.getFileMetadata(
1932
+ "source-123e4567-e89b-42d3-8456-426614174000",
1933
+ "file-123e4567-e89b-42d3-8456-426614174000",
1934
+ {
1935
+ includeContent: true,
1936
+ },
1937
+ );
1934
1938
  ```
1935
1939
 
1936
1940
  </dd>
@@ -1946,7 +1950,7 @@ await client.sources.getFileMetadata("source_id", "file_id", {
1946
1950
  <dl>
1947
1951
  <dd>
1948
1952
 
1949
- **sourceId:** `string`
1953
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
1950
1954
 
1951
1955
  </dd>
1952
1956
  </dl>
@@ -1954,7 +1958,7 @@ await client.sources.getFileMetadata("source_id", "file_id", {
1954
1958
  <dl>
1955
1959
  <dd>
1956
1960
 
1957
- **fileId:** `string`
1961
+ **fileId:** `string` — The ID of the file in the format 'file-<uuid4>'
1958
1962
 
1959
1963
  </dd>
1960
1964
  </dl>
@@ -2736,7 +2740,7 @@ Supports two export formats:
2736
2740
  <dd>
2737
2741
 
2738
2742
  ```typescript
2739
- await client.agents.exportFile("agent_id", {
2743
+ await client.agents.exportFile("agent-123e4567-e89b-42d3-8456-426614174000", {
2740
2744
  maxSteps: 1,
2741
2745
  useLegacyFormat: true,
2742
2746
  });
@@ -2755,7 +2759,7 @@ await client.agents.exportFile("agent_id", {
2755
2759
  <dl>
2756
2760
  <dd>
2757
2761
 
2758
- **agentId:** `string`
2762
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
2759
2763
 
2760
2764
  </dd>
2761
2765
  </dl>
@@ -2884,7 +2888,7 @@ Get the state of the agent.
2884
2888
  <dd>
2885
2889
 
2886
2890
  ```typescript
2887
- await client.agents.retrieve("agent_id");
2891
+ await client.agents.retrieve("agent-123e4567-e89b-42d3-8456-426614174000");
2888
2892
  ```
2889
2893
 
2890
2894
  </dd>
@@ -2900,7 +2904,7 @@ await client.agents.retrieve("agent_id");
2900
2904
  <dl>
2901
2905
  <dd>
2902
2906
 
2903
- **agentId:** `string`
2907
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
2904
2908
 
2905
2909
  </dd>
2906
2910
  </dl>
@@ -2955,7 +2959,7 @@ Delete an agent.
2955
2959
  <dd>
2956
2960
 
2957
2961
  ```typescript
2958
- await client.agents.delete("agent_id");
2962
+ await client.agents.delete("agent-123e4567-e89b-42d3-8456-426614174000");
2959
2963
  ```
2960
2964
 
2961
2965
  </dd>
@@ -2971,7 +2975,7 @@ await client.agents.delete("agent_id");
2971
2975
  <dl>
2972
2976
  <dd>
2973
2977
 
2974
- **agentId:** `string`
2978
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
2975
2979
 
2976
2980
  </dd>
2977
2981
  </dl>
@@ -3018,7 +3022,7 @@ Update an existing agent.
3018
3022
  <dd>
3019
3023
 
3020
3024
  ```typescript
3021
- await client.agents.modify("agent_id");
3025
+ await client.agents.modify("agent-123e4567-e89b-42d3-8456-426614174000");
3022
3026
  ```
3023
3027
 
3024
3028
  </dd>
@@ -3034,7 +3038,7 @@ await client.agents.modify("agent_id");
3034
3038
  <dl>
3035
3039
  <dd>
3036
3040
 
3037
- **agentId:** `string`
3041
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
3038
3042
 
3039
3043
  </dd>
3040
3044
  </dl>
@@ -3126,6 +3130,86 @@ await client.agents.search();
3126
3130
  </dl>
3127
3131
  </details>
3128
3132
 
3133
+ ## Chat
3134
+
3135
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">createChatCompletion</a>({ ...params }) -> Letta.ChatCompletion</code></summary>
3136
+ <dl>
3137
+ <dd>
3138
+
3139
+ #### 📝 Description
3140
+
3141
+ <dl>
3142
+ <dd>
3143
+
3144
+ <dl>
3145
+ <dd>
3146
+
3147
+ Create a chat completion using a Letta agent (OpenAI-compatible).
3148
+
3149
+ This endpoint provides full OpenAI API compatibility. The agent is selected based on:
3150
+
3151
+ - The 'model' parameter in the request (should contain an agent ID in format 'agent-...')
3152
+
3153
+ When streaming is enabled (stream=true), the response will be Server-Sent Events
3154
+ with ChatCompletionChunk objects.
3155
+
3156
+ </dd>
3157
+ </dl>
3158
+ </dd>
3159
+ </dl>
3160
+
3161
+ #### 🔌 Usage
3162
+
3163
+ <dl>
3164
+ <dd>
3165
+
3166
+ <dl>
3167
+ <dd>
3168
+
3169
+ ```typescript
3170
+ await client.chat.createChatCompletion({
3171
+ model: "model",
3172
+ messages: [
3173
+ {
3174
+ content: "content",
3175
+ role: "developer",
3176
+ },
3177
+ ],
3178
+ });
3179
+ ```
3180
+
3181
+ </dd>
3182
+ </dl>
3183
+ </dd>
3184
+ </dl>
3185
+
3186
+ #### ⚙️ Parameters
3187
+
3188
+ <dl>
3189
+ <dd>
3190
+
3191
+ <dl>
3192
+ <dd>
3193
+
3194
+ **request:** `Letta.ChatCompletionRequest`
3195
+
3196
+ </dd>
3197
+ </dl>
3198
+
3199
+ <dl>
3200
+ <dd>
3201
+
3202
+ **requestOptions:** `Chat.RequestOptions`
3203
+
3204
+ </dd>
3205
+ </dl>
3206
+ </dd>
3207
+ </dl>
3208
+
3209
+ </dd>
3210
+ </dl>
3211
+ </details>
3212
+
3129
3213
  ## Groups
3130
3214
 
3131
3215
  <details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">list</a>({ ...params }) -> Letta.Group[]</code></summary>
@@ -3348,7 +3432,7 @@ Retrieve the group by id.
3348
3432
  <dd>
3349
3433
 
3350
3434
  ```typescript
3351
- await client.groups.retrieve("group_id");
3435
+ await client.groups.retrieve("group-123e4567-e89b-42d3-8456-426614174000");
3352
3436
  ```
3353
3437
 
3354
3438
  </dd>
@@ -3364,7 +3448,7 @@ await client.groups.retrieve("group_id");
3364
3448
  <dl>
3365
3449
  <dd>
3366
3450
 
3367
- **groupId:** `string`
3451
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
3368
3452
 
3369
3453
  </dd>
3370
3454
  </dl>
@@ -3411,7 +3495,7 @@ Delete a multi-agent group.
3411
3495
  <dd>
3412
3496
 
3413
3497
  ```typescript
3414
- await client.groups.delete("group_id");
3498
+ await client.groups.delete("group-123e4567-e89b-42d3-8456-426614174000");
3415
3499
  ```
3416
3500
 
3417
3501
  </dd>
@@ -3427,7 +3511,7 @@ await client.groups.delete("group_id");
3427
3511
  <dl>
3428
3512
  <dd>
3429
3513
 
3430
- **groupId:** `string`
3514
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
3431
3515
 
3432
3516
  </dd>
3433
3517
  </dl>
@@ -3474,7 +3558,7 @@ Create a new multi-agent group with the specified configuration.
3474
3558
  <dd>
3475
3559
 
3476
3560
  ```typescript
3477
- await client.groups.modify("group_id");
3561
+ await client.groups.modify("group-123e4567-e89b-42d3-8456-426614174000");
3478
3562
  ```
3479
3563
 
3480
3564
  </dd>
@@ -3490,7 +3574,7 @@ await client.groups.modify("group_id");
3490
3574
  <dl>
3491
3575
  <dd>
3492
3576
 
3493
- **groupId:** `string`
3577
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
3494
3578
 
3495
3579
  </dd>
3496
3580
  </dl>
@@ -3764,7 +3848,7 @@ await client.identities.count();
3764
3848
  <dd>
3765
3849
 
3766
3850
  ```typescript
3767
- await client.identities.retrieve("identity_id");
3851
+ await client.identities.retrieve("identity-123e4567-e89b-42d3-8456-426614174000");
3768
3852
  ```
3769
3853
 
3770
3854
  </dd>
@@ -3780,7 +3864,7 @@ await client.identities.retrieve("identity_id");
3780
3864
  <dl>
3781
3865
  <dd>
3782
3866
 
3783
- **identityId:** `string`
3867
+ **identityId:** `string` — The ID of the identity in the format 'identity-<uuid4>'
3784
3868
 
3785
3869
  </dd>
3786
3870
  </dl>
@@ -3827,7 +3911,7 @@ Delete an identity by its identifier key
3827
3911
  <dd>
3828
3912
 
3829
3913
  ```typescript
3830
- await client.identities.delete("identity_id");
3914
+ await client.identities.delete("identity-123e4567-e89b-42d3-8456-426614174000");
3831
3915
  ```
3832
3916
 
3833
3917
  </dd>
@@ -3843,7 +3927,7 @@ await client.identities.delete("identity_id");
3843
3927
  <dl>
3844
3928
  <dd>
3845
3929
 
3846
- **identityId:** `string`
3930
+ **identityId:** `string` — The ID of the identity in the format 'identity-<uuid4>'
3847
3931
 
3848
3932
  </dd>
3849
3933
  </dl>
@@ -3875,7 +3959,7 @@ await client.identities.delete("identity_id");
3875
3959
  <dd>
3876
3960
 
3877
3961
  ```typescript
3878
- await client.identities.modify("identity_id");
3962
+ await client.identities.modify("identity-123e4567-e89b-42d3-8456-426614174000");
3879
3963
  ```
3880
3964
 
3881
3965
  </dd>
@@ -3891,7 +3975,7 @@ await client.identities.modify("identity_id");
3891
3975
  <dl>
3892
3976
  <dd>
3893
3977
 
3894
- **identityId:** `string`
3978
+ **identityId:** `string` — The ID of the identity in the format 'identity-<uuid4>'
3895
3979
 
3896
3980
  </dd>
3897
3981
  </dl>
@@ -4211,7 +4295,7 @@ await client.blocks.count();
4211
4295
  <dd>
4212
4296
 
4213
4297
  ```typescript
4214
- await client.blocks.retrieve("block_id");
4298
+ await client.blocks.retrieve("block-123e4567-e89b-42d3-8456-426614174000");
4215
4299
  ```
4216
4300
 
4217
4301
  </dd>
@@ -4227,7 +4311,7 @@ await client.blocks.retrieve("block_id");
4227
4311
  <dl>
4228
4312
  <dd>
4229
4313
 
4230
- **blockId:** `string`
4314
+ **blockId:** `string` — The ID of the block in the format 'block-<uuid4>'
4231
4315
 
4232
4316
  </dd>
4233
4317
  </dl>
@@ -4259,7 +4343,7 @@ await client.blocks.retrieve("block_id");
4259
4343
  <dd>
4260
4344
 
4261
4345
  ```typescript
4262
- await client.blocks.delete("block_id");
4346
+ await client.blocks.delete("block-123e4567-e89b-42d3-8456-426614174000");
4263
4347
  ```
4264
4348
 
4265
4349
  </dd>
@@ -4275,7 +4359,7 @@ await client.blocks.delete("block_id");
4275
4359
  <dl>
4276
4360
  <dd>
4277
4361
 
4278
- **blockId:** `string`
4362
+ **blockId:** `string` — The ID of the block in the format 'block-<uuid4>'
4279
4363
 
4280
4364
  </dd>
4281
4365
  </dl>
@@ -4307,7 +4391,7 @@ await client.blocks.delete("block_id");
4307
4391
  <dd>
4308
4392
 
4309
4393
  ```typescript
4310
- await client.blocks.modify("block_id", {});
4394
+ await client.blocks.modify("block-123e4567-e89b-42d3-8456-426614174000", {});
4311
4395
  ```
4312
4396
 
4313
4397
  </dd>
@@ -4323,7 +4407,7 @@ await client.blocks.modify("block_id", {});
4323
4407
  <dl>
4324
4408
  <dd>
4325
4409
 
4326
- **blockId:** `string`
4410
+ **blockId:** `string` — The ID of the block in the format 'block-<uuid4>'
4327
4411
 
4328
4412
  </dd>
4329
4413
  </dl>
@@ -4521,7 +4605,7 @@ Get the status of a job.
4521
4605
  <dd>
4522
4606
 
4523
4607
  ```typescript
4524
- await client.jobs.retrieve("job_id");
4608
+ await client.jobs.retrieve("job-123e4567-e89b-42d3-8456-426614174000");
4525
4609
  ```
4526
4610
 
4527
4611
  </dd>
@@ -4537,7 +4621,7 @@ await client.jobs.retrieve("job_id");
4537
4621
  <dl>
4538
4622
  <dd>
4539
4623
 
4540
- **jobId:** `string`
4624
+ **jobId:** `string` — The ID of the job in the format 'job-<uuid4>'
4541
4625
 
4542
4626
  </dd>
4543
4627
  </dl>
@@ -4584,7 +4668,7 @@ Delete a job by its job_id.
4584
4668
  <dd>
4585
4669
 
4586
4670
  ```typescript
4587
- await client.jobs.delete("job_id");
4671
+ await client.jobs.delete("job-123e4567-e89b-42d3-8456-426614174000");
4588
4672
  ```
4589
4673
 
4590
4674
  </dd>
@@ -4600,7 +4684,7 @@ await client.jobs.delete("job_id");
4600
4684
  <dl>
4601
4685
  <dd>
4602
4686
 
4603
- **jobId:** `string`
4687
+ **jobId:** `string` — The ID of the job in the format 'job-<uuid4>'
4604
4688
 
4605
4689
  </dd>
4606
4690
  </dl>
@@ -4650,7 +4734,7 @@ agent execution to terminate as soon as possible.
4650
4734
  <dd>
4651
4735
 
4652
4736
  ```typescript
4653
- await client.jobs.cancelJob("job_id");
4737
+ await client.jobs.cancelJob("job-123e4567-e89b-42d3-8456-426614174000");
4654
4738
  ```
4655
4739
 
4656
4740
  </dd>
@@ -4666,7 +4750,7 @@ await client.jobs.cancelJob("job_id");
4666
4750
  <dl>
4667
4751
  <dd>
4668
4752
 
4669
- **jobId:** `string`
4753
+ **jobId:** `string` — The ID of the job in the format 'job-<uuid4>'
4670
4754
 
4671
4755
  </dd>
4672
4756
  </dl>
@@ -4895,7 +4979,7 @@ Get a provider by ID.
4895
4979
  <dd>
4896
4980
 
4897
4981
  ```typescript
4898
- await client.providers.retrieveProvider("provider_id");
4982
+ await client.providers.retrieveProvider("provider-123e4567-e89b-42d3-8456-426614174000");
4899
4983
  ```
4900
4984
 
4901
4985
  </dd>
@@ -4911,7 +4995,7 @@ await client.providers.retrieveProvider("provider_id");
4911
4995
  <dl>
4912
4996
  <dd>
4913
4997
 
4914
- **providerId:** `string`
4998
+ **providerId:** `string` — The ID of the provider in the format 'provider-<uuid4>'
4915
4999
 
4916
5000
  </dd>
4917
5001
  </dl>
@@ -4958,7 +5042,7 @@ Delete an existing custom provider.
4958
5042
  <dd>
4959
5043
 
4960
5044
  ```typescript
4961
- await client.providers.delete("provider_id");
5045
+ await client.providers.delete("provider-123e4567-e89b-42d3-8456-426614174000");
4962
5046
  ```
4963
5047
 
4964
5048
  </dd>
@@ -4974,7 +5058,7 @@ await client.providers.delete("provider_id");
4974
5058
  <dl>
4975
5059
  <dd>
4976
5060
 
4977
- **providerId:** `string`
5061
+ **providerId:** `string` — The ID of the provider in the format 'provider-<uuid4>'
4978
5062
 
4979
5063
  </dd>
4980
5064
  </dl>
@@ -5021,7 +5105,7 @@ Update an existing custom provider.
5021
5105
  <dd>
5022
5106
 
5023
5107
  ```typescript
5024
- await client.providers.modify("provider_id", {
5108
+ await client.providers.modify("provider-123e4567-e89b-42d3-8456-426614174000", {
5025
5109
  apiKey: "api_key",
5026
5110
  });
5027
5111
  ```
@@ -5039,7 +5123,7 @@ await client.providers.modify("provider_id", {
5039
5123
  <dl>
5040
5124
  <dd>
5041
5125
 
5042
- **providerId:** `string`
5126
+ **providerId:** `string` — The ID of the provider in the format 'provider-<uuid4>'
5043
5127
 
5044
5128
  </dd>
5045
5129
  </dl>
@@ -5160,7 +5244,7 @@ Verify the API key and additional parameters for an existing provider.
5160
5244
  <dd>
5161
5245
 
5162
5246
  ```typescript
5163
- await client.providers.checkExistingProvider("provider_id");
5247
+ await client.providers.checkExistingProvider("provider-123e4567-e89b-42d3-8456-426614174000");
5164
5248
  ```
5165
5249
 
5166
5250
  </dd>
@@ -5176,7 +5260,7 @@ await client.providers.checkExistingProvider("provider_id");
5176
5260
  <dl>
5177
5261
  <dd>
5178
5262
 
5179
- **providerId:** `string`
5263
+ **providerId:** `string` — The ID of the provider in the format 'provider-<uuid4>'
5180
5264
 
5181
5265
  </dd>
5182
5266
  </dl>
@@ -5691,7 +5775,7 @@ Get a step by ID.
5691
5775
  <dd>
5692
5776
 
5693
5777
  ```typescript
5694
- await client.steps.retrieve("step_id");
5778
+ await client.steps.retrieve("step-123e4567-e89b-42d3-8456-426614174000");
5695
5779
  ```
5696
5780
 
5697
5781
  </dd>
@@ -5707,7 +5791,7 @@ await client.steps.retrieve("step_id");
5707
5791
  <dl>
5708
5792
  <dd>
5709
5793
 
5710
- **stepId:** `string`
5794
+ **stepId:** `string` — The ID of the step in the format 'step-<uuid4>'
5711
5795
 
5712
5796
  </dd>
5713
5797
  </dl>
@@ -6152,6 +6236,26 @@ await client.batches.cancel("batch_id");
6152
6236
  <dl>
6153
6237
  <dd>
6154
6238
 
6239
+ #### 📝 Description
6240
+
6241
+ <dl>
6242
+ <dd>
6243
+
6244
+ <dl>
6245
+ <dd>
6246
+
6247
+ DEPRECATED: This voice-beta endpoint has been deprecated.
6248
+
6249
+ The voice functionality has been integrated into the main chat completions endpoint.
6250
+ Please use the standard /v1/agents/{agent_id}/messages endpoint instead.
6251
+
6252
+ This endpoint will be removed in a future version.
6253
+
6254
+ </dd>
6255
+ </dl>
6256
+ </dd>
6257
+ </dl>
6258
+
6155
6259
  #### 🔌 Usage
6156
6260
 
6157
6261
  <dl>
@@ -6644,7 +6748,7 @@ await client.templates.setcurrenttemplatefromsnapshot("project_id", "template_ve
6644
6748
  <dl>
6645
6749
  <dd>
6646
6750
 
6647
- **templateVersion:** `string` — The template name with :current version (e.g., my-template:current)
6751
+ **templateVersion:** `string` — The template name with :dev version (e.g., my-template:dev)
6648
6752
 
6649
6753
  </dd>
6650
6754
  </dl>
@@ -7551,7 +7655,7 @@ Retrieve the context window of a specific agent.
7551
7655
  <dd>
7552
7656
 
7553
7657
  ```typescript
7554
- await client.agents.context.retrieve("agent_id");
7658
+ await client.agents.context.retrieve("agent-123e4567-e89b-42d3-8456-426614174000");
7555
7659
  ```
7556
7660
 
7557
7661
  </dd>
@@ -7567,7 +7671,7 @@ await client.agents.context.retrieve("agent_id");
7567
7671
  <dl>
7568
7672
  <dd>
7569
7673
 
7570
- **agentId:** `string`
7674
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
7571
7675
 
7572
7676
  </dd>
7573
7677
  </dl>
@@ -7616,7 +7720,7 @@ Get tools from an existing agent
7616
7720
  <dd>
7617
7721
 
7618
7722
  ```typescript
7619
- await client.agents.tools.list("agent_id", {
7723
+ await client.agents.tools.list("agent-123e4567-e89b-42d3-8456-426614174000", {
7620
7724
  before: "before",
7621
7725
  after: "after",
7622
7726
  limit: 1,
@@ -7638,7 +7742,7 @@ await client.agents.tools.list("agent_id", {
7638
7742
  <dl>
7639
7743
  <dd>
7640
7744
 
7641
- **agentId:** `string`
7745
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
7642
7746
 
7643
7747
  </dd>
7644
7748
  </dl>
@@ -7693,7 +7797,10 @@ Attach a tool to an agent.
7693
7797
  <dd>
7694
7798
 
7695
7799
  ```typescript
7696
- await client.agents.tools.attach("agent_id", "tool_id");
7800
+ await client.agents.tools.attach(
7801
+ "tool-123e4567-e89b-42d3-8456-426614174000",
7802
+ "agent-123e4567-e89b-42d3-8456-426614174000",
7803
+ );
7697
7804
  ```
7698
7805
 
7699
7806
  </dd>
@@ -7709,7 +7816,7 @@ await client.agents.tools.attach("agent_id", "tool_id");
7709
7816
  <dl>
7710
7817
  <dd>
7711
7818
 
7712
- **agentId:** `string`
7819
+ **agentId:** `string` — The ID of the tool in the format 'tool-<uuid4>'
7713
7820
 
7714
7821
  </dd>
7715
7822
  </dl>
@@ -7717,7 +7824,7 @@ await client.agents.tools.attach("agent_id", "tool_id");
7717
7824
  <dl>
7718
7825
  <dd>
7719
7826
 
7720
- **toolId:** `string`
7827
+ **toolId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
7721
7828
 
7722
7829
  </dd>
7723
7830
  </dl>
@@ -7764,7 +7871,10 @@ Detach a tool from an agent.
7764
7871
  <dd>
7765
7872
 
7766
7873
  ```typescript
7767
- await client.agents.tools.detach("agent_id", "tool_id");
7874
+ await client.agents.tools.detach(
7875
+ "tool-123e4567-e89b-42d3-8456-426614174000",
7876
+ "agent-123e4567-e89b-42d3-8456-426614174000",
7877
+ );
7768
7878
  ```
7769
7879
 
7770
7880
  </dd>
@@ -7780,7 +7890,7 @@ await client.agents.tools.detach("agent_id", "tool_id");
7780
7890
  <dl>
7781
7891
  <dd>
7782
7892
 
7783
- **agentId:** `string`
7893
+ **agentId:** `string` — The ID of the tool in the format 'tool-<uuid4>'
7784
7894
 
7785
7895
  </dd>
7786
7896
  </dl>
@@ -7788,7 +7898,7 @@ await client.agents.tools.detach("agent_id", "tool_id");
7788
7898
  <dl>
7789
7899
  <dd>
7790
7900
 
7791
- **toolId:** `string`
7901
+ **toolId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
7792
7902
 
7793
7903
  </dd>
7794
7904
  </dl>
@@ -7835,7 +7945,7 @@ Attach a tool to an agent.
7835
7945
  <dd>
7836
7946
 
7837
7947
  ```typescript
7838
- await client.agents.tools.modifyApproval("agent_id", "tool_name", {
7948
+ await client.agents.tools.modifyApproval("agent-123e4567-e89b-42d3-8456-426614174000", "tool_name", {
7839
7949
  requiresApproval: true,
7840
7950
  });
7841
7951
  ```
@@ -7853,7 +7963,7 @@ await client.agents.tools.modifyApproval("agent_id", "tool_name", {
7853
7963
  <dl>
7854
7964
  <dd>
7855
7965
 
7856
- **agentId:** `string`
7966
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
7857
7967
 
7858
7968
  </dd>
7859
7969
  </dl>
@@ -7918,7 +8028,10 @@ Attach a source to an agent.
7918
8028
  <dd>
7919
8029
 
7920
8030
  ```typescript
7921
- await client.agents.sources.attach("agent_id", "source_id");
8031
+ await client.agents.sources.attach(
8032
+ "source-123e4567-e89b-42d3-8456-426614174000",
8033
+ "agent-123e4567-e89b-42d3-8456-426614174000",
8034
+ );
7922
8035
  ```
7923
8036
 
7924
8037
  </dd>
@@ -7934,7 +8047,7 @@ await client.agents.sources.attach("agent_id", "source_id");
7934
8047
  <dl>
7935
8048
  <dd>
7936
8049
 
7937
- **agentId:** `string`
8050
+ **agentId:** `string` — The ID of the source in the format 'source-<uuid4>'
7938
8051
 
7939
8052
  </dd>
7940
8053
  </dl>
@@ -7942,7 +8055,7 @@ await client.agents.sources.attach("agent_id", "source_id");
7942
8055
  <dl>
7943
8056
  <dd>
7944
8057
 
7945
- **sourceId:** `string`
8058
+ **sourceId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
7946
8059
 
7947
8060
  </dd>
7948
8061
  </dl>
@@ -7989,7 +8102,10 @@ Detach a source from an agent.
7989
8102
  <dd>
7990
8103
 
7991
8104
  ```typescript
7992
- await client.agents.sources.detach("agent_id", "source_id");
8105
+ await client.agents.sources.detach(
8106
+ "source-123e4567-e89b-42d3-8456-426614174000",
8107
+ "agent-123e4567-e89b-42d3-8456-426614174000",
8108
+ );
7993
8109
  ```
7994
8110
 
7995
8111
  </dd>
@@ -8005,7 +8121,7 @@ await client.agents.sources.detach("agent_id", "source_id");
8005
8121
  <dl>
8006
8122
  <dd>
8007
8123
 
8008
- **agentId:** `string`
8124
+ **agentId:** `string` — The ID of the source in the format 'source-<uuid4>'
8009
8125
 
8010
8126
  </dd>
8011
8127
  </dl>
@@ -8013,7 +8129,7 @@ await client.agents.sources.detach("agent_id", "source_id");
8013
8129
  <dl>
8014
8130
  <dd>
8015
8131
 
8016
- **sourceId:** `string`
8132
+ **sourceId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8017
8133
 
8018
8134
  </dd>
8019
8135
  </dl>
@@ -8060,7 +8176,7 @@ Get the sources associated with an agent.
8060
8176
  <dd>
8061
8177
 
8062
8178
  ```typescript
8063
- await client.agents.sources.list("agent_id", {
8179
+ await client.agents.sources.list("agent-123e4567-e89b-42d3-8456-426614174000", {
8064
8180
  before: "before",
8065
8181
  after: "after",
8066
8182
  limit: 1,
@@ -8082,7 +8198,7 @@ await client.agents.sources.list("agent_id", {
8082
8198
  <dl>
8083
8199
  <dd>
8084
8200
 
8085
- **agentId:** `string`
8201
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8086
8202
 
8087
8203
  </dd>
8088
8204
  </dl>
@@ -8139,7 +8255,10 @@ Attach a folder to an agent.
8139
8255
  <dd>
8140
8256
 
8141
8257
  ```typescript
8142
- await client.agents.folders.attach("agent_id", "folder_id");
8258
+ await client.agents.folders.attach(
8259
+ "source-123e4567-e89b-42d3-8456-426614174000",
8260
+ "agent-123e4567-e89b-42d3-8456-426614174000",
8261
+ );
8143
8262
  ```
8144
8263
 
8145
8264
  </dd>
@@ -8155,7 +8274,7 @@ await client.agents.folders.attach("agent_id", "folder_id");
8155
8274
  <dl>
8156
8275
  <dd>
8157
8276
 
8158
- **agentId:** `string`
8277
+ **agentId:** `string` — The ID of the source in the format 'source-<uuid4>'
8159
8278
 
8160
8279
  </dd>
8161
8280
  </dl>
@@ -8163,7 +8282,7 @@ await client.agents.folders.attach("agent_id", "folder_id");
8163
8282
  <dl>
8164
8283
  <dd>
8165
8284
 
8166
- **folderId:** `string`
8285
+ **folderId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8167
8286
 
8168
8287
  </dd>
8169
8288
  </dl>
@@ -8210,7 +8329,10 @@ Detach a folder from an agent.
8210
8329
  <dd>
8211
8330
 
8212
8331
  ```typescript
8213
- await client.agents.folders.detach("agent_id", "folder_id");
8332
+ await client.agents.folders.detach(
8333
+ "source-123e4567-e89b-42d3-8456-426614174000",
8334
+ "agent-123e4567-e89b-42d3-8456-426614174000",
8335
+ );
8214
8336
  ```
8215
8337
 
8216
8338
  </dd>
@@ -8226,7 +8348,7 @@ await client.agents.folders.detach("agent_id", "folder_id");
8226
8348
  <dl>
8227
8349
  <dd>
8228
8350
 
8229
- **agentId:** `string`
8351
+ **agentId:** `string` — The ID of the source in the format 'source-<uuid4>'
8230
8352
 
8231
8353
  </dd>
8232
8354
  </dl>
@@ -8234,7 +8356,7 @@ await client.agents.folders.detach("agent_id", "folder_id");
8234
8356
  <dl>
8235
8357
  <dd>
8236
8358
 
8237
- **folderId:** `string`
8359
+ **folderId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8238
8360
 
8239
8361
  </dd>
8240
8362
  </dl>
@@ -8281,7 +8403,7 @@ Get the folders associated with an agent.
8281
8403
  <dd>
8282
8404
 
8283
8405
  ```typescript
8284
- await client.agents.folders.list("agent_id", {
8406
+ await client.agents.folders.list("agent-123e4567-e89b-42d3-8456-426614174000", {
8285
8407
  before: "before",
8286
8408
  after: "after",
8287
8409
  limit: 1,
@@ -8303,7 +8425,7 @@ await client.agents.folders.list("agent_id", {
8303
8425
  <dl>
8304
8426
  <dd>
8305
8427
 
8306
- **agentId:** `string`
8428
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8307
8429
 
8308
8430
  </dd>
8309
8431
  </dl>
@@ -8363,7 +8485,7 @@ Typically used to reset the working memory view for the agent.
8363
8485
  <dd>
8364
8486
 
8365
8487
  ```typescript
8366
- await client.agents.files.closeAll("agent_id");
8488
+ await client.agents.files.closeAll("agent-123e4567-e89b-42d3-8456-426614174000");
8367
8489
  ```
8368
8490
 
8369
8491
  </dd>
@@ -8379,7 +8501,7 @@ await client.agents.files.closeAll("agent_id");
8379
8501
  <dl>
8380
8502
  <dd>
8381
8503
 
8382
- **agentId:** `string`
8504
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8383
8505
 
8384
8506
  </dd>
8385
8507
  </dl>
@@ -8430,7 +8552,10 @@ Returns a list of file names that were closed due to LRU eviction.
8430
8552
  <dd>
8431
8553
 
8432
8554
  ```typescript
8433
- await client.agents.files.open("agent_id", "file_id");
8555
+ await client.agents.files.open(
8556
+ "agent-123e4567-e89b-42d3-8456-426614174000",
8557
+ "file-123e4567-e89b-42d3-8456-426614174000",
8558
+ );
8434
8559
  ```
8435
8560
 
8436
8561
  </dd>
@@ -8446,7 +8571,7 @@ await client.agents.files.open("agent_id", "file_id");
8446
8571
  <dl>
8447
8572
  <dd>
8448
8573
 
8449
- **agentId:** `string`
8574
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8450
8575
 
8451
8576
  </dd>
8452
8577
  </dl>
@@ -8454,7 +8579,7 @@ await client.agents.files.open("agent_id", "file_id");
8454
8579
  <dl>
8455
8580
  <dd>
8456
8581
 
8457
- **fileId:** `string`
8582
+ **fileId:** `string` — The ID of the file in the format 'file-<uuid4>'
8458
8583
 
8459
8584
  </dd>
8460
8585
  </dl>
@@ -8504,7 +8629,10 @@ The file will be removed from the agent's working memory view.
8504
8629
  <dd>
8505
8630
 
8506
8631
  ```typescript
8507
- await client.agents.files.close("agent_id", "file_id");
8632
+ await client.agents.files.close(
8633
+ "agent-123e4567-e89b-42d3-8456-426614174000",
8634
+ "file-123e4567-e89b-42d3-8456-426614174000",
8635
+ );
8508
8636
  ```
8509
8637
 
8510
8638
  </dd>
@@ -8520,7 +8648,7 @@ await client.agents.files.close("agent_id", "file_id");
8520
8648
  <dl>
8521
8649
  <dd>
8522
8650
 
8523
- **agentId:** `string`
8651
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8524
8652
 
8525
8653
  </dd>
8526
8654
  </dl>
@@ -8528,7 +8656,7 @@ await client.agents.files.close("agent_id", "file_id");
8528
8656
  <dl>
8529
8657
  <dd>
8530
8658
 
8531
- **fileId:** `string`
8659
+ **fileId:** `string` — The ID of the file in the format 'file-<uuid4>'
8532
8660
 
8533
8661
  </dd>
8534
8662
  </dl>
@@ -8575,7 +8703,7 @@ Get the files attached to an agent with their open/closed status (paginated).
8575
8703
  <dd>
8576
8704
 
8577
8705
  ```typescript
8578
- await client.agents.files.list("agent_id", {
8706
+ await client.agents.files.list("agent-123e4567-e89b-42d3-8456-426614174000", {
8579
8707
  before: "before",
8580
8708
  after: "after",
8581
8709
  limit: 1,
@@ -8599,7 +8727,7 @@ await client.agents.files.list("agent_id", {
8599
8727
  <dl>
8600
8728
  <dd>
8601
8729
 
8602
- **agentId:** `string`
8730
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8603
8731
 
8604
8732
  </dd>
8605
8733
  </dl>
@@ -8657,7 +8785,7 @@ This endpoint fetches the current memory state of the agent identified by the us
8657
8785
  <dd>
8658
8786
 
8659
8787
  ```typescript
8660
- await client.agents.coreMemory.retrieve("agent_id");
8788
+ await client.agents.coreMemory.retrieve("agent-123e4567-e89b-42d3-8456-426614174000");
8661
8789
  ```
8662
8790
 
8663
8791
  </dd>
@@ -8673,7 +8801,7 @@ await client.agents.coreMemory.retrieve("agent_id");
8673
8801
  <dl>
8674
8802
  <dd>
8675
8803
 
8676
- **agentId:** `string`
8804
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8677
8805
 
8678
8806
  </dd>
8679
8807
  </dl>
@@ -8722,7 +8850,7 @@ Retrieve a core memory block from an agent.
8722
8850
  <dd>
8723
8851
 
8724
8852
  ```typescript
8725
- await client.agents.blocks.retrieve("agent_id", "block_label");
8853
+ await client.agents.blocks.retrieve("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000");
8726
8854
  ```
8727
8855
 
8728
8856
  </dd>
@@ -8746,7 +8874,7 @@ await client.agents.blocks.retrieve("agent_id", "block_label");
8746
8874
  <dl>
8747
8875
  <dd>
8748
8876
 
8749
- **blockLabel:** `string`
8877
+ **blockLabel:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8750
8878
 
8751
8879
  </dd>
8752
8880
  </dl>
@@ -8793,7 +8921,7 @@ Updates a core memory block of an agent.
8793
8921
  <dd>
8794
8922
 
8795
8923
  ```typescript
8796
- await client.agents.blocks.modify("agent_id", "block_label", {});
8924
+ await client.agents.blocks.modify("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000", {});
8797
8925
  ```
8798
8926
 
8799
8927
  </dd>
@@ -8817,7 +8945,7 @@ await client.agents.blocks.modify("agent_id", "block_label", {});
8817
8945
  <dl>
8818
8946
  <dd>
8819
8947
 
8820
- **blockLabel:** `string`
8948
+ **blockLabel:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8821
8949
 
8822
8950
  </dd>
8823
8951
  </dl>
@@ -8872,7 +9000,7 @@ Retrieve the core memory blocks of a specific agent.
8872
9000
  <dd>
8873
9001
 
8874
9002
  ```typescript
8875
- await client.agents.blocks.list("agent_id", {
9003
+ await client.agents.blocks.list("agent-123e4567-e89b-42d3-8456-426614174000", {
8876
9004
  before: "before",
8877
9005
  after: "after",
8878
9006
  limit: 1,
@@ -8894,7 +9022,7 @@ await client.agents.blocks.list("agent_id", {
8894
9022
  <dl>
8895
9023
  <dd>
8896
9024
 
8897
- **agentId:** `string`
9025
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8898
9026
 
8899
9027
  </dd>
8900
9028
  </dl>
@@ -8949,7 +9077,10 @@ Attach a core memory block to an agent.
8949
9077
  <dd>
8950
9078
 
8951
9079
  ```typescript
8952
- await client.agents.blocks.attach("agent_id", "block_id");
9080
+ await client.agents.blocks.attach(
9081
+ "block-123e4567-e89b-42d3-8456-426614174000",
9082
+ "agent-123e4567-e89b-42d3-8456-426614174000",
9083
+ );
8953
9084
  ```
8954
9085
 
8955
9086
  </dd>
@@ -8965,7 +9096,7 @@ await client.agents.blocks.attach("agent_id", "block_id");
8965
9096
  <dl>
8966
9097
  <dd>
8967
9098
 
8968
- **agentId:** `string`
9099
+ **agentId:** `string` — The ID of the block in the format 'block-<uuid4>'
8969
9100
 
8970
9101
  </dd>
8971
9102
  </dl>
@@ -8973,7 +9104,7 @@ await client.agents.blocks.attach("agent_id", "block_id");
8973
9104
  <dl>
8974
9105
  <dd>
8975
9106
 
8976
- **blockId:** `string`
9107
+ **blockId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
8977
9108
 
8978
9109
  </dd>
8979
9110
  </dl>
@@ -9020,7 +9151,10 @@ Detach a core memory block from an agent.
9020
9151
  <dd>
9021
9152
 
9022
9153
  ```typescript
9023
- await client.agents.blocks.detach("agent_id", "block_id");
9154
+ await client.agents.blocks.detach(
9155
+ "block-123e4567-e89b-42d3-8456-426614174000",
9156
+ "agent-123e4567-e89b-42d3-8456-426614174000",
9157
+ );
9024
9158
  ```
9025
9159
 
9026
9160
  </dd>
@@ -9036,7 +9170,7 @@ await client.agents.blocks.detach("agent_id", "block_id");
9036
9170
  <dl>
9037
9171
  <dd>
9038
9172
 
9039
- **agentId:** `string`
9173
+ **agentId:** `string` — The ID of the block in the format 'block-<uuid4>'
9040
9174
 
9041
9175
  </dd>
9042
9176
  </dl>
@@ -9044,7 +9178,7 @@ await client.agents.blocks.detach("agent_id", "block_id");
9044
9178
  <dl>
9045
9179
  <dd>
9046
9180
 
9047
- **blockId:** `string`
9181
+ **blockId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9048
9182
 
9049
9183
  </dd>
9050
9184
  </dl>
@@ -9093,7 +9227,7 @@ Retrieve the memories in an agent's archival memory store (paginated query).
9093
9227
  <dd>
9094
9228
 
9095
9229
  ```typescript
9096
- await client.agents.passages.list("agent_id", {
9230
+ await client.agents.passages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
9097
9231
  after: "after",
9098
9232
  before: "before",
9099
9233
  limit: 1,
@@ -9115,7 +9249,7 @@ await client.agents.passages.list("agent_id", {
9115
9249
  <dl>
9116
9250
  <dd>
9117
9251
 
9118
- **agentId:** `string`
9252
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9119
9253
 
9120
9254
  </dd>
9121
9255
  </dl>
@@ -9170,7 +9304,7 @@ Insert a memory into an agent's archival memory store.
9170
9304
  <dd>
9171
9305
 
9172
9306
  ```typescript
9173
- await client.agents.passages.create("agent_id", {
9307
+ await client.agents.passages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
9174
9308
  text: "text",
9175
9309
  });
9176
9310
  ```
@@ -9188,7 +9322,7 @@ await client.agents.passages.create("agent_id", {
9188
9322
  <dl>
9189
9323
  <dd>
9190
9324
 
9191
- **agentId:** `string`
9325
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9192
9326
 
9193
9327
  </dd>
9194
9328
  </dl>
@@ -9247,7 +9381,7 @@ as the agent's archival_memory_search tool but is accessible for external API us
9247
9381
  <dd>
9248
9382
 
9249
9383
  ```typescript
9250
- await client.agents.passages.search("agent_id", {
9384
+ await client.agents.passages.search("agent-123e4567-e89b-42d3-8456-426614174000", {
9251
9385
  query: "query",
9252
9386
  tagMatchMode: "any",
9253
9387
  topK: 1,
@@ -9269,7 +9403,7 @@ await client.agents.passages.search("agent_id", {
9269
9403
  <dl>
9270
9404
  <dd>
9271
9405
 
9272
- **agentId:** `string`
9406
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9273
9407
 
9274
9408
  </dd>
9275
9409
  </dl>
@@ -9324,7 +9458,7 @@ Delete a memory from an agent's archival memory store.
9324
9458
  <dd>
9325
9459
 
9326
9460
  ```typescript
9327
- await client.agents.passages.delete("agent_id", "memory_id");
9461
+ await client.agents.passages.delete("agent_id", "agent-123e4567-e89b-42d3-8456-426614174000");
9328
9462
  ```
9329
9463
 
9330
9464
  </dd>
@@ -9348,7 +9482,7 @@ await client.agents.passages.delete("agent_id", "memory_id");
9348
9482
  <dl>
9349
9483
  <dd>
9350
9484
 
9351
- **memoryId:** `string`
9485
+ **memoryId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9352
9486
 
9353
9487
  </dd>
9354
9488
  </dl>
@@ -9453,7 +9587,7 @@ Retrieve message history for an agent.
9453
9587
  <dd>
9454
9588
 
9455
9589
  ```typescript
9456
- await client.agents.messages.list("agent_id", {
9590
+ await client.agents.messages.list("agent-123e4567-e89b-42d3-8456-426614174000", {
9457
9591
  before: "before",
9458
9592
  after: "after",
9459
9593
  limit: 1,
@@ -9480,7 +9614,7 @@ await client.agents.messages.list("agent_id", {
9480
9614
  <dl>
9481
9615
  <dd>
9482
9616
 
9483
- **agentId:** `string`
9617
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9484
9618
 
9485
9619
  </dd>
9486
9620
  </dl>
@@ -9536,7 +9670,7 @@ This endpoint accepts a message from a user and processes it through the agent.
9536
9670
  <dd>
9537
9671
 
9538
9672
  ```typescript
9539
- await client.agents.messages.create("agent_id", {
9673
+ await client.agents.messages.create("agent-123e4567-e89b-42d3-8456-426614174000", {
9540
9674
  messages: [
9541
9675
  {
9542
9676
  role: "user",
@@ -9564,7 +9698,7 @@ await client.agents.messages.create("agent_id", {
9564
9698
  <dl>
9565
9699
  <dd>
9566
9700
 
9567
- **agentId:** `string`
9701
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9568
9702
 
9569
9703
  </dd>
9570
9704
  </dl>
@@ -9619,9 +9753,13 @@ Update the details of a message associated with an agent.
9619
9753
  <dd>
9620
9754
 
9621
9755
  ```typescript
9622
- await client.agents.messages.modify("agent_id", "message_id", {
9623
- content: "content",
9624
- });
9756
+ await client.agents.messages.modify(
9757
+ "agent-123e4567-e89b-42d3-8456-426614174000",
9758
+ "message-123e4567-e89b-42d3-8456-426614174000",
9759
+ {
9760
+ content: "content",
9761
+ },
9762
+ );
9625
9763
  ```
9626
9764
 
9627
9765
  </dd>
@@ -9637,7 +9775,7 @@ await client.agents.messages.modify("agent_id", "message_id", {
9637
9775
  <dl>
9638
9776
  <dd>
9639
9777
 
9640
- **agentId:** `string`
9778
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9641
9779
 
9642
9780
  </dd>
9643
9781
  </dl>
@@ -9645,7 +9783,7 @@ await client.agents.messages.modify("agent_id", "message_id", {
9645
9783
  <dl>
9646
9784
  <dd>
9647
9785
 
9648
- **messageId:** `string`
9786
+ **messageId:** `string` — The ID of the message in the format 'message-<uuid4>'
9649
9787
 
9650
9788
  </dd>
9651
9789
  </dl>
@@ -9702,7 +9840,7 @@ It will stream the steps of the response always, and stream the tokens if 'strea
9702
9840
  <dd>
9703
9841
 
9704
9842
  ```typescript
9705
- const response = await client.agents.messages.createStream("agent_id", {
9843
+ const response = await client.agents.messages.createStream("agent-123e4567-e89b-42d3-8456-426614174000", {
9706
9844
  messages: [
9707
9845
  {
9708
9846
  role: "user",
@@ -9733,7 +9871,7 @@ for await (const item of response) {
9733
9871
  <dl>
9734
9872
  <dd>
9735
9873
 
9736
- **agentId:** `string`
9874
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9737
9875
 
9738
9876
  </dd>
9739
9877
  </dl>
@@ -9790,7 +9928,7 @@ Note to cancel active runs associated with an agent, redis is required.
9790
9928
  <dd>
9791
9929
 
9792
9930
  ```typescript
9793
- await client.agents.messages.cancel("agent_id");
9931
+ await client.agents.messages.cancel("agent-123e4567-e89b-42d3-8456-426614174000");
9794
9932
  ```
9795
9933
 
9796
9934
  </dd>
@@ -9806,7 +9944,7 @@ await client.agents.messages.cancel("agent_id");
9806
9944
  <dl>
9807
9945
  <dd>
9808
9946
 
9809
- **agentId:** `string`
9947
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9810
9948
 
9811
9949
  </dd>
9812
9950
  </dl>
@@ -9929,7 +10067,7 @@ This is "asynchronous" in the sense that it's a background run and explicitly mu
9929
10067
  <dd>
9930
10068
 
9931
10069
  ```typescript
9932
- await client.agents.messages.createAsync("agent_id", {
10070
+ await client.agents.messages.createAsync("agent-123e4567-e89b-42d3-8456-426614174000", {
9933
10071
  messages: [
9934
10072
  {
9935
10073
  role: "user",
@@ -9957,7 +10095,7 @@ await client.agents.messages.createAsync("agent_id", {
9957
10095
  <dl>
9958
10096
  <dd>
9959
10097
 
9960
- **agentId:** `string`
10098
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
9961
10099
 
9962
10100
  </dd>
9963
10101
  </dl>
@@ -10012,7 +10150,7 @@ Resets the messages for an agent
10012
10150
  <dd>
10013
10151
 
10014
10152
  ```typescript
10015
- await client.agents.messages.reset("agent_id", {
10153
+ await client.agents.messages.reset("agent-123e4567-e89b-42d3-8456-426614174000", {
10016
10154
  addDefaultInitialMessages: true,
10017
10155
  });
10018
10156
  ```
@@ -10030,7 +10168,7 @@ await client.agents.messages.reset("agent_id", {
10030
10168
  <dl>
10031
10169
  <dd>
10032
10170
 
10033
- **agentId:** `string`
10171
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
10034
10172
 
10035
10173
  </dd>
10036
10174
  </dl>
@@ -10089,7 +10227,7 @@ be sent to the LLM provider. Useful for debugging and inspection.
10089
10227
  <dd>
10090
10228
 
10091
10229
  ```typescript
10092
- await client.agents.messages.preview("agent_id", {
10230
+ await client.agents.messages.preview("agent-123e4567-e89b-42d3-8456-426614174000", {
10093
10231
  messages: [
10094
10232
  {
10095
10233
  role: "user",
@@ -10117,7 +10255,7 @@ await client.agents.messages.preview("agent_id", {
10117
10255
  <dl>
10118
10256
  <dd>
10119
10257
 
10120
- **agentId:** `string`
10258
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
10121
10259
 
10122
10260
  </dd>
10123
10261
  </dl>
@@ -10175,7 +10313,7 @@ truncating and compressing it down to the specified `max_message_length`.
10175
10313
  <dd>
10176
10314
 
10177
10315
  ```typescript
10178
- await client.agents.messages.summarize("agent_id", {
10316
+ await client.agents.messages.summarize("agent-123e4567-e89b-42d3-8456-426614174000", {
10179
10317
  maxMessageLength: 1,
10180
10318
  });
10181
10319
  ```
@@ -10193,7 +10331,7 @@ await client.agents.messages.summarize("agent_id", {
10193
10331
  <dl>
10194
10332
  <dd>
10195
10333
 
10196
- **agentId:** `string`
10334
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
10197
10335
 
10198
10336
  </dd>
10199
10337
  </dl>
@@ -10250,7 +10388,7 @@ Lists the groups for an agent
10250
10388
  <dd>
10251
10389
 
10252
10390
  ```typescript
10253
- await client.agents.groups.list("agent_id", {
10391
+ await client.agents.groups.list("agent-123e4567-e89b-42d3-8456-426614174000", {
10254
10392
  managerType: "manager_type",
10255
10393
  before: "before",
10256
10394
  after: "after",
@@ -10273,7 +10411,7 @@ await client.agents.groups.list("agent_id", {
10273
10411
  <dl>
10274
10412
  <dd>
10275
10413
 
10276
- **agentId:** `string`
10414
+ **agentId:** `string` — The ID of the agent in the format 'agent-<uuid4>'
10277
10415
 
10278
10416
  </dd>
10279
10417
  </dl>
@@ -10300,214 +10438,6 @@ await client.agents.groups.list("agent_id", {
10300
10438
  </dl>
10301
10439
  </details>
10302
10440
 
10303
- ## Agents Templates
10304
-
10305
- <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">migrate</a>(agentId, { ...params }) -> Letta.TemplatesMigrateResponse</code></summary>
10306
- <dl>
10307
- <dd>
10308
-
10309
- #### 📝 Description
10310
-
10311
- <dl>
10312
- <dd>
10313
-
10314
- <dl>
10315
- <dd>
10316
-
10317
- <Note>This endpoint is only available on Letta Cloud.</Note>
10318
-
10319
- Migrate an agent to a new versioned agent template.
10320
-
10321
- </dd>
10322
- </dl>
10323
- </dd>
10324
- </dl>
10325
-
10326
- #### 🔌 Usage
10327
-
10328
- <dl>
10329
- <dd>
10330
-
10331
- <dl>
10332
- <dd>
10333
-
10334
- ```typescript
10335
- await client.agents.templates.migrate("agent_id", {
10336
- toTemplate: "to_template",
10337
- preserveCoreMemories: true,
10338
- });
10339
- ```
10340
-
10341
- </dd>
10342
- </dl>
10343
- </dd>
10344
- </dl>
10345
-
10346
- #### ⚙️ Parameters
10347
-
10348
- <dl>
10349
- <dd>
10350
-
10351
- <dl>
10352
- <dd>
10353
-
10354
- **agentId:** `string`
10355
-
10356
- </dd>
10357
- </dl>
10358
-
10359
- <dl>
10360
- <dd>
10361
-
10362
- **request:** `Letta.agents.TemplatesMigrateRequest`
10363
-
10364
- </dd>
10365
- </dl>
10366
-
10367
- <dl>
10368
- <dd>
10369
-
10370
- **requestOptions:** `Templates.RequestOptions`
10371
-
10372
- </dd>
10373
- </dl>
10374
- </dd>
10375
- </dl>
10376
-
10377
- </dd>
10378
- </dl>
10379
- </details>
10380
-
10381
- <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">create</a>(agentId) -> void</code></summary>
10382
- <dl>
10383
- <dd>
10384
-
10385
- #### 📝 Description
10386
-
10387
- <dl>
10388
- <dd>
10389
-
10390
- <dl>
10391
- <dd>
10392
-
10393
- <Note>This endpoint is only available on Letta Cloud.</Note>
10394
-
10395
- Creates a template from an agent.
10396
-
10397
- </dd>
10398
- </dl>
10399
- </dd>
10400
- </dl>
10401
-
10402
- #### 🔌 Usage
10403
-
10404
- <dl>
10405
- <dd>
10406
-
10407
- <dl>
10408
- <dd>
10409
-
10410
- ```typescript
10411
- await client.agents.templates.create("agent_id");
10412
- ```
10413
-
10414
- </dd>
10415
- </dl>
10416
- </dd>
10417
- </dl>
10418
-
10419
- #### ⚙️ Parameters
10420
-
10421
- <dl>
10422
- <dd>
10423
-
10424
- <dl>
10425
- <dd>
10426
-
10427
- **agentId:** `string`
10428
-
10429
- </dd>
10430
- </dl>
10431
-
10432
- <dl>
10433
- <dd>
10434
-
10435
- **requestOptions:** `Templates.RequestOptions`
10436
-
10437
- </dd>
10438
- </dl>
10439
- </dd>
10440
- </dl>
10441
-
10442
- </dd>
10443
- </dl>
10444
- </details>
10445
-
10446
- <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">createVersion</a>(agentId) -> void</code></summary>
10447
- <dl>
10448
- <dd>
10449
-
10450
- #### 📝 Description
10451
-
10452
- <dl>
10453
- <dd>
10454
-
10455
- <dl>
10456
- <dd>
10457
-
10458
- <Note>This endpoint is only available on Letta Cloud.</Note>
10459
-
10460
- Creates a new version of the template version of the agent.
10461
-
10462
- </dd>
10463
- </dl>
10464
- </dd>
10465
- </dl>
10466
-
10467
- #### 🔌 Usage
10468
-
10469
- <dl>
10470
- <dd>
10471
-
10472
- <dl>
10473
- <dd>
10474
-
10475
- ```typescript
10476
- await client.agents.templates.createVersion("agent_id");
10477
- ```
10478
-
10479
- </dd>
10480
- </dl>
10481
- </dd>
10482
- </dl>
10483
-
10484
- #### ⚙️ Parameters
10485
-
10486
- <dl>
10487
- <dd>
10488
-
10489
- <dl>
10490
- <dd>
10491
-
10492
- **agentId:** `string`
10493
-
10494
- </dd>
10495
- </dl>
10496
-
10497
- <dl>
10498
- <dd>
10499
-
10500
- **requestOptions:** `Templates.RequestOptions`
10501
-
10502
- </dd>
10503
- </dl>
10504
- </dd>
10505
- </dl>
10506
-
10507
- </dd>
10508
- </dl>
10509
- </details>
10510
-
10511
10441
  ## Agents MemoryVariables
10512
10442
 
10513
10443
  <details><summary><code>client.agents.memoryVariables.<a href="/src/api/resources/agents/resources/memoryVariables/client/Client.ts">list</a>(agentId) -> Letta.MemoryVariablesListResponse</code></summary>
@@ -10686,7 +10616,7 @@ Raises a 404 if the block does not exist.
10686
10616
  <dd>
10687
10617
 
10688
10618
  ```typescript
10689
- await client.blocks.agents.list("block_id", {
10619
+ await client.blocks.agents.list("block-123e4567-e89b-42d3-8456-426614174000", {
10690
10620
  before: "before",
10691
10621
  after: "after",
10692
10622
  limit: 1,
@@ -10708,7 +10638,7 @@ await client.blocks.agents.list("block_id", {
10708
10638
  <dl>
10709
10639
  <dd>
10710
10640
 
10711
- **blockId:** `string`
10641
+ **blockId:** `string` — The ID of the block in the format 'block-<uuid4>'
10712
10642
 
10713
10643
  </dd>
10714
10644
  </dl>
@@ -11156,7 +11086,7 @@ Retrieve message history for an agent.
11156
11086
  <dd>
11157
11087
 
11158
11088
  ```typescript
11159
- await client.groups.messages.list("group_id", {
11089
+ await client.groups.messages.list("group-123e4567-e89b-42d3-8456-426614174000", {
11160
11090
  before: "before",
11161
11091
  after: "after",
11162
11092
  limit: 1,
@@ -11181,7 +11111,7 @@ await client.groups.messages.list("group_id", {
11181
11111
  <dl>
11182
11112
  <dd>
11183
11113
 
11184
- **groupId:** `string`
11114
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
11185
11115
 
11186
11116
  </dd>
11187
11117
  </dl>
@@ -11237,7 +11167,7 @@ This endpoint accepts a message from a user and processes it through through age
11237
11167
  <dd>
11238
11168
 
11239
11169
  ```typescript
11240
- await client.groups.messages.create("group_id", {
11170
+ await client.groups.messages.create("group-123e4567-e89b-42d3-8456-426614174000", {
11241
11171
  messages: [
11242
11172
  {
11243
11173
  role: "user",
@@ -11265,7 +11195,7 @@ await client.groups.messages.create("group_id", {
11265
11195
  <dl>
11266
11196
  <dd>
11267
11197
 
11268
- **groupId:** `string`
11198
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
11269
11199
 
11270
11200
  </dd>
11271
11201
  </dl>
@@ -11322,7 +11252,7 @@ It will stream the steps of the response always, and stream the tokens if 'strea
11322
11252
  <dd>
11323
11253
 
11324
11254
  ```typescript
11325
- const response = await client.groups.messages.createStream("group_id", {
11255
+ const response = await client.groups.messages.createStream("group-123e4567-e89b-42d3-8456-426614174000", {
11326
11256
  messages: [
11327
11257
  {
11328
11258
  role: "user",
@@ -11353,7 +11283,7 @@ for await (const item of response) {
11353
11283
  <dl>
11354
11284
  <dd>
11355
11285
 
11356
- **groupId:** `string`
11286
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
11357
11287
 
11358
11288
  </dd>
11359
11289
  </dl>
@@ -11408,9 +11338,13 @@ Update the details of a message associated with an agent.
11408
11338
  <dd>
11409
11339
 
11410
11340
  ```typescript
11411
- await client.groups.messages.modify("group_id", "message_id", {
11412
- content: "content",
11413
- });
11341
+ await client.groups.messages.modify(
11342
+ "group-123e4567-e89b-42d3-8456-426614174000",
11343
+ "message-123e4567-e89b-42d3-8456-426614174000",
11344
+ {
11345
+ content: "content",
11346
+ },
11347
+ );
11414
11348
  ```
11415
11349
 
11416
11350
  </dd>
@@ -11426,7 +11360,7 @@ await client.groups.messages.modify("group_id", "message_id", {
11426
11360
  <dl>
11427
11361
  <dd>
11428
11362
 
11429
- **groupId:** `string`
11363
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
11430
11364
 
11431
11365
  </dd>
11432
11366
  </dl>
@@ -11434,7 +11368,7 @@ await client.groups.messages.modify("group_id", "message_id", {
11434
11368
  <dl>
11435
11369
  <dd>
11436
11370
 
11437
- **messageId:** `string`
11371
+ **messageId:** `string` — The ID of the message in the format 'message-<uuid4>'
11438
11372
 
11439
11373
  </dd>
11440
11374
  </dl>
@@ -11489,7 +11423,7 @@ Delete the group messages for all agents that are part of the multi-agent group.
11489
11423
  <dd>
11490
11424
 
11491
11425
  ```typescript
11492
- await client.groups.messages.reset("group_id");
11426
+ await client.groups.messages.reset("group-123e4567-e89b-42d3-8456-426614174000");
11493
11427
  ```
11494
11428
 
11495
11429
  </dd>
@@ -11505,7 +11439,7 @@ await client.groups.messages.reset("group_id");
11505
11439
  <dl>
11506
11440
  <dd>
11507
11441
 
11508
- **groupId:** `string`
11442
+ **groupId:** `string` — The ID of the group in the format 'group-<uuid4>'
11509
11443
 
11510
11444
  </dd>
11511
11445
  </dl>
@@ -11539,7 +11473,7 @@ await client.groups.messages.reset("group_id");
11539
11473
  <dd>
11540
11474
 
11541
11475
  ```typescript
11542
- await client.identities.properties.upsert("identity_id", [
11476
+ await client.identities.properties.upsert("identity-123e4567-e89b-42d3-8456-426614174000", [
11543
11477
  {
11544
11478
  key: "key",
11545
11479
  value: "value",
@@ -11561,7 +11495,7 @@ await client.identities.properties.upsert("identity_id", [
11561
11495
  <dl>
11562
11496
  <dd>
11563
11497
 
11564
- **identityId:** `string`
11498
+ **identityId:** `string` — The ID of the identity in the format 'identity-<uuid4>'
11565
11499
 
11566
11500
  </dd>
11567
11501
  </dl>
@@ -11618,7 +11552,7 @@ Get all agents associated with the specified identity.
11618
11552
  <dd>
11619
11553
 
11620
11554
  ```typescript
11621
- await client.identities.agents.list("identity_id", {
11555
+ await client.identities.agents.list("identity-123e4567-e89b-42d3-8456-426614174000", {
11622
11556
  before: "before",
11623
11557
  after: "after",
11624
11558
  limit: 1,
@@ -11640,7 +11574,7 @@ await client.identities.agents.list("identity_id", {
11640
11574
  <dl>
11641
11575
  <dd>
11642
11576
 
11643
- **identityId:** `string`
11577
+ **identityId:** `string` — The ID of the identity in the format 'identity-<uuid4>'
11644
11578
 
11645
11579
  </dd>
11646
11580
  </dl>
@@ -11697,7 +11631,7 @@ Get all blocks associated with the specified identity.
11697
11631
  <dd>
11698
11632
 
11699
11633
  ```typescript
11700
- await client.identities.blocks.list("identity_id", {
11634
+ await client.identities.blocks.list("identity-123e4567-e89b-42d3-8456-426614174000", {
11701
11635
  before: "before",
11702
11636
  after: "after",
11703
11637
  limit: 1,
@@ -11719,7 +11653,7 @@ await client.identities.blocks.list("identity_id", {
11719
11653
  <dl>
11720
11654
  <dd>
11721
11655
 
11722
- **identityId:** `string`
11656
+ **identityId:** `string` — The ID of the identity in the format 'identity-<uuid4>'
11723
11657
 
11724
11658
  </dd>
11725
11659
  </dl>
@@ -12056,10 +11990,14 @@ Upload a file to a data source.
12056
11990
  <dd>
12057
11991
 
12058
11992
  ```typescript
12059
- await client.sources.files.upload(fs.createReadStream("/path/to/your/file"), "source_id", {
12060
- duplicateHandling: "skip",
12061
- name: "name",
12062
- });
11993
+ await client.sources.files.upload(
11994
+ fs.createReadStream("/path/to/your/file"),
11995
+ "source-123e4567-e89b-42d3-8456-426614174000",
11996
+ {
11997
+ duplicateHandling: "skip",
11998
+ name: "name",
11999
+ },
12000
+ );
12063
12001
  ```
12064
12002
 
12065
12003
  </dd>
@@ -12138,7 +12076,7 @@ List paginated files associated with a data source.
12138
12076
  <dd>
12139
12077
 
12140
12078
  ```typescript
12141
- await client.sources.files.list("source_id", {
12079
+ await client.sources.files.list("source-123e4567-e89b-42d3-8456-426614174000", {
12142
12080
  limit: 1,
12143
12081
  after: "after",
12144
12082
  includeContent: true,
@@ -12159,7 +12097,7 @@ await client.sources.files.list("source_id", {
12159
12097
  <dl>
12160
12098
  <dd>
12161
12099
 
12162
- **sourceId:** `string`
12100
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
12163
12101
 
12164
12102
  </dd>
12165
12103
  </dl>
@@ -12214,7 +12152,10 @@ Delete a data source.
12214
12152
  <dd>
12215
12153
 
12216
12154
  ```typescript
12217
- await client.sources.files.delete("source_id", "file_id");
12155
+ await client.sources.files.delete(
12156
+ "source-123e4567-e89b-42d3-8456-426614174000",
12157
+ "file-123e4567-e89b-42d3-8456-426614174000",
12158
+ );
12218
12159
  ```
12219
12160
 
12220
12161
  </dd>
@@ -12230,7 +12171,7 @@ await client.sources.files.delete("source_id", "file_id");
12230
12171
  <dl>
12231
12172
  <dd>
12232
12173
 
12233
- **sourceId:** `string`
12174
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
12234
12175
 
12235
12176
  </dd>
12236
12177
  </dl>
@@ -12238,7 +12179,7 @@ await client.sources.files.delete("source_id", "file_id");
12238
12179
  <dl>
12239
12180
  <dd>
12240
12181
 
12241
- **fileId:** `string`
12182
+ **fileId:** `string` — The ID of the file in the format 'file-<uuid4>'
12242
12183
 
12243
12184
  </dd>
12244
12185
  </dl>
@@ -12287,7 +12228,7 @@ List all passages associated with a data source.
12287
12228
  <dd>
12288
12229
 
12289
12230
  ```typescript
12290
- await client.sources.passages.list("source_id", {
12231
+ await client.sources.passages.list("source-123e4567-e89b-42d3-8456-426614174000", {
12291
12232
  after: "after",
12292
12233
  before: "before",
12293
12234
  limit: 1,
@@ -12307,7 +12248,7 @@ await client.sources.passages.list("source_id", {
12307
12248
  <dl>
12308
12249
  <dd>
12309
12250
 
12310
- **sourceId:** `string`
12251
+ **sourceId:** `string` — The ID of the source in the format 'source-<uuid4>'
12311
12252
 
12312
12253
  </dd>
12313
12254
  </dl>
@@ -12364,7 +12305,7 @@ Get step metrics by step ID.
12364
12305
  <dd>
12365
12306
 
12366
12307
  ```typescript
12367
- await client.steps.metrics.retrieve("step_id");
12308
+ await client.steps.metrics.retrieve("step-123e4567-e89b-42d3-8456-426614174000");
12368
12309
  ```
12369
12310
 
12370
12311
  </dd>
@@ -12380,7 +12321,7 @@ await client.steps.metrics.retrieve("step_id");
12380
12321
  <dl>
12381
12322
  <dd>
12382
12323
 
12383
- **stepId:** `string`
12324
+ **stepId:** `string` — The ID of the step in the format 'step-<uuid4>'
12384
12325
 
12385
12326
  </dd>
12386
12327
  </dl>
@@ -12414,7 +12355,7 @@ await client.steps.metrics.retrieve("step_id");
12414
12355
  <dd>
12415
12356
 
12416
12357
  ```typescript
12417
- await client.steps.trace.retrieve("step_id");
12358
+ await client.steps.trace.retrieve("step-123e4567-e89b-42d3-8456-426614174000");
12418
12359
  ```
12419
12360
 
12420
12361
  </dd>
@@ -12430,7 +12371,7 @@ await client.steps.trace.retrieve("step_id");
12430
12371
  <dl>
12431
12372
  <dd>
12432
12373
 
12433
- **stepId:** `string`
12374
+ **stepId:** `string` — The ID of the step in the format 'step-<uuid4>'
12434
12375
 
12435
12376
  </dd>
12436
12377
  </dl>
@@ -12479,7 +12420,7 @@ Modify feedback for a given step.
12479
12420
  <dd>
12480
12421
 
12481
12422
  ```typescript
12482
- await client.steps.feedback.create("step_id");
12423
+ await client.steps.feedback.create("step-123e4567-e89b-42d3-8456-426614174000");
12483
12424
  ```
12484
12425
 
12485
12426
  </dd>
@@ -12495,7 +12436,7 @@ await client.steps.feedback.create("step_id");
12495
12436
  <dl>
12496
12437
  <dd>
12497
12438
 
12498
- **stepId:** `string`
12439
+ **stepId:** `string` — The ID of the step in the format 'step-<uuid4>'
12499
12440
 
12500
12441
  </dd>
12501
12442
  </dl>
@@ -12552,7 +12493,7 @@ List messages for a given step.
12552
12493
  <dd>
12553
12494
 
12554
12495
  ```typescript
12555
- await client.steps.messages.list("step_id", {
12496
+ await client.steps.messages.list("step-123e4567-e89b-42d3-8456-426614174000", {
12556
12497
  before: "before",
12557
12498
  after: "after",
12558
12499
  limit: 1,
@@ -12574,7 +12515,7 @@ await client.steps.messages.list("step_id", {
12574
12515
  <dl>
12575
12516
  <dd>
12576
12517
 
12577
- **stepId:** `string`
12518
+ **stepId:** `string` — The ID of the step in the format 'step-<uuid4>'
12578
12519
 
12579
12520
  </dd>
12580
12521
  </dl>