@letta-ai/letta-client 0.1.175 → 0.1.177

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 (434) hide show
  1. package/api/resources/agents/client/Client.d.ts +9 -3
  2. package/api/resources/agents/client/Client.js +31 -16
  3. package/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +14 -0
  4. package/api/resources/agents/client/requests/index.d.ts +1 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.js +3 -3
  9. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.d.ts +5 -3
  13. package/api/resources/agents/resources/messages/client/Client.js +13 -15
  14. package/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +15 -0
  15. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  16. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  17. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  18. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  19. package/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +2 -0
  20. package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +2 -0
  21. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  22. package/api/resources/batches/client/Client.js +4 -4
  23. package/api/resources/blocks/client/Client.js +6 -6
  24. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  25. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  26. package/api/resources/embeddingModels/client/Client.js +1 -1
  27. package/api/resources/folders/client/Client.js +9 -9
  28. package/api/resources/folders/resources/files/client/Client.js +3 -3
  29. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  30. package/api/resources/groups/client/Client.js +6 -6
  31. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  32. package/api/resources/health/client/Client.js +1 -1
  33. package/api/resources/identities/client/Client.js +7 -7
  34. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  35. package/api/resources/jobs/client/Client.js +5 -5
  36. package/api/resources/messages/client/Client.js +1 -1
  37. package/api/resources/models/client/Client.js +1 -1
  38. package/api/resources/projects/client/Client.js +1 -1
  39. package/api/resources/providers/client/Client.d.ts +15 -3
  40. package/api/resources/providers/client/Client.js +64 -8
  41. package/{dist/api/types → api/resources/providers/client/requests}/ProviderCheck.d.ts +12 -1
  42. package/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
  43. package/api/resources/providers/client/requests/ProviderUpdate.d.ts +4 -0
  44. package/api/resources/providers/client/requests/index.d.ts +1 -0
  45. package/api/resources/runs/client/Client.js +4 -4
  46. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  47. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  48. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  49. package/api/resources/sources/client/Client.js +10 -10
  50. package/api/resources/sources/resources/files/client/Client.js +3 -3
  51. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  52. package/api/resources/steps/client/Client.d.ts +13 -0
  53. package/api/resources/steps/client/Client.js +78 -2
  54. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  55. package/api/resources/tags/client/Client.js +1 -1
  56. package/api/resources/telemetry/client/Client.js +1 -1
  57. package/api/resources/templates/client/Client.js +1 -1
  58. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  59. package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  60. package/api/resources/tools/client/Client.d.ts +1 -1
  61. package/api/resources/tools/client/Client.js +21 -21
  62. package/api/resources/voice/client/Client.js +1 -1
  63. package/api/types/AgentFileSchema.d.ts +27 -0
  64. package/api/types/BlockSchema.d.ts +29 -0
  65. package/api/types/BodyExportAgentSerialized.d.ts +8 -0
  66. package/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  67. package/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
  68. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
  69. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  70. package/api/types/FileAgentSchema.d.ts +28 -0
  71. package/api/types/FileSchema.d.ts +37 -0
  72. package/api/types/GroupSchema.d.ts +21 -0
  73. package/api/types/GroupSchemaManagerConfig.d.ts +8 -0
  74. package/api/types/ImportedAgentsResponse.d.ts +10 -0
  75. package/api/types/ImportedAgentsResponse.js +5 -0
  76. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
  77. package/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
  78. package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
  79. package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
  80. package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
  81. package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
  82. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
  83. package/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
  84. package/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
  85. package/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
  86. package/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
  87. package/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
  88. package/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
  89. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
  90. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
  91. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
  92. package/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
  93. package/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
  94. package/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
  95. package/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
  96. package/api/types/LlmConfig.d.ts +1 -1
  97. package/api/types/LlmConfigModelEndpointType.d.ts +1 -2
  98. package/api/types/LlmConfigModelEndpointType.js +0 -1
  99. package/api/types/LlmConfigReasoningEffort.d.ts +2 -1
  100. package/api/types/LlmConfigReasoningEffort.js +1 -0
  101. package/api/types/McpServerSchema.d.ts +15 -0
  102. package/api/types/McpServerSchema.js +5 -0
  103. package/api/types/McpToolExecuteRequest.d.ts +7 -0
  104. package/api/types/McpToolExecuteRequest.js +5 -0
  105. package/api/types/Provider.d.ts +2 -0
  106. package/api/types/ProviderType.d.ts +1 -2
  107. package/api/types/ProviderType.js +0 -1
  108. package/api/types/SourceSchema.d.ts +25 -0
  109. package/api/types/SourceSchema.js +5 -0
  110. package/api/types/Step.d.ts +6 -0
  111. package/api/types/StepMetrics.d.ts +25 -0
  112. package/api/types/StepMetrics.js +5 -0
  113. package/api/types/StepStatus.d.ts +13 -0
  114. package/api/types/StepStatus.js +12 -0
  115. package/api/types/index.d.ts +23 -5
  116. package/api/types/index.js +23 -5
  117. package/dist/api/resources/agents/client/Client.d.ts +9 -3
  118. package/dist/api/resources/agents/client/Client.js +31 -16
  119. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +14 -0
  120. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.js +5 -0
  121. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  122. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  123. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  124. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  125. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  126. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  127. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  128. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  129. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +5 -3
  130. package/dist/api/resources/agents/resources/messages/client/Client.js +13 -15
  131. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +15 -0
  132. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +5 -0
  133. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  134. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  135. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  136. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  137. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +2 -0
  138. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +2 -0
  139. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  140. package/dist/api/resources/batches/client/Client.js +4 -4
  141. package/dist/api/resources/blocks/client/Client.js +6 -6
  142. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  143. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  144. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  145. package/dist/api/resources/folders/client/Client.js +9 -9
  146. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  147. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  148. package/dist/api/resources/groups/client/Client.js +6 -6
  149. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  150. package/dist/api/resources/health/client/Client.js +1 -1
  151. package/dist/api/resources/identities/client/Client.js +7 -7
  152. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  153. package/dist/api/resources/jobs/client/Client.js +5 -5
  154. package/dist/api/resources/messages/client/Client.js +1 -1
  155. package/dist/api/resources/models/client/Client.js +1 -1
  156. package/dist/api/resources/projects/client/Client.js +1 -1
  157. package/dist/api/resources/providers/client/Client.d.ts +15 -3
  158. package/dist/api/resources/providers/client/Client.js +64 -8
  159. package/{api/types → dist/api/resources/providers/client/requests}/ProviderCheck.d.ts +12 -1
  160. package/dist/api/resources/providers/client/requests/ProviderCheck.js +5 -0
  161. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
  162. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +4 -0
  163. package/dist/api/resources/providers/client/requests/index.d.ts +1 -0
  164. package/dist/api/resources/runs/client/Client.js +4 -4
  165. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  166. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  167. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  168. package/dist/api/resources/sources/client/Client.js +10 -10
  169. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  170. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  171. package/dist/api/resources/steps/client/Client.d.ts +13 -0
  172. package/dist/api/resources/steps/client/Client.js +78 -2
  173. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  174. package/dist/api/resources/tags/client/Client.js +1 -1
  175. package/dist/api/resources/telemetry/client/Client.js +1 -1
  176. package/dist/api/resources/templates/client/Client.js +1 -1
  177. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  178. package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  179. package/dist/api/resources/tools/client/Client.d.ts +1 -1
  180. package/dist/api/resources/tools/client/Client.js +21 -21
  181. package/dist/api/resources/voice/client/Client.js +1 -1
  182. package/dist/api/types/AgentFileSchema.d.ts +27 -0
  183. package/dist/api/types/AgentFileSchema.js +5 -0
  184. package/dist/api/types/BlockSchema.d.ts +29 -0
  185. package/dist/api/types/BlockSchema.js +5 -0
  186. package/dist/api/types/BodyExportAgentSerialized.d.ts +8 -0
  187. package/dist/api/types/BodyExportAgentSerialized.js +5 -0
  188. package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  189. package/dist/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
  190. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
  191. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  192. package/dist/api/types/FileAgentSchema.d.ts +28 -0
  193. package/dist/api/types/FileAgentSchema.js +5 -0
  194. package/dist/api/types/FileSchema.d.ts +37 -0
  195. package/dist/api/types/FileSchema.js +5 -0
  196. package/dist/api/types/GroupSchema.d.ts +21 -0
  197. package/dist/api/types/GroupSchema.js +5 -0
  198. package/dist/api/types/GroupSchemaManagerConfig.d.ts +8 -0
  199. package/dist/api/types/GroupSchemaManagerConfig.js +5 -0
  200. package/dist/api/types/ImportedAgentsResponse.d.ts +10 -0
  201. package/dist/api/types/ImportedAgentsResponse.js +5 -0
  202. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
  203. package/dist/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
  204. package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
  205. package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
  206. package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
  207. package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
  208. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
  209. package/dist/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
  210. package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
  211. package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
  212. package/dist/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
  213. package/dist/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
  214. package/dist/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
  215. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
  216. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
  217. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
  218. package/dist/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
  219. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
  220. package/dist/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
  221. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
  222. package/dist/api/types/LlmConfig.d.ts +1 -1
  223. package/dist/api/types/LlmConfigModelEndpointType.d.ts +1 -2
  224. package/dist/api/types/LlmConfigModelEndpointType.js +0 -1
  225. package/dist/api/types/LlmConfigReasoningEffort.d.ts +2 -1
  226. package/dist/api/types/LlmConfigReasoningEffort.js +1 -0
  227. package/dist/api/types/McpServerSchema.d.ts +15 -0
  228. package/dist/api/types/McpServerSchema.js +5 -0
  229. package/dist/api/types/McpToolExecuteRequest.d.ts +7 -0
  230. package/dist/api/types/McpToolExecuteRequest.js +5 -0
  231. package/dist/api/types/Provider.d.ts +2 -0
  232. package/dist/api/types/ProviderType.d.ts +1 -2
  233. package/dist/api/types/ProviderType.js +0 -1
  234. package/dist/api/types/SourceSchema.d.ts +25 -0
  235. package/dist/api/types/SourceSchema.js +5 -0
  236. package/dist/api/types/Step.d.ts +6 -0
  237. package/dist/api/types/StepMetrics.d.ts +25 -0
  238. package/dist/api/types/StepMetrics.js +5 -0
  239. package/dist/api/types/StepStatus.d.ts +13 -0
  240. package/dist/api/types/StepStatus.js +12 -0
  241. package/dist/api/types/index.d.ts +23 -5
  242. package/dist/api/types/index.js +23 -5
  243. package/dist/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
  244. package/dist/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
  245. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +13 -0
  246. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +44 -0
  247. package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  248. package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  249. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
  250. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
  251. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
  252. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
  253. package/dist/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
  254. package/{serialization/types → dist/serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
  255. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  256. package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  257. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  258. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  259. package/dist/serialization/resources/providers/client/requests/index.d.ts +1 -0
  260. package/dist/serialization/resources/providers/client/requests/index.js +3 -1
  261. package/dist/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
  262. package/dist/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
  263. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
  264. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
  265. package/dist/serialization/types/AgentFileSchema.d.ts +27 -0
  266. package/dist/serialization/types/AgentFileSchema.js +58 -0
  267. package/dist/serialization/types/BlockSchema.d.ts +22 -0
  268. package/dist/serialization/types/BlockSchema.js +53 -0
  269. package/dist/serialization/types/BodyExportAgentSerialized.d.ts +15 -0
  270. package/dist/serialization/types/BodyExportAgentSerialized.js +46 -0
  271. package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  272. package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  273. package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  274. package/dist/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  275. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  276. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  277. package/dist/serialization/types/FileAgentSchema.d.ts +21 -0
  278. package/dist/serialization/types/FileAgentSchema.js +52 -0
  279. package/dist/serialization/types/FileSchema.d.ts +26 -0
  280. package/dist/serialization/types/FileSchema.js +57 -0
  281. package/dist/serialization/types/GroupSchema.d.ts +18 -0
  282. package/dist/serialization/types/GroupSchema.js +49 -0
  283. package/dist/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
  284. package/dist/serialization/types/GroupSchemaManagerConfig.js +52 -0
  285. package/dist/serialization/types/ImportedAgentsResponse.d.ts +12 -0
  286. package/dist/serialization/types/ImportedAgentsResponse.js +43 -0
  287. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
  288. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
  289. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
  290. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
  291. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
  292. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
  293. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
  294. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
  295. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
  296. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
  297. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
  298. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
  299. package/dist/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
  300. package/dist/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
  301. package/{serialization/types/AgentSchemaToolRulesItem.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
  302. package/{serialization/types/AgentSchemaToolRulesItem.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
  303. package/dist/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
  304. package/{serialization/types/MessageSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
  305. package/{serialization/types/ToolSchema.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
  306. package/{serialization/types/ToolSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
  307. package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  308. package/dist/serialization/types/LlmConfigModelEndpointType.js +0 -1
  309. package/dist/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
  310. package/dist/serialization/types/LlmConfigReasoningEffort.js +1 -1
  311. package/dist/serialization/types/McpServerSchema.d.ts +17 -0
  312. package/dist/serialization/types/McpServerSchema.js +48 -0
  313. package/dist/serialization/types/McpToolExecuteRequest.d.ts +12 -0
  314. package/dist/serialization/types/McpToolExecuteRequest.js +43 -0
  315. package/dist/serialization/types/Provider.d.ts +1 -0
  316. package/dist/serialization/types/Provider.js +1 -0
  317. package/dist/serialization/types/ProviderType.d.ts +1 -1
  318. package/dist/serialization/types/ProviderType.js +0 -1
  319. package/dist/serialization/types/SourceSchema.d.ts +20 -0
  320. package/dist/serialization/types/SourceSchema.js +51 -0
  321. package/dist/serialization/types/Step.d.ts +4 -0
  322. package/dist/serialization/types/Step.js +4 -0
  323. package/dist/serialization/types/StepMetrics.d.ts +21 -0
  324. package/dist/serialization/types/StepMetrics.js +52 -0
  325. package/dist/serialization/types/StepStatus.d.ts +10 -0
  326. package/dist/serialization/types/StepStatus.js +41 -0
  327. package/dist/serialization/types/index.d.ts +23 -5
  328. package/dist/serialization/types/index.js +23 -5
  329. package/dist/version.d.ts +1 -1
  330. package/dist/version.js +1 -1
  331. package/package.json +1 -1
  332. package/reference.md +140 -11
  333. package/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
  334. package/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
  335. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +13 -0
  336. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +44 -0
  337. package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  338. package/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  339. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
  340. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
  341. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
  342. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
  343. package/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
  344. package/{dist/serialization/types → serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
  345. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  346. package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  347. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  348. package/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  349. package/serialization/resources/providers/client/requests/index.d.ts +1 -0
  350. package/serialization/resources/providers/client/requests/index.js +3 -1
  351. package/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
  352. package/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
  353. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
  354. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
  355. package/serialization/types/AgentFileSchema.d.ts +27 -0
  356. package/serialization/types/AgentFileSchema.js +58 -0
  357. package/serialization/types/BlockSchema.d.ts +22 -0
  358. package/serialization/types/BlockSchema.js +53 -0
  359. package/serialization/types/BodyExportAgentSerialized.d.ts +15 -0
  360. package/serialization/types/BodyExportAgentSerialized.js +46 -0
  361. package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  362. package/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  363. package/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  364. package/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  365. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  366. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  367. package/serialization/types/FileAgentSchema.d.ts +21 -0
  368. package/serialization/types/FileAgentSchema.js +52 -0
  369. package/serialization/types/FileSchema.d.ts +26 -0
  370. package/serialization/types/FileSchema.js +57 -0
  371. package/serialization/types/GroupSchema.d.ts +18 -0
  372. package/serialization/types/GroupSchema.js +49 -0
  373. package/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
  374. package/serialization/types/GroupSchemaManagerConfig.js +52 -0
  375. package/serialization/types/ImportedAgentsResponse.d.ts +12 -0
  376. package/serialization/types/ImportedAgentsResponse.js +43 -0
  377. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
  378. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
  379. package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
  380. package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
  381. package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
  382. package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
  383. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
  384. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
  385. package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
  386. package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
  387. package/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
  388. package/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
  389. package/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
  390. package/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
  391. package/{dist/serialization/types/AgentSchemaToolRulesItem.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
  392. package/{dist/serialization/types/AgentSchemaToolRulesItem.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
  393. package/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
  394. package/{dist/serialization/types/MessageSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
  395. package/{dist/serialization/types/ToolSchema.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
  396. package/{dist/serialization/types/ToolSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
  397. package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  398. package/serialization/types/LlmConfigModelEndpointType.js +0 -1
  399. package/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
  400. package/serialization/types/LlmConfigReasoningEffort.js +1 -1
  401. package/serialization/types/McpServerSchema.d.ts +17 -0
  402. package/serialization/types/McpServerSchema.js +48 -0
  403. package/serialization/types/McpToolExecuteRequest.d.ts +12 -0
  404. package/serialization/types/McpToolExecuteRequest.js +43 -0
  405. package/serialization/types/Provider.d.ts +1 -0
  406. package/serialization/types/Provider.js +1 -0
  407. package/serialization/types/ProviderType.d.ts +1 -1
  408. package/serialization/types/ProviderType.js +0 -1
  409. package/serialization/types/SourceSchema.d.ts +20 -0
  410. package/serialization/types/SourceSchema.js +51 -0
  411. package/serialization/types/Step.d.ts +4 -0
  412. package/serialization/types/Step.js +4 -0
  413. package/serialization/types/StepMetrics.d.ts +21 -0
  414. package/serialization/types/StepMetrics.js +52 -0
  415. package/serialization/types/StepStatus.d.ts +10 -0
  416. package/serialization/types/StepStatus.js +41 -0
  417. package/serialization/types/index.d.ts +23 -5
  418. package/serialization/types/index.js +23 -5
  419. package/version.d.ts +1 -1
  420. package/version.js +1 -1
  421. package/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
  422. package/dist/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
  423. package/dist/serialization/types/ProviderCheck.d.ts +0 -16
  424. package/serialization/types/ProviderCheck.d.ts +0 -16
  425. /package/api/{types/AgentSchema.js → resources/agents/client/requests/AgentsExportFileRequest.js} +0 -0
  426. /package/api/{types/AgentSchemaToolRulesItem.js → resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js} +0 -0
  427. /package/api/{types → resources/providers/client/requests}/ProviderCheck.js +0 -0
  428. /package/api/types/{MessageSchema.js → AgentFileSchema.js} +0 -0
  429. /package/api/types/{ToolSchema.js → BlockSchema.js} +0 -0
  430. /package/{dist/api/types/AgentSchema.js → api/types/BodyExportAgentSerialized.js} +0 -0
  431. /package/{dist/api/types/AgentSchemaToolRulesItem.js → api/types/FileAgentSchema.js} +0 -0
  432. /package/{dist/api/types/MessageSchema.js → api/types/FileSchema.js} +0 -0
  433. /package/{dist/api/types/ProviderCheck.js → api/types/GroupSchema.js} +0 -0
  434. /package/{dist/api/types/ToolSchema.js → api/types/GroupSchemaManagerConfig.js} +0 -0
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaSchemasAgentFileAgentSchemaResponseFormat = Letta.JsonObjectResponseFormat | Letta.JsonSchemaResponseFormat | Letta.TextResponseFormat;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaSchemasAgentFileAgentSchemaToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.ParentToolRule | Letta.RequiredBeforeExitToolRule | Letta.InitToolRule;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Message with human-readable ID for agent file
7
+ */
8
+ export interface LettaSchemasAgentFileMessageSchema {
9
+ /** The role of the participant. */
10
+ role: Letta.MessageRole;
11
+ /** The content of the message. */
12
+ content: Letta.LettaSchemasAgentFileMessageSchemaContent;
13
+ /** The name of the participant. */
14
+ name?: string;
15
+ /** The offline threading id associated with this message */
16
+ otid?: string;
17
+ /** The id of the sender of the message, can be an identity id or agent id */
18
+ senderId?: string;
19
+ /** The id of the LLMBatchItem that this message is associated with */
20
+ batchItemId?: string;
21
+ /** The multi-agent group that the message was sent in */
22
+ groupId?: string;
23
+ /** Human-readable identifier for this message in the file */
24
+ id: string;
25
+ /** The model used to make the function call */
26
+ model?: string;
27
+ /** The unique identifier of the agent */
28
+ agentId?: string;
29
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * The content of the message.
7
+ */
8
+ export type LettaSchemasAgentFileMessageSchemaContent = Letta.LettaMessageContentUnion[] | string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Tool with human-readable ID for agent file
7
+ */
8
+ export interface LettaSchemasAgentFileToolSchema {
9
+ /** Human-readable identifier for this tool in the file */
10
+ id: string;
11
+ /** The type of the tool. */
12
+ toolType?: Letta.ToolType;
13
+ /** The description of the tool. */
14
+ description?: string;
15
+ /** The type of the source code. */
16
+ sourceType?: string;
17
+ /** The name of the function. */
18
+ name?: string;
19
+ /** Metadata tags. */
20
+ tags?: string[];
21
+ /** The source code of the function. */
22
+ sourceCode?: string;
23
+ /** The JSON schema of the function. */
24
+ jsonSchema?: Record<string, unknown>;
25
+ /** The args JSON schema of the function. */
26
+ argsJsonSchema?: Record<string, unknown>;
27
+ /** The maximum number of characters in the response. */
28
+ returnCharLimit?: number;
29
+ /** Optional list of pip packages required by this tool. */
30
+ pipRequirements?: Letta.PipRequirement[];
31
+ /** Optional list of npm packages required by this tool. */
32
+ npmRequirements?: Letta.NpmRequirement[];
33
+ /** The id of the user that made this Tool. */
34
+ createdById?: string;
35
+ /** The id of the user that made this Tool. */
36
+ lastUpdatedById?: string;
37
+ /** A dictionary of additional metadata for the tool. */
38
+ metadata?: Record<string, unknown>;
39
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export interface AgentSchema {
5
+ export interface LettaSerializeSchemasPydanticAgentSchemaAgentSchema {
6
6
  agentType: string;
7
7
  coreMemory: Letta.CoreMemoryBlockSchema[];
8
8
  createdAt: string;
@@ -11,15 +11,15 @@ export interface AgentSchema {
11
11
  llmConfig: Letta.LlmConfig;
12
12
  messageBufferAutoclear: boolean;
13
13
  inContextMessageIndices: number[];
14
- messages: Letta.MessageSchema[];
14
+ messages: Letta.LettaSerializeSchemasPydanticAgentSchemaMessageSchema[];
15
15
  metadata?: Record<string, unknown>;
16
16
  multiAgentGroup?: unknown;
17
17
  name: string;
18
18
  system: string;
19
19
  tags: Letta.TagSchema[];
20
20
  toolExecEnvironmentVariables: Letta.ToolEnvVarSchema[];
21
- toolRules: Letta.AgentSchemaToolRulesItem[];
22
- tools: Letta.ToolSchema[];
21
+ toolRules: Letta.LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem[];
22
+ tools: Letta.LettaSerializeSchemasPydanticAgentSchemaToolSchema[];
23
23
  updatedAt: string;
24
24
  version: string;
25
25
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem = Letta.BaseToolRuleSchema | Letta.ChildToolRuleSchema | Letta.MaxCountPerStepToolRuleSchema | Letta.ConditionalToolRuleSchema;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export interface MessageSchema {
5
+ export interface LettaSerializeSchemasPydanticAgentSchemaMessageSchema {
6
6
  createdAt: string;
7
7
  groupId?: string;
8
8
  model?: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export interface ToolSchema {
5
+ export interface LettaSerializeSchemasPydanticAgentSchemaToolSchema {
6
6
  argsJsonSchema?: unknown;
7
7
  createdAt: string;
8
8
  description: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -32,7 +32,7 @@ export interface LlmConfig {
32
32
  enableReasoner?: boolean;
33
33
  /** The reasoning effort to use when generating text reasoning models */
34
34
  reasoningEffort?: Letta.LlmConfigReasoningEffort;
35
- /** Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024. */
35
+ /** Configurable thinking budget for extended thinking. Used for enable_reasoner and also for Google Vertex models like Gemini 2.5 Flash. Minimum value is 1024 when used with enable_reasoner. */
36
36
  maxReasoningTokens?: number;
37
37
  /** Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. From OpenAI: Number between -2.0 and 2.0. */
38
38
  frequencyPenalty?: number;
@@ -4,11 +4,10 @@
4
4
  /**
5
5
  * The endpoint type for the model.
6
6
  */
7
- export type LlmConfigModelEndpointType = "openai" | "anthropic" | "cohere" | "google_ai" | "google_vertex" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "lmstudio-chatcompletions" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "bedrock" | "deepseek" | "xai";
7
+ export type LlmConfigModelEndpointType = "openai" | "anthropic" | "google_ai" | "google_vertex" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "lmstudio-chatcompletions" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "bedrock" | "deepseek" | "xai";
8
8
  export declare const LlmConfigModelEndpointType: {
9
9
  readonly Openai: "openai";
10
10
  readonly Anthropic: "anthropic";
11
- readonly Cohere: "cohere";
12
11
  readonly GoogleAi: "google_ai";
13
12
  readonly GoogleVertex: "google_vertex";
14
13
  readonly Azure: "azure";
@@ -7,7 +7,6 @@ exports.LlmConfigModelEndpointType = void 0;
7
7
  exports.LlmConfigModelEndpointType = {
8
8
  Openai: "openai",
9
9
  Anthropic: "anthropic",
10
- Cohere: "cohere",
11
10
  GoogleAi: "google_ai",
12
11
  GoogleVertex: "google_vertex",
13
12
  Azure: "azure",
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type LlmConfigReasoningEffort = "low" | "medium" | "high";
4
+ export type LlmConfigReasoningEffort = "minimal" | "low" | "medium" | "high";
5
5
  export declare const LlmConfigReasoningEffort: {
6
+ readonly Minimal: "minimal";
6
7
  readonly Low: "low";
7
8
  readonly Medium: "medium";
8
9
  readonly High: "high";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.LlmConfigReasoningEffort = void 0;
7
7
  exports.LlmConfigReasoningEffort = {
8
+ Minimal: "minimal",
8
9
  Low: "low",
9
10
  Medium: "medium",
10
11
  High: "high",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * MCP server schema for agent files with remapped ID.
6
+ */
7
+ export interface McpServerSchema {
8
+ /** Human-readable MCP server ID */
9
+ id: string;
10
+ serverType: string;
11
+ serverName: string;
12
+ serverUrl?: string;
13
+ stdioConfig?: Record<string, unknown>;
14
+ metadata?: Record<string, unknown>;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface McpToolExecuteRequest {
5
+ /** Arguments to pass to the MCP tool */
6
+ args?: Record<string, unknown>;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,6 +19,8 @@ export interface Provider {
19
19
  accessKey?: string;
20
20
  /** Region used for requests to the provider. */
21
21
  region?: string;
22
+ /** API version used for requests to the provider. */
23
+ apiVersion?: string;
22
24
  /** The last update timestamp of the provider. */
23
25
  updatedAt?: Date;
24
26
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "cerebras" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock" | "cohere";
4
+ export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "cerebras" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
5
5
  export declare const ProviderType: {
6
6
  readonly Anthropic: "anthropic";
7
7
  readonly GoogleAi: "google_ai";
@@ -19,5 +19,4 @@ export declare const ProviderType: {
19
19
  readonly Azure: "azure";
20
20
  readonly Vllm: "vllm";
21
21
  readonly Bedrock: "bedrock";
22
- readonly Cohere: "cohere";
23
22
  };
@@ -21,5 +21,4 @@ exports.ProviderType = {
21
21
  Azure: "azure",
22
22
  Vllm: "vllm",
23
23
  Bedrock: "bedrock",
24
- Cohere: "cohere",
25
24
  };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Source with human-readable ID for agent file
7
+ */
8
+ export interface SourceSchema {
9
+ /** The name of the source. */
10
+ name: string;
11
+ /** The description of the source. */
12
+ description?: string;
13
+ /** Instructions for how to use the source. */
14
+ instructions?: string;
15
+ /** Metadata associated with the source. */
16
+ metadata?: Record<string, unknown>;
17
+ /** The handle for the embedding config used by the source. */
18
+ embedding?: string;
19
+ /** The chunk size of the embedding. */
20
+ embeddingChunkSize?: number;
21
+ /** (Legacy) The embedding configuration used by the source. */
22
+ embeddingConfig?: Letta.EmbeddingConfig;
23
+ /** Human-readable identifier for this source in the file */
24
+ id: string;
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -45,4 +45,10 @@ export interface Step {
45
45
  feedback?: Letta.StepFeedback;
46
46
  /** The project that the agent that executed this step belongs to (cloud only). */
47
47
  projectId?: string;
48
+ /** The type/class of the error that occurred */
49
+ errorType?: string;
50
+ /** Error details including message, traceback, and additional context */
51
+ errorData?: Record<string, unknown>;
52
+ /** Step status: pending, success, or failed */
53
+ status?: Letta.StepStatus;
48
54
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface StepMetrics {
5
+ /** The id of the step this metric belongs to (matches steps.id). */
6
+ id: string;
7
+ /** The unique identifier of the provider. */
8
+ providerId?: string;
9
+ /** The unique identifier of the job. */
10
+ jobId?: string;
11
+ /** The unique identifier of the agent. */
12
+ agentId?: string;
13
+ /** Time spent on LLM requests in nanoseconds. */
14
+ llmRequestNs?: number;
15
+ /** Time spent on tool execution in nanoseconds. */
16
+ toolExecutionNs?: number;
17
+ /** Total time for the step in nanoseconds. */
18
+ stepNs?: number;
19
+ /** The base template ID that the step belongs to (cloud only). */
20
+ baseTemplateId?: string;
21
+ /** The template ID that the step belongs to (cloud only). */
22
+ templateId?: string;
23
+ /** The project that the step belongs to (cloud only). */
24
+ projectId?: string;
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Status of a step execution
6
+ */
7
+ export type StepStatus = "pending" | "success" | "failed" | "cancelled";
8
+ export declare const StepStatus: {
9
+ readonly Pending: "pending";
10
+ readonly Success: "success";
11
+ readonly Failed: "failed";
12
+ readonly Cancelled: "cancelled";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StepStatus = void 0;
7
+ exports.StepStatus = {
8
+ Pending: "pending",
9
+ Success: "success",
10
+ Failed: "failed",
11
+ Cancelled: "cancelled",
12
+ };
@@ -8,8 +8,7 @@ export * from "./ActionModel";
8
8
  export * from "./ActionParametersModel";
9
9
  export * from "./ActionResponseModel";
10
10
  export * from "./AgentEnvironmentVariable";
11
- export * from "./AgentSchemaToolRulesItem";
12
- export * from "./AgentSchema";
11
+ export * from "./AgentFileSchema";
13
12
  export * from "./AgentStateToolRulesItem";
14
13
  export * from "./AgentStateResponseFormat";
15
14
  export * from "./AgentState";
@@ -27,7 +26,9 @@ export * from "./Base64Image";
27
26
  export * from "./BaseToolRuleSchema";
28
27
  export * from "./BatchJob";
29
28
  export * from "./Block";
29
+ export * from "./BlockSchema";
30
30
  export * from "./BlockUpdate";
31
+ export * from "./BodyExportAgentSerialized";
31
32
  export * from "./ChatCompletionAssistantMessageParamContentItem";
32
33
  export * from "./ChatCompletionAssistantMessageParamContent";
33
34
  export * from "./ChatCompletionAssistantMessageParam";
@@ -93,10 +94,12 @@ export * from "./EmbeddingConfigEmbeddingEndpointType";
93
94
  export * from "./EmbeddingConfig";
94
95
  export * from "./FeedbackType";
95
96
  export * from "./File_";
97
+ export * from "./FileAgentSchema";
96
98
  export * from "./FileBlock";
97
99
  export * from "./FileFile";
98
100
  export * from "./FileMetadata";
99
101
  export * from "./FileProcessingStatus";
102
+ export * from "./FileSchema";
100
103
  export * from "./FileStats";
101
104
  export * from "./Folder";
102
105
  export * from "./FunctionOutput";
@@ -107,6 +110,8 @@ export * from "./FunctionTool";
107
110
  export * from "./GenerateToolInput";
108
111
  export * from "./GenerateToolOutput";
109
112
  export * from "./Group";
113
+ export * from "./GroupSchemaManagerConfig";
114
+ export * from "./GroupSchema";
110
115
  export * from "./HttpValidationError";
111
116
  export * from "./Health";
112
117
  export * from "./HiddenReasoningMessageState";
@@ -120,6 +125,7 @@ export * from "./ImageContentSource";
120
125
  export * from "./ImageContent";
121
126
  export * from "./ImageUrlDetail";
122
127
  export * from "./ImageUrl";
128
+ export * from "./ImportedAgentsResponse";
123
129
  export * from "./InitToolRule";
124
130
  export * from "./InputAudioFormat";
125
131
  export * from "./InputAudio";
@@ -143,8 +149,10 @@ export * from "./LettaStopReason";
143
149
  export * from "./LettaStreamingRequest";
144
150
  export * from "./LettaUsageStatistics";
145
151
  export * from "./LocalSandboxConfig";
152
+ export * from "./McpServerSchema";
146
153
  export * from "./McpServerType";
147
154
  export * from "./McpTool";
155
+ export * from "./McpToolExecuteRequest";
148
156
  export * from "./ManagerType";
149
157
  export * from "./MaxCountPerStepToolRule";
150
158
  export * from "./MaxCountPerStepToolRuleSchema";
@@ -155,7 +163,6 @@ export * from "./MessageCreateRole";
155
163
  export * from "./MessageCreateContent";
156
164
  export * from "./MessageCreate";
157
165
  export * from "./MessageRole";
158
- export * from "./MessageSchema";
159
166
  export * from "./MessageType";
160
167
  export * from "./ModalSandboxConfigLanguage";
161
168
  export * from "./ModalSandboxConfig";
@@ -172,7 +179,6 @@ export * from "./Passage";
172
179
  export * from "./PipRequirement";
173
180
  export * from "./Provider";
174
181
  export * from "./ProviderCategory";
175
- export * from "./ProviderCheck";
176
182
  export * from "./ProviderTrace";
177
183
  export * from "./ProviderType";
178
184
  export * from "./ReasoningContent";
@@ -200,11 +206,14 @@ export * from "./SleeptimeManager";
200
206
  export * from "./SleeptimeManagerUpdate";
201
207
  export * from "./Source";
202
208
  export * from "./SourceCreate";
209
+ export * from "./SourceSchema";
203
210
  export * from "./SourceStats";
204
211
  export * from "./SourceUpdate";
205
212
  export * from "./StdioServerConfig";
206
213
  export * from "./StepFeedback";
207
214
  export * from "./Step";
215
+ export * from "./StepMetrics";
216
+ export * from "./StepStatus";
208
217
  export * from "./StopReasonType";
209
218
  export * from "./StreamableHttpServerConfig";
210
219
  export * from "./SupervisorManager";
@@ -229,7 +238,6 @@ export * from "./ToolReturn";
229
238
  export * from "./ToolReturnContent";
230
239
  export * from "./ToolReturnMessageStatus";
231
240
  export * from "./ToolReturnMessage";
232
- export * from "./ToolSchema";
233
241
  export * from "./ToolType";
234
242
  export * from "./UpdateAssistantMessageContent";
235
243
  export * from "./UpdateAssistantMessage";
@@ -257,6 +265,16 @@ export * from "./WebSearchOptionsSearchContextSize";
257
265
  export * from "./WebSearchOptions";
258
266
  export * from "./WebSearchOptionsUserLocation";
259
267
  export * from "./WebSearchOptionsUserLocationApproximate";
268
+ export * from "./LettaSchemasAgentFileAgentSchemaToolRulesItem";
269
+ export * from "./LettaSchemasAgentFileAgentSchemaResponseFormat";
270
+ export * from "./LettaSchemasAgentFileAgentSchema";
271
+ export * from "./LettaSchemasAgentFileMessageSchemaContent";
272
+ export * from "./LettaSchemasAgentFileMessageSchema";
273
+ export * from "./LettaSchemasAgentFileToolSchema";
274
+ export * from "./LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem";
275
+ export * from "./LettaSerializeSchemasPydanticAgentSchemaAgentSchema";
276
+ export * from "./LettaSerializeSchemasPydanticAgentSchemaMessageSchema";
277
+ export * from "./LettaSerializeSchemasPydanticAgentSchemaToolSchema";
260
278
  export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
261
279
  export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
262
280
  export * from "./OpenaiTypesChatCompletionCreateParamsFunction";