@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
@@ -38,5 +38,5 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Response = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const LettaSchemasMessageMessage_1 = require("../../../types/LettaSchemasMessageMessage");
42
- exports.Response = core.serialization.list(LettaSchemasMessageMessage_1.LettaSchemasMessageMessage);
41
+ const LettaMessageUnion_1 = require("../../../types/LettaMessageUnion");
42
+ exports.Response = core.serialization.list(LettaMessageUnion_1.LettaMessageUnion);
@@ -1,4 +1,3 @@
1
- export * as getByName from "./getByName";
2
1
  export * as list from "./list";
3
2
  export * as addBaseTool from "./addBaseTool";
4
3
  export * as listComposioApps from "./listComposioApps";
@@ -36,8 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = exports.getByName = void 0;
40
- exports.getByName = __importStar(require("./getByName"));
39
+ exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
41
40
  exports.list = __importStar(require("./list"));
42
41
  exports.addBaseTool = __importStar(require("./addBaseTool"));
43
42
  exports.listComposioApps = __importStar(require("./listComposioApps"));
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const EmbeddingConfigEmbeddingEndpointType: core.serialization.Schema<serializers.EmbeddingConfigEmbeddingEndpointType.Raw, Letta.EmbeddingConfigEmbeddingEndpointType>;
8
8
  export declare namespace EmbeddingConfigEmbeddingEndpointType {
9
- type Raw = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
9
+ type Raw = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
10
10
  }
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  exports.EmbeddingConfigEmbeddingEndpointType = core.serialization.enum_([
42
42
  "openai",
43
43
  "anthropic",
44
+ "bedrock",
44
45
  "cohere",
45
46
  "google_ai",
46
47
  "azure",
@@ -10,9 +10,9 @@ import { ReasoningMessage } from "./ReasoningMessage";
10
10
  import { ToolCallMessage } from "./ToolCallMessage";
11
11
  import { ToolReturnMessage } from "./ToolReturnMessage";
12
12
  import { AssistantMessageOutput } from "./AssistantMessageOutput";
13
- export declare const LettaResponseMessagesItem: core.serialization.Schema<serializers.LettaResponseMessagesItem.Raw, Letta.LettaResponseMessagesItem>;
14
- export declare namespace LettaResponseMessagesItem {
15
- type Raw = LettaResponseMessagesItem.SystemMessage | LettaResponseMessagesItem.UserMessage | LettaResponseMessagesItem.ReasoningMessage | LettaResponseMessagesItem.ToolCallMessage | LettaResponseMessagesItem.ToolReturnMessage | LettaResponseMessagesItem.AssistantMessage;
13
+ export declare const LettaMessageUnion: core.serialization.Schema<serializers.LettaMessageUnion.Raw, Letta.LettaMessageUnion>;
14
+ export declare namespace LettaMessageUnion {
15
+ type Raw = LettaMessageUnion.SystemMessage | LettaMessageUnion.UserMessage | LettaMessageUnion.ReasoningMessage | LettaMessageUnion.ToolCallMessage | LettaMessageUnion.ToolReturnMessage | LettaMessageUnion.AssistantMessage;
16
16
  interface SystemMessage extends SystemMessageOutput.Raw {
17
17
  message_type: "system_message";
18
18
  }
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.LettaResponseMessagesItem = void 0;
39
+ exports.LettaMessageUnion = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const SystemMessageOutput_1 = require("./SystemMessageOutput");
42
42
  const UserMessageOutput_1 = require("./UserMessageOutput");
@@ -44,7 +44,7 @@ const ReasoningMessage_1 = require("./ReasoningMessage");
44
44
  const ToolCallMessage_1 = require("./ToolCallMessage");
45
45
  const ToolReturnMessage_1 = require("./ToolReturnMessage");
46
46
  const AssistantMessageOutput_1 = require("./AssistantMessageOutput");
47
- exports.LettaResponseMessagesItem = core.serialization
47
+ exports.LettaMessageUnion = core.serialization
48
48
  .union(core.serialization.discriminant("messageType", "message_type"), {
49
49
  system_message: SystemMessageOutput_1.SystemMessageOutput,
50
50
  user_message: UserMessageOutput_1.UserMessageOutput,
@@ -5,12 +5,11 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { MessageCreate } from "./MessageCreate";
8
+ import { LettaRequestConfig } from "./LettaRequestConfig";
8
9
  export declare const LettaRequest: core.serialization.ObjectSchema<serializers.LettaRequest.Raw, Letta.LettaRequest>;
9
10
  export declare namespace LettaRequest {
10
11
  interface Raw {
11
12
  messages: MessageCreate.Raw[];
12
- use_assistant_message?: boolean | null;
13
- assistant_message_tool_name?: string | null;
14
- assistant_message_tool_kwarg?: string | null;
13
+ config?: LettaRequestConfig.Raw | null;
15
14
  }
16
15
  }
@@ -39,9 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LettaRequest = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const MessageCreate_1 = require("./MessageCreate");
42
+ const LettaRequestConfig_1 = require("./LettaRequestConfig");
42
43
  exports.LettaRequest = core.serialization.object({
43
44
  messages: core.serialization.list(MessageCreate_1.MessageCreate),
44
- useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
45
- assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
46
- assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
45
+ config: LettaRequestConfig_1.LettaRequestConfig.optional(),
47
46
  });
@@ -0,0 +1,14 @@
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 LettaRequestConfig: core.serialization.ObjectSchema<serializers.LettaRequestConfig.Raw, Letta.LettaRequestConfig>;
8
+ export declare namespace LettaRequestConfig {
9
+ interface Raw {
10
+ use_assistant_message?: boolean | null;
11
+ assistant_message_tool_name?: string | null;
12
+ assistant_message_tool_kwarg?: string | null;
13
+ }
14
+ }
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ArchivalMemorySummary = void 0;
39
+ exports.LettaRequestConfig = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.ArchivalMemorySummary = core.serialization.object({
42
- size: core.serialization.number(),
41
+ exports.LettaRequestConfig = core.serialization.object({
42
+ useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
43
+ assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
44
+ assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
43
45
  });
@@ -4,12 +4,12 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { LettaResponseMessagesItem } from "./LettaResponseMessagesItem";
7
+ import { LettaMessageUnion } from "./LettaMessageUnion";
8
8
  import { LettaUsageStatistics } from "./LettaUsageStatistics";
9
9
  export declare const LettaResponse: core.serialization.ObjectSchema<serializers.LettaResponse.Raw, Letta.LettaResponse>;
10
10
  export declare namespace LettaResponse {
11
11
  interface Raw {
12
- messages: LettaResponseMessagesItem.Raw[];
12
+ messages: LettaMessageUnion.Raw[];
13
13
  usage: LettaUsageStatistics.Raw;
14
14
  }
15
15
  }
@@ -38,9 +38,9 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LettaResponse = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- const LettaResponseMessagesItem_1 = require("./LettaResponseMessagesItem");
41
+ const LettaMessageUnion_1 = require("./LettaMessageUnion");
42
42
  const LettaUsageStatistics_1 = require("./LettaUsageStatistics");
43
43
  exports.LettaResponse = core.serialization.object({
44
- messages: core.serialization.list(LettaResponseMessagesItem_1.LettaResponseMessagesItem),
44
+ messages: core.serialization.list(LettaMessageUnion_1.LettaMessageUnion),
45
45
  usage: LettaUsageStatistics_1.LettaUsageStatistics,
46
46
  });
@@ -21,5 +21,6 @@ export declare namespace LettaSchemasMessageMessage {
21
21
  name?: string | null;
22
22
  tool_calls?: LettaSchemasOpenaiChatCompletionsToolCallOutput.Raw[] | null;
23
23
  tool_call_id?: string | null;
24
+ step_id?: string | null;
24
25
  }
25
26
  }
@@ -53,4 +53,5 @@ exports.LettaSchemasMessageMessage = core.serialization.object({
53
53
  name: core.serialization.string().optional(),
54
54
  toolCalls: core.serialization.property("tool_calls", core.serialization.list(LettaSchemasOpenaiChatCompletionsToolCallOutput_1.LettaSchemasOpenaiChatCompletionsToolCallOutput).optional()),
55
55
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
56
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
56
57
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const LlmConfigModelEndpointType: core.serialization.Schema<serializers.LlmConfigModelEndpointType.Raw, Letta.LlmConfigModelEndpointType>;
8
8
  export declare namespace LlmConfigModelEndpointType {
9
- type Raw = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
9
+ type Raw = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "bedrock";
10
10
  }
@@ -56,4 +56,5 @@ exports.LlmConfigModelEndpointType = core.serialization.enum_([
56
56
  "hugging-face",
57
57
  "mistral",
58
58
  "together",
59
+ "bedrock",
59
60
  ]);
@@ -6,6 +6,7 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JobStatus } from "./JobStatus";
8
8
  import { JobType } from "./JobType";
9
+ import { LettaRequestConfig } from "./LettaRequestConfig";
9
10
  export declare const Run: core.serialization.ObjectSchema<serializers.Run.Raw, Letta.Run>;
10
11
  export declare namespace Run {
11
12
  interface Raw {
@@ -18,5 +19,6 @@ export declare namespace Run {
18
19
  metadata_?: Record<string, unknown> | null;
19
20
  job_type?: JobType.Raw | null;
20
21
  id?: string | null;
22
+ request_config?: LettaRequestConfig.Raw | null;
21
23
  }
22
24
  }
@@ -40,6 +40,7 @@ exports.Run = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const JobStatus_1 = require("./JobStatus");
42
42
  const JobType_1 = require("./JobType");
43
+ const LettaRequestConfig_1 = require("./LettaRequestConfig");
43
44
  exports.Run = core.serialization.object({
44
45
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
45
46
  lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
@@ -50,4 +51,5 @@ exports.Run = core.serialization.object({
50
51
  metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
51
52
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
53
  id: core.serialization.string().optional(),
54
+ requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
53
55
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ToolType: core.serialization.Schema<serializers.ToolType.Raw, Letta.ToolType>;
8
8
  export declare namespace ToolType {
9
- type Raw = "custom" | "letta_core" | "letta_memory_core";
9
+ type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core";
10
10
  }
@@ -42,4 +42,5 @@ exports.ToolType = core.serialization.enum_([
42
42
  "custom",
43
43
  "letta_core",
44
44
  "letta_memory_core",
45
+ "letta_multi_agent_core",
45
46
  ]);
@@ -12,7 +12,6 @@ export * from "./AgentType";
12
12
  export * from "./AppAuthSchemeAuthMode";
13
13
  export * from "./AppAuthScheme";
14
14
  export * from "./AppModel";
15
- export * from "./ArchivalMemorySummary";
16
15
  export * from "./AssistantFile";
17
16
  export * from "./AssistantMessageInput";
18
17
  export * from "./AssistantMessageOutput";
@@ -52,7 +51,7 @@ export * from "./JobType";
52
51
  export * from "./LlmConfigModelEndpointType";
53
52
  export * from "./LlmConfig";
54
53
  export * from "./LettaRequest";
55
- export * from "./LettaResponseMessagesItem";
54
+ export * from "./LettaRequestConfig";
56
55
  export * from "./LettaResponse";
57
56
  export * from "./LettaUsageStatistics";
58
57
  export * from "./LocalSandboxConfig";
@@ -68,7 +67,6 @@ export * from "./OrganizationCreate";
68
67
  export * from "./Passage";
69
68
  export * from "./Provider";
70
69
  export * from "./ReasoningMessage";
71
- export * from "./RecallMemorySummary";
72
70
  export * from "./ResponseFormat";
73
71
  export * from "./Run";
74
72
  export * from "./SandboxConfig";
@@ -116,3 +114,4 @@ export * from "./LettaSchemasOpenaiChatCompletionsToolCallInput";
116
114
  export * from "./LettaSchemasOpenaiChatCompletionsToolCallOutput";
117
115
  export * from "./LettaSchemasOpenaiChatCompletionsToolCallFunction";
118
116
  export * from "./LettaSchemasToolTool";
117
+ export * from "./LettaMessageUnion";
@@ -28,7 +28,6 @@ __exportStar(require("./AgentType"), exports);
28
28
  __exportStar(require("./AppAuthSchemeAuthMode"), exports);
29
29
  __exportStar(require("./AppAuthScheme"), exports);
30
30
  __exportStar(require("./AppModel"), exports);
31
- __exportStar(require("./ArchivalMemorySummary"), exports);
32
31
  __exportStar(require("./AssistantFile"), exports);
33
32
  __exportStar(require("./AssistantMessageInput"), exports);
34
33
  __exportStar(require("./AssistantMessageOutput"), exports);
@@ -68,7 +67,7 @@ __exportStar(require("./JobType"), exports);
68
67
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
69
68
  __exportStar(require("./LlmConfig"), exports);
70
69
  __exportStar(require("./LettaRequest"), exports);
71
- __exportStar(require("./LettaResponseMessagesItem"), exports);
70
+ __exportStar(require("./LettaRequestConfig"), exports);
72
71
  __exportStar(require("./LettaResponse"), exports);
73
72
  __exportStar(require("./LettaUsageStatistics"), exports);
74
73
  __exportStar(require("./LocalSandboxConfig"), exports);
@@ -84,7 +83,6 @@ __exportStar(require("./OrganizationCreate"), exports);
84
83
  __exportStar(require("./Passage"), exports);
85
84
  __exportStar(require("./Provider"), exports);
86
85
  __exportStar(require("./ReasoningMessage"), exports);
87
- __exportStar(require("./RecallMemorySummary"), exports);
88
86
  __exportStar(require("./ResponseFormat"), exports);
89
87
  __exportStar(require("./Run"), exports);
90
88
  __exportStar(require("./SandboxConfig"), exports);
@@ -132,3 +130,4 @@ __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallInput"), export
132
130
  __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallOutput"), exports);
133
131
  __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallFunction"), exports);
134
132
  __exportStar(require("./LettaSchemasToolTool"), exports);
133
+ __exportStar(require("./LettaMessageUnion"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.9";
1
+ export declare const SDK_VERSION = "0.1.12";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.9";
4
+ exports.SDK_VERSION = "0.1.12";
@@ -1,25 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../../../../../index";
5
- export type MessagesListResponseItem = Letta.agents.MessagesListResponseItem.SystemMessage | Letta.agents.MessagesListResponseItem.UserMessage | Letta.agents.MessagesListResponseItem.ReasoningMessage | Letta.agents.MessagesListResponseItem.ToolCallMessage | Letta.agents.MessagesListResponseItem.ToolReturnMessage | Letta.agents.MessagesListResponseItem.AssistantMessage;
6
- export declare namespace MessagesListResponseItem {
7
- interface SystemMessage extends Letta.SystemMessageOutput {
8
- messageType: "system_message";
9
- }
10
- interface UserMessage extends Letta.UserMessageOutput {
11
- messageType: "user_message";
12
- }
13
- interface ReasoningMessage extends Letta.ReasoningMessage {
14
- messageType: "reasoning_message";
15
- }
16
- interface ToolCallMessage extends Letta.ToolCallMessage {
17
- messageType: "tool_call_message";
18
- }
19
- interface ToolReturnMessage extends Letta.ToolReturnMessage {
20
- messageType: "tool_return_message";
21
- }
22
- interface AssistantMessage extends Letta.AssistantMessageOutput {
23
- messageType: "assistant_message";
24
- }
25
- }
@@ -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,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,25 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../../../../../index";
5
- export type MessagesListResponseItem = Letta.agents.MessagesListResponseItem.SystemMessage | Letta.agents.MessagesListResponseItem.UserMessage | Letta.agents.MessagesListResponseItem.ReasoningMessage | Letta.agents.MessagesListResponseItem.ToolCallMessage | Letta.agents.MessagesListResponseItem.ToolReturnMessage | Letta.agents.MessagesListResponseItem.AssistantMessage;
6
- export declare namespace MessagesListResponseItem {
7
- interface SystemMessage extends Letta.SystemMessageOutput {
8
- messageType: "system_message";
9
- }
10
- interface UserMessage extends Letta.UserMessageOutput {
11
- messageType: "user_message";
12
- }
13
- interface ReasoningMessage extends Letta.ReasoningMessage {
14
- messageType: "reasoning_message";
15
- }
16
- interface ToolCallMessage extends Letta.ToolCallMessage {
17
- messageType: "tool_call_message";
18
- }
19
- interface ToolReturnMessage extends Letta.ToolReturnMessage {
20
- messageType: "tool_return_message";
21
- }
22
- interface AssistantMessage extends Letta.AssistantMessageOutput {
23
- messageType: "assistant_message";
24
- }
25
- }