@letta-ai/letta-client 0.1.111 → 0.1.113

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 (162) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +6 -11
  3. package/api/resources/agents/client/Client.js +9 -9
  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/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  10. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/blocks/client/Client.js +5 -5
  16. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  17. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  18. package/api/resources/embeddingModels/client/Client.js +1 -1
  19. package/api/resources/groups/client/Client.js +5 -5
  20. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  21. package/api/resources/health/client/Client.js +1 -1
  22. package/api/resources/identities/client/Client.js +7 -7
  23. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  24. package/api/resources/index.d.ts +0 -1
  25. package/api/resources/index.js +1 -2
  26. package/api/resources/jobs/client/Client.js +4 -4
  27. package/api/resources/models/client/Client.js +1 -1
  28. package/api/resources/projects/client/Client.js +1 -1
  29. package/api/resources/providers/client/Client.js +4 -4
  30. package/api/resources/runs/client/Client.js +4 -4
  31. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  32. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  33. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  34. package/api/resources/sources/client/Client.js +7 -7
  35. package/api/resources/sources/resources/files/client/Client.js +3 -3
  36. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  37. package/api/resources/steps/client/Client.js +2 -2
  38. package/api/resources/tags/client/Client.js +1 -1
  39. package/api/resources/templates/client/Client.js +1 -1
  40. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  41. package/api/resources/tools/client/Client.js +17 -17
  42. package/api/resources/voice/client/Client.js +1 -1
  43. package/api/types/AssistantMessage.d.ts +1 -0
  44. package/api/types/HiddenReasoningMessage.d.ts +1 -0
  45. package/api/types/Message.d.ts +5 -0
  46. package/api/types/ReasoningMessage.d.ts +1 -0
  47. package/api/types/SystemMessage.d.ts +1 -0
  48. package/api/types/ToolCallMessage.d.ts +1 -0
  49. package/api/types/ToolReturnMessage.d.ts +1 -0
  50. package/api/types/UserMessage.d.ts +1 -0
  51. package/dist/Client.d.ts +0 -3
  52. package/dist/Client.js +6 -11
  53. package/dist/api/resources/agents/client/Client.js +9 -9
  54. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  55. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  56. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  57. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  58. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  60. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  61. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  62. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  63. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  64. package/dist/api/resources/batches/client/Client.js +4 -4
  65. package/dist/api/resources/blocks/client/Client.js +5 -5
  66. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  67. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  68. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  69. package/dist/api/resources/groups/client/Client.js +5 -5
  70. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  71. package/dist/api/resources/health/client/Client.js +1 -1
  72. package/dist/api/resources/identities/client/Client.js +7 -7
  73. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  74. package/dist/api/resources/index.d.ts +0 -1
  75. package/dist/api/resources/index.js +1 -2
  76. package/dist/api/resources/jobs/client/Client.js +4 -4
  77. package/dist/api/resources/models/client/Client.js +1 -1
  78. package/dist/api/resources/projects/client/Client.js +1 -1
  79. package/dist/api/resources/providers/client/Client.js +4 -4
  80. package/dist/api/resources/runs/client/Client.js +4 -4
  81. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  82. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  83. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  84. package/dist/api/resources/sources/client/Client.js +7 -7
  85. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  86. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  87. package/dist/api/resources/steps/client/Client.js +2 -2
  88. package/dist/api/resources/tags/client/Client.js +1 -1
  89. package/dist/api/resources/templates/client/Client.js +1 -1
  90. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  91. package/dist/api/resources/tools/client/Client.js +17 -17
  92. package/dist/api/resources/voice/client/Client.js +1 -1
  93. package/dist/api/types/AssistantMessage.d.ts +1 -0
  94. package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
  95. package/dist/api/types/Message.d.ts +5 -0
  96. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  97. package/dist/api/types/SystemMessage.d.ts +1 -0
  98. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  99. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  100. package/dist/api/types/UserMessage.d.ts +1 -0
  101. package/dist/serialization/resources/index.d.ts +0 -1
  102. package/dist/serialization/resources/index.js +1 -2
  103. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  104. package/dist/serialization/types/AssistantMessage.js +1 -0
  105. package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  106. package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
  107. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  108. package/dist/serialization/types/ReasoningMessage.js +1 -0
  109. package/dist/serialization/types/SystemMessage.d.ts +1 -0
  110. package/dist/serialization/types/SystemMessage.js +1 -0
  111. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  112. package/dist/serialization/types/ToolCallMessage.js +1 -0
  113. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  114. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  115. package/dist/serialization/types/UserMessage.d.ts +1 -0
  116. package/dist/serialization/types/UserMessage.js +1 -0
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/package.json +1 -1
  120. package/reference.md +0 -57
  121. package/serialization/resources/index.d.ts +0 -1
  122. package/serialization/resources/index.js +1 -2
  123. package/serialization/types/AssistantMessage.d.ts +1 -0
  124. package/serialization/types/AssistantMessage.js +1 -0
  125. package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  126. package/serialization/types/HiddenReasoningMessage.js +1 -0
  127. package/serialization/types/ReasoningMessage.d.ts +1 -0
  128. package/serialization/types/ReasoningMessage.js +1 -0
  129. package/serialization/types/SystemMessage.d.ts +1 -0
  130. package/serialization/types/SystemMessage.js +1 -0
  131. package/serialization/types/ToolCallMessage.d.ts +1 -0
  132. package/serialization/types/ToolCallMessage.js +1 -0
  133. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  134. package/serialization/types/ToolReturnMessage.js +1 -0
  135. package/serialization/types/UserMessage.d.ts +1 -0
  136. package/serialization/types/UserMessage.js +1 -0
  137. package/version.d.ts +1 -1
  138. package/version.js +1 -1
  139. package/api/resources/embeddings/client/Client.d.ts +0 -42
  140. package/api/resources/embeddings/client/Client.js +0 -133
  141. package/api/resources/embeddings/client/index.d.ts +0 -1
  142. package/api/resources/embeddings/client/index.js +0 -2
  143. package/api/resources/embeddings/index.d.ts +0 -1
  144. package/api/resources/embeddings/index.js +0 -17
  145. package/dist/api/resources/embeddings/client/Client.d.ts +0 -42
  146. package/dist/api/resources/embeddings/client/Client.js +0 -133
  147. package/dist/api/resources/embeddings/client/index.d.ts +0 -1
  148. package/dist/api/resources/embeddings/client/index.js +0 -2
  149. package/dist/api/resources/embeddings/index.d.ts +0 -1
  150. package/dist/api/resources/embeddings/index.js +0 -17
  151. package/dist/serialization/resources/embeddings/client/getEmbeddingsTotalStorageSize.d.ts +0 -9
  152. package/dist/serialization/resources/embeddings/client/getEmbeddingsTotalStorageSize.js +0 -41
  153. package/dist/serialization/resources/embeddings/client/index.d.ts +0 -1
  154. package/dist/serialization/resources/embeddings/client/index.js +0 -37
  155. package/dist/serialization/resources/embeddings/index.d.ts +0 -1
  156. package/dist/serialization/resources/embeddings/index.js +0 -17
  157. package/serialization/resources/embeddings/client/getEmbeddingsTotalStorageSize.d.ts +0 -9
  158. package/serialization/resources/embeddings/client/getEmbeddingsTotalStorageSize.js +0 -41
  159. package/serialization/resources/embeddings/client/index.d.ts +0 -1
  160. package/serialization/resources/embeddings/client/index.js +0 -37
  161. package/serialization/resources/embeddings/index.d.ts +0 -1
  162. package/serialization/resources/embeddings/index.js +0 -17
@@ -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.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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" }),
@@ -272,7 +272,7 @@ class Tools {
272
272
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
273
  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/count"),
274
274
  method: "GET",
275
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
275
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  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/"),
351
351
  method: "GET",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
352
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
353
353
  contentType: "application/json",
354
354
  queryParameters: _queryParams,
355
355
  requestType: "json",
@@ -417,7 +417,7 @@ class Tools {
417
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
418
  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/"),
419
419
  method: "POST",
420
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
420
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
421
421
  contentType: "application/json",
422
422
  requestType: "json",
423
423
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -485,7 +485,7 @@ class Tools {
485
485
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
486
486
  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/"),
487
487
  method: "PUT",
488
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
488
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
489
489
  contentType: "application/json",
490
490
  requestType: "json",
491
491
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Tools {
550
550
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
551
551
  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"),
552
552
  method: "POST",
553
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
553
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -620,7 +620,7 @@ class Tools {
620
620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
621
621
  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"),
622
622
  method: "POST",
623
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
623
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
624
624
  contentType: "application/json",
625
625
  requestType: "json",
626
626
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -687,7 +687,7 @@ class Tools {
687
687
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
688
688
  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"),
689
689
  method: "GET",
690
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
690
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
691
691
  contentType: "application/json",
692
692
  requestType: "json",
693
693
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -752,7 +752,7 @@ class Tools {
752
752
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
753
753
  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`),
754
754
  method: "GET",
755
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
755
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
756
756
  contentType: "application/json",
757
757
  requestType: "json",
758
758
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -817,7 +817,7 @@ class Tools {
817
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
818
818
  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)}`),
819
819
  method: "POST",
820
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
820
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
821
821
  contentType: "application/json",
822
822
  requestType: "json",
823
823
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -883,7 +883,7 @@ class Tools {
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  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/mcp/servers"),
885
885
  method: "GET",
886
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
886
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
887
887
  contentType: "application/json",
888
888
  requestType: "json",
889
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
953
953
  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/mcp/servers"),
954
954
  method: "PUT",
955
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
955
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
956
956
  contentType: "application/json",
957
957
  requestType: "json",
958
958
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1018,7 @@ class Tools {
1018
1018
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1019
  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/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
1020
1020
  method: "GET",
1021
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
1021
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
1022
1022
  contentType: "application/json",
1023
1023
  requestType: "json",
1024
1024
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1084,7 +1084,7 @@ class Tools {
1084
1084
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1085
1085
  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/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1086
1086
  method: "POST",
1087
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
1087
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
1088
1088
  contentType: "application/json",
1089
1089
  requestType: "json",
1090
1090
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1149,7 +1149,7 @@ class Tools {
1149
1149
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1150
1150
  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/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1151
1151
  method: "DELETE",
1152
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
1152
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
1153
1153
  contentType: "application/json",
1154
1154
  requestType: "json",
1155
1155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  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`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.111", "User-Agent": "@letta-ai/letta-client/0.1.111", "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),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "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),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -18,6 +18,7 @@ export interface AssistantMessage {
18
18
  messageType: "assistant_message";
19
19
  otid?: string;
20
20
  senderId?: string;
21
+ stepId?: string;
21
22
  /** The message content sent by the agent (can be a string or an array of content parts) */
22
23
  content: Letta.AssistantMessageContent;
23
24
  }
@@ -21,6 +21,7 @@ export interface HiddenReasoningMessage {
21
21
  messageType: "hidden_reasoning_message";
22
22
  otid?: string;
23
23
  senderId?: string;
24
+ stepId?: string;
24
25
  state: Letta.HiddenReasoningMessageState;
25
26
  hiddenReasoning?: string;
26
27
  }
@@ -16,6 +16,11 @@ import * as Letta from "../index";
16
16
  * created_at (datetime): The time the message was created.
17
17
  * tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
18
18
  * tool_call_id (str): The id of the tool call.
19
+ * step_id (str): The id of the step that this message was created in.
20
+ * otid (str): The offline threading id associated with this message.
21
+ * tool_returns (List[ToolReturn]): The list of tool returns requested.
22
+ * group_id (str): The multi-agent group that the message was sent in.
23
+ * sender_id (str): The id of the sender of the message, can be an identity id or agent id.
19
24
  */
20
25
  export interface Message {
21
26
  /** The id of the user that made this object. */
@@ -21,6 +21,7 @@ export interface ReasoningMessage {
21
21
  messageType: "reasoning_message";
22
22
  otid?: string;
23
23
  senderId?: string;
24
+ stepId?: string;
24
25
  source?: Letta.ReasoningMessageSource;
25
26
  reasoning: string;
26
27
  signature?: string;
@@ -17,6 +17,7 @@ export interface SystemMessage {
17
17
  messageType: "system_message";
18
18
  otid?: string;
19
19
  senderId?: string;
20
+ stepId?: string;
20
21
  /** The message content sent by the system */
21
22
  content: string;
22
23
  }
@@ -18,5 +18,6 @@ export interface ToolCallMessage {
18
18
  messageType: "tool_call_message";
19
19
  otid?: string;
20
20
  senderId?: string;
21
+ stepId?: string;
21
22
  toolCall: Letta.ToolCallMessageToolCall;
22
23
  }
@@ -22,6 +22,7 @@ export interface ToolReturnMessage {
22
22
  messageType: "tool_return_message";
23
23
  otid?: string;
24
24
  senderId?: string;
25
+ stepId?: string;
25
26
  toolReturn: string;
26
27
  status: Letta.ToolReturnMessageStatus;
27
28
  toolCallId: string;
@@ -18,6 +18,7 @@ export interface UserMessage {
18
18
  messageType: "user_message";
19
19
  otid?: string;
20
20
  senderId?: string;
21
+ stepId?: string;
21
22
  /** The message content sent by the user (can be a string or an array of multi-modal content parts) */
22
23
  content: Letta.UserMessageContent;
23
24
  }
@@ -23,7 +23,6 @@ export * as runs from "./runs";
23
23
  export * as steps from "./steps";
24
24
  export * as tags from "./tags";
25
25
  export * as batches from "./batches";
26
- export * as embeddings from "./embeddings";
27
26
  export * from "./tools/client/requests";
28
27
  export * from "./sources/client/requests";
29
28
  export * from "./agents/client/requests";
@@ -36,7 +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.embeddings = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
39
+ exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
40
40
  exports.tools = __importStar(require("./tools"));
41
41
  __exportStar(require("./tools/types"), exports);
42
42
  exports.agents = __importStar(require("./agents"));
@@ -62,7 +62,6 @@ exports.runs = __importStar(require("./runs"));
62
62
  exports.steps = __importStar(require("./steps"));
63
63
  exports.tags = __importStar(require("./tags"));
64
64
  exports.batches = __importStar(require("./batches"));
65
- exports.embeddings = __importStar(require("./embeddings"));
66
65
  __exportStar(require("./tools/client/requests"), exports);
67
66
  __exportStar(require("./sources/client/requests"), exports);
68
67
  __exportStar(require("./agents/client/requests"), exports);
@@ -14,6 +14,7 @@ export declare namespace AssistantMessage {
14
14
  message_type: "assistant_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  content: AssistantMessageContent.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.AssistantMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("assistant_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  content: AssistantMessageContent_1.AssistantMessageContent,
50
51
  });
@@ -14,6 +14,7 @@ export declare namespace HiddenReasoningMessage {
14
14
  message_type: "hidden_reasoning_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  state: HiddenReasoningMessageState.Raw;
18
19
  hidden_reasoning?: string | null;
19
20
  }
@@ -46,6 +46,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("hidden_reasoning_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
50
51
  hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
51
52
  });
@@ -14,6 +14,7 @@ export declare namespace ReasoningMessage {
14
14
  message_type: "reasoning_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  source?: ReasoningMessageSource.Raw | null;
18
19
  reasoning: string;
19
20
  signature?: string | null;
@@ -46,6 +46,7 @@ exports.ReasoningMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("reasoning_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
50
51
  reasoning: core.serialization.string(),
51
52
  signature: core.serialization.string().optional(),
@@ -13,6 +13,7 @@ export declare namespace SystemMessage {
13
13
  message_type: "system_message";
14
14
  otid?: string | null;
15
15
  sender_id?: string | null;
16
+ step_id?: string | null;
16
17
  content: string;
17
18
  }
18
19
  }
@@ -45,5 +45,6 @@ exports.SystemMessage = core.serialization.object({
45
45
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("system_message")),
46
46
  otid: core.serialization.string().optional(),
47
47
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
48
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
48
49
  content: core.serialization.string(),
49
50
  });
@@ -14,6 +14,7 @@ export declare namespace ToolCallMessage {
14
14
  message_type: "tool_call_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  tool_call: ToolCallMessageToolCall.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.ToolCallMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_call_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  toolCall: core.serialization.property("tool_call", ToolCallMessageToolCall_1.ToolCallMessageToolCall),
50
51
  });
@@ -14,6 +14,7 @@ export declare namespace ToolReturnMessage {
14
14
  message_type: "tool_return_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  tool_return: string;
18
19
  status: ToolReturnMessageStatus.Raw;
19
20
  tool_call_id: string;
@@ -46,6 +46,7 @@ exports.ToolReturnMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_return_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  toolReturn: core.serialization.property("tool_return", core.serialization.string()),
50
51
  status: ToolReturnMessageStatus_1.ToolReturnMessageStatus,
51
52
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
@@ -14,6 +14,7 @@ export declare namespace UserMessage {
14
14
  message_type: "user_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  content: UserMessageContent.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.UserMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("user_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  content: UserMessageContent_1.UserMessageContent,
50
51
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.111";
1
+ export declare const SDK_VERSION = "0.1.113";
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.111";
4
+ exports.SDK_VERSION = "0.1.113";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.111",
3
+ "version": "0.1.113",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -4513,63 +4513,6 @@ await client.voice.createVoiceChatCompletions("agent_id", {
4513
4513
  </dl>
4514
4514
  </details>
4515
4515
 
4516
- ## Embeddings
4517
-
4518
- <details><summary><code>client.embeddings.<a href="/src/api/resources/embeddings/client/Client.ts">getEmbeddingsTotalStorageSize</a>() -> number</code></summary>
4519
- <dl>
4520
- <dd>
4521
-
4522
- #### 📝 Description
4523
-
4524
- <dl>
4525
- <dd>
4526
-
4527
- <dl>
4528
- <dd>
4529
-
4530
- Get the total size of all embeddings in the database for a user in the storage unit given.
4531
-
4532
- </dd>
4533
- </dl>
4534
- </dd>
4535
- </dl>
4536
-
4537
- #### 🔌 Usage
4538
-
4539
- <dl>
4540
- <dd>
4541
-
4542
- <dl>
4543
- <dd>
4544
-
4545
- ```typescript
4546
- await client.embeddings.getEmbeddingsTotalStorageSize();
4547
- ```
4548
-
4549
- </dd>
4550
- </dl>
4551
- </dd>
4552
- </dl>
4553
-
4554
- #### ⚙️ Parameters
4555
-
4556
- <dl>
4557
- <dd>
4558
-
4559
- <dl>
4560
- <dd>
4561
-
4562
- **requestOptions:** `Embeddings.RequestOptions`
4563
-
4564
- </dd>
4565
- </dl>
4566
- </dd>
4567
- </dl>
4568
-
4569
- </dd>
4570
- </dl>
4571
- </details>
4572
-
4573
4516
  ## Templates
4574
4517
 
4575
4518
  <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">list</a>({ ...params }) -> Letta.TemplatesListResponse</code></summary>
@@ -23,7 +23,6 @@ export * as runs from "./runs";
23
23
  export * as steps from "./steps";
24
24
  export * as tags from "./tags";
25
25
  export * as batches from "./batches";
26
- export * as embeddings from "./embeddings";
27
26
  export * from "./tools/client/requests";
28
27
  export * from "./sources/client/requests";
29
28
  export * from "./agents/client/requests";
@@ -36,7 +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.embeddings = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
39
+ exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
40
40
  exports.tools = __importStar(require("./tools"));
41
41
  __exportStar(require("./tools/types"), exports);
42
42
  exports.agents = __importStar(require("./agents"));
@@ -62,7 +62,6 @@ exports.runs = __importStar(require("./runs"));
62
62
  exports.steps = __importStar(require("./steps"));
63
63
  exports.tags = __importStar(require("./tags"));
64
64
  exports.batches = __importStar(require("./batches"));
65
- exports.embeddings = __importStar(require("./embeddings"));
66
65
  __exportStar(require("./tools/client/requests"), exports);
67
66
  __exportStar(require("./sources/client/requests"), exports);
68
67
  __exportStar(require("./agents/client/requests"), exports);
@@ -14,6 +14,7 @@ export declare namespace AssistantMessage {
14
14
  message_type: "assistant_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  content: AssistantMessageContent.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.AssistantMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("assistant_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  content: AssistantMessageContent_1.AssistantMessageContent,
50
51
  });
@@ -14,6 +14,7 @@ export declare namespace HiddenReasoningMessage {
14
14
  message_type: "hidden_reasoning_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  state: HiddenReasoningMessageState.Raw;
18
19
  hidden_reasoning?: string | null;
19
20
  }
@@ -46,6 +46,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("hidden_reasoning_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
50
51
  hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
51
52
  });
@@ -14,6 +14,7 @@ export declare namespace ReasoningMessage {
14
14
  message_type: "reasoning_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  source?: ReasoningMessageSource.Raw | null;
18
19
  reasoning: string;
19
20
  signature?: string | null;
@@ -46,6 +46,7 @@ exports.ReasoningMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("reasoning_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
50
51
  reasoning: core.serialization.string(),
51
52
  signature: core.serialization.string().optional(),
@@ -13,6 +13,7 @@ export declare namespace SystemMessage {
13
13
  message_type: "system_message";
14
14
  otid?: string | null;
15
15
  sender_id?: string | null;
16
+ step_id?: string | null;
16
17
  content: string;
17
18
  }
18
19
  }
@@ -45,5 +45,6 @@ exports.SystemMessage = core.serialization.object({
45
45
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("system_message")),
46
46
  otid: core.serialization.string().optional(),
47
47
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
48
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
48
49
  content: core.serialization.string(),
49
50
  });