@letta-ai/letta-client 0.1.176 → 0.1.178

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 (432) 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 +3 -3
  13. package/api/resources/agents/resources/messages/client/Client.js +14 -18
  14. package/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +11 -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/tools/client/requests/ToolUpdate.d.ts +2 -0
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/AgentFileSchema.d.ts +27 -0
  65. package/api/types/BlockSchema.d.ts +29 -0
  66. package/api/types/BodyExportAgentSerialized.d.ts +8 -0
  67. package/api/types/CodeInput.d.ts +3 -1
  68. package/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  69. package/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
  70. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
  71. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  72. package/api/types/FileAgentSchema.d.ts +28 -0
  73. package/api/types/FileSchema.d.ts +37 -0
  74. package/api/types/GroupSchema.d.ts +21 -0
  75. package/api/types/GroupSchemaManagerConfig.d.ts +8 -0
  76. package/api/types/ImportedAgentsResponse.d.ts +10 -0
  77. package/api/types/ImportedAgentsResponse.js +5 -0
  78. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
  79. package/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
  80. package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
  81. package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
  82. package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
  83. package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
  84. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
  85. package/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
  86. package/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
  87. package/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
  88. package/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
  89. package/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
  90. package/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
  91. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
  92. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
  93. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
  94. package/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
  95. package/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
  96. package/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
  97. package/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
  98. package/api/types/LlmConfig.d.ts +1 -1
  99. package/api/types/LlmConfigModelEndpointType.d.ts +1 -2
  100. package/api/types/LlmConfigModelEndpointType.js +0 -1
  101. package/api/types/LlmConfigReasoningEffort.d.ts +2 -1
  102. package/api/types/LlmConfigReasoningEffort.js +1 -0
  103. package/api/types/McpServerSchema.d.ts +15 -0
  104. package/api/types/McpServerSchema.js +5 -0
  105. package/api/types/McpToolExecuteRequest.d.ts +7 -0
  106. package/api/types/McpToolExecuteRequest.js +5 -0
  107. package/api/types/Provider.d.ts +2 -0
  108. package/api/types/ProviderType.d.ts +1 -2
  109. package/api/types/ProviderType.js +0 -1
  110. package/api/types/SourceSchema.d.ts +25 -0
  111. package/api/types/SourceSchema.js +5 -0
  112. package/api/types/StepMetrics.d.ts +25 -0
  113. package/api/types/StepMetrics.js +5 -0
  114. package/api/types/index.d.ts +22 -5
  115. package/api/types/index.js +22 -5
  116. package/dist/api/resources/agents/client/Client.d.ts +9 -3
  117. package/dist/api/resources/agents/client/Client.js +31 -16
  118. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +14 -0
  119. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.js +5 -0
  120. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  121. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  122. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  123. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  124. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  125. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  126. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  127. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  128. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
  129. package/dist/api/resources/agents/resources/messages/client/Client.js +14 -18
  130. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +11 -0
  131. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +5 -0
  132. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  133. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  134. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  135. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  136. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +2 -0
  137. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +2 -0
  138. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  139. package/dist/api/resources/batches/client/Client.js +4 -4
  140. package/dist/api/resources/blocks/client/Client.js +6 -6
  141. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  142. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  143. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  144. package/dist/api/resources/folders/client/Client.js +9 -9
  145. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  146. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  147. package/dist/api/resources/groups/client/Client.js +6 -6
  148. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  149. package/dist/api/resources/health/client/Client.js +1 -1
  150. package/dist/api/resources/identities/client/Client.js +7 -7
  151. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  152. package/dist/api/resources/jobs/client/Client.js +5 -5
  153. package/dist/api/resources/messages/client/Client.js +1 -1
  154. package/dist/api/resources/models/client/Client.js +1 -1
  155. package/dist/api/resources/projects/client/Client.js +1 -1
  156. package/dist/api/resources/providers/client/Client.d.ts +15 -3
  157. package/dist/api/resources/providers/client/Client.js +64 -8
  158. package/{api/types → dist/api/resources/providers/client/requests}/ProviderCheck.d.ts +12 -1
  159. package/dist/api/resources/providers/client/requests/ProviderCheck.js +5 -0
  160. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
  161. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +4 -0
  162. package/dist/api/resources/providers/client/requests/index.d.ts +1 -0
  163. package/dist/api/resources/runs/client/Client.js +4 -4
  164. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  165. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  166. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  167. package/dist/api/resources/sources/client/Client.js +10 -10
  168. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  169. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  170. package/dist/api/resources/steps/client/Client.d.ts +13 -0
  171. package/dist/api/resources/steps/client/Client.js +78 -2
  172. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  173. package/dist/api/resources/tags/client/Client.js +1 -1
  174. package/dist/api/resources/telemetry/client/Client.js +1 -1
  175. package/dist/api/resources/templates/client/Client.js +1 -1
  176. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  177. package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  178. package/dist/api/resources/tools/client/Client.d.ts +1 -1
  179. package/dist/api/resources/tools/client/Client.js +21 -21
  180. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  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/CodeInput.d.ts +3 -1
  189. package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  190. package/dist/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
  191. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
  192. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  193. package/dist/api/types/FileAgentSchema.d.ts +28 -0
  194. package/dist/api/types/FileAgentSchema.js +5 -0
  195. package/dist/api/types/FileSchema.d.ts +37 -0
  196. package/dist/api/types/FileSchema.js +5 -0
  197. package/dist/api/types/GroupSchema.d.ts +21 -0
  198. package/dist/api/types/GroupSchema.js +5 -0
  199. package/dist/api/types/GroupSchemaManagerConfig.d.ts +8 -0
  200. package/dist/api/types/GroupSchemaManagerConfig.js +5 -0
  201. package/dist/api/types/ImportedAgentsResponse.d.ts +10 -0
  202. package/dist/api/types/ImportedAgentsResponse.js +5 -0
  203. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
  204. package/dist/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
  205. package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
  206. package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
  207. package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
  208. package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
  209. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
  210. package/dist/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
  211. package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
  212. package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
  213. package/dist/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
  214. package/dist/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
  215. package/dist/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
  216. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
  217. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
  218. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
  219. package/dist/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
  220. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
  221. package/dist/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
  222. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
  223. package/dist/api/types/LlmConfig.d.ts +1 -1
  224. package/dist/api/types/LlmConfigModelEndpointType.d.ts +1 -2
  225. package/dist/api/types/LlmConfigModelEndpointType.js +0 -1
  226. package/dist/api/types/LlmConfigReasoningEffort.d.ts +2 -1
  227. package/dist/api/types/LlmConfigReasoningEffort.js +1 -0
  228. package/dist/api/types/McpServerSchema.d.ts +15 -0
  229. package/dist/api/types/McpServerSchema.js +5 -0
  230. package/dist/api/types/McpToolExecuteRequest.d.ts +7 -0
  231. package/dist/api/types/McpToolExecuteRequest.js +5 -0
  232. package/dist/api/types/Provider.d.ts +2 -0
  233. package/dist/api/types/ProviderType.d.ts +1 -2
  234. package/dist/api/types/ProviderType.js +0 -1
  235. package/dist/api/types/SourceSchema.d.ts +25 -0
  236. package/dist/api/types/SourceSchema.js +5 -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/index.d.ts +22 -5
  240. package/dist/api/types/index.js +22 -5
  241. package/dist/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
  242. package/dist/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
  243. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +12 -0
  244. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +43 -0
  245. package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  246. package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  247. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
  248. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
  249. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
  250. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
  251. package/dist/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
  252. package/{serialization/types → dist/serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
  253. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  254. package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  255. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  256. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  257. package/dist/serialization/resources/providers/client/requests/index.d.ts +1 -0
  258. package/dist/serialization/resources/providers/client/requests/index.js +3 -1
  259. package/dist/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
  260. package/dist/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
  261. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
  262. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
  263. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  264. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -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/CodeInput.d.ts +1 -0
  272. package/dist/serialization/types/CodeInput.js +1 -0
  273. package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  274. package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  275. package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  276. package/dist/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  277. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  278. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  279. package/dist/serialization/types/FileAgentSchema.d.ts +21 -0
  280. package/dist/serialization/types/FileAgentSchema.js +52 -0
  281. package/dist/serialization/types/FileSchema.d.ts +26 -0
  282. package/dist/serialization/types/FileSchema.js +57 -0
  283. package/dist/serialization/types/GroupSchema.d.ts +18 -0
  284. package/dist/serialization/types/GroupSchema.js +49 -0
  285. package/dist/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
  286. package/dist/serialization/types/GroupSchemaManagerConfig.js +52 -0
  287. package/dist/serialization/types/ImportedAgentsResponse.d.ts +12 -0
  288. package/dist/serialization/types/ImportedAgentsResponse.js +43 -0
  289. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
  290. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
  291. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
  292. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
  293. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
  294. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
  295. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
  296. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
  297. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
  298. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
  299. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
  300. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
  301. package/dist/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
  302. package/dist/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
  303. package/{serialization/types/AgentSchemaToolRulesItem.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
  304. package/{serialization/types/AgentSchemaToolRulesItem.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
  305. package/dist/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
  306. package/{serialization/types/MessageSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
  307. package/{serialization/types/ToolSchema.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
  308. package/{serialization/types/ToolSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
  309. package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  310. package/dist/serialization/types/LlmConfigModelEndpointType.js +0 -1
  311. package/dist/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
  312. package/dist/serialization/types/LlmConfigReasoningEffort.js +1 -1
  313. package/dist/serialization/types/McpServerSchema.d.ts +17 -0
  314. package/dist/serialization/types/McpServerSchema.js +48 -0
  315. package/dist/serialization/types/McpToolExecuteRequest.d.ts +12 -0
  316. package/dist/serialization/types/McpToolExecuteRequest.js +43 -0
  317. package/dist/serialization/types/Provider.d.ts +1 -0
  318. package/dist/serialization/types/Provider.js +1 -0
  319. package/dist/serialization/types/ProviderType.d.ts +1 -1
  320. package/dist/serialization/types/ProviderType.js +0 -1
  321. package/dist/serialization/types/SourceSchema.d.ts +20 -0
  322. package/dist/serialization/types/SourceSchema.js +51 -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/index.d.ts +22 -5
  326. package/dist/serialization/types/index.js +22 -5
  327. package/dist/version.d.ts +1 -1
  328. package/dist/version.js +1 -1
  329. package/package.json +1 -1
  330. package/reference.md +138 -11
  331. package/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
  332. package/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
  333. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +12 -0
  334. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +43 -0
  335. package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  336. package/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  337. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
  338. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
  339. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
  340. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
  341. package/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
  342. package/{dist/serialization/types → serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
  343. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  344. package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  345. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  346. package/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  347. package/serialization/resources/providers/client/requests/index.d.ts +1 -0
  348. package/serialization/resources/providers/client/requests/index.js +3 -1
  349. package/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
  350. package/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
  351. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
  352. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
  353. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  354. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -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/CodeInput.d.ts +1 -0
  362. package/serialization/types/CodeInput.js +1 -0
  363. package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  364. package/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  365. package/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  366. package/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  367. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  368. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  369. package/serialization/types/FileAgentSchema.d.ts +21 -0
  370. package/serialization/types/FileAgentSchema.js +52 -0
  371. package/serialization/types/FileSchema.d.ts +26 -0
  372. package/serialization/types/FileSchema.js +57 -0
  373. package/serialization/types/GroupSchema.d.ts +18 -0
  374. package/serialization/types/GroupSchema.js +49 -0
  375. package/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
  376. package/serialization/types/GroupSchemaManagerConfig.js +52 -0
  377. package/serialization/types/ImportedAgentsResponse.d.ts +12 -0
  378. package/serialization/types/ImportedAgentsResponse.js +43 -0
  379. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
  380. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
  381. package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
  382. package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
  383. package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
  384. package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
  385. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
  386. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
  387. package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
  388. package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
  389. package/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
  390. package/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
  391. package/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
  392. package/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
  393. package/{dist/serialization/types/AgentSchemaToolRulesItem.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
  394. package/{dist/serialization/types/AgentSchemaToolRulesItem.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
  395. package/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
  396. package/{dist/serialization/types/MessageSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
  397. package/{dist/serialization/types/ToolSchema.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
  398. package/{dist/serialization/types/ToolSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
  399. package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  400. package/serialization/types/LlmConfigModelEndpointType.js +0 -1
  401. package/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
  402. package/serialization/types/LlmConfigReasoningEffort.js +1 -1
  403. package/serialization/types/McpServerSchema.d.ts +17 -0
  404. package/serialization/types/McpServerSchema.js +48 -0
  405. package/serialization/types/McpToolExecuteRequest.d.ts +12 -0
  406. package/serialization/types/McpToolExecuteRequest.js +43 -0
  407. package/serialization/types/Provider.d.ts +1 -0
  408. package/serialization/types/Provider.js +1 -0
  409. package/serialization/types/ProviderType.d.ts +1 -1
  410. package/serialization/types/ProviderType.js +0 -1
  411. package/serialization/types/SourceSchema.d.ts +20 -0
  412. package/serialization/types/SourceSchema.js +51 -0
  413. package/serialization/types/StepMetrics.d.ts +21 -0
  414. package/serialization/types/StepMetrics.js +52 -0
  415. package/serialization/types/index.d.ts +22 -5
  416. package/serialization/types/index.js +22 -5
  417. package/version.d.ts +1 -1
  418. package/version.js +1 -1
  419. package/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
  420. package/dist/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
  421. package/dist/serialization/types/ProviderCheck.d.ts +0 -16
  422. package/serialization/types/ProviderCheck.d.ts +0 -16
  423. /package/api/{types/AgentSchema.js → resources/agents/client/requests/AgentsExportFileRequest.js} +0 -0
  424. /package/api/{types/AgentSchemaToolRulesItem.js → resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js} +0 -0
  425. /package/api/{types → resources/providers/client/requests}/ProviderCheck.js +0 -0
  426. /package/api/types/{MessageSchema.js → AgentFileSchema.js} +0 -0
  427. /package/api/types/{ToolSchema.js → BlockSchema.js} +0 -0
  428. /package/{dist/api/types/AgentSchema.js → api/types/BodyExportAgentSerialized.js} +0 -0
  429. /package/{dist/api/types/AgentSchemaToolRulesItem.js → api/types/FileAgentSchema.js} +0 -0
  430. /package/{dist/api/types/MessageSchema.js → api/types/FileSchema.js} +0 -0
  431. /package/{dist/api/types/ProviderCheck.js → api/types/GroupSchema.js} +0 -0
  432. /package/{dist/api/types/ToolSchema.js → api/types/GroupSchemaManagerConfig.js} +0 -0
@@ -0,0 +1,105 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Agent with human-readable ID for agent file
7
+ */
8
+ export interface LettaSchemasAgentFileAgentSchema {
9
+ /** The name of the agent. */
10
+ name?: string;
11
+ /** The blocks to create in the agent's in-context memory. */
12
+ memoryBlocks?: Letta.CreateBlock[];
13
+ /** The tools used by the agent. */
14
+ tools?: string[];
15
+ /** The ids of the tools used by the agent. */
16
+ toolIds?: string[];
17
+ /** The ids of the sources used by the agent. */
18
+ sourceIds?: string[];
19
+ /** The ids of the blocks used by the agent. */
20
+ blockIds?: string[];
21
+ /** The tool rules governing the agent. */
22
+ toolRules?: Letta.LettaSchemasAgentFileAgentSchemaToolRulesItem[];
23
+ /** The tags associated with the agent. */
24
+ tags?: string[];
25
+ /** The system prompt used by the agent. */
26
+ system?: string;
27
+ /** The type of agent. */
28
+ agentType?: Letta.AgentType;
29
+ /** The LLM configuration used by the agent. */
30
+ llmConfig?: Letta.LlmConfig;
31
+ /** The embedding configuration used by the agent. */
32
+ embeddingConfig?: Letta.EmbeddingConfig;
33
+ /** The initial set of messages to put in the agent's in-context memory. */
34
+ initialMessageSequence?: Letta.MessageCreate[];
35
+ /** If true, attaches the Letta core tools (e.g. core_memory related functions). */
36
+ includeBaseTools?: boolean;
37
+ /** If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent). */
38
+ includeMultiAgentTools?: boolean;
39
+ /** If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed). */
40
+ includeBaseToolRules?: boolean;
41
+ /** If true, automatically creates and attaches a default data source for this agent. */
42
+ includeDefaultSource?: boolean;
43
+ /** The description of the agent. */
44
+ description?: string;
45
+ /** The metadata of the agent. */
46
+ metadata?: Record<string, unknown>;
47
+ /** The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config. */
48
+ model?: string;
49
+ /** The embedding configuration handle used by the agent, specified in the format provider/model-name. */
50
+ embedding?: string;
51
+ /** The context window limit used by the agent. */
52
+ contextWindowLimit?: number;
53
+ /** The embedding chunk size used by the agent. */
54
+ embeddingChunkSize?: number;
55
+ /** The maximum number of tokens to generate, including reasoning step. If not set, the model will use its default value. */
56
+ maxTokens?: number;
57
+ /** The maximum number of tokens to generate for reasoning step. If not set, the model will use its default value. */
58
+ maxReasoningTokens?: number;
59
+ /** Whether to enable internal extended thinking step for a reasoner model. */
60
+ enableReasoner?: boolean;
61
+ /** Whether to enable reasoning for this agent. */
62
+ reasoning?: boolean;
63
+ /** The template id used to configure the agent */
64
+ fromTemplate?: string;
65
+ /** Whether the agent is a template */
66
+ template?: boolean;
67
+ /** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
68
+ project?: string;
69
+ /** The environment variables for tool execution specific to this agent. */
70
+ toolExecEnvironmentVariables?: Record<string, string | undefined>;
71
+ /** The variables that should be set for the agent. */
72
+ memoryVariables?: Record<string, string | undefined>;
73
+ /** The id of the project the agent belongs to. */
74
+ projectId?: string;
75
+ /** The id of the template the agent belongs to. */
76
+ templateId?: string;
77
+ /** The base template id of the agent. */
78
+ baseTemplateId?: string;
79
+ /** The ids of the identities associated with this agent. */
80
+ identityIds?: string[];
81
+ /** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
82
+ messageBufferAutoclear?: boolean;
83
+ /** If set to True, memory management will move to a background agent thread. */
84
+ enableSleeptime?: boolean;
85
+ /** The response format for the agent. */
86
+ responseFormat?: Letta.LettaSchemasAgentFileAgentSchemaResponseFormat;
87
+ /** The timezone of the agent (IANA format). */
88
+ timezone?: string;
89
+ /** Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent. */
90
+ maxFilesOpen?: number;
91
+ /** The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent. */
92
+ perFileViewWindowCharLimit?: number;
93
+ /** If set to True, the agent will be hidden. */
94
+ hidden?: boolean;
95
+ /** Human-readable identifier for this agent in the file */
96
+ id: string;
97
+ /** List of message IDs that are currently in the agent's context */
98
+ inContextMessageIds?: string[];
99
+ /** List of messages in the agent's conversation history */
100
+ messages?: Letta.LettaSchemasAgentFileMessageSchema[];
101
+ /** List of file-agent relationships for this agent */
102
+ filesAgents?: Letta.FileAgentSchema[];
103
+ /** List of groups that the agent manages */
104
+ groupIds?: string[];
105
+ }
@@ -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 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 });
@@ -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 });
@@ -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,13 @@ 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";
208
216
  export * from "./StepStatus";
209
217
  export * from "./StopReasonType";
210
218
  export * from "./StreamableHttpServerConfig";
@@ -230,7 +238,6 @@ export * from "./ToolReturn";
230
238
  export * from "./ToolReturnContent";
231
239
  export * from "./ToolReturnMessageStatus";
232
240
  export * from "./ToolReturnMessage";
233
- export * from "./ToolSchema";
234
241
  export * from "./ToolType";
235
242
  export * from "./UpdateAssistantMessageContent";
236
243
  export * from "./UpdateAssistantMessage";
@@ -258,6 +265,16 @@ export * from "./WebSearchOptionsSearchContextSize";
258
265
  export * from "./WebSearchOptions";
259
266
  export * from "./WebSearchOptionsUserLocation";
260
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";
261
278
  export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
262
279
  export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
263
280
  export * from "./OpenaiTypesChatCompletionCreateParamsFunction";