@letta-ai/letta-client 0.1.9 → 0.1.11

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 (178) hide show
  1. package/api/resources/agents/client/Client.js +12 -9
  2. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  4. package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
  7. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  8. package/api/resources/agents/resources/messages/client/Client.d.ts +6 -6
  9. package/api/resources/agents/resources/messages/client/Client.js +11 -11
  10. package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
  11. package/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  12. package/api/resources/agents/resources/messages/types/index.d.ts +0 -1
  13. package/api/resources/agents/resources/messages/types/index.js +0 -1
  14. package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  15. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  18. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
  19. package/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
  20. package/api/resources/agents/types/index.d.ts +1 -0
  21. package/api/resources/agents/types/index.js +1 -0
  22. package/api/resources/blocks/client/Client.js +7 -7
  23. package/api/resources/health/client/Client.js +1 -1
  24. package/api/resources/jobs/client/Client.js +4 -4
  25. package/api/resources/models/client/Client.js +2 -2
  26. package/api/resources/providers/client/Client.js +4 -4
  27. package/api/resources/runs/client/Client.d.ts +6 -8
  28. package/api/resources/runs/client/Client.js +12 -37
  29. package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
  30. package/api/resources/sources/client/Client.js +8 -8
  31. package/api/resources/sources/resources/files/client/Client.js +3 -3
  32. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  33. package/api/resources/tag/client/Client.js +1 -1
  34. package/api/resources/tools/client/Client.js +12 -12
  35. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  36. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  37. package/api/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +2 -2
  38. package/api/types/LettaRequest.d.ts +2 -6
  39. package/api/types/LettaRequestConfig.d.ts +11 -0
  40. package/api/types/LettaResponse.d.ts +1 -1
  41. package/api/types/LlmConfigModelEndpointType.d.ts +2 -1
  42. package/api/types/LlmConfigModelEndpointType.js +1 -0
  43. package/api/types/Run.d.ts +2 -0
  44. package/api/types/ToolType.d.ts +2 -1
  45. package/api/types/ToolType.js +1 -0
  46. package/api/types/index.d.ts +2 -1
  47. package/api/types/index.js +2 -1
  48. package/dist/api/resources/agents/client/Client.js +12 -9
  49. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +5 -1
  50. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  51. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  52. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  53. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
  54. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  55. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +6 -6
  56. package/dist/api/resources/agents/resources/messages/client/Client.js +11 -11
  57. package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -6
  58. package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
  59. package/dist/api/resources/agents/resources/messages/types/index.d.ts +0 -1
  60. package/dist/api/resources/agents/resources/messages/types/index.js +0 -1
  61. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  64. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  65. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +4 -1
  66. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +7 -0
  67. package/dist/api/resources/agents/types/index.d.ts +1 -0
  68. package/dist/api/resources/agents/types/index.js +1 -0
  69. package/dist/api/resources/blocks/client/Client.js +7 -7
  70. package/dist/api/resources/health/client/Client.js +1 -1
  71. package/dist/api/resources/jobs/client/Client.js +4 -4
  72. package/dist/api/resources/models/client/Client.js +2 -2
  73. package/dist/api/resources/providers/client/Client.js +4 -4
  74. package/dist/api/resources/runs/client/Client.d.ts +6 -8
  75. package/dist/api/resources/runs/client/Client.js +12 -37
  76. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +1 -25
  77. package/dist/api/resources/sources/client/Client.js +8 -8
  78. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  79. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  80. package/dist/api/resources/tag/client/Client.js +1 -1
  81. package/dist/api/resources/tools/client/Client.js +12 -12
  82. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  83. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  84. package/dist/api/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +2 -2
  85. package/dist/api/types/LettaMessageUnion.js +5 -0
  86. package/dist/api/types/LettaRequest.d.ts +2 -6
  87. package/dist/api/types/LettaRequestConfig.d.ts +11 -0
  88. package/dist/api/types/LettaRequestConfig.js +5 -0
  89. package/dist/api/types/LettaResponse.d.ts +1 -1
  90. package/dist/api/types/LlmConfigModelEndpointType.d.ts +2 -1
  91. package/dist/api/types/LlmConfigModelEndpointType.js +1 -0
  92. package/dist/api/types/Run.d.ts +2 -0
  93. package/dist/api/types/ToolType.d.ts +2 -1
  94. package/dist/api/types/ToolType.js +1 -0
  95. package/dist/api/types/index.d.ts +2 -1
  96. package/dist/api/types/index.js +2 -1
  97. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  98. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  99. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
  100. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
  101. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  102. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  103. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
  104. package/dist/serialization/resources/agents/resources/messages/types/index.js +0 -1
  105. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
  106. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
  107. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
  108. package/dist/serialization/resources/agents/{resources/messages/types/MessagesListResponseItem.js → types/AgentsSearchRequestSearchItemTags.js} +5 -20
  109. package/dist/serialization/resources/agents/types/index.d.ts +1 -0
  110. package/dist/serialization/resources/agents/types/index.js +1 -0
  111. package/dist/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
  112. package/dist/serialization/resources/runs/client/getRunMessages.js +2 -2
  113. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  114. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  115. package/dist/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
  116. package/{serialization/types/LettaResponseMessagesItem.js → dist/serialization/types/LettaMessageUnion.js} +2 -2
  117. package/dist/serialization/types/LettaRequest.d.ts +2 -3
  118. package/dist/serialization/types/LettaRequest.js +2 -3
  119. package/dist/serialization/types/LettaRequestConfig.d.ts +14 -0
  120. package/{serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js → dist/serialization/types/LettaRequestConfig.js} +6 -20
  121. package/dist/serialization/types/LettaResponse.d.ts +2 -2
  122. package/dist/serialization/types/LettaResponse.js +2 -2
  123. package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  124. package/dist/serialization/types/LlmConfigModelEndpointType.js +1 -0
  125. package/dist/serialization/types/Run.d.ts +2 -0
  126. package/dist/serialization/types/Run.js +2 -0
  127. package/dist/serialization/types/ToolType.d.ts +1 -1
  128. package/dist/serialization/types/ToolType.js +1 -0
  129. package/dist/serialization/types/index.d.ts +2 -1
  130. package/dist/serialization/types/index.js +2 -1
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +1 -1
  134. package/reference.md +12 -14
  135. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  136. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  137. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -3
  138. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +2 -3
  139. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
  140. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
  141. package/serialization/resources/agents/resources/messages/types/index.d.ts +0 -1
  142. package/serialization/resources/agents/resources/messages/types/index.js +0 -1
  143. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -1
  144. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +2 -0
  145. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts +13 -0
  146. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js +44 -0
  147. package/serialization/resources/agents/types/index.d.ts +1 -0
  148. package/serialization/resources/agents/types/index.js +1 -0
  149. package/serialization/resources/runs/client/getRunMessages.d.ts +3 -3
  150. package/serialization/resources/runs/client/getRunMessages.js +2 -2
  151. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  152. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  153. package/serialization/types/{LettaResponseMessagesItem.d.ts → LettaMessageUnion.d.ts} +3 -3
  154. package/{dist/serialization/types/LettaResponseMessagesItem.js → serialization/types/LettaMessageUnion.js} +2 -2
  155. package/serialization/types/LettaRequest.d.ts +2 -3
  156. package/serialization/types/LettaRequest.js +2 -3
  157. package/serialization/types/LettaRequestConfig.d.ts +14 -0
  158. package/serialization/types/LettaRequestConfig.js +45 -0
  159. package/serialization/types/LettaResponse.d.ts +2 -2
  160. package/serialization/types/LettaResponse.js +2 -2
  161. package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  162. package/serialization/types/LlmConfigModelEndpointType.js +1 -0
  163. package/serialization/types/Run.d.ts +2 -0
  164. package/serialization/types/Run.js +2 -0
  165. package/serialization/types/ToolType.d.ts +1 -1
  166. package/serialization/types/ToolType.js +1 -0
  167. package/serialization/types/index.d.ts +2 -1
  168. package/serialization/types/index.js +2 -1
  169. package/version.d.ts +1 -1
  170. package/version.js +1 -1
  171. package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
  172. package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -25
  173. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
  174. package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +0 -34
  175. /package/api/resources/agents/{resources/messages/types/MessagesListResponseItem.js → types/AgentsSearchRequestSearchItemTags.js} +0 -0
  176. /package/api/types/{LettaResponseMessagesItem.js → LettaMessageUnion.js} +0 -0
  177. /package/{dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.js → api/types/LettaRequestConfig.js} +0 -0
  178. /package/dist/api/{types/LettaResponseMessagesItem.js → resources/agents/types/AgentsSearchRequestSearchItemTags.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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -267,7 +267,7 @@ class Tools {
267
267
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
268
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
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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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
271
  contentType: "application/json",
272
272
  requestType: "json",
273
273
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -340,7 +340,7 @@ class Tools {
340
340
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
341
341
  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
342
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
344
344
  contentType: "application/json",
345
345
  queryParameters: _queryParams,
346
346
  requestType: "json",
@@ -408,7 +408,7 @@ class Tools {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  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
410
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -476,7 +476,7 @@ class Tools {
476
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
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/"),
478
478
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
480
480
  contentType: "application/json",
481
481
  requestType: "json",
482
482
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -541,7 +541,7 @@ class Tools {
541
541
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
542
542
  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
543
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
545
545
  contentType: "application/json",
546
546
  requestType: "json",
547
547
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -611,7 +611,7 @@ class Tools {
611
611
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
612
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/run"),
613
613
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
615
615
  contentType: "application/json",
616
616
  requestType: "json",
617
617
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -676,7 +676,7 @@ class Tools {
676
676
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
677
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"),
678
678
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
680
680
  contentType: "application/json",
681
681
  requestType: "json",
682
682
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -741,7 +741,7 @@ class Tools {
741
741
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
742
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/apps/${encodeURIComponent(composioAppName)}/actions`),
743
743
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
745
745
  contentType: "application/json",
746
746
  requestType: "json",
747
747
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -806,7 +806,7 @@ class Tools {
806
806
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
807
807
  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
808
  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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
810
810
  contentType: "application/json",
811
811
  requestType: "json",
812
812
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,10 +4,11 @@
4
4
  /**
5
5
  * The endpoint type for the model.
6
6
  */
7
- export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
7
+ export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "bedrock" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
8
8
  export declare const EmbeddingConfigEmbeddingEndpointType: {
9
9
  readonly Openai: "openai";
10
10
  readonly Anthropic: "anthropic";
11
+ readonly Bedrock: "bedrock";
11
12
  readonly Cohere: "cohere";
12
13
  readonly GoogleAi: "google_ai";
13
14
  readonly Azure: "azure";
@@ -7,6 +7,7 @@ exports.EmbeddingConfigEmbeddingEndpointType = void 0;
7
7
  exports.EmbeddingConfigEmbeddingEndpointType = {
8
8
  Openai: "openai",
9
9
  Anthropic: "anthropic",
10
+ Bedrock: "bedrock",
10
11
  Cohere: "cohere",
11
12
  GoogleAi: "google_ai",
12
13
  Azure: "azure",
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type LettaResponseMessagesItem = Letta.LettaResponseMessagesItem.SystemMessage | Letta.LettaResponseMessagesItem.UserMessage | Letta.LettaResponseMessagesItem.ReasoningMessage | Letta.LettaResponseMessagesItem.ToolCallMessage | Letta.LettaResponseMessagesItem.ToolReturnMessage | Letta.LettaResponseMessagesItem.AssistantMessage;
6
- export declare namespace LettaResponseMessagesItem {
5
+ export type LettaMessageUnion = Letta.LettaMessageUnion.SystemMessage | Letta.LettaMessageUnion.UserMessage | Letta.LettaMessageUnion.ReasoningMessage | Letta.LettaMessageUnion.ToolCallMessage | Letta.LettaMessageUnion.ToolReturnMessage | Letta.LettaMessageUnion.AssistantMessage;
6
+ export declare namespace LettaMessageUnion {
7
7
  interface SystemMessage extends Letta.SystemMessageOutput {
8
8
  messageType: "system_message";
9
9
  }
@@ -5,10 +5,6 @@ import * as Letta from "../index";
5
5
  export interface LettaRequest {
6
6
  /** The messages to be sent to the agent. */
7
7
  messages: Letta.MessageCreate[];
8
- /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
9
- useAssistantMessage?: boolean;
10
- /** The name of the designated message tool. */
11
- assistantMessageToolName?: string;
12
- /** The name of the message argument in the designated message tool. */
13
- assistantMessageToolKwarg?: string;
8
+ /** Configuration options for the LettaRequest. */
9
+ config?: Letta.LettaRequestConfig;
14
10
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface LettaRequestConfig {
5
+ /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
6
+ useAssistantMessage?: boolean;
7
+ /** The name of the designated message tool. */
8
+ assistantMessageToolName?: string;
9
+ /** The name of the message argument in the designated message tool. */
10
+ assistantMessageToolKwarg?: string;
11
+ }
@@ -12,7 +12,7 @@ import * as Letta from "../index";
12
12
  */
13
13
  export interface LettaResponse {
14
14
  /** The messages returned by the agent. */
15
- messages: Letta.LettaResponseMessagesItem[];
15
+ messages: Letta.LettaMessageUnion[];
16
16
  /** The usage statistics of the agent. */
17
17
  usage: Letta.LettaUsageStatistics;
18
18
  }
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * The endpoint type for the model.
6
6
  */
7
- export type LlmConfigModelEndpointType = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together";
7
+ export type LlmConfigModelEndpointType = "openai" | "anthropic" | "cohere" | "google_ai" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "bedrock";
8
8
  export declare const LlmConfigModelEndpointType: {
9
9
  readonly Openai: "openai";
10
10
  readonly Anthropic: "anthropic";
@@ -23,4 +23,5 @@ export declare const LlmConfigModelEndpointType: {
23
23
  readonly HuggingFace: "hugging-face";
24
24
  readonly Mistral: "mistral";
25
25
  readonly Together: "together";
26
+ readonly Bedrock: "bedrock";
26
27
  };
@@ -22,4 +22,5 @@ exports.LlmConfigModelEndpointType = {
22
22
  HuggingFace: "hugging-face",
23
23
  Mistral: "mistral",
24
24
  Together: "together",
25
+ Bedrock: "bedrock",
25
26
  };
@@ -31,4 +31,6 @@ export interface Run {
31
31
  jobType?: Letta.JobType;
32
32
  /** The human-friendly ID of the Run */
33
33
  id?: string;
34
+ /** The request configuration for the run. */
35
+ requestConfig?: Letta.LettaRequestConfig;
34
36
  }
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ToolType = "custom" | "letta_core" | "letta_memory_core";
4
+ export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core";
5
5
  export declare const ToolType: {
6
6
  readonly Custom: "custom";
7
7
  readonly LettaCore: "letta_core";
8
8
  readonly LettaMemoryCore: "letta_memory_core";
9
+ readonly LettaMultiAgentCore: "letta_multi_agent_core";
9
10
  };
@@ -8,4 +8,5 @@ exports.ToolType = {
8
8
  Custom: "custom",
9
9
  LettaCore: "letta_core",
10
10
  LettaMemoryCore: "letta_memory_core",
11
+ LettaMultiAgentCore: "letta_multi_agent_core",
11
12
  };
@@ -52,7 +52,7 @@ export * from "./JobType";
52
52
  export * from "./LlmConfigModelEndpointType";
53
53
  export * from "./LlmConfig";
54
54
  export * from "./LettaRequest";
55
- export * from "./LettaResponseMessagesItem";
55
+ export * from "./LettaRequestConfig";
56
56
  export * from "./LettaResponse";
57
57
  export * from "./LettaUsageStatistics";
58
58
  export * from "./LocalSandboxConfig";
@@ -116,3 +116,4 @@ export * from "./LettaSchemasOpenaiChatCompletionsToolCallInput";
116
116
  export * from "./LettaSchemasOpenaiChatCompletionsToolCallOutput";
117
117
  export * from "./LettaSchemasOpenaiChatCompletionsToolCallFunction";
118
118
  export * from "./LettaSchemasToolTool";
119
+ export * from "./LettaMessageUnion";
@@ -68,7 +68,7 @@ __exportStar(require("./JobType"), exports);
68
68
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
69
69
  __exportStar(require("./LlmConfig"), exports);
70
70
  __exportStar(require("./LettaRequest"), exports);
71
- __exportStar(require("./LettaResponseMessagesItem"), exports);
71
+ __exportStar(require("./LettaRequestConfig"), exports);
72
72
  __exportStar(require("./LettaResponse"), exports);
73
73
  __exportStar(require("./LettaUsageStatistics"), exports);
74
74
  __exportStar(require("./LocalSandboxConfig"), exports);
@@ -132,3 +132,4 @@ __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallInput"), export
132
132
  __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallOutput"), exports);
133
133
  __exportStar(require("./LettaSchemasOpenaiChatCompletionsToolCallFunction"), exports);
134
134
  __exportStar(require("./LettaSchemasToolTool"), exports);
135
+ __exportStar(require("./LettaMessageUnion"), exports);
@@ -119,7 +119,7 @@ class Agents {
119
119
  list() {
120
120
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
121
121
  var _a, _b, _c;
122
- const { name, tags, matchAllTags, cursor, limit } = request;
122
+ const { name, tags, matchAllTags, cursor, limit, queryText } = request;
123
123
  const _queryParams = {};
124
124
  if (name != null) {
125
125
  _queryParams["name"] = name;
@@ -136,15 +136,18 @@ class Agents {
136
136
  _queryParams["match_all_tags"] = matchAllTags.toString();
137
137
  }
138
138
  if (cursor != null) {
139
- _queryParams["cursor"] = cursor.toString();
139
+ _queryParams["cursor"] = cursor;
140
140
  }
141
141
  if (limit != null) {
142
142
  _queryParams["limit"] = limit.toString();
143
143
  }
144
+ if (queryText != null) {
145
+ _queryParams["query_text"] = queryText;
146
+ }
144
147
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
145
148
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
146
149
  method: "GET",
147
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
+ 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),
148
151
  contentType: "application/json",
149
152
  queryParameters: _queryParams,
150
153
  requestType: "json",
@@ -210,7 +213,7 @@ class Agents {
210
213
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
211
214
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
212
215
  method: "POST",
213
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
216
+ 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),
214
217
  contentType: "application/json",
215
218
  requestType: "json",
216
219
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -276,7 +279,7 @@ class Agents {
276
279
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
280
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
278
281
  method: "GET",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
+ 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),
280
283
  contentType: "application/json",
281
284
  requestType: "json",
282
285
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +344,7 @@ class Agents {
341
344
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
345
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
343
346
  method: "DELETE",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
+ 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),
345
348
  contentType: "application/json",
346
349
  requestType: "json",
347
350
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -401,7 +404,7 @@ class Agents {
401
404
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
402
405
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
403
406
  method: "PATCH",
404
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
407
+ 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),
405
408
  contentType: "application/json",
406
409
  requestType: "json",
407
410
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -473,7 +476,7 @@ class Agents {
473
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
474
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/agents/${encodeURIComponent(agentId)}/reset-messages`),
475
478
  method: "PATCH",
476
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
477
480
  contentType: "application/json",
478
481
  queryParameters: _queryParams,
479
482
  requestType: "json",
@@ -539,7 +542,7 @@ class Agents {
539
542
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
540
543
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/search"),
541
544
  method: "POST",
542
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
545
+ 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),
543
546
  contentType: "application/json",
544
547
  requestType: "json",
545
548
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -21,9 +21,13 @@ export interface AgentsListRequest {
21
21
  /**
22
22
  * Cursor for pagination
23
23
  */
24
- cursor?: number;
24
+ cursor?: string;
25
25
  /**
26
26
  * Limit for pagination
27
27
  */
28
28
  limit?: number;
29
+ /**
30
+ * Search agents by name
31
+ */
32
+ queryText?: string;
29
33
  }
@@ -33,8 +33,10 @@ export interface CreateAgentRequest {
33
33
  embeddingConfig?: Letta.EmbeddingConfig;
34
34
  /** The initial set of messages to put in the agent's in-context memory. */
35
35
  initialMessageSequence?: Letta.MessageCreate[];
36
- /** The LLM configuration used by the agent. */
36
+ /** If true, attaches the Letta core tools (e.g. archival_memory and core_memory related functions). */
37
37
  includeBaseTools?: boolean;
38
+ /** If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent). */
39
+ includeMultiAgentTools?: boolean;
38
40
  /** The description of the agent. */
39
41
  description?: string;
40
42
  /** The metadata of the agent. */
@@ -76,7 +76,7 @@ class ArchivalMemory {
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/agents/${encodeURIComponent(agentId)}/memory/archival`),
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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
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,
@@ -153,7 +153,7 @@ class ArchivalMemory {
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival`),
155
155
  method: "GET",
156
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ 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),
157
157
  contentType: "application/json",
158
158
  queryParameters: _queryParams,
159
159
  requestType: "json",
@@ -222,7 +222,7 @@ class ArchivalMemory {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival`),
224
224
  method: "POST",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
+ 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),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -289,7 +289,7 @@ class ArchivalMemory {
289
289
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
290
290
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival/${encodeURIComponent(memoryId)}`),
291
291
  method: "DELETE",
292
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
292
+ 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),
293
293
  contentType: "application/json",
294
294
  requestType: "json",
295
295
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Context {
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/agents/${encodeURIComponent(agentId)}/context`),
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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
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,
@@ -76,7 +76,7 @@ class CoreMemory {
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/agents/${encodeURIComponent(agentId)}/memory/messages`),
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.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
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,
@@ -142,7 +142,7 @@ class CoreMemory {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory`),
144
144
  method: "GET",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ 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),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class CoreMemory {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
210
210
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
+ 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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -274,7 +274,7 @@ class CoreMemory {
274
274
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
275
275
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
276
276
  method: "DELETE",
277
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
277
+ 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
278
  contentType: "application/json",
279
279
  requestType: "json",
280
280
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class CoreMemory {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
343
343
  method: "PATCH",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
+ 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),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -407,7 +407,7 @@ class CoreMemory {
407
407
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
408
408
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block`),
409
409
  method: "GET",
410
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
410
+ 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),
411
411
  contentType: "application/json",
412
412
  requestType: "json",
413
413
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -476,7 +476,7 @@ class CoreMemory {
476
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
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/agents/${encodeURIComponent(agentId)}/memory/block`),
478
478
  method: "POST",
479
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
480
480
  contentType: "application/json",
481
481
  requestType: "json",
482
482
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,7 +78,7 @@ class MemoryVariables {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/variables`),
80
80
  method: "GET",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.9", "User-Agent": "@letta-ai/letta-client/0.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ 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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,