@letta-ai/letta-client 0.1.7 → 0.1.8

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 (172) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/agents/client/Client.d.ts +13 -0
  4. package/api/resources/agents/client/Client.js +78 -6
  5. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  6. package/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
  7. package/api/resources/agents/client/requests/ResetMessagesRequest.js +5 -0
  8. package/api/resources/agents/client/requests/index.d.ts +1 -0
  9. package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  10. package/api/resources/agents/resources/context/client/Client.js +1 -1
  11. package/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
  14. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  15. package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  16. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  17. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  18. package/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
  19. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  20. package/api/resources/blocks/client/Client.js +7 -7
  21. package/api/resources/health/client/Client.js +1 -1
  22. package/api/resources/index.d.ts +2 -0
  23. package/api/resources/index.js +3 -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 +115 -0
  28. package/api/resources/runs/client/Client.js +500 -0
  29. package/api/resources/runs/client/index.d.ts +1 -0
  30. package/api/resources/runs/client/index.js +17 -0
  31. package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
  32. package/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
  33. package/api/resources/runs/client/requests/index.d.ts +1 -0
  34. package/api/resources/runs/client/requests/index.js +2 -0
  35. package/api/resources/runs/index.d.ts +1 -0
  36. package/api/resources/runs/index.js +17 -0
  37. package/api/resources/sources/client/Client.js +8 -8
  38. package/api/resources/sources/resources/files/client/Client.js +3 -3
  39. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  40. package/api/resources/tools/client/Client.js +12 -12
  41. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
  42. package/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
  43. package/api/types/Job.d.ts +2 -0
  44. package/api/types/JobType.d.ts +8 -0
  45. package/api/types/JobType.js +10 -0
  46. package/api/types/LettaSchemasToolTool.d.ts +0 -2
  47. package/api/types/Run.d.ts +34 -0
  48. package/api/types/Run.js +5 -0
  49. package/api/types/ToolCreate.d.ts +0 -2
  50. package/api/types/index.d.ts +2 -0
  51. package/api/types/index.js +2 -0
  52. package/dist/Client.d.ts +3 -0
  53. package/dist/Client.js +5 -0
  54. package/dist/api/resources/agents/client/Client.d.ts +13 -0
  55. package/dist/api/resources/agents/client/Client.js +78 -6
  56. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  57. package/dist/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
  58. package/dist/api/resources/agents/client/requests/ResetMessagesRequest.js +5 -0
  59. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  60. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  61. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
  63. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
  65. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  66. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  67. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  68. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  69. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
  70. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  71. package/dist/api/resources/blocks/client/Client.js +7 -7
  72. package/dist/api/resources/health/client/Client.js +1 -1
  73. package/dist/api/resources/index.d.ts +2 -0
  74. package/dist/api/resources/index.js +3 -1
  75. package/dist/api/resources/jobs/client/Client.js +4 -4
  76. package/dist/api/resources/models/client/Client.js +2 -2
  77. package/dist/api/resources/providers/client/Client.js +4 -4
  78. package/dist/api/resources/runs/client/Client.d.ts +115 -0
  79. package/dist/api/resources/runs/client/Client.js +500 -0
  80. package/dist/api/resources/runs/client/index.d.ts +1 -0
  81. package/dist/api/resources/runs/client/index.js +17 -0
  82. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
  83. package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
  84. package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
  85. package/dist/api/resources/runs/client/requests/index.js +2 -0
  86. package/dist/api/resources/runs/index.d.ts +1 -0
  87. package/dist/api/resources/runs/index.js +17 -0
  88. package/dist/api/resources/sources/client/Client.js +8 -8
  89. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  90. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  91. package/dist/api/resources/tools/client/Client.js +12 -12
  92. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
  93. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
  94. package/dist/api/types/Job.d.ts +2 -0
  95. package/dist/api/types/JobType.d.ts +8 -0
  96. package/dist/api/types/JobType.js +10 -0
  97. package/dist/api/types/LettaSchemasToolTool.d.ts +0 -2
  98. package/dist/api/types/Run.d.ts +34 -0
  99. package/dist/api/types/Run.js +5 -0
  100. package/dist/api/types/ToolCreate.d.ts +0 -2
  101. package/dist/api/types/index.d.ts +2 -0
  102. package/dist/api/types/index.js +2 -0
  103. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  104. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  105. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
  106. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +1 -1
  107. package/dist/serialization/resources/index.d.ts +1 -0
  108. package/dist/serialization/resources/index.js +2 -1
  109. package/dist/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
  110. package/dist/serialization/resources/runs/client/getRunMessages.js +32 -0
  111. package/dist/serialization/resources/runs/client/index.d.ts +3 -0
  112. package/dist/serialization/resources/runs/client/index.js +29 -0
  113. package/dist/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
  114. package/dist/serialization/resources/runs/client/listActiveRuns.js +32 -0
  115. package/dist/serialization/resources/runs/client/listRuns.d.ts +11 -0
  116. package/dist/serialization/resources/runs/client/listRuns.js +32 -0
  117. package/dist/serialization/resources/runs/index.d.ts +1 -0
  118. package/dist/serialization/resources/runs/index.js +17 -0
  119. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
  120. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -1
  121. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
  122. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
  123. package/dist/serialization/types/Job.d.ts +2 -0
  124. package/dist/serialization/types/Job.js +2 -0
  125. package/dist/serialization/types/JobType.d.ts +10 -0
  126. package/dist/serialization/types/JobType.js +34 -0
  127. package/dist/serialization/types/LettaSchemasToolTool.d.ts +0 -1
  128. package/dist/serialization/types/LettaSchemasToolTool.js +0 -1
  129. package/dist/serialization/types/Run.d.ts +22 -0
  130. package/dist/serialization/types/Run.js +43 -0
  131. package/dist/serialization/types/ToolCreate.d.ts +0 -1
  132. package/dist/serialization/types/ToolCreate.js +0 -1
  133. package/dist/serialization/types/index.d.ts +2 -0
  134. package/dist/serialization/types/index.js +2 -0
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/package.json +1 -1
  138. package/reference.md +458 -1
  139. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  140. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  141. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
  142. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +1 -1
  143. package/serialization/resources/index.d.ts +1 -0
  144. package/serialization/resources/index.js +2 -1
  145. package/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
  146. package/serialization/resources/runs/client/getRunMessages.js +32 -0
  147. package/serialization/resources/runs/client/index.d.ts +3 -0
  148. package/serialization/resources/runs/client/index.js +29 -0
  149. package/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
  150. package/serialization/resources/runs/client/listActiveRuns.js +32 -0
  151. package/serialization/resources/runs/client/listRuns.d.ts +11 -0
  152. package/serialization/resources/runs/client/listRuns.js +32 -0
  153. package/serialization/resources/runs/index.d.ts +1 -0
  154. package/serialization/resources/runs/index.js +17 -0
  155. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
  156. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -1
  157. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
  158. package/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
  159. package/serialization/types/Job.d.ts +2 -0
  160. package/serialization/types/Job.js +2 -0
  161. package/serialization/types/JobType.d.ts +10 -0
  162. package/serialization/types/JobType.js +34 -0
  163. package/serialization/types/LettaSchemasToolTool.d.ts +0 -1
  164. package/serialization/types/LettaSchemasToolTool.js +0 -1
  165. package/serialization/types/Run.d.ts +22 -0
  166. package/serialization/types/Run.js +43 -0
  167. package/serialization/types/ToolCreate.d.ts +0 -1
  168. package/serialization/types/ToolCreate.js +0 -1
  169. package/serialization/types/index.d.ts +2 -0
  170. package/serialization/types/index.js +2 -0
  171. package/version.d.ts +1 -1
  172. package/version.js +1 -1
@@ -75,7 +75,7 @@ class Blocks {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
77
77
  method: "GET",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -142,7 +142,7 @@ class Blocks {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
144
144
  method: "POST",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -206,7 +206,7 @@ class Blocks {
206
206
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
207
207
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
208
208
  method: "GET",
209
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
209
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -269,7 +269,7 @@ class Blocks {
269
269
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
270
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
271
271
  method: "DELETE",
272
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
272
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -333,7 +333,7 @@ class Blocks {
333
333
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
334
334
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
335
335
  method: "PATCH",
336
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
336
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
337
337
  contentType: "application/json",
338
338
  requestType: "json",
339
339
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -405,7 +405,7 @@ class Blocks {
405
405
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
406
406
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}/attach`),
407
407
  method: "PATCH",
408
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
408
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
409
409
  contentType: "application/json",
410
410
  queryParameters: _queryParams,
411
411
  requestType: "json",
@@ -471,7 +471,7 @@ class Blocks {
471
471
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
472
472
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}/detach`),
473
473
  method: "PATCH",
474
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
474
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
475
475
  contentType: "application/json",
476
476
  queryParameters: _queryParams,
477
477
  requestType: "json",
@@ -60,7 +60,7 @@ class Health {
60
60
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
61
61
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/health/"),
62
62
  method: "GET",
63
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
63
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
64
64
  contentType: "application/json",
65
65
  requestType: "json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -7,9 +7,11 @@ export * as blocks from "./blocks";
7
7
  export * as jobs from "./jobs";
8
8
  export * as health from "./health";
9
9
  export * as providers from "./providers";
10
+ export * as runs from "./runs";
10
11
  export * from "./tools/client/requests";
11
12
  export * from "./sources/client/requests";
12
13
  export * from "./agents/client/requests";
13
14
  export * from "./blocks/client/requests";
14
15
  export * from "./jobs/client/requests";
15
16
  export * from "./providers/client/requests";
17
+ export * from "./runs/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.providers = exports.health = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.agents = void 0;
29
+ exports.runs = exports.providers = exports.health = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.agents = void 0;
30
30
  exports.agents = __importStar(require("./agents"));
31
31
  __exportStar(require("./agents/types"), exports);
32
32
  exports.tools = __importStar(require("./tools"));
@@ -36,9 +36,11 @@ exports.blocks = __importStar(require("./blocks"));
36
36
  exports.jobs = __importStar(require("./jobs"));
37
37
  exports.health = __importStar(require("./health"));
38
38
  exports.providers = __importStar(require("./providers"));
39
+ exports.runs = __importStar(require("./runs"));
39
40
  __exportStar(require("./tools/client/requests"), exports);
40
41
  __exportStar(require("./sources/client/requests"), exports);
41
42
  __exportStar(require("./agents/client/requests"), exports);
42
43
  __exportStar(require("./blocks/client/requests"), exports);
43
44
  __exportStar(require("./jobs/client/requests"), exports);
44
45
  __exportStar(require("./providers/client/requests"), exports);
46
+ __exportStar(require("./runs/client/requests"), exports);
@@ -71,7 +71,7 @@ class Jobs {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/jobs/"),
73
73
  method: "GET",
74
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
74
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
75
75
  contentType: "application/json",
76
76
  queryParameters: _queryParams,
77
77
  requestType: "json",
@@ -136,7 +136,7 @@ class Jobs {
136
136
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
137
137
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/jobs/active"),
138
138
  method: "GET",
139
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
139
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Jobs {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
203
203
  method: "GET",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -266,7 +266,7 @@ class Jobs {
266
266
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
267
267
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
268
268
  method: "DELETE",
269
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
269
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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
270
  contentType: "application/json",
271
271
  requestType: "json",
272
272
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -60,7 +60,7 @@ class Models {
60
60
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
61
61
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/models/"),
62
62
  method: "GET",
63
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
63
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
64
64
  contentType: "application/json",
65
65
  requestType: "json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -109,7 +109,7 @@ class Models {
109
109
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
110
110
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/models/embedding"),
111
111
  method: "GET",
112
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
112
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
113
113
  contentType: "application/json",
114
114
  requestType: "json",
115
115
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -74,7 +74,7 @@ class Providers {
74
74
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
75
75
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
80
80
  requestType: "json",
@@ -143,7 +143,7 @@ class Providers {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
145
145
  method: "POST",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -212,7 +212,7 @@ class Providers {
212
212
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
213
213
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
214
214
  method: "PUT",
215
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
215
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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
216
  contentType: "application/json",
217
217
  requestType: "json",
218
218
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -283,7 +283,7 @@ class Providers {
283
283
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
284
284
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
285
285
  method: "DELETE",
286
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
286
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.8", "User-Agent": "@letta-ai/letta-client/0.1.8", "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),
287
287
  contentType: "application/json",
288
288
  queryParameters: _queryParams,
289
289
  requestType: "json",
@@ -0,0 +1,115 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Letta from "../../../index";
7
+ export declare namespace Runs {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ token?: core.Supplier<string | undefined>;
11
+ fetcher?: core.FetchFunction;
12
+ }
13
+ interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
15
+ timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
17
+ maxRetries?: number;
18
+ /** A hook to abort the request. */
19
+ abortSignal?: AbortSignal;
20
+ /** Additional headers to include in the request. */
21
+ headers?: Record<string, string>;
22
+ }
23
+ }
24
+ export declare class Runs {
25
+ protected readonly _options: Runs.Options;
26
+ constructor(_options?: Runs.Options);
27
+ /**
28
+ * List all runs.
29
+ *
30
+ * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @throws {@link Letta.UnprocessableEntityError}
33
+ *
34
+ * @example
35
+ * await client.runs.listRuns()
36
+ */
37
+ listRuns(requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
38
+ /**
39
+ * List all active runs.
40
+ *
41
+ * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
42
+ *
43
+ * @throws {@link Letta.UnprocessableEntityError}
44
+ *
45
+ * @example
46
+ * await client.runs.listActiveRuns()
47
+ */
48
+ listActiveRuns(requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
49
+ /**
50
+ * Get the status of a run.
51
+ *
52
+ * @param {string} runId
53
+ * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @throws {@link Letta.UnprocessableEntityError}
56
+ *
57
+ * @example
58
+ * await client.runs.getRun("run_id")
59
+ */
60
+ getRun(runId: string, requestOptions?: Runs.RequestOptions): Promise<Letta.Run>;
61
+ /**
62
+ * Delete a run by its run_id.
63
+ *
64
+ * @param {string} runId
65
+ * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @throws {@link Letta.UnprocessableEntityError}
68
+ *
69
+ * @example
70
+ * await client.runs.deleteRun("run_id")
71
+ */
72
+ deleteRun(runId: string, requestOptions?: Runs.RequestOptions): Promise<Letta.Run>;
73
+ /**
74
+ * Get messages associated with a run with filtering options.
75
+ *
76
+ * Args:
77
+ * run_id: ID of the run
78
+ * cursor: Cursor for pagination
79
+ * start_date: Filter messages after this date
80
+ * end_date: Filter messages before this date
81
+ * limit: Maximum number of messages to return
82
+ * query_text: Search text in message content
83
+ * ascending: Sort order by creation time
84
+ * tags: Filter by message tags
85
+ * match_all_tags: If true, match all tags. If false, match any tag
86
+ * role: Filter by message role (user/assistant/system/tool)
87
+ * tool_name: Filter by tool call name
88
+ * user_id: ID of the user making the request
89
+ *
90
+ * @param {string} runId
91
+ * @param {Letta.GetRunMessagesRequest} request
92
+ * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
93
+ *
94
+ * @throws {@link Letta.UnprocessableEntityError}
95
+ *
96
+ * @example
97
+ * await client.runs.getRunMessages("run_id")
98
+ */
99
+ getRunMessages(runId: string, request?: Letta.GetRunMessagesRequest, requestOptions?: Runs.RequestOptions): Promise<Letta.LettaSchemasMessageMessage[]>;
100
+ /**
101
+ * Get usage statistics for a run.
102
+ *
103
+ * @param {string} runId
104
+ * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
105
+ *
106
+ * @throws {@link Letta.UnprocessableEntityError}
107
+ *
108
+ * @example
109
+ * await client.runs.getRunUsage("run_id")
110
+ */
111
+ getRunUsage(runId: string, requestOptions?: Runs.RequestOptions): Promise<Letta.UsageStatistics>;
112
+ protected _getCustomAuthorizationHeaders(): Promise<{
113
+ Authorization: string;
114
+ }>;
115
+ }