@letta-ai/letta-client 0.1.9 → 0.1.12

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 (242) hide show
  1. package/api/resources/agents/client/Client.d.ts +1 -4
  2. package/api/resources/agents/client/Client.js +21 -23
  3. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  4. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +5 -3
  5. package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  6. package/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  9. package/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  10. package/api/resources/agents/resources/index.d.ts +0 -1
  11. package/api/resources/agents/resources/index.js +1 -2
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  13. package/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
  14. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  15. package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
  16. package/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  17. package/api/resources/agents/resources/messages/types/index.d.ts +0 -1
  18. package/api/resources/agents/resources/messages/types/index.js +0 -1
  19. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  20. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  21. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  22. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
  23. package/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
  24. package/api/resources/agents/types/index.d.ts +1 -0
  25. package/api/resources/agents/types/index.js +1 -0
  26. package/api/resources/blocks/client/Client.js +7 -7
  27. package/api/resources/health/client/Client.js +1 -1
  28. package/api/resources/jobs/client/Client.js +4 -4
  29. package/api/resources/models/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.d.ts +11 -11
  31. package/api/resources/providers/client/Client.js +32 -32
  32. package/api/resources/providers/client/requests/index.d.ts +1 -1
  33. package/api/resources/runs/client/Client.d.ts +6 -8
  34. package/api/resources/runs/client/Client.js +12 -37
  35. package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
  36. package/api/resources/sources/client/Client.js +8 -8
  37. package/api/resources/sources/resources/files/client/Client.js +3 -3
  38. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  39. package/api/resources/tag/client/Client.js +1 -1
  40. package/api/resources/tools/client/Client.d.ts +0 -12
  41. package/api/resources/tools/client/Client.js +11 -76
  42. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  43. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  44. package/{dist/api/types/LettaResponseMessagesItem.d.ts → api/types/LettaMessageUnion.d.ts} +2 -2
  45. package/api/types/LettaRequest.d.ts +2 -6
  46. package/api/types/LettaRequestConfig.d.ts +11 -0
  47. package/api/types/LettaResponse.d.ts +1 -1
  48. package/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  49. package/api/types/LlmConfigModelEndpointType.d.ts +2 -1
  50. package/api/types/LlmConfigModelEndpointType.js +1 -0
  51. package/api/types/Run.d.ts +2 -0
  52. package/api/types/ToolType.d.ts +2 -1
  53. package/api/types/ToolType.js +1 -0
  54. package/api/types/index.d.ts +2 -3
  55. package/api/types/index.js +2 -3
  56. package/dist/api/resources/agents/client/Client.d.ts +1 -4
  57. package/dist/api/resources/agents/client/Client.js +21 -23
  58. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  59. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +5 -3
  60. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  61. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  62. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  64. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  65. package/dist/api/resources/agents/resources/index.d.ts +0 -1
  66. package/dist/api/resources/agents/resources/index.js +1 -2
  67. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
  69. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  70. package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
  71. package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  72. package/dist/api/resources/agents/resources/messages/types/index.d.ts +0 -1
  73. package/dist/api/resources/agents/resources/messages/types/index.js +0 -1
  74. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  77. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
  78. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
  79. package/dist/api/resources/agents/types/index.d.ts +1 -0
  80. package/dist/api/resources/agents/types/index.js +1 -0
  81. package/dist/api/resources/blocks/client/Client.js +7 -7
  82. package/dist/api/resources/health/client/Client.js +1 -1
  83. package/dist/api/resources/jobs/client/Client.js +4 -4
  84. package/dist/api/resources/models/client/Client.js +2 -2
  85. package/dist/api/resources/providers/client/Client.d.ts +11 -11
  86. package/dist/api/resources/providers/client/Client.js +32 -32
  87. package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
  88. package/dist/api/resources/runs/client/Client.d.ts +6 -8
  89. package/dist/api/resources/runs/client/Client.js +12 -37
  90. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
  91. package/dist/api/resources/sources/client/Client.js +8 -8
  92. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  93. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  94. package/dist/api/resources/tag/client/Client.js +1 -1
  95. package/dist/api/resources/tools/client/Client.d.ts +0 -12
  96. package/dist/api/resources/tools/client/Client.js +11 -76
  97. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  98. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  99. package/{api/types/LettaResponseMessagesItem.d.ts → dist/api/types/LettaMessageUnion.d.ts} +2 -2
  100. package/dist/api/types/LettaRequest.d.ts +2 -6
  101. package/dist/api/types/LettaRequestConfig.d.ts +11 -0
  102. package/dist/api/types/LettaResponse.d.ts +1 -1
  103. package/dist/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  104. package/dist/api/types/LlmConfigModelEndpointType.d.ts +2 -1
  105. package/dist/api/types/LlmConfigModelEndpointType.js +1 -0
  106. package/dist/api/types/Run.d.ts +2 -0
  107. package/dist/api/types/ToolType.d.ts +2 -1
  108. package/dist/api/types/ToolType.js +1 -0
  109. package/dist/api/types/index.d.ts +2 -3
  110. package/dist/api/types/index.js +2 -3
  111. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -2
  112. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -4
  113. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  114. package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  115. package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  116. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
  117. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
  118. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  119. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  120. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
  121. package/dist/serialization/resources/agents/resources/messages/types/index.js +0 -1
  122. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
  123. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
  124. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
  125. package/{serialization/resources/tools/client/getByName.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js} +5 -2
  126. package/dist/serialization/resources/agents/types/index.d.ts +1 -0
  127. package/dist/serialization/resources/agents/types/index.js +1 -0
  128. package/dist/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
  129. package/dist/serialization/resources/runs/client/getRunMessages.js +2 -2
  130. package/dist/serialization/resources/tools/client/index.d.ts +0 -1
  131. package/dist/serialization/resources/tools/client/index.js +1 -2
  132. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  133. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  134. package/dist/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
  135. package/dist/serialization/types/{LettaResponseMessagesItem.js → LettaMessageUnion.js} +2 -2
  136. package/dist/serialization/types/LettaRequest.d.ts +2 -3
  137. package/dist/serialization/types/LettaRequest.js +2 -3
  138. package/dist/serialization/types/LettaRequestConfig.d.ts +14 -0
  139. package/dist/serialization/types/{RecallMemorySummary.js → LettaRequestConfig.js} +5 -3
  140. package/dist/serialization/types/LettaResponse.d.ts +2 -2
  141. package/dist/serialization/types/LettaResponse.js +2 -2
  142. package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  143. package/dist/serialization/types/LettaSchemasMessageMessage.js +1 -0
  144. package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  145. package/dist/serialization/types/LlmConfigModelEndpointType.js +1 -0
  146. package/dist/serialization/types/Run.d.ts +2 -0
  147. package/dist/serialization/types/Run.js +2 -0
  148. package/dist/serialization/types/ToolType.d.ts +1 -1
  149. package/dist/serialization/types/ToolType.js +1 -0
  150. package/dist/serialization/types/index.d.ts +2 -3
  151. package/dist/serialization/types/index.js +2 -3
  152. package/dist/version.d.ts +1 -1
  153. package/dist/version.js +1 -1
  154. package/package.json +1 -1
  155. package/reference.md +24 -280
  156. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -2
  157. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -4
  158. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  159. package/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  160. package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  161. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
  162. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
  163. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  164. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  165. package/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
  166. package/serialization/resources/agents/resources/messages/types/index.js +0 -1
  167. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
  168. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
  169. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
  170. package/{dist/serialization/resources/tools/client/getByName.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js} +5 -2
  171. package/serialization/resources/agents/types/index.d.ts +1 -0
  172. package/serialization/resources/agents/types/index.js +1 -0
  173. package/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
  174. package/serialization/resources/runs/client/getRunMessages.js +2 -2
  175. package/serialization/resources/tools/client/index.d.ts +0 -1
  176. package/serialization/resources/tools/client/index.js +1 -2
  177. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  178. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  179. package/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
  180. package/serialization/types/{LettaResponseMessagesItem.js → LettaMessageUnion.js} +2 -2
  181. package/serialization/types/LettaRequest.d.ts +2 -3
  182. package/serialization/types/LettaRequest.js +2 -3
  183. package/serialization/types/LettaRequestConfig.d.ts +14 -0
  184. package/serialization/types/{ArchivalMemorySummary.js → LettaRequestConfig.js} +5 -3
  185. package/serialization/types/LettaResponse.d.ts +2 -2
  186. package/serialization/types/LettaResponse.js +2 -2
  187. package/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  188. package/serialization/types/LettaSchemasMessageMessage.js +1 -0
  189. package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  190. package/serialization/types/LlmConfigModelEndpointType.js +1 -0
  191. package/serialization/types/Run.d.ts +2 -0
  192. package/serialization/types/Run.js +2 -0
  193. package/serialization/types/ToolType.d.ts +1 -1
  194. package/serialization/types/ToolType.js +1 -0
  195. package/serialization/types/index.d.ts +2 -3
  196. package/serialization/types/index.js +2 -3
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
  200. package/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  201. package/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  202. package/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  203. package/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  204. package/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  205. package/api/resources/agents/resources/recallMemory/index.js +0 -17
  206. package/api/types/ArchivalMemorySummary.d.ts +0 -7
  207. package/api/types/RecallMemorySummary.d.ts +0 -7
  208. package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
  209. package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  210. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  211. package/dist/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  212. package/dist/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  213. package/dist/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  214. package/dist/api/resources/agents/resources/recallMemory/index.js +0 -17
  215. package/dist/api/types/ArchivalMemorySummary.d.ts +0 -7
  216. package/dist/api/types/LettaResponseMessagesItem.js +0 -5
  217. package/dist/api/types/RecallMemorySummary.d.ts +0 -7
  218. package/dist/api/types/RecallMemorySummary.js +0 -5
  219. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  220. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  221. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
  222. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +0 -59
  223. package/dist/serialization/resources/tools/client/getByName.d.ts +0 -9
  224. package/dist/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  225. package/dist/serialization/types/ArchivalMemorySummary.js +0 -43
  226. package/dist/serialization/types/RecallMemorySummary.d.ts +0 -12
  227. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  228. package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  229. package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
  230. package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +0 -59
  231. package/serialization/resources/tools/client/getByName.d.ts +0 -9
  232. package/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  233. package/serialization/types/RecallMemorySummary.d.ts +0 -12
  234. package/serialization/types/RecallMemorySummary.js +0 -43
  235. /package/api/resources/agents/{resources/messages/types/MessagesListResponseItem.js → types/AgentsSearchRequestSearchItemTags.js} +0 -0
  236. /package/api/types/{ArchivalMemorySummary.js → LettaMessageUnion.js} +0 -0
  237. /package/api/types/{LettaResponseMessagesItem.js → LettaRequestConfig.js} +0 -0
  238. /package/{api/types/RecallMemorySummary.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.js} +0 -0
  239. /package/dist/api/{resources/agents/resources/messages/types/MessagesListResponseItem.js → types/LettaMessageUnion.js} +0 -0
  240. /package/dist/api/types/{ArchivalMemorySummary.js → LettaRequestConfig.js} +0 -0
  241. /package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
  242. /package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
@@ -1,44 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../../../environments";
5
- import * as core from "../../../../../../core";
6
- import * as Letta from "../../../../../index";
7
- export declare namespace RecallMemory {
8
- interface Options {
9
- environment?: core.Supplier<environments.LettaEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<string | undefined>;
13
- fetcher?: core.FetchFunction;
14
- }
15
- interface RequestOptions {
16
- /** The maximum time to wait for a response in seconds. */
17
- timeoutInSeconds?: number;
18
- /** The number of times to retry the request. Defaults to 2. */
19
- maxRetries?: number;
20
- /** A hook to abort the request. */
21
- abortSignal?: AbortSignal;
22
- /** Additional headers to include in the request. */
23
- headers?: Record<string, string>;
24
- }
25
- }
26
- export declare class RecallMemory {
27
- protected readonly _options: RecallMemory.Options;
28
- constructor(_options?: RecallMemory.Options);
29
- /**
30
- * Retrieve the summary of the recall memory of a specific agent.
31
- *
32
- * @param {string} agentId
33
- * @param {RecallMemory.RequestOptions} requestOptions - Request-specific configuration.
34
- *
35
- * @throws {@link Letta.UnprocessableEntityError}
36
- *
37
- * @example
38
- * await client.agents.recallMemory.getSummary("agent_id")
39
- */
40
- getSummary(agentId: string, requestOptions?: RecallMemory.RequestOptions): Promise<Letta.RecallMemorySummary>;
41
- protected _getCustomAuthorizationHeaders(): Promise<{
42
- Authorization: string;
43
- }>;
44
- }
@@ -1,134 +0,0 @@
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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.RecallMemory = void 0;
52
- const environments = __importStar(require("../../../../../../environments"));
53
- const core = __importStar(require("../../../../../../core"));
54
- const Letta = __importStar(require("../../../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
- const serializers = __importStar(require("../../../../../../serialization/index"));
57
- const errors = __importStar(require("../../../../../../errors/index"));
58
- class RecallMemory {
59
- constructor(_options = {}) {
60
- this._options = _options;
61
- }
62
- /**
63
- * Retrieve the summary of the recall memory of a specific agent.
64
- *
65
- * @param {string} agentId
66
- * @param {RecallMemory.RequestOptions} requestOptions - Request-specific configuration.
67
- *
68
- * @throws {@link Letta.UnprocessableEntityError}
69
- *
70
- * @example
71
- * await client.agents.recallMemory.getSummary("agent_id")
72
- */
73
- getSummary(agentId, requestOptions) {
74
- return __awaiter(this, void 0, void 0, function* () {
75
- var _a, _b, _c;
76
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/recall`),
78
- method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
- contentType: "application/json",
81
- requestType: "json",
82
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
- });
86
- if (_response.ok) {
87
- return serializers.RecallMemorySummary.parseOrThrow(_response.body, {
88
- unrecognizedObjectKeys: "passthrough",
89
- allowUnrecognizedUnionMembers: true,
90
- allowUnrecognizedEnumValues: true,
91
- skipValidation: true,
92
- breadcrumbsPrefix: ["response"],
93
- });
94
- }
95
- if (_response.error.reason === "status-code") {
96
- switch (_response.error.statusCode) {
97
- case 422:
98
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
99
- unrecognizedObjectKeys: "passthrough",
100
- allowUnrecognizedUnionMembers: true,
101
- allowUnrecognizedEnumValues: true,
102
- skipValidation: true,
103
- breadcrumbsPrefix: ["response"],
104
- }));
105
- default:
106
- throw new errors.LettaError({
107
- statusCode: _response.error.statusCode,
108
- body: _response.error.body,
109
- });
110
- }
111
- }
112
- switch (_response.error.reason) {
113
- case "non-json":
114
- throw new errors.LettaError({
115
- statusCode: _response.error.statusCode,
116
- body: _response.error.rawBody,
117
- });
118
- case "timeout":
119
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/memory/recall.");
120
- case "unknown":
121
- throw new errors.LettaError({
122
- message: _response.error.errorMessage,
123
- });
124
- }
125
- });
126
- }
127
- _getCustomAuthorizationHeaders() {
128
- return __awaiter(this, void 0, void 0, function* () {
129
- const tokenValue = yield core.Supplier.get(this._options.token);
130
- return { Authorization: `Bearer ${tokenValue}` };
131
- });
132
- }
133
- }
134
- exports.RecallMemory = RecallMemory;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ArchivalMemorySummary {
5
- /** Number of rows in archival memory */
6
- size: number;
7
- }
@@ -1,5 +0,0 @@
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,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RecallMemorySummary {
5
- /** Number of rows in recall memory */
6
- size: number;
7
- }
@@ -1,5 +0,0 @@
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,11 +0,0 @@
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 { LettaSchemasMessageMessage } from "../../../../../types/LettaSchemasMessageMessage";
8
- export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.listInContext.Response.Raw, Letta.LettaSchemasMessageMessage[]>;
9
- export declare namespace Response {
10
- type Raw = LettaSchemasMessageMessage.Raw[];
11
- }
@@ -1,42 +0,0 @@
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.Response = void 0;
40
- const core = __importStar(require("../../../../../../core"));
41
- const LettaSchemasMessageMessage_1 = require("../../../../../types/LettaSchemasMessageMessage");
42
- exports.Response = core.serialization.list(LettaSchemasMessageMessage_1.LettaSchemasMessageMessage);
@@ -1,34 +0,0 @@
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 { SystemMessageOutput } from "../../../../../types/SystemMessageOutput";
8
- import { UserMessageOutput } from "../../../../../types/UserMessageOutput";
9
- import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
10
- import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
11
- import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
12
- import { AssistantMessageOutput } from "../../../../../types/AssistantMessageOutput";
13
- export declare const MessagesListResponseItem: core.serialization.Schema<serializers.agents.MessagesListResponseItem.Raw, Letta.agents.MessagesListResponseItem>;
14
- export declare namespace MessagesListResponseItem {
15
- type Raw = MessagesListResponseItem.SystemMessage | MessagesListResponseItem.UserMessage | MessagesListResponseItem.ReasoningMessage | MessagesListResponseItem.ToolCallMessage | MessagesListResponseItem.ToolReturnMessage | MessagesListResponseItem.AssistantMessage;
16
- interface SystemMessage extends SystemMessageOutput.Raw {
17
- message_type: "system_message";
18
- }
19
- interface UserMessage extends UserMessageOutput.Raw {
20
- message_type: "user_message";
21
- }
22
- interface ReasoningMessage extends ReasoningMessage.Raw {
23
- message_type: "reasoning_message";
24
- }
25
- interface ToolCallMessage extends ToolCallMessage.Raw {
26
- message_type: "tool_call_message";
27
- }
28
- interface ToolReturnMessage extends ToolReturnMessage.Raw {
29
- message_type: "tool_return_message";
30
- }
31
- interface AssistantMessage extends AssistantMessageOutput.Raw {
32
- message_type: "assistant_message";
33
- }
34
- }
@@ -1,59 +0,0 @@
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.MessagesListResponseItem = void 0;
40
- const core = __importStar(require("../../../../../../core"));
41
- const SystemMessageOutput_1 = require("../../../../../types/SystemMessageOutput");
42
- const UserMessageOutput_1 = require("../../../../../types/UserMessageOutput");
43
- const ReasoningMessage_1 = require("../../../../../types/ReasoningMessage");
44
- const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
45
- const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
46
- const AssistantMessageOutput_1 = require("../../../../../types/AssistantMessageOutput");
47
- exports.MessagesListResponseItem = core.serialization
48
- .union(core.serialization.discriminant("messageType", "message_type"), {
49
- system_message: SystemMessageOutput_1.SystemMessageOutput,
50
- user_message: UserMessageOutput_1.UserMessageOutput,
51
- reasoning_message: ReasoningMessage_1.ReasoningMessage,
52
- tool_call_message: ToolCallMessage_1.ToolCallMessage,
53
- tool_return_message: ToolReturnMessage_1.ToolReturnMessage,
54
- assistant_message: AssistantMessageOutput_1.AssistantMessageOutput,
55
- })
56
- .transform({
57
- transform: (value) => value,
58
- untransform: (value) => value,
59
- });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as core from "../../../../core";
6
- export declare const Response: core.serialization.Schema<serializers.tools.getByName.Response.Raw, string>;
7
- export declare namespace Response {
8
- type Raw = string;
9
- }
@@ -1,12 +0,0 @@
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 ArchivalMemorySummary: core.serialization.ObjectSchema<serializers.ArchivalMemorySummary.Raw, Letta.ArchivalMemorySummary>;
8
- export declare namespace ArchivalMemorySummary {
9
- interface Raw {
10
- size: number;
11
- }
12
- }
@@ -1,43 +0,0 @@
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.ArchivalMemorySummary = void 0;
40
- const core = __importStar(require("../../core"));
41
- exports.ArchivalMemorySummary = core.serialization.object({
42
- size: core.serialization.number(),
43
- });
@@ -1,12 +0,0 @@
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 RecallMemorySummary: core.serialization.ObjectSchema<serializers.RecallMemorySummary.Raw, Letta.RecallMemorySummary>;
8
- export declare namespace RecallMemorySummary {
9
- interface Raw {
10
- size: number;
11
- }
12
- }
@@ -1,11 +0,0 @@
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 { LettaSchemasMessageMessage } from "../../../../../types/LettaSchemasMessageMessage";
8
- export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.listInContext.Response.Raw, Letta.LettaSchemasMessageMessage[]>;
9
- export declare namespace Response {
10
- type Raw = LettaSchemasMessageMessage.Raw[];
11
- }
@@ -1,42 +0,0 @@
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.Response = void 0;
40
- const core = __importStar(require("../../../../../../core"));
41
- const LettaSchemasMessageMessage_1 = require("../../../../../types/LettaSchemasMessageMessage");
42
- exports.Response = core.serialization.list(LettaSchemasMessageMessage_1.LettaSchemasMessageMessage);
@@ -1,34 +0,0 @@
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 { SystemMessageOutput } from "../../../../../types/SystemMessageOutput";
8
- import { UserMessageOutput } from "../../../../../types/UserMessageOutput";
9
- import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
10
- import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
11
- import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
12
- import { AssistantMessageOutput } from "../../../../../types/AssistantMessageOutput";
13
- export declare const MessagesListResponseItem: core.serialization.Schema<serializers.agents.MessagesListResponseItem.Raw, Letta.agents.MessagesListResponseItem>;
14
- export declare namespace MessagesListResponseItem {
15
- type Raw = MessagesListResponseItem.SystemMessage | MessagesListResponseItem.UserMessage | MessagesListResponseItem.ReasoningMessage | MessagesListResponseItem.ToolCallMessage | MessagesListResponseItem.ToolReturnMessage | MessagesListResponseItem.AssistantMessage;
16
- interface SystemMessage extends SystemMessageOutput.Raw {
17
- message_type: "system_message";
18
- }
19
- interface UserMessage extends UserMessageOutput.Raw {
20
- message_type: "user_message";
21
- }
22
- interface ReasoningMessage extends ReasoningMessage.Raw {
23
- message_type: "reasoning_message";
24
- }
25
- interface ToolCallMessage extends ToolCallMessage.Raw {
26
- message_type: "tool_call_message";
27
- }
28
- interface ToolReturnMessage extends ToolReturnMessage.Raw {
29
- message_type: "tool_return_message";
30
- }
31
- interface AssistantMessage extends AssistantMessageOutput.Raw {
32
- message_type: "assistant_message";
33
- }
34
- }
@@ -1,59 +0,0 @@
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.MessagesListResponseItem = void 0;
40
- const core = __importStar(require("../../../../../../core"));
41
- const SystemMessageOutput_1 = require("../../../../../types/SystemMessageOutput");
42
- const UserMessageOutput_1 = require("../../../../../types/UserMessageOutput");
43
- const ReasoningMessage_1 = require("../../../../../types/ReasoningMessage");
44
- const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
45
- const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
46
- const AssistantMessageOutput_1 = require("../../../../../types/AssistantMessageOutput");
47
- exports.MessagesListResponseItem = core.serialization
48
- .union(core.serialization.discriminant("messageType", "message_type"), {
49
- system_message: SystemMessageOutput_1.SystemMessageOutput,
50
- user_message: UserMessageOutput_1.UserMessageOutput,
51
- reasoning_message: ReasoningMessage_1.ReasoningMessage,
52
- tool_call_message: ToolCallMessage_1.ToolCallMessage,
53
- tool_return_message: ToolReturnMessage_1.ToolReturnMessage,
54
- assistant_message: AssistantMessageOutput_1.AssistantMessageOutput,
55
- })
56
- .transform({
57
- transform: (value) => value,
58
- untransform: (value) => value,
59
- });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as core from "../../../../core";
6
- export declare const Response: core.serialization.Schema<serializers.tools.getByName.Response.Raw, string>;
7
- export declare namespace Response {
8
- type Raw = string;
9
- }
@@ -1,12 +0,0 @@
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 ArchivalMemorySummary: core.serialization.ObjectSchema<serializers.ArchivalMemorySummary.Raw, Letta.ArchivalMemorySummary>;
8
- export declare namespace ArchivalMemorySummary {
9
- interface Raw {
10
- size: number;
11
- }
12
- }