@letta-ai/letta-client 0.1.63 → 0.1.65

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 (292) hide show
  1. package/api/resources/agents/client/Client.d.ts +7 -7
  2. package/api/resources/agents/client/Client.js +28 -22
  3. package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  4. package/api/resources/agents/client/requests/index.d.ts +1 -1
  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/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.d.ts +9 -6
  10. package/api/resources/agents/resources/messages/client/Client.js +14 -11
  11. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/groups/client/Client.d.ts +8 -2
  17. package/api/resources/groups/client/Client.js +15 -9
  18. package/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
  19. package/api/resources/health/client/Client.js +1 -1
  20. package/api/resources/identities/client/Client.js +6 -6
  21. package/api/resources/jobs/client/Client.js +4 -4
  22. package/api/resources/models/client/Client.js +2 -2
  23. package/api/resources/providers/client/Client.js +4 -4
  24. package/api/resources/runs/client/Client.js +7 -7
  25. package/api/resources/sources/client/Client.js +6 -6
  26. package/api/resources/sources/resources/files/client/Client.js +3 -3
  27. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  28. package/api/resources/steps/client/Client.js +2 -2
  29. package/api/resources/tag/client/Client.js +1 -1
  30. package/api/resources/templates/client/Client.js +1 -1
  31. package/api/resources/tools/client/Client.js +16 -16
  32. package/api/resources/voice/client/Client.js +1 -1
  33. package/api/types/AgentSchema.d.ts +27 -0
  34. package/api/types/AssistantMessage.d.ts +3 -1
  35. package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  36. package/api/types/LettaMessageContentUnion.d.ts +5 -0
  37. package/api/types/Message.d.ts +1 -1
  38. package/api/types/MessageContentItem.d.ts +5 -0
  39. package/api/types/MessageCreateContent.d.ts +1 -1
  40. package/api/types/MessageSchema.d.ts +17 -0
  41. package/api/types/OmittedReasoningContent.d.ts +8 -0
  42. package/api/types/OmittedReasoningContent.js +5 -0
  43. package/api/types/ParameterProperties.d.ts +7 -0
  44. package/api/types/ParameterProperties.js +5 -0
  45. package/api/types/ParametersSchema.d.ts +9 -0
  46. package/api/types/ParametersSchema.js +5 -0
  47. package/api/types/ReasoningContent.d.ts +12 -0
  48. package/api/types/ReasoningContent.js +5 -0
  49. package/api/types/ReasoningMessage.d.ts +6 -0
  50. package/api/types/ReasoningMessageSource.d.ts +8 -0
  51. package/api/types/ReasoningMessageSource.js +10 -0
  52. package/api/types/RedactedReasoningContent.d.ts +8 -0
  53. package/api/types/RedactedReasoningContent.js +5 -0
  54. package/api/types/SystemMessage.d.ts +5 -4
  55. package/api/types/TagSchema.d.ts +6 -0
  56. package/api/types/TagSchema.js +5 -0
  57. package/api/types/ToolCallContent.d.ts +12 -0
  58. package/api/types/ToolCallContent.js +5 -0
  59. package/api/types/ToolCallMessage.d.ts +2 -0
  60. package/api/types/ToolEnvVarSchema.d.ts +11 -0
  61. package/api/types/ToolEnvVarSchema.js +5 -0
  62. package/api/types/ToolJsonSchema.d.ts +11 -0
  63. package/api/types/ToolJsonSchema.js +5 -0
  64. package/api/types/ToolReturnContent.d.ts +12 -0
  65. package/api/types/ToolReturnContent.js +5 -0
  66. package/api/types/ToolReturnMessage.d.ts +2 -0
  67. package/api/types/ToolRuleSchema.d.ts +7 -0
  68. package/api/types/ToolRuleSchema.js +5 -0
  69. package/api/types/ToolSchema.d.ts +18 -0
  70. package/api/types/ToolSchema.js +5 -0
  71. package/api/types/UpdateSystemMessage.d.ts +2 -3
  72. package/api/types/UpdateUserMessage.d.ts +1 -1
  73. package/api/types/UpdateUserMessageContent.d.ts +1 -1
  74. package/api/types/UserMessage.d.ts +4 -2
  75. package/api/types/UserMessageContent.d.ts +1 -1
  76. package/api/types/index.d.ts +18 -2
  77. package/api/types/index.js +18 -2
  78. package/dist/api/resources/agents/client/Client.d.ts +7 -7
  79. package/dist/api/resources/agents/client/Client.js +28 -22
  80. package/dist/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  81. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js +5 -0
  82. package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
  83. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  84. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  85. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  86. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  87. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +9 -6
  88. package/dist/api/resources/agents/resources/messages/client/Client.js +14 -11
  89. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  90. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  91. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  92. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  93. package/dist/api/resources/blocks/client/Client.js +6 -6
  94. package/dist/api/resources/groups/client/Client.d.ts +8 -2
  95. package/dist/api/resources/groups/client/Client.js +15 -9
  96. package/dist/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
  97. package/dist/api/resources/health/client/Client.js +1 -1
  98. package/dist/api/resources/identities/client/Client.js +6 -6
  99. package/dist/api/resources/jobs/client/Client.js +4 -4
  100. package/dist/api/resources/models/client/Client.js +2 -2
  101. package/dist/api/resources/providers/client/Client.js +4 -4
  102. package/dist/api/resources/runs/client/Client.js +7 -7
  103. package/dist/api/resources/sources/client/Client.js +6 -6
  104. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  105. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  106. package/dist/api/resources/steps/client/Client.js +2 -2
  107. package/dist/api/resources/tag/client/Client.js +1 -1
  108. package/dist/api/resources/templates/client/Client.js +1 -1
  109. package/dist/api/resources/tools/client/Client.js +16 -16
  110. package/dist/api/resources/voice/client/Client.js +1 -1
  111. package/dist/api/types/AgentSchema.d.ts +27 -0
  112. package/dist/api/types/AgentSchema.js +5 -0
  113. package/dist/api/types/AssistantMessage.d.ts +3 -1
  114. package/dist/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  115. package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
  116. package/dist/api/types/LettaMessageContentUnion.d.ts +5 -0
  117. package/dist/api/types/LettaMessageContentUnion.js +5 -0
  118. package/dist/api/types/Message.d.ts +1 -1
  119. package/dist/api/types/MessageContentItem.d.ts +5 -0
  120. package/dist/api/types/MessageContentItem.js +5 -0
  121. package/dist/api/types/MessageCreateContent.d.ts +1 -1
  122. package/dist/api/types/MessageSchema.d.ts +17 -0
  123. package/dist/api/types/MessageSchema.js +5 -0
  124. package/dist/api/types/OmittedReasoningContent.d.ts +8 -0
  125. package/dist/api/types/OmittedReasoningContent.js +5 -0
  126. package/dist/api/types/ParameterProperties.d.ts +7 -0
  127. package/dist/api/types/ParameterProperties.js +5 -0
  128. package/dist/api/types/ParametersSchema.d.ts +9 -0
  129. package/dist/api/types/ParametersSchema.js +5 -0
  130. package/dist/api/types/ReasoningContent.d.ts +12 -0
  131. package/dist/api/types/ReasoningContent.js +5 -0
  132. package/dist/api/types/ReasoningMessage.d.ts +6 -0
  133. package/dist/api/types/ReasoningMessageSource.d.ts +8 -0
  134. package/dist/api/types/ReasoningMessageSource.js +10 -0
  135. package/dist/api/types/RedactedReasoningContent.d.ts +8 -0
  136. package/dist/api/types/RedactedReasoningContent.js +5 -0
  137. package/dist/api/types/SystemMessage.d.ts +5 -4
  138. package/dist/api/types/TagSchema.d.ts +6 -0
  139. package/dist/api/types/TagSchema.js +5 -0
  140. package/dist/api/types/ToolCallContent.d.ts +12 -0
  141. package/dist/api/types/ToolCallContent.js +5 -0
  142. package/dist/api/types/ToolCallMessage.d.ts +2 -0
  143. package/dist/api/types/ToolEnvVarSchema.d.ts +11 -0
  144. package/dist/api/types/ToolEnvVarSchema.js +5 -0
  145. package/dist/api/types/ToolJsonSchema.d.ts +11 -0
  146. package/dist/api/types/ToolJsonSchema.js +5 -0
  147. package/dist/api/types/ToolReturnContent.d.ts +12 -0
  148. package/dist/api/types/ToolReturnContent.js +5 -0
  149. package/dist/api/types/ToolReturnMessage.d.ts +2 -0
  150. package/dist/api/types/ToolRuleSchema.d.ts +7 -0
  151. package/dist/api/types/ToolRuleSchema.js +5 -0
  152. package/dist/api/types/ToolSchema.d.ts +18 -0
  153. package/dist/api/types/ToolSchema.js +5 -0
  154. package/dist/api/types/UpdateSystemMessage.d.ts +2 -3
  155. package/dist/api/types/UpdateUserMessage.d.ts +1 -1
  156. package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
  157. package/dist/api/types/UserMessage.d.ts +4 -2
  158. package/dist/api/types/UserMessageContent.d.ts +1 -1
  159. package/dist/api/types/index.d.ts +18 -2
  160. package/dist/api/types/index.js +18 -2
  161. package/dist/serialization/types/AgentSchema.d.ts +40 -0
  162. package/dist/serialization/types/AgentSchema.js +71 -0
  163. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  164. package/dist/serialization/types/AssistantMessage.js +1 -0
  165. package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  166. package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
  167. package/dist/serialization/types/LettaMessageContentUnion.d.ts +15 -0
  168. package/dist/serialization/types/LettaMessageContentUnion.js +52 -0
  169. package/dist/serialization/types/Message.d.ts +2 -2
  170. package/dist/serialization/types/Message.js +2 -2
  171. package/dist/serialization/types/MessageContentItem.d.ts +16 -0
  172. package/dist/serialization/types/MessageContentItem.js +54 -0
  173. package/dist/serialization/types/MessageCreateContent.d.ts +2 -2
  174. package/dist/serialization/types/MessageCreateContent.js +5 -2
  175. package/dist/serialization/types/MessageSchema.d.ts +23 -0
  176. package/dist/serialization/types/MessageSchema.js +54 -0
  177. package/dist/serialization/types/OmittedReasoningContent.d.ts +13 -0
  178. package/dist/serialization/types/{SystemMessageContent.js → OmittedReasoningContent.js} +5 -6
  179. package/dist/serialization/types/ParameterProperties.d.ts +13 -0
  180. package/{serialization/types/SystemMessageContent.js → dist/serialization/types/ParameterProperties.js} +5 -6
  181. package/dist/serialization/types/ParametersSchema.d.ts +15 -0
  182. package/dist/serialization/types/ParametersSchema.js +46 -0
  183. package/dist/serialization/types/ReasoningContent.d.ts +15 -0
  184. package/dist/serialization/types/ReasoningContent.js +46 -0
  185. package/dist/serialization/types/ReasoningMessage.d.ts +3 -0
  186. package/dist/serialization/types/ReasoningMessage.js +3 -0
  187. package/dist/serialization/types/ReasoningMessageSource.d.ts +10 -0
  188. package/dist/serialization/types/{UpdateSystemMessageContent.js → ReasoningMessageSource.js} +2 -6
  189. package/dist/serialization/types/RedactedReasoningContent.d.ts +13 -0
  190. package/{serialization/types/UpdateSystemMessageContent.js → dist/serialization/types/RedactedReasoningContent.js} +5 -6
  191. package/dist/serialization/types/SystemMessage.d.ts +2 -2
  192. package/dist/serialization/types/SystemMessage.js +2 -2
  193. package/dist/serialization/types/TagSchema.d.ts +12 -0
  194. package/dist/serialization/types/TagSchema.js +43 -0
  195. package/dist/serialization/types/ToolCallContent.d.ts +15 -0
  196. package/dist/serialization/types/ToolCallContent.js +46 -0
  197. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  198. package/dist/serialization/types/ToolCallMessage.js +1 -0
  199. package/dist/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  200. package/dist/serialization/types/ToolEnvVarSchema.js +48 -0
  201. package/dist/serialization/types/ToolJsonSchema.d.ts +17 -0
  202. package/dist/serialization/types/ToolJsonSchema.js +48 -0
  203. package/dist/serialization/types/ToolReturnContent.d.ts +15 -0
  204. package/dist/serialization/types/ToolReturnContent.js +46 -0
  205. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  206. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  207. package/dist/serialization/types/ToolRuleSchema.d.ts +13 -0
  208. package/dist/serialization/types/ToolRuleSchema.js +44 -0
  209. package/dist/serialization/types/ToolSchema.d.ts +24 -0
  210. package/dist/serialization/types/ToolSchema.js +55 -0
  211. package/dist/serialization/types/UpdateSystemMessage.d.ts +1 -2
  212. package/dist/serialization/types/UpdateSystemMessage.js +1 -2
  213. package/dist/serialization/types/UserMessage.d.ts +1 -0
  214. package/dist/serialization/types/UserMessage.js +1 -0
  215. package/dist/serialization/types/index.d.ts +18 -2
  216. package/dist/serialization/types/index.js +18 -2
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +1 -1
  220. package/reference.md +38 -18
  221. package/serialization/types/AgentSchema.d.ts +40 -0
  222. package/serialization/types/AgentSchema.js +71 -0
  223. package/serialization/types/AssistantMessage.d.ts +1 -0
  224. package/serialization/types/AssistantMessage.js +1 -0
  225. package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  226. package/serialization/types/CoreMemoryBlockSchema.js +53 -0
  227. package/serialization/types/LettaMessageContentUnion.d.ts +15 -0
  228. package/serialization/types/LettaMessageContentUnion.js +52 -0
  229. package/serialization/types/Message.d.ts +2 -2
  230. package/serialization/types/Message.js +2 -2
  231. package/serialization/types/MessageContentItem.d.ts +16 -0
  232. package/serialization/types/MessageContentItem.js +54 -0
  233. package/serialization/types/MessageCreateContent.d.ts +2 -2
  234. package/serialization/types/MessageCreateContent.js +5 -2
  235. package/serialization/types/MessageSchema.d.ts +23 -0
  236. package/serialization/types/MessageSchema.js +54 -0
  237. package/serialization/types/OmittedReasoningContent.d.ts +13 -0
  238. package/serialization/types/OmittedReasoningContent.js +44 -0
  239. package/serialization/types/ParameterProperties.d.ts +13 -0
  240. package/serialization/types/ParameterProperties.js +44 -0
  241. package/serialization/types/ParametersSchema.d.ts +15 -0
  242. package/serialization/types/ParametersSchema.js +46 -0
  243. package/serialization/types/ReasoningContent.d.ts +15 -0
  244. package/serialization/types/ReasoningContent.js +46 -0
  245. package/serialization/types/ReasoningMessage.d.ts +3 -0
  246. package/serialization/types/ReasoningMessage.js +3 -0
  247. package/serialization/types/ReasoningMessageSource.d.ts +10 -0
  248. package/serialization/types/ReasoningMessageSource.js +41 -0
  249. package/serialization/types/RedactedReasoningContent.d.ts +13 -0
  250. package/serialization/types/RedactedReasoningContent.js +44 -0
  251. package/serialization/types/SystemMessage.d.ts +2 -2
  252. package/serialization/types/SystemMessage.js +2 -2
  253. package/serialization/types/TagSchema.d.ts +12 -0
  254. package/serialization/types/TagSchema.js +43 -0
  255. package/serialization/types/ToolCallContent.d.ts +15 -0
  256. package/serialization/types/ToolCallContent.js +46 -0
  257. package/serialization/types/ToolCallMessage.d.ts +1 -0
  258. package/serialization/types/ToolCallMessage.js +1 -0
  259. package/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  260. package/serialization/types/ToolEnvVarSchema.js +48 -0
  261. package/serialization/types/ToolJsonSchema.d.ts +17 -0
  262. package/serialization/types/ToolJsonSchema.js +48 -0
  263. package/serialization/types/ToolReturnContent.d.ts +15 -0
  264. package/serialization/types/ToolReturnContent.js +46 -0
  265. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  266. package/serialization/types/ToolReturnMessage.js +1 -0
  267. package/serialization/types/ToolRuleSchema.d.ts +13 -0
  268. package/serialization/types/ToolRuleSchema.js +44 -0
  269. package/serialization/types/ToolSchema.d.ts +24 -0
  270. package/serialization/types/ToolSchema.js +55 -0
  271. package/serialization/types/UpdateSystemMessage.d.ts +1 -2
  272. package/serialization/types/UpdateSystemMessage.js +1 -2
  273. package/serialization/types/UserMessage.d.ts +1 -0
  274. package/serialization/types/UserMessage.js +1 -0
  275. package/serialization/types/index.d.ts +18 -2
  276. package/serialization/types/index.js +18 -2
  277. package/version.d.ts +1 -1
  278. package/version.js +1 -1
  279. package/api/types/SystemMessageContent.d.ts +0 -8
  280. package/api/types/UpdateSystemMessageContent.d.ts +0 -8
  281. package/dist/api/types/SystemMessageContent.d.ts +0 -8
  282. package/dist/api/types/UpdateSystemMessageContent.d.ts +0 -8
  283. package/dist/serialization/types/SystemMessageContent.d.ts +0 -11
  284. package/dist/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
  285. package/serialization/types/SystemMessageContent.d.ts +0 -11
  286. package/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
  287. /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
  288. /package/api/types/{SystemMessageContent.js → AgentSchema.js} +0 -0
  289. /package/api/types/{UpdateSystemMessageContent.js → CoreMemoryBlockSchema.js} +0 -0
  290. /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/types/LettaMessageContentUnion.js} +0 -0
  291. /package/{dist/api/types/SystemMessageContent.js → api/types/MessageContentItem.js} +0 -0
  292. /package/{dist/api/types/UpdateSystemMessageContent.js → api/types/MessageSchema.js} +0 -0
@@ -8,11 +8,13 @@ import * as Letta from "../index";
8
8
  * Args:
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
- * content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
11
+ * name (Optional[str]): The name of the sender of the message
12
+ * content (Union[str, List[LettaAssistantMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
12
13
  */
13
14
  export interface AssistantMessage {
14
15
  id: string;
15
16
  date: Date;
17
+ name?: string;
16
18
  messageType: "assistant_message";
17
19
  /** The message content sent by the agent (can be a string or an array of content parts) */
18
20
  content: Letta.AssistantMessageContent;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CoreMemoryBlockSchema {
5
+ createdAt: string;
6
+ description?: string;
7
+ identities: unknown[];
8
+ isDeleted: boolean;
9
+ isTemplate: boolean;
10
+ label: string;
11
+ limit: number;
12
+ metadata?: Record<string, unknown>;
13
+ templateName?: string;
14
+ updatedAt: string;
15
+ value: string;
16
+ }
@@ -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 LettaMessageContentUnion = Letta.TextContent | Letta.ToolCallContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.OmittedReasoningContent;
@@ -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 });
@@ -31,7 +31,7 @@ export interface Message {
31
31
  /** The role of the participant. */
32
32
  role: Letta.MessageRole;
33
33
  /** The content of the message. */
34
- content?: Letta.TextContent[];
34
+ content?: Letta.MessageContentItem[];
35
35
  /** The unique identifier of the agent. */
36
36
  agentId?: string;
37
37
  /** The model used to make the function call. */
@@ -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 MessageContentItem = Letta.OmittedReasoningContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.TextContent | Letta.ToolCallContent | Letta.ToolReturnContent;
@@ -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 });
@@ -5,4 +5,4 @@ import * as Letta from "../index";
5
5
  /**
6
6
  * The content of the message.
7
7
  */
8
- export type MessageCreateContent = string | Letta.TextContent[];
8
+ export type MessageCreateContent = Letta.LettaMessageContentUnion[] | string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface MessageSchema {
6
+ createdAt: string;
7
+ groupId?: string;
8
+ inContext: boolean;
9
+ model?: string;
10
+ name?: string;
11
+ role: string;
12
+ content: Letta.TextContent[];
13
+ toolCallId?: string;
14
+ toolCalls: unknown[];
15
+ toolReturns: unknown[];
16
+ updatedAt: string;
17
+ }
@@ -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
+ export interface OmittedReasoningContent {
5
+ type: "omitted_reasoning";
6
+ /** The reasoning token count for intermediate reasoning content. */
7
+ tokens: number;
8
+ }
@@ -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 ParameterProperties {
5
+ type: string;
6
+ description?: string;
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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ParametersSchema {
6
+ type?: string;
7
+ properties: Record<string, Letta.ParameterProperties>;
8
+ required?: string[];
9
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ReasoningContent {
5
+ type: "reasoning";
6
+ /** Whether the reasoning content was generated by a reasoner model that processed this step. */
7
+ isNative: boolean;
8
+ /** The intermediate reasoning or thought process content. */
9
+ reasoning: string;
10
+ /** A unique identifier for this reasoning step. */
11
+ signature?: string;
12
+ }
@@ -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 });
@@ -1,17 +1,23 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * Representation of an agent's internal reasoning.
6
7
  *
7
8
  * Args:
8
9
  * id (str): The ID of the message
9
10
  * date (datetime): The date the message was created in ISO format
11
+ * name (Optional[str]): The name of the sender of the message
12
+ * source (Literal["reasoner_model", "non_reasoner_model"]): Whether the reasoning
13
+ * content was generated natively by a reasoner model or derived via prompting
10
14
  * reasoning (str): The internal reasoning of the agent
11
15
  */
12
16
  export interface ReasoningMessage {
13
17
  id: string;
14
18
  date: Date;
19
+ name?: string;
15
20
  messageType: "reasoning_message";
21
+ source?: Letta.ReasoningMessageSource;
16
22
  reasoning: string;
17
23
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ReasoningMessageSource = "reasoner_model" | "non_reasoner_model";
5
+ export declare const ReasoningMessageSource: {
6
+ readonly ReasonerModel: "reasoner_model";
7
+ readonly NonReasonerModel: "non_reasoner_model";
8
+ };
@@ -0,0 +1,10 @@
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.ReasoningMessageSource = void 0;
7
+ exports.ReasoningMessageSource = {
8
+ ReasonerModel: "reasoner_model",
9
+ NonReasonerModel: "non_reasoner_model",
10
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface RedactedReasoningContent {
5
+ type: "redacted_reasoning";
6
+ /** The redacted or filtered intermediate reasoning content. */
7
+ data: string;
8
+ }
@@ -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 });
@@ -1,19 +1,20 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Letta from "../index";
5
4
  /**
6
5
  * A message generated by the system. Never streamed back on a response, only used for cursor pagination.
7
6
  *
8
7
  * Args:
9
8
  * id (str): The ID of the message
10
9
  * date (datetime): The date the message was created in ISO format
11
- * content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the system (can be a string or an array of content parts)
10
+ * name (Optional[str]): The name of the sender of the message
11
+ * content (str): The message content sent by the system
12
12
  */
13
13
  export interface SystemMessage {
14
14
  id: string;
15
15
  date: Date;
16
+ name?: string;
16
17
  messageType: "system_message";
17
- /** The message content sent by the system (can be a string or an array of content parts) */
18
- content: Letta.SystemMessageContent;
18
+ /** The message content sent by the system */
19
+ content: string;
19
20
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TagSchema {
5
+ tag: string;
6
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolCallContent {
5
+ type: "tool_return";
6
+ /** A unique identifier for this specific tool call instance. */
7
+ id: string;
8
+ /** The name of the tool being called. */
9
+ name: string;
10
+ /** The parameters being passed to the tool, structured as a dictionary of parameter names to values. */
11
+ input: Record<string, unknown>;
12
+ }
@@ -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,11 +8,13 @@ import * as Letta from "../index";
8
8
  * Args:
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
+ * name (Optional[str]): The name of the sender of the message
11
12
  * tool_call (Union[ToolCall, ToolCallDelta]): The tool call
12
13
  */
13
14
  export interface ToolCallMessage {
14
15
  id: string;
15
16
  date: Date;
17
+ name?: string;
16
18
  messageType: "tool_call_message";
17
19
  toolCall: Letta.ToolCallMessageToolCall;
18
20
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolEnvVarSchema {
5
+ createdAt: string;
6
+ description?: string;
7
+ isDeleted: boolean;
8
+ key: string;
9
+ updatedAt: string;
10
+ value: string;
11
+ }
@@ -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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ToolJsonSchema {
6
+ name: string;
7
+ description: string;
8
+ parameters: Letta.ParametersSchema;
9
+ type?: string;
10
+ required?: string[];
11
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolReturnContent {
5
+ type: "tool_return";
6
+ /** References the ID of the ToolCallContent that initiated this tool call. */
7
+ toolCallId: string;
8
+ /** The content returned by the tool execution. */
9
+ content: string;
10
+ /** Indicates whether the tool execution resulted in an error. */
11
+ isError: boolean;
12
+ }
@@ -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,6 +8,7 @@ import * as Letta from "../index";
8
8
  * Args:
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
+ * name (Optional[str]): The name of the sender of the message
11
12
  * tool_return (str): The return value of the tool
12
13
  * status (Literal["success", "error"]): The status of the tool call
13
14
  * tool_call_id (str): A unique identifier for the tool call that generated this message
@@ -17,6 +18,7 @@ import * as Letta from "../index";
17
18
  export interface ToolReturnMessage {
18
19
  id: string;
19
20
  date: Date;
21
+ name?: string;
20
22
  messageType: "tool_return_message";
21
23
  toolReturn: string;
22
24
  status: Letta.ToolReturnMessageStatus;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolRuleSchema {
5
+ toolName: string;
6
+ type: string;
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 });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ToolSchema {
6
+ argsJsonSchema?: unknown;
7
+ createdAt: string;
8
+ description: string;
9
+ isDeleted: boolean;
10
+ jsonSchema: Letta.ToolJsonSchema;
11
+ name: string;
12
+ returnCharLimit: number;
13
+ sourceCode?: string;
14
+ sourceType: string;
15
+ tags: string[];
16
+ toolType: string;
17
+ updatedAt: string;
18
+ }
@@ -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 });
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Letta from "../index";
5
4
  export interface UpdateSystemMessage {
6
5
  messageType?: "system_message";
7
- /** The message content sent by the system (can be a string or an array of content parts) */
8
- content: Letta.UpdateSystemMessageContent;
6
+ /** The message content sent by the system (can be a string or an array of multi-modal content parts) */
7
+ content: string;
9
8
  }
@@ -4,6 +4,6 @@
4
4
  import * as Letta from "../index";
5
5
  export interface UpdateUserMessage {
6
6
  messageType?: "user_message";
7
- /** The message content sent by the user (can be a string or an array of content parts) */
7
+ /** The message content sent by the user (can be a string or an array of multi-modal content parts) */
8
8
  content: Letta.UpdateUserMessageContent;
9
9
  }
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Letta from "../index";
5
5
  /**
6
- * The message content sent by the user (can be a string or an array of content parts)
6
+ * The message content sent by the user (can be a string or an array of multi-modal content parts)
7
7
  */
8
8
  export type UpdateUserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
@@ -8,12 +8,14 @@ import * as Letta from "../index";
8
8
  * Args:
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
- * content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
11
+ * name (Optional[str]): The name of the sender of the message
12
+ * content (Union[str, List[LettaUserMessageContentUnion]]): The message content sent by the user (can be a string or an array of multi-modal content parts)
12
13
  */
13
14
  export interface UserMessage {
14
15
  id: string;
15
16
  date: Date;
17
+ name?: string;
16
18
  messageType: "user_message";
17
- /** The message content sent by the user (can be a string or an array of content parts) */
19
+ /** The message content sent by the user (can be a string or an array of multi-modal content parts) */
18
20
  content: Letta.UserMessageContent;
19
21
  }
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Letta from "../index";
5
5
  /**
6
- * The message content sent by the user (can be a string or an array of content parts)
6
+ * The message content sent by the user (can be a string or an array of multi-modal content parts)
7
7
  */
8
8
  export type UserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
@@ -6,6 +6,7 @@ export * from "./ActionModel";
6
6
  export * from "./ActionParametersModel";
7
7
  export * from "./ActionResponseModel";
8
8
  export * from "./AgentEnvironmentVariable";
9
+ export * from "./AgentSchema";
9
10
  export * from "./AgentStateToolRulesItem";
10
11
  export * from "./AgentState";
11
12
  export * from "./AgentType";
@@ -72,6 +73,7 @@ export * from "./CompletionCreateParamsStreaming";
72
73
  export * from "./ConditionalToolRule";
73
74
  export * from "./ContextWindowOverview";
74
75
  export * from "./ContinueToolRule";
76
+ export * from "./CoreMemoryBlockSchema";
75
77
  export * from "./CreateBlock";
76
78
  export * from "./DynamicManager";
77
79
  export * from "./E2BSandboxConfig";
@@ -117,17 +119,25 @@ export * from "./McpServerType";
117
119
  export * from "./McpTool";
118
120
  export * from "./ManagerType";
119
121
  export * from "./Memory";
122
+ export * from "./MessageContentItem";
120
123
  export * from "./Message";
121
124
  export * from "./MessageCreateRole";
122
125
  export * from "./MessageCreateContent";
123
126
  export * from "./MessageCreate";
124
127
  export * from "./MessageRole";
128
+ export * from "./MessageSchema";
129
+ export * from "./OmittedReasoningContent";
125
130
  export * from "./Organization";
126
131
  export * from "./OrganizationCreate";
132
+ export * from "./ParameterProperties";
133
+ export * from "./ParametersSchema";
127
134
  export * from "./Passage";
128
135
  export * from "./PipRequirement";
129
136
  export * from "./Provider";
137
+ export * from "./ReasoningContent";
138
+ export * from "./ReasoningMessageSource";
130
139
  export * from "./ReasoningMessage";
140
+ export * from "./RedactedReasoningContent";
131
141
  export * from "./ResponseFormatJsonObject";
132
142
  export * from "./ResponseFormatJsonSchema";
133
143
  export * from "./ResponseFormatText";
@@ -147,25 +157,30 @@ export * from "./Source";
147
157
  export * from "./StdioServerConfig";
148
158
  export * from "./Step";
149
159
  export * from "./SupervisorManager";
150
- export * from "./SystemMessageContent";
151
160
  export * from "./SystemMessage";
161
+ export * from "./TagSchema";
152
162
  export * from "./TerminalToolRule";
153
163
  export * from "./TextContent";
154
164
  export * from "./Tool";
155
165
  export * from "./ToolCall";
166
+ export * from "./ToolCallContent";
156
167
  export * from "./ToolCallDelta";
157
168
  export * from "./ToolCallMessageToolCall";
158
169
  export * from "./ToolCallMessage";
159
170
  export * from "./ToolCreate";
171
+ export * from "./ToolEnvVarSchema";
172
+ export * from "./ToolJsonSchema";
160
173
  export * from "./ToolReturnStatus";
161
174
  export * from "./ToolReturn";
175
+ export * from "./ToolReturnContent";
162
176
  export * from "./ToolReturnMessageStatus";
163
177
  export * from "./ToolReturnMessage";
178
+ export * from "./ToolRuleSchema";
179
+ export * from "./ToolSchema";
164
180
  export * from "./ToolType";
165
181
  export * from "./UpdateAssistantMessageContent";
166
182
  export * from "./UpdateAssistantMessage";
167
183
  export * from "./UpdateReasoningMessage";
168
- export * from "./UpdateSystemMessageContent";
169
184
  export * from "./UpdateSystemMessage";
170
185
  export * from "./UpdateUserMessageContent";
171
186
  export * from "./UpdateUserMessage";
@@ -185,4 +200,5 @@ export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
185
200
  export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
186
201
  export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
187
202
  export * from "./LettaMessageUnion";
203
+ export * from "./LettaMessageContentUnion";
188
204
  export * from "./ComponentsSchemasTextContent";