@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
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CoreMemoryBlockSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.CoreMemoryBlockSchema = core.serialization.object({
42
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
43
+ description: core.serialization.string().optional(),
44
+ identities: core.serialization.list(core.serialization.unknown()),
45
+ isDeleted: core.serialization.property("is_deleted", core.serialization.boolean()),
46
+ isTemplate: core.serialization.property("is_template", core.serialization.boolean()),
47
+ label: core.serialization.string(),
48
+ limit: core.serialization.number(),
49
+ metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
50
+ templateName: core.serialization.property("template_name", core.serialization.string().optional()),
51
+ updatedAt: core.serialization.property("updated_at", core.serialization.string()),
52
+ value: core.serialization.string(),
53
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { TextContent } from "./TextContent";
8
+ import { ToolCallContent } from "./ToolCallContent";
9
+ import { ReasoningContent } from "./ReasoningContent";
10
+ import { RedactedReasoningContent } from "./RedactedReasoningContent";
11
+ import { OmittedReasoningContent } from "./OmittedReasoningContent";
12
+ export declare const LettaMessageContentUnion: core.serialization.Schema<serializers.LettaMessageContentUnion.Raw, Letta.LettaMessageContentUnion>;
13
+ export declare namespace LettaMessageContentUnion {
14
+ type Raw = TextContent.Raw | ToolCallContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | OmittedReasoningContent.Raw;
15
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaMessageContentUnion = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const TextContent_1 = require("./TextContent");
42
+ const ToolCallContent_1 = require("./ToolCallContent");
43
+ const ReasoningContent_1 = require("./ReasoningContent");
44
+ const RedactedReasoningContent_1 = require("./RedactedReasoningContent");
45
+ const OmittedReasoningContent_1 = require("./OmittedReasoningContent");
46
+ exports.LettaMessageContentUnion = core.serialization.undiscriminatedUnion([
47
+ TextContent_1.TextContent,
48
+ ToolCallContent_1.ToolCallContent,
49
+ ReasoningContent_1.ReasoningContent,
50
+ RedactedReasoningContent_1.RedactedReasoningContent,
51
+ OmittedReasoningContent_1.OmittedReasoningContent,
52
+ ]);
@@ -5,7 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { MessageRole } from "./MessageRole";
8
- import { TextContent } from "./TextContent";
8
+ import { MessageContentItem } from "./MessageContentItem";
9
9
  import { ChatCompletionMessageToolCall } from "./ChatCompletionMessageToolCall";
10
10
  import { ToolReturn } from "./ToolReturn";
11
11
  export declare const Message: core.serialization.ObjectSchema<serializers.Message.Raw, Letta.Message>;
@@ -17,7 +17,7 @@ export declare namespace Message {
17
17
  updated_at?: string | null;
18
18
  id?: string | null;
19
19
  role: MessageRole.Raw;
20
- content?: TextContent.Raw[] | null;
20
+ content?: MessageContentItem.Raw[] | null;
21
21
  agent_id?: string | null;
22
22
  model?: string | null;
23
23
  name?: string | null;
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Message = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const MessageRole_1 = require("./MessageRole");
42
- const TextContent_1 = require("./TextContent");
42
+ const MessageContentItem_1 = require("./MessageContentItem");
43
43
  const ChatCompletionMessageToolCall_1 = require("./ChatCompletionMessageToolCall");
44
44
  const ToolReturn_1 = require("./ToolReturn");
45
45
  exports.Message = core.serialization.object({
@@ -49,7 +49,7 @@ exports.Message = core.serialization.object({
49
49
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
50
50
  id: core.serialization.string().optional(),
51
51
  role: MessageRole_1.MessageRole,
52
- content: core.serialization.list(TextContent_1.TextContent).optional(),
52
+ content: core.serialization.list(MessageContentItem_1.MessageContentItem).optional(),
53
53
  agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
54
54
  model: core.serialization.string().optional(),
55
55
  name: core.serialization.string().optional(),
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { OmittedReasoningContent } from "./OmittedReasoningContent";
8
+ import { ReasoningContent } from "./ReasoningContent";
9
+ import { RedactedReasoningContent } from "./RedactedReasoningContent";
10
+ import { TextContent } from "./TextContent";
11
+ import { ToolCallContent } from "./ToolCallContent";
12
+ import { ToolReturnContent } from "./ToolReturnContent";
13
+ export declare const MessageContentItem: core.serialization.Schema<serializers.MessageContentItem.Raw, Letta.MessageContentItem>;
14
+ export declare namespace MessageContentItem {
15
+ type Raw = OmittedReasoningContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | TextContent.Raw | ToolCallContent.Raw | ToolReturnContent.Raw;
16
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageContentItem = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const OmittedReasoningContent_1 = require("./OmittedReasoningContent");
42
+ const ReasoningContent_1 = require("./ReasoningContent");
43
+ const RedactedReasoningContent_1 = require("./RedactedReasoningContent");
44
+ const TextContent_1 = require("./TextContent");
45
+ const ToolCallContent_1 = require("./ToolCallContent");
46
+ const ToolReturnContent_1 = require("./ToolReturnContent");
47
+ exports.MessageContentItem = core.serialization.undiscriminatedUnion([
48
+ OmittedReasoningContent_1.OmittedReasoningContent,
49
+ ReasoningContent_1.ReasoningContent,
50
+ RedactedReasoningContent_1.RedactedReasoningContent,
51
+ TextContent_1.TextContent,
52
+ ToolCallContent_1.ToolCallContent,
53
+ ToolReturnContent_1.ToolReturnContent,
54
+ ]);
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { TextContent } from "./TextContent";
7
+ import { LettaMessageContentUnion } from "./LettaMessageContentUnion";
8
8
  export declare const MessageCreateContent: core.serialization.Schema<serializers.MessageCreateContent.Raw, Letta.MessageCreateContent>;
9
9
  export declare namespace MessageCreateContent {
10
- type Raw = string | TextContent.Raw[];
10
+ type Raw = LettaMessageContentUnion.Raw[] | string;
11
11
  }
@@ -38,5 +38,8 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.MessageCreateContent = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- const TextContent_1 = require("./TextContent");
42
- exports.MessageCreateContent = core.serialization.undiscriminatedUnion([core.serialization.string(), core.serialization.list(TextContent_1.TextContent)]);
41
+ const LettaMessageContentUnion_1 = require("./LettaMessageContentUnion");
42
+ exports.MessageCreateContent = core.serialization.undiscriminatedUnion([
43
+ core.serialization.list(LettaMessageContentUnion_1.LettaMessageContentUnion),
44
+ core.serialization.string(),
45
+ ]);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { TextContent } from "./TextContent";
8
+ export declare const MessageSchema: core.serialization.ObjectSchema<serializers.MessageSchema.Raw, Letta.MessageSchema>;
9
+ export declare namespace MessageSchema {
10
+ interface Raw {
11
+ created_at: string;
12
+ group_id?: string | null;
13
+ in_context: boolean;
14
+ model?: string | null;
15
+ name?: string | null;
16
+ role: string;
17
+ content: TextContent.Raw[];
18
+ tool_call_id?: string | null;
19
+ tool_calls: unknown[];
20
+ tool_returns: unknown[];
21
+ updated_at: string;
22
+ }
23
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const TextContent_1 = require("./TextContent");
42
+ exports.MessageSchema = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
44
+ groupId: core.serialization.property("group_id", core.serialization.string().optional()),
45
+ inContext: core.serialization.property("in_context", core.serialization.boolean()),
46
+ model: core.serialization.string().optional(),
47
+ name: core.serialization.string().optional(),
48
+ role: core.serialization.string(),
49
+ content: core.serialization.list(TextContent_1.TextContent),
50
+ toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
51
+ toolCalls: core.serialization.property("tool_calls", core.serialization.list(core.serialization.unknown())),
52
+ toolReturns: core.serialization.property("tool_returns", core.serialization.list(core.serialization.unknown())),
53
+ updatedAt: core.serialization.property("updated_at", core.serialization.string()),
54
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const OmittedReasoningContent: core.serialization.ObjectSchema<serializers.OmittedReasoningContent.Raw, Letta.OmittedReasoningContent>;
8
+ export declare namespace OmittedReasoningContent {
9
+ interface Raw {
10
+ type: "omitted_reasoning";
11
+ tokens: number;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.OmittedReasoningContent = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.OmittedReasoningContent = core.serialization.object({
42
+ type: core.serialization.stringLiteral("omitted_reasoning"),
43
+ tokens: core.serialization.number(),
44
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ParameterProperties: core.serialization.ObjectSchema<serializers.ParameterProperties.Raw, Letta.ParameterProperties>;
8
+ export declare namespace ParameterProperties {
9
+ interface Raw {
10
+ type: string;
11
+ description?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ParameterProperties = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ParameterProperties = core.serialization.object({
42
+ type: core.serialization.string(),
43
+ description: core.serialization.string().optional(),
44
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ParameterProperties } from "./ParameterProperties";
8
+ export declare const ParametersSchema: core.serialization.ObjectSchema<serializers.ParametersSchema.Raw, Letta.ParametersSchema>;
9
+ export declare namespace ParametersSchema {
10
+ interface Raw {
11
+ type?: string | null;
12
+ properties: Record<string, ParameterProperties.Raw>;
13
+ required?: string[] | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ParametersSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ParameterProperties_1 = require("./ParameterProperties");
42
+ exports.ParametersSchema = core.serialization.object({
43
+ type: core.serialization.string().optional(),
44
+ properties: core.serialization.record(core.serialization.string(), ParameterProperties_1.ParameterProperties),
45
+ required: core.serialization.list(core.serialization.string()).optional(),
46
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ReasoningContent: core.serialization.ObjectSchema<serializers.ReasoningContent.Raw, Letta.ReasoningContent>;
8
+ export declare namespace ReasoningContent {
9
+ interface Raw {
10
+ type: "reasoning";
11
+ is_native: boolean;
12
+ reasoning: string;
13
+ signature?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ReasoningContent = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ReasoningContent = core.serialization.object({
42
+ type: core.serialization.stringLiteral("reasoning"),
43
+ isNative: core.serialization.property("is_native", core.serialization.boolean()),
44
+ reasoning: core.serialization.string(),
45
+ signature: core.serialization.string().optional(),
46
+ });
@@ -4,12 +4,15 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ReasoningMessageSource } from "./ReasoningMessageSource";
7
8
  export declare const ReasoningMessage: core.serialization.ObjectSchema<serializers.ReasoningMessage.Raw, Letta.ReasoningMessage>;
8
9
  export declare namespace ReasoningMessage {
9
10
  interface Raw {
10
11
  id: string;
11
12
  date: string;
13
+ name?: string | null;
12
14
  message_type: "reasoning_message";
15
+ source?: ReasoningMessageSource.Raw | null;
13
16
  reasoning: string;
14
17
  }
15
18
  }
@@ -38,9 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ReasoningMessage = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ReasoningMessageSource_1 = require("./ReasoningMessageSource");
41
42
  exports.ReasoningMessage = core.serialization.object({
42
43
  id: core.serialization.string(),
43
44
  date: core.serialization.date(),
45
+ name: core.serialization.string().optional(),
44
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("reasoning_message")),
47
+ source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
45
48
  reasoning: core.serialization.string(),
46
49
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ReasoningMessageSource: core.serialization.Schema<serializers.ReasoningMessageSource.Raw, Letta.ReasoningMessageSource>;
8
+ export declare namespace ReasoningMessageSource {
9
+ type Raw = "reasoner_model" | "non_reasoner_model";
10
+ }