@letta-ai/letta-client 0.1.143 → 0.1.145

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 (213) hide show
  1. package/Client.d.ts +4 -0
  2. package/README.md +1 -1
  3. package/api/resources/agents/client/Client.d.ts +4 -0
  4. package/api/resources/agents/client/Client.js +31 -23
  5. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -2
  6. package/api/resources/agents/resources/blocks/client/Client.d.ts +4 -0
  7. package/api/resources/agents/resources/blocks/client/Client.js +15 -5
  8. package/api/resources/agents/resources/context/client/Client.d.ts +4 -0
  9. package/api/resources/agents/resources/context/client/Client.js +3 -1
  10. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +4 -0
  11. package/api/resources/agents/resources/coreMemory/client/Client.js +3 -1
  12. package/api/resources/agents/resources/groups/client/Client.d.ts +4 -0
  13. package/api/resources/agents/resources/groups/client/Client.js +3 -1
  14. package/api/resources/agents/resources/memoryVariables/client/Client.d.ts +4 -0
  15. package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -1
  16. package/api/resources/agents/resources/messages/client/Client.d.ts +4 -0
  17. package/api/resources/agents/resources/messages/client/Client.js +18 -6
  18. package/api/resources/agents/resources/passages/client/Client.d.ts +4 -0
  19. package/api/resources/agents/resources/passages/client/Client.js +12 -4
  20. package/api/resources/agents/resources/sources/client/Client.d.ts +4 -0
  21. package/api/resources/agents/resources/sources/client/Client.js +9 -3
  22. package/api/resources/agents/resources/templates/client/Client.d.ts +4 -0
  23. package/api/resources/agents/resources/templates/client/Client.js +9 -3
  24. package/api/resources/agents/resources/tools/client/Client.d.ts +4 -0
  25. package/api/resources/agents/resources/tools/client/Client.js +9 -3
  26. package/api/resources/batches/client/Client.d.ts +4 -0
  27. package/api/resources/batches/client/Client.js +12 -4
  28. package/api/resources/blocks/client/Client.d.ts +4 -0
  29. package/api/resources/blocks/client/Client.js +18 -6
  30. package/api/resources/blocks/resources/agents/client/Client.d.ts +4 -0
  31. package/api/resources/blocks/resources/agents/client/Client.js +3 -1
  32. package/api/resources/clientSideAccessTokens/client/Client.d.ts +4 -0
  33. package/api/resources/clientSideAccessTokens/client/Client.js +6 -2
  34. package/api/resources/embeddingModels/client/Client.d.ts +4 -0
  35. package/api/resources/embeddingModels/client/Client.js +3 -1
  36. package/api/resources/groups/client/Client.d.ts +4 -0
  37. package/api/resources/groups/client/Client.js +20 -21
  38. package/api/resources/groups/client/requests/GroupCreate.d.ts +0 -1
  39. package/api/resources/groups/client/requests/GroupUpdate.d.ts +0 -1
  40. package/api/resources/groups/resources/messages/client/Client.d.ts +4 -0
  41. package/api/resources/groups/resources/messages/client/Client.js +15 -5
  42. package/api/resources/health/client/Client.d.ts +4 -0
  43. package/api/resources/health/client/Client.js +3 -1
  44. package/api/resources/identities/client/Client.d.ts +4 -0
  45. package/api/resources/identities/client/Client.js +23 -22
  46. package/api/resources/identities/client/requests/IdentityCreate.d.ts +0 -1
  47. package/api/resources/identities/client/requests/IdentityUpsert.d.ts +0 -1
  48. package/api/resources/identities/resources/properties/client/Client.d.ts +4 -0
  49. package/api/resources/identities/resources/properties/client/Client.js +3 -1
  50. package/api/resources/jobs/client/Client.d.ts +4 -0
  51. package/api/resources/jobs/client/Client.js +12 -4
  52. package/api/resources/messages/client/Client.d.ts +4 -0
  53. package/api/resources/messages/client/Client.js +3 -1
  54. package/api/resources/models/client/Client.d.ts +4 -0
  55. package/api/resources/models/client/Client.js +3 -1
  56. package/api/resources/projects/client/Client.d.ts +4 -0
  57. package/api/resources/projects/client/Client.js +3 -1
  58. package/api/resources/providers/client/Client.d.ts +4 -0
  59. package/api/resources/providers/client/Client.js +15 -5
  60. package/api/resources/runs/client/Client.d.ts +4 -0
  61. package/api/resources/runs/client/Client.js +12 -4
  62. package/api/resources/runs/resources/messages/client/Client.d.ts +4 -0
  63. package/api/resources/runs/resources/messages/client/Client.js +3 -1
  64. package/api/resources/runs/resources/steps/client/Client.d.ts +4 -0
  65. package/api/resources/runs/resources/steps/client/Client.js +3 -1
  66. package/api/resources/runs/resources/usage/client/Client.d.ts +4 -0
  67. package/api/resources/runs/resources/usage/client/Client.js +3 -1
  68. package/api/resources/sources/client/Client.d.ts +4 -0
  69. package/api/resources/sources/client/Client.js +24 -8
  70. package/api/resources/sources/resources/files/client/Client.d.ts +4 -0
  71. package/api/resources/sources/resources/files/client/Client.js +9 -3
  72. package/api/resources/sources/resources/passages/client/Client.d.ts +4 -0
  73. package/api/resources/sources/resources/passages/client/Client.js +3 -1
  74. package/api/resources/steps/client/Client.d.ts +4 -13
  75. package/api/resources/steps/client/Client.js +6 -74
  76. package/api/resources/steps/client/requests/index.d.ts +0 -1
  77. package/api/resources/steps/resources/feedback/client/Client.d.ts +12 -2
  78. package/api/resources/steps/resources/feedback/client/Client.js +43 -11
  79. package/api/resources/steps/resources/feedback/client/index.d.ts +1 -1
  80. package/api/resources/steps/resources/feedback/client/index.js +15 -0
  81. package/api/resources/steps/{client/requests/AddFeedbackRequest.d.ts → resources/feedback/client/requests/FeedbackCreateRequest.d.ts} +2 -2
  82. package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
  83. package/api/resources/steps/resources/feedback/client/requests/index.js +2 -0
  84. package/api/resources/steps/resources/index.d.ts +1 -0
  85. package/api/resources/steps/resources/index.js +4 -0
  86. package/api/resources/tags/client/Client.d.ts +4 -0
  87. package/api/resources/tags/client/Client.js +3 -1
  88. package/api/resources/telemetry/client/Client.d.ts +4 -0
  89. package/api/resources/telemetry/client/Client.js +3 -1
  90. package/api/resources/templates/client/Client.d.ts +4 -0
  91. package/api/resources/templates/client/Client.js +3 -1
  92. package/api/resources/templates/resources/agents/client/Client.d.ts +4 -0
  93. package/api/resources/templates/resources/agents/client/Client.js +3 -1
  94. package/api/resources/tools/client/Client.d.ts +4 -0
  95. package/api/resources/tools/client/Client.js +57 -19
  96. package/api/resources/voice/client/Client.d.ts +4 -0
  97. package/api/resources/voice/client/Client.js +3 -1
  98. package/dist/Client.d.ts +4 -0
  99. package/dist/api/resources/agents/client/Client.d.ts +4 -0
  100. package/dist/api/resources/agents/client/Client.js +31 -23
  101. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -2
  102. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +4 -0
  103. package/dist/api/resources/agents/resources/blocks/client/Client.js +15 -5
  104. package/dist/api/resources/agents/resources/context/client/Client.d.ts +4 -0
  105. package/dist/api/resources/agents/resources/context/client/Client.js +3 -1
  106. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +4 -0
  107. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +3 -1
  108. package/dist/api/resources/agents/resources/groups/client/Client.d.ts +4 -0
  109. package/dist/api/resources/agents/resources/groups/client/Client.js +3 -1
  110. package/dist/api/resources/agents/resources/memoryVariables/client/Client.d.ts +4 -0
  111. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -1
  112. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +4 -0
  113. package/dist/api/resources/agents/resources/messages/client/Client.js +18 -6
  114. package/dist/api/resources/agents/resources/passages/client/Client.d.ts +4 -0
  115. package/dist/api/resources/agents/resources/passages/client/Client.js +12 -4
  116. package/dist/api/resources/agents/resources/sources/client/Client.d.ts +4 -0
  117. package/dist/api/resources/agents/resources/sources/client/Client.js +9 -3
  118. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +4 -0
  119. package/dist/api/resources/agents/resources/templates/client/Client.js +9 -3
  120. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +4 -0
  121. package/dist/api/resources/agents/resources/tools/client/Client.js +9 -3
  122. package/dist/api/resources/batches/client/Client.d.ts +4 -0
  123. package/dist/api/resources/batches/client/Client.js +12 -4
  124. package/dist/api/resources/blocks/client/Client.d.ts +4 -0
  125. package/dist/api/resources/blocks/client/Client.js +18 -6
  126. package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +4 -0
  127. package/dist/api/resources/blocks/resources/agents/client/Client.js +3 -1
  128. package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +4 -0
  129. package/dist/api/resources/clientSideAccessTokens/client/Client.js +6 -2
  130. package/dist/api/resources/embeddingModels/client/Client.d.ts +4 -0
  131. package/dist/api/resources/embeddingModels/client/Client.js +3 -1
  132. package/dist/api/resources/groups/client/Client.d.ts +4 -0
  133. package/dist/api/resources/groups/client/Client.js +20 -21
  134. package/dist/api/resources/groups/client/requests/GroupCreate.d.ts +0 -1
  135. package/dist/api/resources/groups/client/requests/GroupUpdate.d.ts +0 -1
  136. package/dist/api/resources/groups/resources/messages/client/Client.d.ts +4 -0
  137. package/dist/api/resources/groups/resources/messages/client/Client.js +15 -5
  138. package/dist/api/resources/health/client/Client.d.ts +4 -0
  139. package/dist/api/resources/health/client/Client.js +3 -1
  140. package/dist/api/resources/identities/client/Client.d.ts +4 -0
  141. package/dist/api/resources/identities/client/Client.js +23 -22
  142. package/dist/api/resources/identities/client/requests/IdentityCreate.d.ts +0 -1
  143. package/dist/api/resources/identities/client/requests/IdentityUpsert.d.ts +0 -1
  144. package/dist/api/resources/identities/resources/properties/client/Client.d.ts +4 -0
  145. package/dist/api/resources/identities/resources/properties/client/Client.js +3 -1
  146. package/dist/api/resources/jobs/client/Client.d.ts +4 -0
  147. package/dist/api/resources/jobs/client/Client.js +12 -4
  148. package/dist/api/resources/messages/client/Client.d.ts +4 -0
  149. package/dist/api/resources/messages/client/Client.js +3 -1
  150. package/dist/api/resources/models/client/Client.d.ts +4 -0
  151. package/dist/api/resources/models/client/Client.js +3 -1
  152. package/dist/api/resources/projects/client/Client.d.ts +4 -0
  153. package/dist/api/resources/projects/client/Client.js +3 -1
  154. package/dist/api/resources/providers/client/Client.d.ts +4 -0
  155. package/dist/api/resources/providers/client/Client.js +15 -5
  156. package/dist/api/resources/runs/client/Client.d.ts +4 -0
  157. package/dist/api/resources/runs/client/Client.js +12 -4
  158. package/dist/api/resources/runs/resources/messages/client/Client.d.ts +4 -0
  159. package/dist/api/resources/runs/resources/messages/client/Client.js +3 -1
  160. package/dist/api/resources/runs/resources/steps/client/Client.d.ts +4 -0
  161. package/dist/api/resources/runs/resources/steps/client/Client.js +3 -1
  162. package/dist/api/resources/runs/resources/usage/client/Client.d.ts +4 -0
  163. package/dist/api/resources/runs/resources/usage/client/Client.js +3 -1
  164. package/dist/api/resources/sources/client/Client.d.ts +4 -0
  165. package/dist/api/resources/sources/client/Client.js +24 -8
  166. package/dist/api/resources/sources/resources/files/client/Client.d.ts +4 -0
  167. package/dist/api/resources/sources/resources/files/client/Client.js +9 -3
  168. package/dist/api/resources/sources/resources/passages/client/Client.d.ts +4 -0
  169. package/dist/api/resources/sources/resources/passages/client/Client.js +3 -1
  170. package/dist/api/resources/steps/client/Client.d.ts +4 -13
  171. package/dist/api/resources/steps/client/Client.js +6 -74
  172. package/dist/api/resources/steps/client/requests/index.d.ts +0 -1
  173. package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +12 -2
  174. package/dist/api/resources/steps/resources/feedback/client/Client.js +43 -11
  175. package/dist/api/resources/steps/resources/feedback/client/index.d.ts +1 -1
  176. package/dist/api/resources/steps/resources/feedback/client/index.js +15 -0
  177. package/dist/api/resources/steps/{client/requests/AddFeedbackRequest.d.ts → resources/feedback/client/requests/FeedbackCreateRequest.d.ts} +2 -2
  178. package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
  179. package/dist/api/resources/steps/resources/feedback/client/requests/index.js +2 -0
  180. package/dist/api/resources/steps/resources/index.d.ts +1 -0
  181. package/dist/api/resources/steps/resources/index.js +4 -0
  182. package/dist/api/resources/tags/client/Client.d.ts +4 -0
  183. package/dist/api/resources/tags/client/Client.js +3 -1
  184. package/dist/api/resources/telemetry/client/Client.d.ts +4 -0
  185. package/dist/api/resources/telemetry/client/Client.js +3 -1
  186. package/dist/api/resources/templates/client/Client.d.ts +4 -0
  187. package/dist/api/resources/templates/client/Client.js +3 -1
  188. package/dist/api/resources/templates/resources/agents/client/Client.d.ts +4 -0
  189. package/dist/api/resources/templates/resources/agents/client/Client.js +3 -1
  190. package/dist/api/resources/tools/client/Client.d.ts +4 -0
  191. package/dist/api/resources/tools/client/Client.js +57 -19
  192. package/dist/api/resources/voice/client/Client.d.ts +4 -0
  193. package/dist/api/resources/voice/client/Client.js +3 -1
  194. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  195. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  196. package/dist/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -1
  197. package/dist/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -1
  198. package/dist/serialization/resources/identities/client/requests/IdentityCreate.d.ts +1 -1
  199. package/dist/serialization/resources/identities/client/requests/IdentityUpsert.d.ts +1 -1
  200. package/dist/version.d.ts +1 -1
  201. package/dist/version.js +1 -1
  202. package/package.json +1 -1
  203. package/reference.md +25 -73
  204. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  205. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  206. package/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -1
  207. package/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -1
  208. package/serialization/resources/identities/client/requests/IdentityCreate.d.ts +1 -1
  209. package/serialization/resources/identities/client/requests/IdentityUpsert.d.ts +1 -1
  210. package/version.d.ts +1 -1
  211. package/version.js +1 -1
  212. /package/api/resources/steps/{client/requests/AddFeedbackRequest.js → resources/feedback/client/requests/FeedbackCreateRequest.js} +0 -0
  213. /package/dist/api/resources/steps/{client/requests/AddFeedbackRequest.js → resources/feedback/client/requests/FeedbackCreateRequest.js} +0 -0
@@ -10,6 +10,8 @@ export declare namespace Telemetry {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<string | undefined>;
13
+ /** Override the X-Project header */
14
+ project?: core.Supplier<string | undefined>;
13
15
  fetcher?: core.FetchFunction;
14
16
  }
15
17
  interface RequestOptions {
@@ -19,6 +21,8 @@ export declare namespace Telemetry {
19
21
  maxRetries?: number;
20
22
  /** A hook to abort the request. */
21
23
  abortSignal?: AbortSignal;
24
+ /** Override the X-Project header */
25
+ project?: string | undefined;
22
26
  /** Additional headers to include in the request. */
23
27
  headers?: Record<string, string>;
24
28
  }
@@ -74,7 +74,9 @@ class Telemetry {
74
74
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
75
75
  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/telemetry/${encodeURIComponent(stepId)}`),
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.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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-Project": (yield core.Supplier.get(this._options.project)) != null
78
+ ? yield core.Supplier.get(this._options.project)
79
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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
80
  contentType: "application/json",
79
81
  requestType: "json",
80
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -11,6 +11,8 @@ export declare namespace Templates {
11
11
  /** Specify a custom URL to connect the client to. */
12
12
  baseUrl?: core.Supplier<string>;
13
13
  token?: core.Supplier<string | undefined>;
14
+ /** Override the X-Project header */
15
+ project?: core.Supplier<string | undefined>;
14
16
  fetcher?: core.FetchFunction;
15
17
  }
16
18
  interface RequestOptions {
@@ -20,6 +22,8 @@ export declare namespace Templates {
20
22
  maxRetries?: number;
21
23
  /** A hook to abort the request. */
22
24
  abortSignal?: AbortSignal;
25
+ /** Override the X-Project header */
26
+ project?: string | undefined;
23
27
  /** Additional headers to include in the request. */
24
28
  headers?: Record<string, string>;
25
29
  }
@@ -92,7 +92,9 @@ class Templates {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  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/templates"),
94
94
  method: "GET",
95
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
95
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
96
+ ? yield core.Supplier.get(this._options.project)
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
96
98
  contentType: "application/json",
97
99
  queryParameters: _queryParams,
98
100
  requestType: "json",
@@ -10,6 +10,8 @@ export declare namespace Agents {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<string | undefined>;
13
+ /** Override the X-Project header */
14
+ project?: core.Supplier<string | undefined>;
13
15
  fetcher?: core.FetchFunction;
14
16
  }
15
17
  interface RequestOptions {
@@ -19,6 +21,8 @@ export declare namespace Agents {
19
21
  maxRetries?: number;
20
22
  /** A hook to abort the request. */
21
23
  abortSignal?: AbortSignal;
24
+ /** Override the X-Project header */
25
+ project?: string | undefined;
22
26
  /** Additional headers to include in the request. */
23
27
  headers?: Record<string, string>;
24
28
  }
@@ -78,7 +78,9 @@ class Agents {
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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
80
80
  method: "POST",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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-Project": (yield core.Supplier.get(this._options.project)) != null
82
+ ? yield core.Supplier.get(this._options.project)
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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
84
  contentType: "application/json",
83
85
  requestType: "json",
84
86
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -10,6 +10,8 @@ export declare namespace Tools {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<string | undefined>;
13
+ /** Override the X-Project header */
14
+ project?: core.Supplier<string | undefined>;
13
15
  fetcher?: core.FetchFunction;
14
16
  }
15
17
  interface RequestOptions {
@@ -19,6 +21,8 @@ export declare namespace Tools {
19
21
  maxRetries?: number;
20
22
  /** A hook to abort the request. */
21
23
  abortSignal?: AbortSignal;
24
+ /** Override the X-Project header */
25
+ project?: string | undefined;
22
26
  /** Additional headers to include in the request. */
23
27
  headers?: Record<string, string>;
24
28
  }
@@ -76,7 +76,9 @@ 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.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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-Project": (yield core.Supplier.get(this._options.project)) != null
80
+ ? yield core.Supplier.get(this._options.project)
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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
82
  contentType: "application/json",
81
83
  requestType: "json",
82
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +143,9 @@ class Tools {
141
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
144
  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
145
  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.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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-Project": (yield core.Supplier.get(this._options.project)) != null
147
+ ? yield core.Supplier.get(this._options.project)
148
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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
149
  contentType: "application/json",
146
150
  requestType: "json",
147
151
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +205,9 @@ class Tools {
201
205
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
206
  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
207
  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.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
208
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
209
+ ? yield core.Supplier.get(this._options.project)
210
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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
211
  contentType: "application/json",
206
212
  requestType: "json",
207
213
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -272,7 +278,9 @@ class Tools {
272
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
279
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/count"),
274
280
  method: "GET",
275
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
281
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
282
+ ? yield core.Supplier.get(this._options.project)
283
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
284
  contentType: "application/json",
277
285
  queryParameters: _queryParams,
278
286
  requestType: "json",
@@ -349,7 +357,9 @@ class Tools {
349
357
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
358
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
351
359
  method: "GET",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
360
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
361
+ ? yield core.Supplier.get(this._options.project)
362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
353
363
  contentType: "application/json",
354
364
  queryParameters: _queryParams,
355
365
  requestType: "json",
@@ -417,7 +427,9 @@ class Tools {
417
427
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
428
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
419
429
  method: "POST",
420
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
430
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
+ ? yield core.Supplier.get(this._options.project)
432
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
421
433
  contentType: "application/json",
422
434
  requestType: "json",
423
435
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -485,7 +497,9 @@ class Tools {
485
497
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
486
498
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
487
499
  method: "PUT",
488
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
500
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
501
+ ? yield core.Supplier.get(this._options.project)
502
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
489
503
  contentType: "application/json",
490
504
  requestType: "json",
491
505
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +564,9 @@ class Tools {
550
564
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
551
565
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
552
566
  method: "POST",
553
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
567
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
568
+ ? yield core.Supplier.get(this._options.project)
569
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
554
570
  contentType: "application/json",
555
571
  requestType: "json",
556
572
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -620,7 +636,9 @@ class Tools {
620
636
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
621
637
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
622
638
  method: "POST",
623
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
639
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
640
+ ? yield core.Supplier.get(this._options.project)
641
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
624
642
  contentType: "application/json",
625
643
  requestType: "json",
626
644
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -687,7 +705,9 @@ class Tools {
687
705
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
688
706
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
689
707
  method: "GET",
690
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
708
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
709
+ ? yield core.Supplier.get(this._options.project)
710
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
691
711
  contentType: "application/json",
692
712
  requestType: "json",
693
713
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -752,7 +772,9 @@ class Tools {
752
772
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
753
773
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
754
774
  method: "GET",
755
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
775
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
776
+ ? yield core.Supplier.get(this._options.project)
777
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
756
778
  contentType: "application/json",
757
779
  requestType: "json",
758
780
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -817,7 +839,9 @@ class Tools {
817
839
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
818
840
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
819
841
  method: "POST",
820
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
842
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
843
+ ? yield core.Supplier.get(this._options.project)
844
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
821
845
  contentType: "application/json",
822
846
  requestType: "json",
823
847
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -883,7 +907,9 @@ class Tools {
883
907
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
908
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
885
909
  method: "GET",
886
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
910
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
911
+ ? yield core.Supplier.get(this._options.project)
912
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
887
913
  contentType: "application/json",
888
914
  requestType: "json",
889
915
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +978,9 @@ class Tools {
952
978
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
953
979
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
954
980
  method: "PUT",
955
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
981
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
982
+ ? yield core.Supplier.get(this._options.project)
983
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
956
984
  contentType: "application/json",
957
985
  requestType: "json",
958
986
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1046,9 @@ class Tools {
1018
1046
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1047
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
1020
1048
  method: "GET",
1021
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
1049
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1050
+ ? yield core.Supplier.get(this._options.project)
1051
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1022
1052
  contentType: "application/json",
1023
1053
  requestType: "json",
1024
1054
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1084,7 +1114,9 @@ class Tools {
1084
1114
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1085
1115
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1086
1116
  method: "POST",
1087
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
1117
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1118
+ ? yield core.Supplier.get(this._options.project)
1119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1088
1120
  contentType: "application/json",
1089
1121
  requestType: "json",
1090
1122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1149,7 +1181,9 @@ class Tools {
1149
1181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1150
1182
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1151
1183
  method: "DELETE",
1152
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
1184
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1185
+ ? yield core.Supplier.get(this._options.project)
1186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1153
1187
  contentType: "application/json",
1154
1188
  requestType: "json",
1155
1189
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1215,7 +1249,9 @@ class Tools {
1215
1249
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1216
1250
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1217
1251
  method: "PATCH",
1218
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
1252
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
+ ? yield core.Supplier.get(this._options.project)
1254
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
1219
1255
  contentType: "application/json",
1220
1256
  requestType: "json",
1221
1257
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1286,7 +1322,9 @@ class Tools {
1286
1322
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1287
1323
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers/test"),
1288
1324
  method: "POST",
1289
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "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),
1325
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1326
+ ? yield core.Supplier.get(this._options.project)
1327
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
1290
1328
  contentType: "application/json",
1291
1329
  requestType: "json",
1292
1330
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -10,6 +10,8 @@ export declare namespace Voice {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<string | undefined>;
13
+ /** Override the X-Project header */
14
+ project?: core.Supplier<string | undefined>;
13
15
  fetcher?: core.FetchFunction;
14
16
  }
15
17
  interface RequestOptions {
@@ -19,6 +21,8 @@ export declare namespace Voice {
19
21
  maxRetries?: number;
20
22
  /** A hook to abort the request. */
21
23
  abortSignal?: AbortSignal;
24
+ /** Override the X-Project header */
25
+ project?: string | undefined;
22
26
  /** Additional headers to include in the request. */
23
27
  headers?: Record<string, string>;
24
28
  }
@@ -80,7 +80,9 @@ class Voice {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.143", "User-Agent": "@letta-ai/letta-client/0.1.143", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
+ ? yield core.Supplier.get(this._options.project)
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
86
  contentType: "application/json",
85
87
  requestType: "json",
86
88
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -11,7 +11,7 @@ import { LlmConfig } from "../../../../types/LlmConfig";
11
11
  import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
12
12
  import { MessageCreate } from "../../../../types/MessageCreate";
13
13
  import { CreateAgentRequestResponseFormat } from "../../types/CreateAgentRequestResponseFormat";
14
- export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Omit<Letta.CreateAgentRequest, "project">>;
14
+ export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Letta.CreateAgentRequest>;
15
15
  export declare namespace CreateAgentRequest {
16
16
  interface Raw {
17
17
  name?: string | null;
@@ -74,7 +74,7 @@ exports.CreateAgentRequest = core.serialization.object({
74
74
  enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
75
75
  fromTemplate: core.serialization.property("from_template", core.serialization.string().optional()),
76
76
  template: core.serialization.boolean().optional(),
77
- createAgentRequestProject: core.serialization.property("project", core.serialization.string().optional()),
77
+ project: core.serialization.string().optional(),
78
78
  toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
79
79
  memoryVariables: core.serialization.property("memory_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
80
80
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
@@ -5,7 +5,7 @@ import * as serializers from "../../../../index";
5
5
  import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { GroupCreateManagerConfig } from "../../types/GroupCreateManagerConfig";
8
- export declare const GroupCreate: core.serialization.Schema<serializers.GroupCreate.Raw, Omit<Letta.GroupCreate, "project">>;
8
+ export declare const GroupCreate: core.serialization.Schema<serializers.GroupCreate.Raw, Letta.GroupCreate>;
9
9
  export declare namespace GroupCreate {
10
10
  interface Raw {
11
11
  agent_ids: string[];
@@ -5,7 +5,7 @@ import * as serializers from "../../../../index";
5
5
  import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { GroupUpdateManagerConfig } from "../../types/GroupUpdateManagerConfig";
8
- export declare const GroupUpdate: core.serialization.Schema<serializers.GroupUpdate.Raw, Omit<Letta.GroupUpdate, "project">>;
8
+ export declare const GroupUpdate: core.serialization.Schema<serializers.GroupUpdate.Raw, Letta.GroupUpdate>;
9
9
  export declare namespace GroupUpdate {
10
10
  interface Raw {
11
11
  agent_ids?: string[] | null;
@@ -6,7 +6,7 @@ import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { IdentityType } from "../../../../types/IdentityType";
8
8
  import { IdentityProperty } from "../../../../types/IdentityProperty";
9
- export declare const IdentityCreate: core.serialization.Schema<serializers.IdentityCreate.Raw, Omit<Letta.IdentityCreate, "project">>;
9
+ export declare const IdentityCreate: core.serialization.Schema<serializers.IdentityCreate.Raw, Letta.IdentityCreate>;
10
10
  export declare namespace IdentityCreate {
11
11
  interface Raw {
12
12
  identifier_key: string;
@@ -6,7 +6,7 @@ import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { IdentityType } from "../../../../types/IdentityType";
8
8
  import { IdentityProperty } from "../../../../types/IdentityProperty";
9
- export declare const IdentityUpsert: core.serialization.Schema<serializers.IdentityUpsert.Raw, Omit<Letta.IdentityUpsert, "project">>;
9
+ export declare const IdentityUpsert: core.serialization.Schema<serializers.IdentityUpsert.Raw, Letta.IdentityUpsert>;
10
10
  export declare namespace IdentityUpsert {
11
11
  interface Raw {
12
12
  identifier_key: string;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.143";
1
+ export declare const SDK_VERSION = "0.1.145";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.143";
4
+ exports.SDK_VERSION = "0.1.145";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.143",
3
+ "version": "0.1.145",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -4606,77 +4606,6 @@ await client.steps.retrieve("step_id");
4606
4606
  </dl>
4607
4607
  </details>
4608
4608
 
4609
- <details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">addFeedback</a>(stepId, { ...params }) -> Letta.Step</code></summary>
4610
- <dl>
4611
- <dd>
4612
-
4613
- #### 📝 Description
4614
-
4615
- <dl>
4616
- <dd>
4617
-
4618
- <dl>
4619
- <dd>
4620
-
4621
- Add feedback to a step.
4622
-
4623
- </dd>
4624
- </dl>
4625
- </dd>
4626
- </dl>
4627
-
4628
- #### 🔌 Usage
4629
-
4630
- <dl>
4631
- <dd>
4632
-
4633
- <dl>
4634
- <dd>
4635
-
4636
- ```typescript
4637
- await client.steps.addFeedback("step_id");
4638
- ```
4639
-
4640
- </dd>
4641
- </dl>
4642
- </dd>
4643
- </dl>
4644
-
4645
- #### ⚙️ Parameters
4646
-
4647
- <dl>
4648
- <dd>
4649
-
4650
- <dl>
4651
- <dd>
4652
-
4653
- **stepId:** `string`
4654
-
4655
- </dd>
4656
- </dl>
4657
-
4658
- <dl>
4659
- <dd>
4660
-
4661
- **request:** `Letta.AddFeedbackRequest`
4662
-
4663
- </dd>
4664
- </dl>
4665
-
4666
- <dl>
4667
- <dd>
4668
-
4669
- **requestOptions:** `Steps.RequestOptions`
4670
-
4671
- </dd>
4672
- </dl>
4673
- </dd>
4674
- </dl>
4675
-
4676
- </dd>
4677
- </dl>
4678
- </details>
4679
-
4680
4609
  ## Tags
4681
4610
 
4682
4611
  <details><summary><code>client.tags.<a href="/src/api/resources/tags/client/Client.ts">list</a>({ ...params }) -> string[]</code></summary>
@@ -8563,10 +8492,25 @@ await client.sources.passages.list("source_id");
8563
8492
 
8564
8493
  ## Steps Feedback
8565
8494
 
8566
- <details><summary><code>client.steps.feedback.<a href="/src/api/resources/steps/resources/feedback/client/Client.ts">add</a>(stepId) -> void</code></summary>
8495
+ <details><summary><code>client.steps.feedback.<a href="/src/api/resources/steps/resources/feedback/client/Client.ts">create</a>(stepId, { ...params }) -> Letta.Step</code></summary>
8567
8496
  <dl>
8568
8497
  <dd>
8569
8498
 
8499
+ #### 📝 Description
8500
+
8501
+ <dl>
8502
+ <dd>
8503
+
8504
+ <dl>
8505
+ <dd>
8506
+
8507
+ Add feedback to a step.
8508
+
8509
+ </dd>
8510
+ </dl>
8511
+ </dd>
8512
+ </dl>
8513
+
8570
8514
  #### 🔌 Usage
8571
8515
 
8572
8516
  <dl>
@@ -8576,7 +8520,7 @@ await client.sources.passages.list("source_id");
8576
8520
  <dd>
8577
8521
 
8578
8522
  ```typescript
8579
- await client.steps.feedback.add("step_id");
8523
+ await client.steps.feedback.create("step_id");
8580
8524
  ```
8581
8525
 
8582
8526
  </dd>
@@ -8600,6 +8544,14 @@ await client.steps.feedback.add("step_id");
8600
8544
  <dl>
8601
8545
  <dd>
8602
8546
 
8547
+ **request:** `Letta.steps.FeedbackCreateRequest`
8548
+
8549
+ </dd>
8550
+ </dl>
8551
+
8552
+ <dl>
8553
+ <dd>
8554
+
8603
8555
  **requestOptions:** `Feedback.RequestOptions`
8604
8556
 
8605
8557
  </dd>