@letta-ai/letta-client 0.0.68661 → 0.0.68662

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 (163) hide show
  1. package/api/resources/agents/client/Client.js +9 -9
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +4 -4
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  10. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  14. package/api/resources/archives/client/Client.js +3 -3
  15. package/api/resources/batches/client/Client.js +4 -4
  16. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  17. package/api/resources/blocks/client/Client.js +6 -6
  18. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  19. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  20. package/api/resources/folders/client/Client.js +8 -8
  21. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  22. package/api/resources/folders/resources/files/client/Client.js +3 -3
  23. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  24. package/api/resources/groups/client/Client.js +6 -6
  25. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  26. package/api/resources/health/client/Client.js +1 -1
  27. package/api/resources/identities/client/Client.js +7 -7
  28. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  29. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  30. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  31. package/api/resources/jobs/client/Client.js +5 -5
  32. package/api/resources/models/client/Client.js +2 -2
  33. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  34. package/api/resources/projects/client/Client.js +1 -1
  35. package/api/resources/providers/client/Client.js +6 -6
  36. package/api/resources/runs/client/Client.js +5 -5
  37. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  38. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  39. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  40. package/api/resources/sources/client/Client.js +10 -10
  41. package/api/resources/sources/resources/files/client/Client.js +3 -3
  42. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  43. package/api/resources/steps/client/Client.js +2 -2
  44. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  45. package/api/resources/steps/resources/messages/client/Client.js +1 -1
  46. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  47. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  48. package/api/resources/tags/client/Client.js +1 -1
  49. package/api/resources/telemetry/client/Client.js +1 -1
  50. package/api/resources/templates/client/Client.js +11 -11
  51. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  52. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +2 -1
  53. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +1 -0
  54. package/api/resources/tools/client/Client.js +20 -20
  55. package/api/resources/voice/client/Client.js +1 -1
  56. package/api/types/AgentType.d.ts +2 -1
  57. package/api/types/AgentType.js +1 -0
  58. package/api/types/MessageContentItem.d.ts +1 -1
  59. package/api/types/OmittedReasoningContent.d.ts +3 -0
  60. package/api/types/ReasoningContent.d.ts +3 -0
  61. package/api/types/RedactedReasoningContent.d.ts +3 -0
  62. package/api/types/SummarizedReasoningContent.d.ts +16 -0
  63. package/api/types/SummarizedReasoningContent.js +5 -0
  64. package/api/types/SummarizedReasoningContentPart.d.ts +9 -0
  65. package/api/types/SummarizedReasoningContentPart.js +5 -0
  66. package/api/types/index.d.ts +2 -0
  67. package/api/types/index.js +2 -0
  68. package/dist/api/resources/agents/client/Client.js +9 -9
  69. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  70. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  71. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  73. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  77. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  78. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  79. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  80. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  81. package/dist/api/resources/archives/client/Client.js +3 -3
  82. package/dist/api/resources/batches/client/Client.js +4 -4
  83. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  84. package/dist/api/resources/blocks/client/Client.js +6 -6
  85. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  86. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  87. package/dist/api/resources/folders/client/Client.js +8 -8
  88. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  89. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  90. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  91. package/dist/api/resources/groups/client/Client.js +6 -6
  92. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  93. package/dist/api/resources/health/client/Client.js +1 -1
  94. package/dist/api/resources/identities/client/Client.js +7 -7
  95. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  96. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  97. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  98. package/dist/api/resources/jobs/client/Client.js +5 -5
  99. package/dist/api/resources/models/client/Client.js +2 -2
  100. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  101. package/dist/api/resources/projects/client/Client.js +1 -1
  102. package/dist/api/resources/providers/client/Client.js +6 -6
  103. package/dist/api/resources/runs/client/Client.js +5 -5
  104. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  105. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  106. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  107. package/dist/api/resources/sources/client/Client.js +10 -10
  108. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  109. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  110. package/dist/api/resources/steps/client/Client.js +2 -2
  111. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  112. package/dist/api/resources/steps/resources/messages/client/Client.js +1 -1
  113. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  114. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  115. package/dist/api/resources/tags/client/Client.js +1 -1
  116. package/dist/api/resources/telemetry/client/Client.js +1 -1
  117. package/dist/api/resources/templates/client/Client.js +11 -11
  118. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  119. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +2 -1
  120. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +1 -0
  121. package/dist/api/resources/tools/client/Client.js +20 -20
  122. package/dist/api/resources/voice/client/Client.js +1 -1
  123. package/dist/api/types/AgentType.d.ts +2 -1
  124. package/dist/api/types/AgentType.js +1 -0
  125. package/dist/api/types/MessageContentItem.d.ts +1 -1
  126. package/dist/api/types/OmittedReasoningContent.d.ts +3 -0
  127. package/dist/api/types/ReasoningContent.d.ts +3 -0
  128. package/dist/api/types/RedactedReasoningContent.d.ts +3 -0
  129. package/dist/api/types/SummarizedReasoningContent.d.ts +16 -0
  130. package/dist/api/types/SummarizedReasoningContent.js +5 -0
  131. package/dist/api/types/SummarizedReasoningContentPart.d.ts +9 -0
  132. package/dist/api/types/SummarizedReasoningContentPart.js +5 -0
  133. package/dist/api/types/index.d.ts +2 -0
  134. package/dist/api/types/index.js +2 -0
  135. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +1 -1
  136. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +1 -0
  137. package/dist/serialization/types/AgentType.d.ts +1 -1
  138. package/dist/serialization/types/AgentType.js +1 -0
  139. package/dist/serialization/types/MessageContentItem.d.ts +2 -1
  140. package/dist/serialization/types/MessageContentItem.js +2 -0
  141. package/dist/serialization/types/SummarizedReasoningContent.d.ts +16 -0
  142. package/dist/serialization/types/SummarizedReasoningContent.js +47 -0
  143. package/dist/serialization/types/SummarizedReasoningContentPart.d.ts +13 -0
  144. package/dist/serialization/types/SummarizedReasoningContentPart.js +44 -0
  145. package/dist/serialization/types/index.d.ts +2 -0
  146. package/dist/serialization/types/index.js +2 -0
  147. package/dist/version.d.ts +1 -1
  148. package/dist/version.js +1 -1
  149. package/package.json +1 -1
  150. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.d.ts +1 -1
  151. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemAgentType.js +1 -0
  152. package/serialization/types/AgentType.d.ts +1 -1
  153. package/serialization/types/AgentType.js +1 -0
  154. package/serialization/types/MessageContentItem.d.ts +2 -1
  155. package/serialization/types/MessageContentItem.js +2 -0
  156. package/serialization/types/SummarizedReasoningContent.d.ts +16 -0
  157. package/serialization/types/SummarizedReasoningContent.js +47 -0
  158. package/serialization/types/SummarizedReasoningContentPart.d.ts +13 -0
  159. package/serialization/types/SummarizedReasoningContentPart.js +44 -0
  160. package/serialization/types/index.d.ts +2 -0
  161. package/serialization/types/index.js +2 -0
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  exports.AgentType = core.serialization.enum_([
42
42
  "memgpt_agent",
43
43
  "memgpt_v2_agent",
44
+ "letta_v1_agent",
44
45
  "react_agent",
45
46
  "workflow_agent",
46
47
  "split_thread_agent",
@@ -8,10 +8,11 @@ import { ImageContent } from "./ImageContent";
8
8
  import { OmittedReasoningContent } from "./OmittedReasoningContent";
9
9
  import { ReasoningContent } from "./ReasoningContent";
10
10
  import { RedactedReasoningContent } from "./RedactedReasoningContent";
11
+ import { SummarizedReasoningContent } from "./SummarizedReasoningContent";
11
12
  import { TextContent } from "./TextContent";
12
13
  import { ToolCallContent } from "./ToolCallContent";
13
14
  import { ToolReturnContent } from "./ToolReturnContent";
14
15
  export declare const MessageContentItem: core.serialization.Schema<serializers.MessageContentItem.Raw, Letta.MessageContentItem>;
15
16
  export declare namespace MessageContentItem {
16
- type Raw = ImageContent.Raw | OmittedReasoningContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | TextContent.Raw | ToolCallContent.Raw | ToolReturnContent.Raw;
17
+ type Raw = ImageContent.Raw | OmittedReasoningContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | SummarizedReasoningContent.Raw | TextContent.Raw | ToolCallContent.Raw | ToolReturnContent.Raw;
17
18
  }
@@ -42,6 +42,7 @@ const ImageContent_1 = require("./ImageContent");
42
42
  const OmittedReasoningContent_1 = require("./OmittedReasoningContent");
43
43
  const ReasoningContent_1 = require("./ReasoningContent");
44
44
  const RedactedReasoningContent_1 = require("./RedactedReasoningContent");
45
+ const SummarizedReasoningContent_1 = require("./SummarizedReasoningContent");
45
46
  const TextContent_1 = require("./TextContent");
46
47
  const ToolCallContent_1 = require("./ToolCallContent");
47
48
  const ToolReturnContent_1 = require("./ToolReturnContent");
@@ -50,6 +51,7 @@ exports.MessageContentItem = core.serialization.undiscriminatedUnion([
50
51
  OmittedReasoningContent_1.OmittedReasoningContent,
51
52
  ReasoningContent_1.ReasoningContent,
52
53
  RedactedReasoningContent_1.RedactedReasoningContent,
54
+ SummarizedReasoningContent_1.SummarizedReasoningContent,
53
55
  TextContent_1.TextContent,
54
56
  ToolCallContent_1.ToolCallContent,
55
57
  ToolReturnContent_1.ToolReturnContent,
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { SummarizedReasoningContentPart } from "./SummarizedReasoningContentPart";
8
+ export declare const SummarizedReasoningContent: core.serialization.ObjectSchema<serializers.SummarizedReasoningContent.Raw, Letta.SummarizedReasoningContent>;
9
+ export declare namespace SummarizedReasoningContent {
10
+ interface Raw {
11
+ type: "summarized_reasoning";
12
+ id: string;
13
+ summary: SummarizedReasoningContentPart.Raw[];
14
+ encrypted_content?: string | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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.SummarizedReasoningContent = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const SummarizedReasoningContentPart_1 = require("./SummarizedReasoningContentPart");
42
+ exports.SummarizedReasoningContent = core.serialization.object({
43
+ type: core.serialization.stringLiteral("summarized_reasoning"),
44
+ id: core.serialization.string(),
45
+ summary: core.serialization.list(SummarizedReasoningContentPart_1.SummarizedReasoningContentPart),
46
+ encryptedContent: core.serialization.property("encrypted_content", core.serialization.string().optional()),
47
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const SummarizedReasoningContentPart: core.serialization.ObjectSchema<serializers.SummarizedReasoningContentPart.Raw, Letta.SummarizedReasoningContentPart>;
8
+ export declare namespace SummarizedReasoningContentPart {
9
+ interface Raw {
10
+ index: number;
11
+ text: string;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.SummarizedReasoningContentPart = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.SummarizedReasoningContentPart = core.serialization.object({
42
+ index: core.serialization.number(),
43
+ text: core.serialization.string(),
44
+ });
@@ -181,6 +181,8 @@ export * from "./StepMetrics";
181
181
  export * from "./StepStatus";
182
182
  export * from "./StopReasonType";
183
183
  export * from "./StreamableHttpServerConfig";
184
+ export * from "./SummarizedReasoningContent";
185
+ export * from "./SummarizedReasoningContentPart";
184
186
  export * from "./SupervisorManager";
185
187
  export * from "./SupervisorManagerUpdate";
186
188
  export * from "./SystemMessage";
@@ -197,6 +197,8 @@ __exportStar(require("./StepMetrics"), exports);
197
197
  __exportStar(require("./StepStatus"), exports);
198
198
  __exportStar(require("./StopReasonType"), exports);
199
199
  __exportStar(require("./StreamableHttpServerConfig"), exports);
200
+ __exportStar(require("./SummarizedReasoningContent"), exports);
201
+ __exportStar(require("./SummarizedReasoningContentPart"), exports);
200
202
  __exportStar(require("./SupervisorManager"), exports);
201
203
  __exportStar(require("./SupervisorManagerUpdate"), exports);
202
204
  __exportStar(require("./SystemMessage"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.68661";
1
+ export declare const SDK_VERSION = "0.0.68662";
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.0.68661";
4
+ exports.SDK_VERSION = "0.0.68662";