@letta-ai/letta-client 0.0.68649 → 0.0.68651

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 (164) hide show
  1. package/api/resources/agents/client/Client.d.ts +0 -19
  2. package/api/resources/agents/client/Client.js +9 -86
  3. package/api/resources/agents/client/requests/index.d.ts +0 -1
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/files/client/Client.js +4 -4
  8. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  11. package/api/resources/agents/resources/messages/client/Client.d.ts +19 -0
  12. package/api/resources/agents/resources/messages/client/Client.js +86 -9
  13. package/api/resources/agents/{client/requests/SummarizeAgentConversationRequest.d.ts → resources/messages/client/requests/MessagesSummarizeRequest.d.ts} +1 -1
  14. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  15. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  16. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  17. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  18. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  19. package/api/resources/batches/client/Client.js +4 -4
  20. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  21. package/api/resources/blocks/client/Client.js +6 -6
  22. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  23. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  24. package/api/resources/folders/client/Client.js +9 -9
  25. package/api/resources/folders/resources/files/client/Client.js +3 -3
  26. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  27. package/api/resources/groups/client/Client.js +6 -6
  28. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  29. package/api/resources/health/client/Client.js +1 -1
  30. package/api/resources/identities/client/Client.js +7 -7
  31. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  32. package/api/resources/index.d.ts +0 -1
  33. package/api/resources/index.js +0 -1
  34. package/api/resources/jobs/client/Client.js +5 -5
  35. package/api/resources/models/client/Client.js +2 -2
  36. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  37. package/api/resources/projects/client/Client.js +1 -1
  38. package/api/resources/providers/client/Client.d.ts +7 -3
  39. package/api/resources/providers/client/Client.js +40 -16
  40. package/api/resources/runs/client/Client.js +5 -5
  41. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  42. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  43. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  44. package/api/resources/sources/client/Client.js +10 -10
  45. package/api/resources/sources/resources/files/client/Client.js +3 -3
  46. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  47. package/api/resources/steps/client/Client.js +2 -2
  48. package/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
  49. package/api/resources/steps/resources/feedback/client/Client.js +4 -4
  50. package/{dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts → api/resources/steps/resources/feedback/client/requests/ModifyFeedbackRequest.d.ts} +1 -1
  51. package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  52. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  53. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  54. package/api/resources/tags/client/Client.js +1 -1
  55. package/api/resources/telemetry/client/Client.d.ts +4 -0
  56. package/api/resources/telemetry/client/Client.js +5 -1
  57. package/api/resources/templates/client/Client.js +9 -9
  58. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  59. package/api/resources/tools/client/Client.d.ts +2 -4
  60. package/api/resources/tools/client/Client.js +28 -32
  61. package/api/resources/tools/client/requests/index.d.ts +0 -2
  62. package/api/resources/voice/client/Client.d.ts +3 -6
  63. package/api/resources/voice/client/Client.js +4 -7
  64. package/api/resources/voice/client/index.d.ts +1 -1
  65. package/api/resources/voice/client/index.js +0 -15
  66. package/dist/api/resources/agents/client/Client.d.ts +0 -19
  67. package/dist/api/resources/agents/client/Client.js +9 -86
  68. package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
  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.d.ts +19 -0
  77. package/dist/api/resources/agents/resources/messages/client/Client.js +86 -9
  78. package/dist/api/resources/agents/{client/requests/SummarizeAgentConversationRequest.d.ts → resources/messages/client/requests/MessagesSummarizeRequest.d.ts} +1 -1
  79. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  80. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  81. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  84. package/dist/api/resources/batches/client/Client.js +4 -4
  85. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  86. package/dist/api/resources/blocks/client/Client.js +6 -6
  87. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  88. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  89. package/dist/api/resources/folders/client/Client.js +9 -9
  90. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  91. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  92. package/dist/api/resources/groups/client/Client.js +6 -6
  93. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  94. package/dist/api/resources/health/client/Client.js +1 -1
  95. package/dist/api/resources/identities/client/Client.js +7 -7
  96. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  97. package/dist/api/resources/index.d.ts +0 -1
  98. package/dist/api/resources/index.js +0 -1
  99. package/dist/api/resources/jobs/client/Client.js +5 -5
  100. package/dist/api/resources/models/client/Client.js +2 -2
  101. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  102. package/dist/api/resources/projects/client/Client.js +1 -1
  103. package/dist/api/resources/providers/client/Client.d.ts +7 -3
  104. package/dist/api/resources/providers/client/Client.js +40 -16
  105. package/dist/api/resources/runs/client/Client.js +5 -5
  106. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  107. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  108. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  109. package/dist/api/resources/sources/client/Client.js +10 -10
  110. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  111. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  112. package/dist/api/resources/steps/client/Client.js +2 -2
  113. package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
  114. package/dist/api/resources/steps/resources/feedback/client/Client.js +4 -4
  115. package/{api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts → dist/api/resources/steps/resources/feedback/client/requests/ModifyFeedbackRequest.d.ts} +1 -1
  116. package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  117. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  118. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  119. package/dist/api/resources/tags/client/Client.js +1 -1
  120. package/dist/api/resources/telemetry/client/Client.d.ts +4 -0
  121. package/dist/api/resources/telemetry/client/Client.js +5 -1
  122. package/dist/api/resources/templates/client/Client.js +9 -9
  123. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  124. package/dist/api/resources/tools/client/Client.d.ts +2 -4
  125. package/dist/api/resources/tools/client/Client.js +28 -32
  126. package/dist/api/resources/tools/client/requests/index.d.ts +0 -2
  127. package/dist/api/resources/voice/client/Client.d.ts +3 -6
  128. package/dist/api/resources/voice/client/Client.js +4 -7
  129. package/dist/api/resources/voice/client/index.d.ts +1 -1
  130. package/dist/api/resources/voice/client/index.js +0 -15
  131. package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
  132. package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
  133. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  134. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/package.json +1 -1
  138. package/reference.md +116 -102
  139. package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
  140. package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
  141. package/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  142. package/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
  143. package/version.d.ts +1 -1
  144. package/version.js +1 -1
  145. package/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
  146. package/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
  147. package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
  148. package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
  149. package/api/resources/voice/client/requests/index.d.ts +0 -1
  150. package/api/resources/voice/client/requests/index.js +0 -2
  151. package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.js +0 -5
  152. package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +0 -5
  153. package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
  154. package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.js +0 -5
  155. package/dist/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
  156. package/dist/api/resources/tools/client/requests/ListMcpServersRequest.js +0 -5
  157. package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
  158. package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
  159. package/dist/api/resources/voice/client/requests/index.d.ts +0 -1
  160. package/dist/api/resources/voice/client/requests/index.js +0 -2
  161. /package/api/resources/agents/{client/requests/SummarizeAgentConversationRequest.js → resources/messages/client/requests/MessagesSummarizeRequest.js} +0 -0
  162. /package/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +0 -0
  163. /package/{api/resources/tools/client/requests/ListComposioAppsRequest.js → dist/api/resources/agents/resources/messages/client/requests/MessagesSummarizeRequest.js} +0 -0
  164. /package/{api/resources/tools/client/requests/ListMcpServersRequest.js → dist/api/resources/steps/resources/feedback/client/requests/ModifyFeedbackRequest.js} +0 -0
@@ -61,16 +61,14 @@ class Voice {
61
61
  }
62
62
  /**
63
63
  * @param {string} agentId
64
- * @param {Letta.CreateVoiceChatCompletionsRequest} request
64
+ * @param {Record<string, unknown>} request
65
65
  * @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @throws {@link Letta.UnprocessableEntityError}
68
68
  *
69
69
  * @example
70
70
  * await client.voice.createVoiceChatCompletions("agent_id", {
71
- * body: {
72
- * "key": "value"
73
- * }
71
+ * "key": "value"
74
72
  * })
75
73
  */
76
74
  createVoiceChatCompletions(agentId, request, requestOptions) {
@@ -79,16 +77,15 @@ class Voice {
79
77
  __createVoiceChatCompletions(agentId, request, requestOptions) {
80
78
  return __awaiter(this, void 0, void 0, function* () {
81
79
  var _a, _b, _c;
82
- const { userId, body: _body } = request;
83
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
84
81
  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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
85
82
  method: "POST",
86
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
84
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
89
86
  contentType: "application/json",
90
87
  requestType: "json",
91
- body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
88
+ body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(request, {
92
89
  unrecognizedObjectKeys: "strip",
93
90
  }),
94
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1 +1 @@
1
- export * from "./requests";
1
+ export {};
@@ -1,17 +1,2 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -183,25 +183,6 @@ export declare class Agents {
183
183
  */
184
184
  modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
185
185
  private __modify;
186
- /**
187
- * Summarize an agent's conversation history to a target message length.
188
- *
189
- * This endpoint summarizes the current message history for a given agent,
190
- * truncating and compressing it down to the specified `max_message_length`.
191
- *
192
- * @param {string} agentId
193
- * @param {Letta.SummarizeAgentConversationRequest} request
194
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
195
- *
196
- * @throws {@link Letta.UnprocessableEntityError}
197
- *
198
- * @example
199
- * await client.agents.summarizeAgentConversation("agent_id", {
200
- * maxMessageLength: 1
201
- * })
202
- */
203
- summarizeAgentConversation(agentId: string, request: Letta.SummarizeAgentConversationRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<void>;
204
- private __summarizeAgentConversation;
205
186
  /**
206
187
  * <Note>This endpoint is only available on Letta Cloud.</Note>
207
188
  *
@@ -216,7 +216,7 @@ class Agents {
216
216
  method: "GET",
217
217
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
218
218
  ? yield core.Supplier.get(this._options.project)
219
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
219
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
220
220
  contentType: "application/json",
221
221
  queryParameters: _queryParams,
222
222
  requestType: "json",
@@ -293,7 +293,7 @@ class Agents {
293
293
  method: "POST",
294
294
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
295
295
  ? yield core.Supplier.get(this._options.project)
296
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
296
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
297
297
  contentType: "application/json",
298
298
  requestType: "json",
299
299
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -369,7 +369,7 @@ class Agents {
369
369
  method: "GET",
370
370
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
371
371
  ? yield core.Supplier.get(this._options.project)
372
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
372
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
373
373
  contentType: "application/json",
374
374
  requestType: "json",
375
375
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -458,7 +458,7 @@ class Agents {
458
458
  method: "GET",
459
459
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
460
460
  ? yield core.Supplier.get(this._options.project)
461
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
461
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
462
462
  contentType: "application/json",
463
463
  queryParameters: _queryParams,
464
464
  requestType: "json",
@@ -558,7 +558,7 @@ class Agents {
558
558
  method: "POST",
559
559
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
560
560
  ? yield core.Supplier.get(this._options.project)
561
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
561
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
562
562
  requestType: "file",
563
563
  duplex: _maybeEncodedRequest.duplex,
564
564
  body: _maybeEncodedRequest.body,
@@ -646,7 +646,7 @@ class Agents {
646
646
  method: "GET",
647
647
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
648
648
  ? yield core.Supplier.get(this._options.project)
649
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
649
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
650
650
  contentType: "application/json",
651
651
  queryParameters: _queryParams,
652
652
  requestType: "json",
@@ -723,7 +723,7 @@ class Agents {
723
723
  method: "DELETE",
724
724
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
725
725
  ? yield core.Supplier.get(this._options.project)
726
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
726
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
727
727
  contentType: "application/json",
728
728
  requestType: "json",
729
729
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -791,7 +791,7 @@ class Agents {
791
791
  method: "PATCH",
792
792
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
793
793
  ? yield core.Supplier.get(this._options.project)
794
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
794
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
795
795
  contentType: "application/json",
796
796
  requestType: "json",
797
797
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -846,83 +846,6 @@ class Agents {
846
846
  }
847
847
  });
848
848
  }
849
- /**
850
- * Summarize an agent's conversation history to a target message length.
851
- *
852
- * This endpoint summarizes the current message history for a given agent,
853
- * truncating and compressing it down to the specified `max_message_length`.
854
- *
855
- * @param {string} agentId
856
- * @param {Letta.SummarizeAgentConversationRequest} request
857
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
858
- *
859
- * @throws {@link Letta.UnprocessableEntityError}
860
- *
861
- * @example
862
- * await client.agents.summarizeAgentConversation("agent_id", {
863
- * maxMessageLength: 1
864
- * })
865
- */
866
- summarizeAgentConversation(agentId, request, requestOptions) {
867
- return core.HttpResponsePromise.fromPromise(this.__summarizeAgentConversation(agentId, request, requestOptions));
868
- }
869
- __summarizeAgentConversation(agentId, request, requestOptions) {
870
- return __awaiter(this, void 0, void 0, function* () {
871
- var _a, _b, _c;
872
- const { maxMessageLength } = request;
873
- const _queryParams = {};
874
- _queryParams["max_message_length"] = maxMessageLength.toString();
875
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
876
- 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)}/summarize`),
877
- method: "POST",
878
- headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
879
- ? yield core.Supplier.get(this._options.project)
880
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
881
- contentType: "application/json",
882
- queryParameters: _queryParams,
883
- requestType: "json",
884
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
885
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
886
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
887
- });
888
- if (_response.ok) {
889
- return { data: undefined, rawResponse: _response.rawResponse };
890
- }
891
- if (_response.error.reason === "status-code") {
892
- switch (_response.error.statusCode) {
893
- case 422:
894
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
895
- unrecognizedObjectKeys: "passthrough",
896
- allowUnrecognizedUnionMembers: true,
897
- allowUnrecognizedEnumValues: true,
898
- skipValidation: true,
899
- breadcrumbsPrefix: ["response"],
900
- }), _response.rawResponse);
901
- default:
902
- throw new errors.LettaError({
903
- statusCode: _response.error.statusCode,
904
- body: _response.error.body,
905
- rawResponse: _response.rawResponse,
906
- });
907
- }
908
- }
909
- switch (_response.error.reason) {
910
- case "non-json":
911
- throw new errors.LettaError({
912
- statusCode: _response.error.statusCode,
913
- body: _response.error.rawBody,
914
- rawResponse: _response.rawResponse,
915
- });
916
- case "timeout":
917
- throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/summarize.");
918
- case "unknown":
919
- throw new errors.LettaError({
920
- message: _response.error.errorMessage,
921
- rawResponse: _response.rawResponse,
922
- });
923
- }
924
- });
925
- }
926
849
  /**
927
850
  * <Note>This endpoint is only available on Letta Cloud.</Note>
928
851
  *
@@ -945,7 +868,7 @@ class Agents {
945
868
  method: "POST",
946
869
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
947
870
  ? yield core.Supplier.get(this._options.project)
948
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
871
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
949
872
  contentType: "application/json",
950
873
  requestType: "json",
951
874
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -4,5 +4,4 @@ export { type AgentsExportFileRequest } from "./AgentsExportFileRequest";
4
4
  export { type BodyImportAgent } from "./BodyImportAgent";
5
5
  export { type AgentsRetrieveRequest } from "./AgentsRetrieveRequest";
6
6
  export { type UpdateAgent } from "./UpdateAgent";
7
- export { type SummarizeAgentConversationRequest } from "./SummarizeAgentConversationRequest";
8
7
  export { type AgentsSearchRequest } from "./AgentsSearchRequest";
@@ -82,7 +82,7 @@ class Blocks {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Blocks {
160
160
  method: "PATCH",
161
161
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
162
162
  ? yield core.Supplier.get(this._options.project)
163
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
163
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Blocks {
237
237
  method: "GET",
238
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
239
  ? yield core.Supplier.get(this._options.project)
240
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
240
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class Blocks {
314
314
  method: "PATCH",
315
315
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
316
316
  ? yield core.Supplier.get(this._options.project)
317
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
317
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -391,7 +391,7 @@ class Blocks {
391
391
  method: "PATCH",
392
392
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
393
393
  ? yield core.Supplier.get(this._options.project)
394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
394
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
395
395
  contentType: "application/json",
396
396
  requestType: "json",
397
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Context {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class CoreMemory {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Files {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class Files {
165
165
  method: "PATCH",
166
166
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
167
167
  ? yield core.Supplier.get(this._options.project)
168
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
168
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,7 +245,7 @@ class Files {
245
245
  method: "PATCH",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -324,7 +324,7 @@ class Files {
324
324
  method: "GET",
325
325
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
326
326
  ? yield core.Supplier.get(this._options.project)
327
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
327
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
328
328
  contentType: "application/json",
329
329
  queryParameters: _queryParams,
330
330
  requestType: "json",
@@ -82,7 +82,7 @@ class Folders {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Folders {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Folders {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Groups {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
90
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -83,7 +83,7 @@ class MemoryVariables {
83
83
  method: "GET",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -188,6 +188,25 @@ export declare class Messages {
188
188
  */
189
189
  preview(agentId: string, request: Letta.agents.MessagesPreviewRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
190
190
  private __preview;
191
+ /**
192
+ * Summarize an agent's conversation history to a target message length.
193
+ *
194
+ * This endpoint summarizes the current message history for a given agent,
195
+ * truncating and compressing it down to the specified `max_message_length`.
196
+ *
197
+ * @param {string} agentId
198
+ * @param {Letta.agents.MessagesSummarizeRequest} request
199
+ * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
200
+ *
201
+ * @throws {@link Letta.UnprocessableEntityError}
202
+ *
203
+ * @example
204
+ * await client.agents.messages.summarize("agent_id", {
205
+ * maxMessageLength: 1
206
+ * })
207
+ */
208
+ summarize(agentId: string, request: Letta.agents.MessagesSummarizeRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<void>;
209
+ private __summarize;
191
210
  protected _getCustomAuthorizationHeaders(): Promise<{
192
211
  Authorization: string;
193
212
  }>;