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

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 (710) 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 +0 -3
  9. package/api/resources/agents/client/Client.js +11 -16
  10. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  11. package/api/resources/agents/resources/context/client/Client.js +1 -1
  12. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  13. package/api/resources/agents/resources/files/client/Client.js +4 -4
  14. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  15. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  16. package/api/resources/agents/resources/index.d.ts +0 -3
  17. package/api/resources/agents/resources/index.js +1 -4
  18. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  19. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  20. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  21. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  22. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  23. package/api/resources/archives/client/Client.js +3 -3
  24. package/api/resources/batches/client/Client.js +4 -4
  25. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  26. package/api/resources/blocks/client/Client.js +6 -6
  27. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  28. package/api/resources/chat/client/Client.d.ts +61 -0
  29. package/api/resources/chat/client/Client.js +158 -0
  30. package/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
  31. package/api/resources/chat/client/requests/index.d.ts +1 -0
  32. package/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
  33. package/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
  34. package/api/resources/chat/types/index.d.ts +2 -0
  35. package/api/resources/{agents/resources/templates → chat}/types/index.js +2 -1
  36. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  37. package/api/resources/folders/client/Client.js +8 -8
  38. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  39. package/api/resources/folders/resources/files/client/Client.js +3 -3
  40. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  41. package/api/resources/groups/client/Client.js +6 -6
  42. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  43. package/api/resources/health/client/Client.js +1 -1
  44. package/api/resources/identities/client/Client.js +7 -7
  45. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  46. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  47. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  48. package/api/resources/index.d.ts +3 -0
  49. package/api/resources/index.js +4 -1
  50. package/api/resources/jobs/client/Client.js +5 -5
  51. package/api/resources/models/client/Client.js +2 -2
  52. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  53. package/api/resources/projects/client/Client.js +1 -1
  54. package/api/resources/providers/client/Client.js +7 -7
  55. package/api/resources/runs/client/Client.js +6 -6
  56. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  57. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  58. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  59. package/api/resources/sources/client/Client.js +10 -10
  60. package/api/resources/sources/resources/files/client/Client.js +3 -3
  61. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  62. package/api/resources/steps/client/Client.js +2 -2
  63. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  64. package/api/resources/steps/resources/messages/client/Client.js +1 -1
  65. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  66. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  67. package/api/resources/tags/client/Client.js +1 -1
  68. package/api/resources/telemetry/client/Client.js +1 -1
  69. package/api/resources/templates/client/Client.d.ts +1 -1
  70. package/api/resources/templates/client/Client.js +14 -14
  71. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  72. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
  73. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
  74. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
  75. package/api/resources/templates/types/index.d.ts +2 -0
  76. package/api/resources/templates/types/index.js +2 -0
  77. package/api/resources/tools/client/Client.js +17 -17
  78. package/api/resources/voice/client/Client.d.ts +8 -0
  79. package/api/resources/voice/client/Client.js +11 -1
  80. package/api/types/Annotation.d.ts +10 -0
  81. package/api/types/AnnotationUrlCitation.d.ts +11 -0
  82. package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → api/types/Audio.d.ts} +2 -2
  83. package/api/types/ChatCompletion.d.ts +16 -0
  84. package/api/types/ChatCompletion.js +5 -0
  85. package/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
  86. package/api/types/ChatCompletionAssistantMessageParam.js +5 -0
  87. package/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
  88. package/api/types/ChatCompletionAssistantMessageParamContent.js +5 -0
  89. package/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
  90. package/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
  91. package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  92. package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
  93. package/api/types/ChatCompletionAudio.d.ts +11 -0
  94. package/api/types/ChatCompletionAudio.js +5 -0
  95. package/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
  96. package/api/types/ChatCompletionContentPartImageParam.js +5 -0
  97. package/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
  98. package/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
  99. package/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
  100. package/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
  101. package/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
  102. package/api/types/ChatCompletionContentPartTextParam.js +5 -0
  103. package/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
  104. package/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
  105. package/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
  106. package/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
  107. package/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
  108. package/api/types/ChatCompletionFunctionMessageParam.js +5 -0
  109. package/api/types/ChatCompletionMessage.d.ts +15 -0
  110. package/api/types/ChatCompletionMessage.js +5 -0
  111. package/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
  112. package/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
  113. package/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  114. package/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
  115. package/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  116. package/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  117. package/{dist/api/types/ChatCompletionMessageFunctionToolCall.d.ts → api/types/ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  118. package/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  119. package/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  120. package/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
  121. package/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
  122. package/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
  123. package/api/types/ChatCompletionServiceTier.d.ts +11 -0
  124. package/api/types/ChatCompletionServiceTier.js +13 -0
  125. package/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
  126. package/api/types/ChatCompletionSystemMessageParam.js +5 -0
  127. package/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
  128. package/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
  129. package/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
  130. package/api/types/ChatCompletionTokenLogprob.js +5 -0
  131. package/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
  132. package/api/types/ChatCompletionToolMessageParam.js +5 -0
  133. package/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
  134. package/api/types/ChatCompletionToolMessageParamContent.js +5 -0
  135. package/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
  136. package/api/types/ChatCompletionUserMessageParam.js +5 -0
  137. package/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
  138. package/api/types/ChatCompletionUserMessageParamContent.js +5 -0
  139. package/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
  140. package/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
  141. package/api/types/Choice.d.ts +12 -0
  142. package/api/types/Choice.js +5 -0
  143. package/api/types/ChoiceFinishReason.d.ts +11 -0
  144. package/api/types/ChoiceFinishReason.js +13 -0
  145. package/api/types/ChoiceLogprobs.d.ts +10 -0
  146. package/api/types/ChoiceLogprobs.js +5 -0
  147. package/api/types/CompletionTokensDetails.d.ts +11 -0
  148. package/api/types/CompletionTokensDetails.js +5 -0
  149. package/api/types/CompletionUsage.d.ts +13 -0
  150. package/api/types/CompletionUsage.js +5 -0
  151. package/api/types/CustomInput.d.ts +7 -0
  152. package/api/types/CustomInput.js +5 -0
  153. package/api/types/CustomOutput.d.ts +9 -0
  154. package/api/types/CustomOutput.js +5 -0
  155. package/api/types/FileFile.d.ts +8 -0
  156. package/api/types/FileFile.js +5 -0
  157. package/api/types/File_.d.ts +8 -0
  158. package/api/types/File_.js +5 -0
  159. package/api/types/FunctionCallInput.d.ts +7 -0
  160. package/api/types/FunctionCallInput.js +5 -0
  161. package/api/types/FunctionCallOutput.d.ts +9 -0
  162. package/api/types/FunctionCallOutput.js +5 -0
  163. package/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
  164. package/api/types/FunctionOutput.js +5 -0
  165. package/api/types/ImageUrl.d.ts +8 -0
  166. package/api/types/ImageUrl.js +5 -0
  167. package/api/types/ImageUrlDetail.d.ts +9 -0
  168. package/api/types/ImageUrlDetail.js +11 -0
  169. package/api/types/InputAudio.d.ts +8 -0
  170. package/api/types/InputAudio.js +5 -0
  171. package/api/types/InputAudioFormat.d.ts +8 -0
  172. package/api/types/InputAudioFormat.js +10 -0
  173. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +3 -1
  174. package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
  175. package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
  176. package/api/types/LlmConfig.d.ts +2 -0
  177. package/api/types/Message.d.ts +1 -1
  178. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  179. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  180. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
  181. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  182. package/api/types/PromptTokensDetails.d.ts +9 -0
  183. package/api/types/PromptTokensDetails.js +5 -0
  184. package/api/types/TopLogprob.d.ts +10 -0
  185. package/api/types/TopLogprob.js +5 -0
  186. package/api/types/index.d.ts +53 -2
  187. package/api/types/index.js +53 -2
  188. package/dist/Client.d.ts +3 -0
  189. package/dist/Client.js +37 -32
  190. package/dist/api/errors/GoneError.d.ts +8 -0
  191. package/dist/api/errors/GoneError.js +52 -0
  192. package/dist/api/errors/index.d.ts +1 -0
  193. package/dist/api/errors/index.js +1 -0
  194. package/dist/api/resources/agents/client/Client.d.ts +0 -3
  195. package/dist/api/resources/agents/client/Client.js +11 -16
  196. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  197. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  198. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  199. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  200. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  201. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  202. package/dist/api/resources/agents/resources/index.d.ts +0 -3
  203. package/dist/api/resources/agents/resources/index.js +1 -4
  204. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  205. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  206. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  207. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  208. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  209. package/dist/api/resources/archives/client/Client.js +3 -3
  210. package/dist/api/resources/batches/client/Client.js +4 -4
  211. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  212. package/dist/api/resources/blocks/client/Client.js +6 -6
  213. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  214. package/dist/api/resources/chat/client/Client.d.ts +61 -0
  215. package/dist/api/resources/chat/client/Client.js +158 -0
  216. package/dist/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
  217. package/dist/api/resources/chat/client/requests/ChatCompletionRequest.js +5 -0
  218. package/dist/api/resources/chat/client/requests/index.d.ts +1 -0
  219. package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
  220. package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.js +5 -0
  221. package/dist/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
  222. package/dist/api/resources/chat/types/ChatCompletionRequestStop.js +5 -0
  223. package/dist/api/resources/chat/types/index.d.ts +2 -0
  224. package/dist/api/resources/chat/types/index.js +18 -0
  225. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  226. package/dist/api/resources/folders/client/Client.js +8 -8
  227. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  228. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  229. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  230. package/dist/api/resources/groups/client/Client.js +6 -6
  231. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  232. package/dist/api/resources/health/client/Client.js +1 -1
  233. package/dist/api/resources/identities/client/Client.js +7 -7
  234. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  235. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  236. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  237. package/dist/api/resources/index.d.ts +3 -0
  238. package/dist/api/resources/index.js +4 -1
  239. package/dist/api/resources/jobs/client/Client.js +5 -5
  240. package/dist/api/resources/models/client/Client.js +2 -2
  241. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  242. package/dist/api/resources/projects/client/Client.js +1 -1
  243. package/dist/api/resources/providers/client/Client.js +7 -7
  244. package/dist/api/resources/runs/client/Client.js +6 -6
  245. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  246. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  247. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  248. package/dist/api/resources/sources/client/Client.js +10 -10
  249. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  250. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  251. package/dist/api/resources/steps/client/Client.js +2 -2
  252. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  253. package/dist/api/resources/steps/resources/messages/client/Client.js +1 -1
  254. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  255. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  256. package/dist/api/resources/tags/client/Client.js +1 -1
  257. package/dist/api/resources/telemetry/client/Client.js +1 -1
  258. package/dist/api/resources/templates/client/Client.d.ts +1 -1
  259. package/dist/api/resources/templates/client/Client.js +14 -14
  260. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  261. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
  262. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
  263. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +5 -0
  264. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
  265. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +5 -0
  266. package/dist/api/resources/templates/types/index.d.ts +2 -0
  267. package/dist/api/resources/templates/types/index.js +2 -0
  268. package/dist/api/resources/tools/client/Client.js +17 -17
  269. package/dist/api/resources/voice/client/Client.d.ts +8 -0
  270. package/dist/api/resources/voice/client/Client.js +11 -1
  271. package/dist/api/types/Annotation.d.ts +10 -0
  272. package/dist/api/types/Annotation.js +5 -0
  273. package/dist/api/types/AnnotationUrlCitation.d.ts +11 -0
  274. package/dist/api/types/AnnotationUrlCitation.js +5 -0
  275. package/{api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → dist/api/types/Audio.d.ts} +2 -2
  276. package/dist/api/types/Audio.js +5 -0
  277. package/dist/api/types/ChatCompletion.d.ts +16 -0
  278. package/dist/api/types/ChatCompletion.js +5 -0
  279. package/dist/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
  280. package/dist/api/types/ChatCompletionAssistantMessageParam.js +5 -0
  281. package/dist/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
  282. package/dist/api/types/ChatCompletionAssistantMessageParamContent.js +5 -0
  283. package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
  284. package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
  285. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  286. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
  287. package/dist/api/types/ChatCompletionAudio.d.ts +11 -0
  288. package/dist/api/types/ChatCompletionAudio.js +5 -0
  289. package/dist/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
  290. package/dist/api/types/ChatCompletionContentPartImageParam.js +5 -0
  291. package/dist/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
  292. package/dist/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
  293. package/dist/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
  294. package/dist/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
  295. package/dist/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
  296. package/dist/api/types/ChatCompletionContentPartTextParam.js +5 -0
  297. package/dist/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
  298. package/dist/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
  299. package/dist/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
  300. package/dist/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
  301. package/dist/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
  302. package/dist/api/types/ChatCompletionFunctionMessageParam.js +5 -0
  303. package/dist/api/types/ChatCompletionMessage.d.ts +15 -0
  304. package/dist/api/types/ChatCompletionMessage.js +5 -0
  305. package/dist/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
  306. package/dist/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
  307. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  308. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
  309. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  310. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  311. package/{api/types/ChatCompletionMessageFunctionToolCall.d.ts → dist/api/types/ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  312. package/dist/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  313. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  314. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
  315. package/dist/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
  316. package/dist/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
  317. package/dist/api/types/ChatCompletionServiceTier.d.ts +11 -0
  318. package/dist/api/types/ChatCompletionServiceTier.js +13 -0
  319. package/dist/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
  320. package/dist/api/types/ChatCompletionSystemMessageParam.js +5 -0
  321. package/dist/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
  322. package/dist/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
  323. package/dist/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
  324. package/dist/api/types/ChatCompletionTokenLogprob.js +5 -0
  325. package/dist/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
  326. package/dist/api/types/ChatCompletionToolMessageParam.js +5 -0
  327. package/dist/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
  328. package/dist/api/types/ChatCompletionToolMessageParamContent.js +5 -0
  329. package/dist/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
  330. package/dist/api/types/ChatCompletionUserMessageParam.js +5 -0
  331. package/dist/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
  332. package/dist/api/types/ChatCompletionUserMessageParamContent.js +5 -0
  333. package/dist/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
  334. package/dist/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
  335. package/dist/api/types/Choice.d.ts +12 -0
  336. package/dist/api/types/Choice.js +5 -0
  337. package/dist/api/types/ChoiceFinishReason.d.ts +11 -0
  338. package/dist/api/types/ChoiceFinishReason.js +13 -0
  339. package/dist/api/types/ChoiceLogprobs.d.ts +10 -0
  340. package/dist/api/types/ChoiceLogprobs.js +5 -0
  341. package/dist/api/types/CompletionTokensDetails.d.ts +11 -0
  342. package/dist/api/types/CompletionTokensDetails.js +5 -0
  343. package/dist/api/types/CompletionUsage.d.ts +13 -0
  344. package/dist/api/types/CompletionUsage.js +5 -0
  345. package/dist/api/types/CustomInput.d.ts +7 -0
  346. package/dist/api/types/CustomInput.js +5 -0
  347. package/dist/api/types/CustomOutput.d.ts +9 -0
  348. package/dist/api/types/CustomOutput.js +5 -0
  349. package/dist/api/types/FileFile.d.ts +8 -0
  350. package/dist/api/types/FileFile.js +5 -0
  351. package/dist/api/types/File_.d.ts +8 -0
  352. package/dist/api/types/File_.js +5 -0
  353. package/dist/api/types/FunctionCallInput.d.ts +7 -0
  354. package/dist/api/types/FunctionCallInput.js +5 -0
  355. package/dist/api/types/FunctionCallOutput.d.ts +9 -0
  356. package/dist/api/types/FunctionCallOutput.js +5 -0
  357. package/dist/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
  358. package/dist/api/types/FunctionOutput.js +5 -0
  359. package/dist/api/types/ImageUrl.d.ts +8 -0
  360. package/dist/api/types/ImageUrl.js +5 -0
  361. package/dist/api/types/ImageUrlDetail.d.ts +9 -0
  362. package/dist/api/types/ImageUrlDetail.js +11 -0
  363. package/dist/api/types/InputAudio.d.ts +8 -0
  364. package/dist/api/types/InputAudio.js +5 -0
  365. package/dist/api/types/InputAudioFormat.d.ts +8 -0
  366. package/dist/api/types/InputAudioFormat.js +10 -0
  367. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +3 -1
  368. package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
  369. package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
  370. package/dist/api/types/LlmConfig.d.ts +2 -0
  371. package/dist/api/types/Message.d.ts +1 -1
  372. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  373. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  374. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
  375. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  376. package/dist/api/types/PromptTokensDetails.d.ts +9 -0
  377. package/dist/api/types/PromptTokensDetails.js +5 -0
  378. package/dist/api/types/TopLogprob.d.ts +10 -0
  379. package/dist/api/types/TopLogprob.js +5 -0
  380. package/dist/api/types/index.d.ts +53 -2
  381. package/dist/api/types/index.js +53 -2
  382. package/dist/serialization/resources/agents/resources/index.d.ts +0 -3
  383. package/dist/serialization/resources/agents/resources/index.js +1 -4
  384. package/dist/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
  385. package/{serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → dist/serialization/resources/chat/client/requests/ChatCompletionRequest.js} +16 -6
  386. package/dist/serialization/resources/chat/client/requests/index.d.ts +1 -0
  387. package/dist/serialization/resources/chat/client/requests/index.js +5 -0
  388. package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
  389. package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
  390. package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
  391. package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
  392. package/dist/serialization/resources/chat/types/index.d.ts +2 -0
  393. package/dist/serialization/resources/chat/types/index.js +18 -0
  394. package/dist/serialization/resources/index.d.ts +3 -0
  395. package/dist/serialization/resources/index.js +4 -1
  396. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  397. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
  398. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
  399. package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +9 -7
  400. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
  401. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
  402. package/dist/serialization/resources/templates/types/index.d.ts +2 -0
  403. package/dist/serialization/resources/templates/types/index.js +2 -0
  404. package/dist/serialization/types/Annotation.d.ts +15 -0
  405. package/dist/serialization/types/Annotation.js +47 -0
  406. package/dist/serialization/types/AnnotationUrlCitation.d.ts +16 -0
  407. package/dist/serialization/types/AnnotationUrlCitation.js +48 -0
  408. package/dist/serialization/types/Audio.d.ts +12 -0
  409. package/{serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → dist/serialization/types/Audio.js} +4 -4
  410. package/dist/serialization/types/ChatCompletion.d.ts +23 -0
  411. package/dist/serialization/types/ChatCompletion.js +55 -0
  412. package/dist/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
  413. package/dist/serialization/types/ChatCompletionAssistantMessageParam.js +53 -0
  414. package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
  415. package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
  416. package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
  417. package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
  418. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  419. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  420. package/dist/serialization/types/ChatCompletionAudio.d.ts +16 -0
  421. package/dist/serialization/types/ChatCompletionAudio.js +48 -0
  422. package/dist/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
  423. package/dist/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
  424. package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
  425. package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
  426. package/dist/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
  427. package/dist/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
  428. package/dist/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
  429. package/dist/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
  430. package/dist/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
  431. package/dist/serialization/types/ChatCompletionDeveloperMessageParam.js +46 -0
  432. package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
  433. package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
  434. package/dist/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
  435. package/dist/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
  436. package/dist/serialization/types/ChatCompletionMessage.d.ts +23 -0
  437. package/dist/serialization/types/ChatCompletionMessage.js +55 -0
  438. package/dist/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
  439. package/dist/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
  440. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  441. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  442. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  443. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  444. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
  445. package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
  446. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  447. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
  448. package/dist/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
  449. package/dist/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
  450. package/dist/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
  451. package/dist/serialization/types/ChatCompletionServiceTier.js +41 -0
  452. package/dist/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
  453. package/dist/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
  454. package/dist/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
  455. package/dist/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
  456. package/dist/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
  457. package/dist/serialization/types/ChatCompletionTokenLogprob.js +49 -0
  458. package/dist/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
  459. package/dist/serialization/types/ChatCompletionToolMessageParam.js +46 -0
  460. package/dist/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
  461. package/dist/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
  462. package/dist/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
  463. package/dist/serialization/types/ChatCompletionUserMessageParam.js +46 -0
  464. package/dist/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
  465. package/dist/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
  466. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
  467. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
  468. package/dist/serialization/types/Choice.d.ts +19 -0
  469. package/dist/serialization/types/Choice.js +51 -0
  470. package/dist/serialization/types/ChoiceFinishReason.d.ts +10 -0
  471. package/dist/serialization/types/ChoiceFinishReason.js +41 -0
  472. package/dist/serialization/types/ChoiceLogprobs.d.ts +15 -0
  473. package/dist/serialization/types/ChoiceLogprobs.js +47 -0
  474. package/dist/serialization/types/CompletionTokensDetails.d.ts +16 -0
  475. package/dist/serialization/types/CompletionTokensDetails.js +48 -0
  476. package/dist/serialization/types/CompletionUsage.d.ts +19 -0
  477. package/dist/serialization/types/CompletionUsage.js +51 -0
  478. package/dist/serialization/types/CustomInput.d.ts +13 -0
  479. package/dist/serialization/{resources/agents/resources/templates/types/TemplatesMigrateResponse.js → types/CustomInput.js} +5 -4
  480. package/dist/serialization/types/CustomOutput.d.ts +14 -0
  481. package/dist/serialization/types/CustomOutput.js +46 -0
  482. package/dist/serialization/types/FileFile.d.ts +14 -0
  483. package/dist/serialization/types/FileFile.js +45 -0
  484. package/dist/serialization/types/File_.d.ts +14 -0
  485. package/dist/serialization/types/File_.js +45 -0
  486. package/dist/serialization/types/FunctionCallInput.d.ts +13 -0
  487. package/dist/serialization/types/FunctionCallInput.js +44 -0
  488. package/dist/serialization/types/FunctionCallOutput.d.ts +14 -0
  489. package/dist/serialization/types/FunctionCallOutput.js +46 -0
  490. package/{serialization/types/Function.d.ts → dist/serialization/types/FunctionOutput.d.ts} +2 -2
  491. package/{serialization/types/Function.js → dist/serialization/types/FunctionOutput.js} +2 -2
  492. package/dist/serialization/types/ImageUrl.d.ts +14 -0
  493. package/dist/serialization/types/ImageUrl.js +45 -0
  494. package/dist/serialization/types/ImageUrlDetail.d.ts +10 -0
  495. package/dist/serialization/types/ImageUrlDetail.js +41 -0
  496. package/dist/serialization/types/InputAudio.d.ts +14 -0
  497. package/dist/serialization/types/InputAudio.js +45 -0
  498. package/dist/serialization/types/InputAudioFormat.d.ts +10 -0
  499. package/dist/serialization/types/InputAudioFormat.js +41 -0
  500. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +4 -2
  501. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +4 -2
  502. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
  503. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
  504. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  505. package/dist/serialization/types/LlmConfig.js +1 -0
  506. package/dist/serialization/types/Message.d.ts +2 -2
  507. package/dist/serialization/types/Message.js +2 -2
  508. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  509. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  510. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  511. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
  512. package/dist/serialization/types/PromptTokensDetails.d.ts +14 -0
  513. package/dist/serialization/types/PromptTokensDetails.js +46 -0
  514. package/dist/serialization/types/TopLogprob.d.ts +15 -0
  515. package/dist/serialization/types/TopLogprob.js +47 -0
  516. package/dist/serialization/types/index.d.ts +53 -2
  517. package/dist/serialization/types/index.js +53 -2
  518. package/dist/version.d.ts +1 -1
  519. package/dist/version.js +1 -1
  520. package/package.json +1 -1
  521. package/reference.md +101 -209
  522. package/serialization/resources/agents/resources/index.d.ts +0 -3
  523. package/serialization/resources/agents/resources/index.js +1 -4
  524. package/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
  525. package/serialization/resources/chat/client/requests/ChatCompletionRequest.js +55 -0
  526. package/serialization/resources/chat/client/requests/index.d.ts +1 -0
  527. package/serialization/resources/chat/client/requests/index.js +5 -0
  528. package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
  529. package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
  530. package/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
  531. package/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
  532. package/serialization/resources/chat/types/index.d.ts +2 -0
  533. package/serialization/resources/chat/types/index.js +18 -0
  534. package/serialization/resources/index.d.ts +3 -0
  535. package/serialization/resources/index.js +4 -1
  536. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  537. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
  538. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
  539. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +47 -0
  540. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
  541. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
  542. package/serialization/resources/templates/types/index.d.ts +2 -0
  543. package/serialization/resources/templates/types/index.js +2 -0
  544. package/serialization/types/Annotation.d.ts +15 -0
  545. package/serialization/types/Annotation.js +47 -0
  546. package/serialization/types/AnnotationUrlCitation.d.ts +16 -0
  547. package/serialization/types/AnnotationUrlCitation.js +48 -0
  548. package/serialization/types/Audio.d.ts +12 -0
  549. package/serialization/types/Audio.js +43 -0
  550. package/serialization/types/ChatCompletion.d.ts +23 -0
  551. package/serialization/types/ChatCompletion.js +55 -0
  552. package/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
  553. package/serialization/types/ChatCompletionAssistantMessageParam.js +53 -0
  554. package/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
  555. package/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
  556. package/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
  557. package/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
  558. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  559. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  560. package/serialization/types/ChatCompletionAudio.d.ts +16 -0
  561. package/serialization/types/ChatCompletionAudio.js +48 -0
  562. package/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
  563. package/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
  564. package/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
  565. package/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
  566. package/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
  567. package/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
  568. package/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
  569. package/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
  570. package/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
  571. package/serialization/types/ChatCompletionDeveloperMessageParam.js +46 -0
  572. package/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
  573. package/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
  574. package/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
  575. package/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
  576. package/serialization/types/ChatCompletionMessage.d.ts +23 -0
  577. package/serialization/types/ChatCompletionMessage.js +55 -0
  578. package/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
  579. package/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
  580. package/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  581. package/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  582. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  583. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  584. package/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
  585. package/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
  586. package/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  587. package/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
  588. package/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
  589. package/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
  590. package/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
  591. package/serialization/types/ChatCompletionServiceTier.js +41 -0
  592. package/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
  593. package/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
  594. package/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
  595. package/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
  596. package/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
  597. package/serialization/types/ChatCompletionTokenLogprob.js +49 -0
  598. package/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
  599. package/serialization/types/ChatCompletionToolMessageParam.js +46 -0
  600. package/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
  601. package/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
  602. package/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
  603. package/serialization/types/ChatCompletionUserMessageParam.js +46 -0
  604. package/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
  605. package/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
  606. package/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
  607. package/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
  608. package/serialization/types/Choice.d.ts +19 -0
  609. package/serialization/types/Choice.js +51 -0
  610. package/serialization/types/ChoiceFinishReason.d.ts +10 -0
  611. package/serialization/types/ChoiceFinishReason.js +41 -0
  612. package/serialization/types/ChoiceLogprobs.d.ts +15 -0
  613. package/serialization/types/ChoiceLogprobs.js +47 -0
  614. package/serialization/types/CompletionTokensDetails.d.ts +16 -0
  615. package/serialization/types/CompletionTokensDetails.js +48 -0
  616. package/serialization/types/CompletionUsage.d.ts +19 -0
  617. package/serialization/types/CompletionUsage.js +51 -0
  618. package/serialization/types/CustomInput.d.ts +13 -0
  619. package/serialization/types/CustomInput.js +44 -0
  620. package/serialization/types/CustomOutput.d.ts +14 -0
  621. package/serialization/types/CustomOutput.js +46 -0
  622. package/serialization/types/FileFile.d.ts +14 -0
  623. package/serialization/types/FileFile.js +45 -0
  624. package/serialization/types/File_.d.ts +14 -0
  625. package/serialization/types/File_.js +45 -0
  626. package/serialization/types/FunctionCallInput.d.ts +13 -0
  627. package/serialization/types/FunctionCallInput.js +44 -0
  628. package/serialization/types/FunctionCallOutput.d.ts +14 -0
  629. package/serialization/types/FunctionCallOutput.js +46 -0
  630. package/{dist/serialization/types/Function.d.ts → serialization/types/FunctionOutput.d.ts} +2 -2
  631. package/{dist/serialization/types/Function.js → serialization/types/FunctionOutput.js} +2 -2
  632. package/serialization/types/ImageUrl.d.ts +14 -0
  633. package/serialization/types/ImageUrl.js +45 -0
  634. package/serialization/types/ImageUrlDetail.d.ts +10 -0
  635. package/serialization/types/ImageUrlDetail.js +41 -0
  636. package/serialization/types/InputAudio.d.ts +14 -0
  637. package/serialization/types/InputAudio.js +45 -0
  638. package/serialization/types/InputAudioFormat.d.ts +10 -0
  639. package/serialization/types/InputAudioFormat.js +41 -0
  640. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +4 -2
  641. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +4 -2
  642. package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
  643. package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
  644. package/serialization/types/LlmConfig.d.ts +1 -0
  645. package/serialization/types/LlmConfig.js +1 -0
  646. package/serialization/types/Message.d.ts +2 -2
  647. package/serialization/types/Message.js +2 -2
  648. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  649. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  650. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  651. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
  652. package/serialization/types/PromptTokensDetails.d.ts +14 -0
  653. package/serialization/types/PromptTokensDetails.js +46 -0
  654. package/serialization/types/TopLogprob.d.ts +15 -0
  655. package/serialization/types/TopLogprob.js +47 -0
  656. package/serialization/types/index.d.ts +53 -2
  657. package/serialization/types/index.js +53 -2
  658. package/version.d.ts +1 -1
  659. package/version.js +1 -1
  660. package/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
  661. package/api/resources/agents/resources/templates/client/Client.js +0 -250
  662. package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
  663. package/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  664. package/api/resources/agents/resources/templates/types/index.d.ts +0 -1
  665. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
  666. package/dist/api/resources/agents/resources/templates/client/Client.js +0 -250
  667. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
  668. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  669. package/dist/api/resources/agents/resources/templates/types/index.d.ts +0 -1
  670. package/dist/api/resources/agents/resources/templates/types/index.js +0 -17
  671. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
  672. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  673. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
  674. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
  675. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
  676. package/dist/serialization/resources/agents/resources/templates/types/index.js +0 -17
  677. package/dist/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
  678. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
  679. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  680. package/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
  681. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
  682. package/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
  683. package/serialization/resources/agents/resources/templates/types/index.js +0 -17
  684. package/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
  685. /package/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  686. /package/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  687. /package/api/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → chat/client/requests/ChatCompletionRequest.js} +0 -0
  688. /package/api/resources/{agents/resources/templates → chat}/client/requests/index.js +0 -0
  689. /package/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  690. /package/api/resources/{agents/resources/templates → chat}/index.js +0 -0
  691. /package/api/resources/{agents/resources/templates/types/TemplatesMigrateResponse.js → chat/types/ChatCompletionRequestMessagesItem.js} +0 -0
  692. /package/api/{types/ChatCompletionMessageFunctionToolCall.js → resources/chat/types/ChatCompletionRequestStop.js} +0 -0
  693. /package/api/{types/Function.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +0 -0
  694. /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js} +0 -0
  695. /package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → api/types/Annotation.js} +0 -0
  696. /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/types/AnnotationUrlCitation.js} +0 -0
  697. /package/{dist/api/types/Function.js → api/types/Audio.js} +0 -0
  698. /package/dist/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  699. /package/dist/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  700. /package/dist/api/resources/{agents/resources/templates → chat}/client/requests/index.js +0 -0
  701. /package/dist/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  702. /package/dist/api/resources/{agents/resources/templates → chat}/index.js +0 -0
  703. /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  704. /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  705. /package/dist/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  706. /package/dist/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
  707. /package/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  708. /package/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  709. /package/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  710. /package/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ChatCompletionContentPartTextParam } from "./ChatCompletionContentPartTextParam";
8
+ export declare const ChatCompletionToolMessageParamContent: core.serialization.Schema<serializers.ChatCompletionToolMessageParamContent.Raw, Letta.ChatCompletionToolMessageParamContent>;
9
+ export declare namespace ChatCompletionToolMessageParamContent {
10
+ type Raw = string | ChatCompletionContentPartTextParam.Raw[];
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChatCompletionToolMessageParamContent = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ChatCompletionContentPartTextParam_1 = require("./ChatCompletionContentPartTextParam");
42
+ exports.ChatCompletionToolMessageParamContent = core.serialization.undiscriminatedUnion([
43
+ core.serialization.string(),
44
+ core.serialization.list(ChatCompletionContentPartTextParam_1.ChatCompletionContentPartTextParam),
45
+ ]);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ChatCompletionUserMessageParamContent } from "./ChatCompletionUserMessageParamContent";
8
+ export declare const ChatCompletionUserMessageParam: core.serialization.ObjectSchema<serializers.ChatCompletionUserMessageParam.Raw, Letta.ChatCompletionUserMessageParam>;
9
+ export declare namespace ChatCompletionUserMessageParam {
10
+ interface Raw {
11
+ content: ChatCompletionUserMessageParamContent.Raw;
12
+ role: "user";
13
+ name?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChatCompletionUserMessageParam = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ChatCompletionUserMessageParamContent_1 = require("./ChatCompletionUserMessageParamContent");
42
+ exports.ChatCompletionUserMessageParam = core.serialization.object({
43
+ content: ChatCompletionUserMessageParamContent_1.ChatCompletionUserMessageParamContent,
44
+ role: core.serialization.stringLiteral("user"),
45
+ name: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ChatCompletionUserMessageParamContentItem } from "./ChatCompletionUserMessageParamContentItem";
8
+ export declare const ChatCompletionUserMessageParamContent: core.serialization.Schema<serializers.ChatCompletionUserMessageParamContent.Raw, Letta.ChatCompletionUserMessageParamContent>;
9
+ export declare namespace ChatCompletionUserMessageParamContent {
10
+ type Raw = string | ChatCompletionUserMessageParamContentItem.Raw[];
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChatCompletionUserMessageParamContent = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ChatCompletionUserMessageParamContentItem_1 = require("./ChatCompletionUserMessageParamContentItem");
42
+ exports.ChatCompletionUserMessageParamContent = core.serialization.undiscriminatedUnion([
43
+ core.serialization.string(),
44
+ core.serialization.list(ChatCompletionUserMessageParamContentItem_1.ChatCompletionUserMessageParamContentItem),
45
+ ]);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ChatCompletionContentPartTextParam } from "./ChatCompletionContentPartTextParam";
8
+ import { ChatCompletionContentPartImageParam } from "./ChatCompletionContentPartImageParam";
9
+ import { ChatCompletionContentPartInputAudioParam } from "./ChatCompletionContentPartInputAudioParam";
10
+ import { File_ } from "./File_";
11
+ export declare const ChatCompletionUserMessageParamContentItem: core.serialization.Schema<serializers.ChatCompletionUserMessageParamContentItem.Raw, Letta.ChatCompletionUserMessageParamContentItem>;
12
+ export declare namespace ChatCompletionUserMessageParamContentItem {
13
+ type Raw = ChatCompletionContentPartTextParam.Raw | ChatCompletionContentPartImageParam.Raw | ChatCompletionContentPartInputAudioParam.Raw | File_.Raw;
14
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChatCompletionUserMessageParamContentItem = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ChatCompletionContentPartTextParam_1 = require("./ChatCompletionContentPartTextParam");
42
+ const ChatCompletionContentPartImageParam_1 = require("./ChatCompletionContentPartImageParam");
43
+ const ChatCompletionContentPartInputAudioParam_1 = require("./ChatCompletionContentPartInputAudioParam");
44
+ const File_1 = require("./File_");
45
+ exports.ChatCompletionUserMessageParamContentItem = core.serialization.undiscriminatedUnion([
46
+ ChatCompletionContentPartTextParam_1.ChatCompletionContentPartTextParam,
47
+ ChatCompletionContentPartImageParam_1.ChatCompletionContentPartImageParam,
48
+ ChatCompletionContentPartInputAudioParam_1.ChatCompletionContentPartInputAudioParam,
49
+ File_1.File_,
50
+ ]);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ChoiceFinishReason } from "./ChoiceFinishReason";
8
+ import { ChoiceLogprobs } from "./ChoiceLogprobs";
9
+ import { ChatCompletionMessage } from "./ChatCompletionMessage";
10
+ export declare const Choice: core.serialization.ObjectSchema<serializers.Choice.Raw, Letta.Choice>;
11
+ export declare namespace Choice {
12
+ interface Raw {
13
+ finish_reason: ChoiceFinishReason.Raw;
14
+ index: number;
15
+ logprobs?: ChoiceLogprobs.Raw | null;
16
+ message: ChatCompletionMessage.Raw;
17
+ [key: string]: any;
18
+ }
19
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Choice = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ChoiceFinishReason_1 = require("./ChoiceFinishReason");
42
+ const ChoiceLogprobs_1 = require("./ChoiceLogprobs");
43
+ const ChatCompletionMessage_1 = require("./ChatCompletionMessage");
44
+ exports.Choice = core.serialization
45
+ .object({
46
+ finishReason: core.serialization.property("finish_reason", ChoiceFinishReason_1.ChoiceFinishReason),
47
+ index: core.serialization.number(),
48
+ logprobs: ChoiceLogprobs_1.ChoiceLogprobs.optional(),
49
+ message: ChatCompletionMessage_1.ChatCompletionMessage,
50
+ })
51
+ .passthrough();
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ChoiceFinishReason: core.serialization.Schema<serializers.ChoiceFinishReason.Raw, Letta.ChoiceFinishReason>;
8
+ export declare namespace ChoiceFinishReason {
9
+ type Raw = "stop" | "length" | "tool_calls" | "content_filter" | "function_call";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChoiceFinishReason = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ChoiceFinishReason = core.serialization.enum_(["stop", "length", "tool_calls", "content_filter", "function_call"]);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ChatCompletionTokenLogprob } from "./ChatCompletionTokenLogprob";
8
+ export declare const ChoiceLogprobs: core.serialization.ObjectSchema<serializers.ChoiceLogprobs.Raw, Letta.ChoiceLogprobs>;
9
+ export declare namespace ChoiceLogprobs {
10
+ interface Raw {
11
+ content?: ChatCompletionTokenLogprob.Raw[] | null;
12
+ refusal?: ChatCompletionTokenLogprob.Raw[] | null;
13
+ [key: string]: any;
14
+ }
15
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChoiceLogprobs = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ChatCompletionTokenLogprob_1 = require("./ChatCompletionTokenLogprob");
42
+ exports.ChoiceLogprobs = core.serialization
43
+ .object({
44
+ content: core.serialization.list(ChatCompletionTokenLogprob_1.ChatCompletionTokenLogprob).optional(),
45
+ refusal: core.serialization.list(ChatCompletionTokenLogprob_1.ChatCompletionTokenLogprob).optional(),
46
+ })
47
+ .passthrough();
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CompletionTokensDetails: core.serialization.ObjectSchema<serializers.CompletionTokensDetails.Raw, Letta.CompletionTokensDetails>;
8
+ export declare namespace CompletionTokensDetails {
9
+ interface Raw {
10
+ accepted_prediction_tokens?: number | null;
11
+ audio_tokens?: number | null;
12
+ reasoning_tokens?: number | null;
13
+ rejected_prediction_tokens?: number | null;
14
+ [key: string]: any;
15
+ }
16
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CompletionTokensDetails = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.CompletionTokensDetails = core.serialization
42
+ .object({
43
+ acceptedPredictionTokens: core.serialization.property("accepted_prediction_tokens", core.serialization.number().optional()),
44
+ audioTokens: core.serialization.property("audio_tokens", core.serialization.number().optional()),
45
+ reasoningTokens: core.serialization.property("reasoning_tokens", core.serialization.number().optional()),
46
+ rejectedPredictionTokens: core.serialization.property("rejected_prediction_tokens", core.serialization.number().optional()),
47
+ })
48
+ .passthrough();
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { CompletionTokensDetails } from "./CompletionTokensDetails";
8
+ import { PromptTokensDetails } from "./PromptTokensDetails";
9
+ export declare const CompletionUsage: core.serialization.ObjectSchema<serializers.CompletionUsage.Raw, Letta.CompletionUsage>;
10
+ export declare namespace CompletionUsage {
11
+ interface Raw {
12
+ completion_tokens: number;
13
+ prompt_tokens: number;
14
+ total_tokens: number;
15
+ completion_tokens_details?: CompletionTokensDetails.Raw | null;
16
+ prompt_tokens_details?: PromptTokensDetails.Raw | null;
17
+ [key: string]: any;
18
+ }
19
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CompletionUsage = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const CompletionTokensDetails_1 = require("./CompletionTokensDetails");
42
+ const PromptTokensDetails_1 = require("./PromptTokensDetails");
43
+ exports.CompletionUsage = core.serialization
44
+ .object({
45
+ completionTokens: core.serialization.property("completion_tokens", core.serialization.number()),
46
+ promptTokens: core.serialization.property("prompt_tokens", core.serialization.number()),
47
+ totalTokens: core.serialization.property("total_tokens", core.serialization.number()),
48
+ completionTokensDetails: core.serialization.property("completion_tokens_details", CompletionTokensDetails_1.CompletionTokensDetails.optional()),
49
+ promptTokensDetails: core.serialization.property("prompt_tokens_details", PromptTokensDetails_1.PromptTokensDetails.optional()),
50
+ })
51
+ .passthrough();
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CustomInput: core.serialization.ObjectSchema<serializers.CustomInput.Raw, Letta.CustomInput>;
8
+ export declare namespace CustomInput {
9
+ interface Raw {
10
+ input: string;
11
+ name: string;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CustomInput = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.CustomInput = core.serialization.object({
42
+ input: core.serialization.string(),
43
+ name: core.serialization.string(),
44
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CustomOutput: core.serialization.ObjectSchema<serializers.CustomOutput.Raw, Letta.CustomOutput>;
8
+ export declare namespace CustomOutput {
9
+ interface Raw {
10
+ input: string;
11
+ name: string;
12
+ [key: string]: any;
13
+ }
14
+ }