@letta-ai/letta-client 0.1.11 → 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 (132) hide show
  1. package/api/resources/agents/client/Client.d.ts +1 -4
  2. package/api/resources/agents/client/Client.js +16 -21
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  4. package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  5. package/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  8. package/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  9. package/api/resources/agents/resources/index.d.ts +0 -1
  10. package/api/resources/agents/resources/index.js +1 -2
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  12. package/api/resources/agents/resources/messages/client/Client.d.ts +5 -5
  13. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  14. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  15. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  16. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  17. package/api/resources/blocks/client/Client.js +7 -7
  18. package/api/resources/health/client/Client.js +1 -1
  19. package/api/resources/jobs/client/Client.js +4 -4
  20. package/api/resources/models/client/Client.js +2 -2
  21. package/api/resources/providers/client/Client.d.ts +11 -11
  22. package/api/resources/providers/client/Client.js +32 -32
  23. package/api/resources/providers/client/requests/index.d.ts +1 -1
  24. package/api/resources/runs/client/Client.js +6 -6
  25. package/api/resources/sources/client/Client.js +8 -8
  26. package/api/resources/sources/resources/files/client/Client.js +3 -3
  27. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  28. package/api/resources/tag/client/Client.js +1 -1
  29. package/api/resources/tools/client/Client.d.ts +0 -12
  30. package/api/resources/tools/client/Client.js +11 -76
  31. package/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  32. package/api/types/index.d.ts +0 -2
  33. package/api/types/index.js +0 -2
  34. package/dist/api/resources/agents/client/Client.d.ts +1 -4
  35. package/dist/api/resources/agents/client/Client.js +16 -21
  36. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  37. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  38. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  39. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  40. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  41. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  42. package/dist/api/resources/agents/resources/index.d.ts +0 -1
  43. package/dist/api/resources/agents/resources/index.js +1 -2
  44. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  45. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +5 -5
  46. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  47. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  48. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  49. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  50. package/dist/api/resources/blocks/client/Client.js +7 -7
  51. package/dist/api/resources/health/client/Client.js +1 -1
  52. package/dist/api/resources/jobs/client/Client.js +4 -4
  53. package/dist/api/resources/models/client/Client.js +2 -2
  54. package/dist/api/resources/providers/client/Client.d.ts +11 -11
  55. package/dist/api/resources/providers/client/Client.js +32 -32
  56. package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
  57. package/dist/api/resources/runs/client/Client.js +6 -6
  58. package/dist/api/resources/sources/client/Client.js +8 -8
  59. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  60. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  61. package/dist/api/resources/tag/client/Client.js +1 -1
  62. package/dist/api/resources/tools/client/Client.d.ts +0 -12
  63. package/dist/api/resources/tools/client/Client.js +11 -76
  64. package/dist/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  65. package/dist/api/types/index.d.ts +0 -2
  66. package/dist/api/types/index.js +0 -2
  67. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  68. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -4
  69. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  70. package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  71. package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  72. package/dist/serialization/resources/tools/client/index.d.ts +0 -1
  73. package/dist/serialization/resources/tools/client/index.js +1 -2
  74. package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  75. package/dist/serialization/types/LettaSchemasMessageMessage.js +1 -0
  76. package/dist/serialization/types/index.d.ts +0 -2
  77. package/dist/serialization/types/index.js +0 -2
  78. package/dist/version.d.ts +1 -1
  79. package/dist/version.js +1 -1
  80. package/package.json +1 -1
  81. package/reference.md +20 -274
  82. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  83. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -4
  84. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  85. package/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  86. package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  87. package/serialization/resources/tools/client/index.d.ts +0 -1
  88. package/serialization/resources/tools/client/index.js +1 -2
  89. package/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  90. package/serialization/types/LettaSchemasMessageMessage.js +1 -0
  91. package/serialization/types/index.d.ts +0 -2
  92. package/serialization/types/index.js +0 -2
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  96. package/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  97. package/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  98. package/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  99. package/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  100. package/api/resources/agents/resources/recallMemory/index.js +0 -17
  101. package/api/types/ArchivalMemorySummary.d.ts +0 -7
  102. package/api/types/ArchivalMemorySummary.js +0 -5
  103. package/api/types/RecallMemorySummary.d.ts +0 -7
  104. package/api/types/RecallMemorySummary.js +0 -5
  105. package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  106. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  107. package/dist/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  108. package/dist/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  109. package/dist/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  110. package/dist/api/resources/agents/resources/recallMemory/index.js +0 -17
  111. package/dist/api/types/ArchivalMemorySummary.d.ts +0 -7
  112. package/dist/api/types/ArchivalMemorySummary.js +0 -5
  113. package/dist/api/types/RecallMemorySummary.d.ts +0 -7
  114. package/dist/api/types/RecallMemorySummary.js +0 -5
  115. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  116. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  117. package/dist/serialization/resources/tools/client/getByName.d.ts +0 -9
  118. package/dist/serialization/resources/tools/client/getByName.js +0 -41
  119. package/dist/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  120. package/dist/serialization/types/ArchivalMemorySummary.js +0 -43
  121. package/dist/serialization/types/RecallMemorySummary.d.ts +0 -12
  122. package/dist/serialization/types/RecallMemorySummary.js +0 -43
  123. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  124. package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  125. package/serialization/resources/tools/client/getByName.d.ts +0 -9
  126. package/serialization/resources/tools/client/getByName.js +0 -41
  127. package/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  128. package/serialization/types/ArchivalMemorySummary.js +0 -43
  129. package/serialization/types/RecallMemorySummary.d.ts +0 -12
  130. package/serialization/types/RecallMemorySummary.js +0 -43
  131. /package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
  132. /package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
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/tools/${encodeURIComponent(toolId)}`),
78
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.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  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/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  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/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -250,71 +250,6 @@ class Tools {
250
250
  }
251
251
  });
252
252
  }
253
- /**
254
- * Get a tool ID by name
255
- *
256
- * @param {string} toolName
257
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
258
- *
259
- * @throws {@link Letta.UnprocessableEntityError}
260
- *
261
- * @example
262
- * await client.tools.getByName("tool_name")
263
- */
264
- getByName(toolName, requestOptions) {
265
- return __awaiter(this, void 0, void 0, function* () {
266
- var _a, _b, _c;
267
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
268
- 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/tools/name/${encodeURIComponent(toolName)}`),
269
- method: "GET",
270
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
271
- contentType: "application/json",
272
- requestType: "json",
273
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
274
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
275
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
276
- });
277
- if (_response.ok) {
278
- return serializers.tools.getByName.Response.parseOrThrow(_response.body, {
279
- unrecognizedObjectKeys: "passthrough",
280
- allowUnrecognizedUnionMembers: true,
281
- allowUnrecognizedEnumValues: true,
282
- skipValidation: true,
283
- breadcrumbsPrefix: ["response"],
284
- });
285
- }
286
- if (_response.error.reason === "status-code") {
287
- switch (_response.error.statusCode) {
288
- case 422:
289
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
290
- unrecognizedObjectKeys: "passthrough",
291
- allowUnrecognizedUnionMembers: true,
292
- allowUnrecognizedEnumValues: true,
293
- skipValidation: true,
294
- breadcrumbsPrefix: ["response"],
295
- }));
296
- default:
297
- throw new errors.LettaError({
298
- statusCode: _response.error.statusCode,
299
- body: _response.error.body,
300
- });
301
- }
302
- }
303
- switch (_response.error.reason) {
304
- case "non-json":
305
- throw new errors.LettaError({
306
- statusCode: _response.error.statusCode,
307
- body: _response.error.rawBody,
308
- });
309
- case "timeout":
310
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/name/{tool_name}.");
311
- case "unknown":
312
- throw new errors.LettaError({
313
- message: _response.error.errorMessage,
314
- });
315
- }
316
- });
317
- }
318
253
  /**
319
254
  * Get a list of all tools available to agents belonging to the org of the user
320
255
  *
@@ -340,7 +275,7 @@ class Tools {
340
275
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
341
276
  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/tools/"),
342
277
  method: "GET",
343
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
278
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
344
279
  contentType: "application/json",
345
280
  queryParameters: _queryParams,
346
281
  requestType: "json",
@@ -408,7 +343,7 @@ class Tools {
408
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
344
  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/tools/"),
410
345
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
346
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
412
347
  contentType: "application/json",
413
348
  requestType: "json",
414
349
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -476,7 +411,7 @@ class Tools {
476
411
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
412
  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/tools/"),
478
413
  method: "PUT",
479
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
414
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
480
415
  contentType: "application/json",
481
416
  requestType: "json",
482
417
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -541,7 +476,7 @@ class Tools {
541
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
542
477
  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/tools/add-base-tools"),
543
478
  method: "POST",
544
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
479
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
545
480
  contentType: "application/json",
546
481
  requestType: "json",
547
482
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -611,7 +546,7 @@ class Tools {
611
546
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
612
547
  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/tools/run"),
613
548
  method: "POST",
614
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
549
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
615
550
  contentType: "application/json",
616
551
  requestType: "json",
617
552
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -676,7 +611,7 @@ class Tools {
676
611
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
677
612
  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/tools/composio/apps"),
678
613
  method: "GET",
679
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
614
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
680
615
  contentType: "application/json",
681
616
  requestType: "json",
682
617
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -741,7 +676,7 @@ class Tools {
741
676
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
742
677
  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/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
743
678
  method: "GET",
744
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
679
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
745
680
  contentType: "application/json",
746
681
  requestType: "json",
747
682
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -806,7 +741,7 @@ class Tools {
806
741
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
807
742
  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/tools/composio/${encodeURIComponent(composioActionName)}`),
808
743
  method: "POST",
809
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
744
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
810
745
  contentType: "application/json",
811
746
  requestType: "json",
812
747
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -42,4 +42,6 @@ export interface LettaSchemasMessageMessage {
42
42
  toolCalls?: Letta.LettaSchemasOpenaiChatCompletionsToolCallOutput[];
43
43
  /** The id of the tool call. */
44
44
  toolCallId?: string;
45
+ /** The id of the step that this message was created in. */
46
+ stepId?: string;
45
47
  }
@@ -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";
@@ -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";
@@ -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);
@@ -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);
@@ -30,7 +30,7 @@ export declare namespace CreateAgentRequest {
30
30
  include_multi_agent_tools?: boolean | null;
31
31
  description?: string | null;
32
32
  metadata_?: Record<string, unknown> | null;
33
- llm?: string | null;
33
+ model?: string | null;
34
34
  embedding?: string | null;
35
35
  context_window_limit?: number | null;
36
36
  embedding_chunk_size?: number | null;
@@ -38,6 +38,6 @@ export declare namespace CreateAgentRequest {
38
38
  template?: boolean | null;
39
39
  project?: string | null;
40
40
  tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
41
- variables?: Record<string, string | null | undefined> | null;
41
+ memory_variables?: Record<string, string | null | undefined> | null;
42
42
  }
43
43
  }
@@ -62,7 +62,7 @@ exports.CreateAgentRequest = core.serialization.object({
62
62
  includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
63
63
  description: core.serialization.string().optional(),
64
64
  metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
65
- llm: core.serialization.string().optional(),
65
+ model: core.serialization.string().optional(),
66
66
  embedding: core.serialization.string().optional(),
67
67
  contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
68
68
  embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
@@ -70,7 +70,5 @@ exports.CreateAgentRequest = core.serialization.object({
70
70
  template: core.serialization.boolean().optional(),
71
71
  project: core.serialization.string().optional(),
72
72
  toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
73
- variables: core.serialization
74
- .record(core.serialization.string(), core.serialization.string().optional())
75
- .optional(),
73
+ memoryVariables: core.serialization.property("memory_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
76
74
  });
@@ -1,2 +1 @@
1
- export * as listInContext from "./listInContext";
2
- export * as getBlocks from "./getBlocks";
1
+ export * as list from "./list";
@@ -33,6 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.getBlocks = exports.listInContext = void 0;
37
- exports.listInContext = __importStar(require("./listInContext"));
38
- exports.getBlocks = __importStar(require("./getBlocks"));
36
+ exports.list = void 0;
37
+ exports.list = __importStar(require("./list"));
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
5
5
  import * as Letta from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { Block } from "../../../../../types/Block";
8
- export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.getBlocks.Response.Raw, Letta.Block[]>;
8
+ export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.list.Response.Raw, Letta.Block[]>;
9
9
  export declare namespace Response {
10
10
  type Raw = Block.Raw[];
11
11
  }
@@ -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"));
@@ -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
  });
@@ -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";
@@ -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";
@@ -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);
@@ -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);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.11";
1
+ export declare const SDK_VERSION = "0.1.12";
package/dist/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.11";
4
+ exports.SDK_VERSION = "0.1.12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",