@letta-ai/letta-client 0.1.101 → 0.1.103

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 (174) hide show
  1. package/api/resources/agents/client/Client.d.ts +4 -4
  2. package/api/resources/agents/client/Client.js +13 -13
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  11. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  15. package/api/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +5 -0
  16. package/api/resources/agents/types/CreateAgentRequestResponseFormat.js +5 -0
  17. package/api/resources/agents/types/UpdateAgentResponseFormat.d.ts +5 -0
  18. package/api/resources/agents/types/UpdateAgentResponseFormat.js +5 -0
  19. package/api/resources/agents/types/index.d.ts +2 -0
  20. package/api/resources/agents/types/index.js +2 -0
  21. package/api/resources/batches/client/Client.js +4 -4
  22. package/api/resources/blocks/client/Client.js +5 -5
  23. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  24. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  25. package/api/resources/embeddings/client/Client.js +1 -1
  26. package/api/resources/groups/client/Client.js +5 -5
  27. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  28. package/api/resources/health/client/Client.js +1 -1
  29. package/api/resources/identities/client/Client.js +6 -6
  30. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  31. package/api/resources/jobs/client/Client.js +4 -4
  32. package/api/resources/models/client/Client.js +1 -1
  33. package/api/resources/projects/client/Client.js +1 -1
  34. package/api/resources/providers/client/Client.js +4 -4
  35. package/api/resources/runs/client/Client.js +4 -4
  36. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  37. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  38. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  39. package/api/resources/sources/client/Client.js +6 -6
  40. package/api/resources/sources/resources/files/client/Client.js +3 -3
  41. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  42. package/api/resources/steps/client/Client.js +3 -3
  43. package/api/resources/tags/client/Client.js +1 -1
  44. package/api/resources/templates/client/Client.js +1 -1
  45. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  46. package/api/resources/tools/client/Client.js +16 -16
  47. package/api/resources/voice/client/Client.js +1 -1
  48. package/api/types/AgentState.d.ts +2 -0
  49. package/api/types/AgentStateResponseFormat.d.ts +5 -0
  50. package/api/types/AgentStateResponseFormat.js +5 -0
  51. package/api/types/JsonObjectResponseFormat.d.ts +9 -0
  52. package/api/types/JsonObjectResponseFormat.js +5 -0
  53. package/api/types/JsonSchemaResponseFormat.d.ts +11 -0
  54. package/api/types/JsonSchemaResponseFormat.js +5 -0
  55. package/api/types/TextResponseFormat.d.ts +9 -0
  56. package/api/types/TextResponseFormat.js +5 -0
  57. package/api/types/index.d.ts +4 -0
  58. package/api/types/index.js +4 -0
  59. package/dist/api/resources/agents/client/Client.d.ts +4 -4
  60. package/dist/api/resources/agents/client/Client.js +13 -13
  61. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  62. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  63. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  64. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  67. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  68. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  69. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  70. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  71. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  72. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  73. package/dist/api/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +5 -0
  74. package/dist/api/resources/agents/types/CreateAgentRequestResponseFormat.js +5 -0
  75. package/dist/api/resources/agents/types/UpdateAgentResponseFormat.d.ts +5 -0
  76. package/dist/api/resources/agents/types/UpdateAgentResponseFormat.js +5 -0
  77. package/dist/api/resources/agents/types/index.d.ts +2 -0
  78. package/dist/api/resources/agents/types/index.js +2 -0
  79. package/dist/api/resources/batches/client/Client.js +4 -4
  80. package/dist/api/resources/blocks/client/Client.js +5 -5
  81. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  82. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  83. package/dist/api/resources/embeddings/client/Client.js +1 -1
  84. package/dist/api/resources/groups/client/Client.js +5 -5
  85. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  86. package/dist/api/resources/health/client/Client.js +1 -1
  87. package/dist/api/resources/identities/client/Client.js +6 -6
  88. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  89. package/dist/api/resources/jobs/client/Client.js +4 -4
  90. package/dist/api/resources/models/client/Client.js +1 -1
  91. package/dist/api/resources/projects/client/Client.js +1 -1
  92. package/dist/api/resources/providers/client/Client.js +4 -4
  93. package/dist/api/resources/runs/client/Client.js +4 -4
  94. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  95. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  96. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  97. package/dist/api/resources/sources/client/Client.js +6 -6
  98. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  99. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  100. package/dist/api/resources/steps/client/Client.js +3 -3
  101. package/dist/api/resources/tags/client/Client.js +1 -1
  102. package/dist/api/resources/templates/client/Client.js +1 -1
  103. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  104. package/dist/api/resources/tools/client/Client.js +16 -16
  105. package/dist/api/resources/voice/client/Client.js +1 -1
  106. package/dist/api/types/AgentState.d.ts +2 -0
  107. package/dist/api/types/AgentStateResponseFormat.d.ts +5 -0
  108. package/dist/api/types/AgentStateResponseFormat.js +5 -0
  109. package/dist/api/types/JsonObjectResponseFormat.d.ts +9 -0
  110. package/dist/api/types/JsonObjectResponseFormat.js +5 -0
  111. package/dist/api/types/JsonSchemaResponseFormat.d.ts +11 -0
  112. package/dist/api/types/JsonSchemaResponseFormat.js +5 -0
  113. package/dist/api/types/TextResponseFormat.d.ts +9 -0
  114. package/dist/api/types/TextResponseFormat.js +5 -0
  115. package/dist/api/types/index.d.ts +4 -0
  116. package/dist/api/types/index.js +4 -0
  117. package/dist/serialization/resources/agents/client/{export.d.ts → exportFile.d.ts} +1 -1
  118. package/dist/serialization/resources/agents/client/index.d.ts +1 -1
  119. package/dist/serialization/resources/agents/client/index.js +2 -2
  120. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  121. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
  122. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  123. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  124. package/dist/serialization/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +13 -0
  125. package/dist/serialization/resources/agents/types/CreateAgentRequestResponseFormat.js +44 -0
  126. package/dist/serialization/resources/agents/types/UpdateAgentResponseFormat.d.ts +13 -0
  127. package/dist/serialization/resources/agents/types/UpdateAgentResponseFormat.js +44 -0
  128. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  129. package/dist/serialization/resources/agents/types/index.js +2 -0
  130. package/dist/serialization/types/AgentState.d.ts +2 -0
  131. package/dist/serialization/types/AgentState.js +2 -0
  132. package/dist/serialization/types/AgentStateResponseFormat.d.ts +13 -0
  133. package/dist/serialization/types/AgentStateResponseFormat.js +44 -0
  134. package/dist/serialization/types/JsonObjectResponseFormat.d.ts +12 -0
  135. package/dist/serialization/types/JsonObjectResponseFormat.js +43 -0
  136. package/dist/serialization/types/JsonSchemaResponseFormat.d.ts +13 -0
  137. package/dist/serialization/types/JsonSchemaResponseFormat.js +44 -0
  138. package/dist/serialization/types/TextResponseFormat.d.ts +12 -0
  139. package/dist/serialization/types/TextResponseFormat.js +43 -0
  140. package/dist/serialization/types/index.d.ts +4 -0
  141. package/dist/serialization/types/index.js +4 -0
  142. package/dist/version.d.ts +1 -1
  143. package/dist/version.js +1 -1
  144. package/package.json +1 -1
  145. package/reference.md +4 -4
  146. package/serialization/resources/agents/client/{export.d.ts → exportFile.d.ts} +1 -1
  147. package/serialization/resources/agents/client/index.d.ts +1 -1
  148. package/serialization/resources/agents/client/index.js +2 -2
  149. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  150. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
  151. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  152. package/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  153. package/serialization/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +13 -0
  154. package/serialization/resources/agents/types/CreateAgentRequestResponseFormat.js +44 -0
  155. package/serialization/resources/agents/types/UpdateAgentResponseFormat.d.ts +13 -0
  156. package/serialization/resources/agents/types/UpdateAgentResponseFormat.js +44 -0
  157. package/serialization/resources/agents/types/index.d.ts +2 -0
  158. package/serialization/resources/agents/types/index.js +2 -0
  159. package/serialization/types/AgentState.d.ts +2 -0
  160. package/serialization/types/AgentState.js +2 -0
  161. package/serialization/types/AgentStateResponseFormat.d.ts +13 -0
  162. package/serialization/types/AgentStateResponseFormat.js +44 -0
  163. package/serialization/types/JsonObjectResponseFormat.d.ts +12 -0
  164. package/serialization/types/JsonObjectResponseFormat.js +43 -0
  165. package/serialization/types/JsonSchemaResponseFormat.d.ts +13 -0
  166. package/serialization/types/JsonSchemaResponseFormat.js +44 -0
  167. package/serialization/types/TextResponseFormat.d.ts +12 -0
  168. package/serialization/types/TextResponseFormat.js +43 -0
  169. package/serialization/types/index.d.ts +4 -0
  170. package/serialization/types/index.js +4 -0
  171. package/version.d.ts +1 -1
  172. package/version.js +1 -1
  173. /package/dist/serialization/resources/agents/client/{export.js → exportFile.js} +0 -0
  174. /package/serialization/resources/agents/client/{export.js → exportFile.js} +0 -0
@@ -80,7 +80,7 @@ class Files {
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/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  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/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
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/sources/${encodeURIComponent(sourceId)}/passages`),
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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Steps {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  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/steps"),
105
105
  method: "GET",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -169,7 +169,7 @@ class Steps {
169
169
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
170
  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/steps/${encodeURIComponent(stepId)}`),
171
171
  method: "GET",
172
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
172
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -229,7 +229,7 @@ class Steps {
229
229
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
230
230
  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/steps/"),
231
231
  method: "GET",
232
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
232
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
233
233
  contentType: "application/json",
234
234
  requestType: "json",
235
235
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tags {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  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/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -92,7 +92,7 @@ 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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -75,7 +75,7 @@ class Agents {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  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`),
77
77
  method: "POST",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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
  requestType: "json",
81
81
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -278,7 +278,7 @@ class Tools {
278
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
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/"),
280
280
  method: "GET",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
284
284
  requestType: "json",
@@ -346,7 +346,7 @@ class Tools {
346
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
347
  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/"),
348
348
  method: "POST",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
349
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Tools {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  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/"),
416
416
  method: "PUT",
417
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
417
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
418
418
  contentType: "application/json",
419
419
  requestType: "json",
420
420
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -479,7 +479,7 @@ class Tools {
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  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"),
481
481
  method: "POST",
482
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
482
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -549,7 +549,7 @@ class Tools {
549
549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
550
550
  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"),
551
551
  method: "POST",
552
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
552
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
553
553
  contentType: "application/json",
554
554
  requestType: "json",
555
555
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -616,7 +616,7 @@ class Tools {
616
616
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
617
617
  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"),
618
618
  method: "GET",
619
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
619
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
620
620
  contentType: "application/json",
621
621
  requestType: "json",
622
622
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -681,7 +681,7 @@ class Tools {
681
681
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
682
682
  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`),
683
683
  method: "GET",
684
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
684
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
685
685
  contentType: "application/json",
686
686
  requestType: "json",
687
687
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -746,7 +746,7 @@ class Tools {
746
746
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
747
747
  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)}`),
748
748
  method: "POST",
749
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
749
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
750
750
  contentType: "application/json",
751
751
  requestType: "json",
752
752
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -812,7 +812,7 @@ class Tools {
812
812
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
813
813
  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"),
814
814
  method: "GET",
815
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
815
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
816
816
  contentType: "application/json",
817
817
  requestType: "json",
818
818
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -881,7 +881,7 @@ class Tools {
881
881
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
882
882
  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"),
883
883
  method: "PUT",
884
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
884
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
885
885
  contentType: "application/json",
886
886
  requestType: "json",
887
887
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -947,7 +947,7 @@ class Tools {
947
947
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
948
948
  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`),
949
949
  method: "GET",
950
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
950
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
951
951
  contentType: "application/json",
952
952
  requestType: "json",
953
953
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1013,7 +1013,7 @@ class Tools {
1013
1013
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1014
1014
  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)}`),
1015
1015
  method: "POST",
1016
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
1016
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
1017
1017
  contentType: "application/json",
1018
1018
  requestType: "json",
1019
1019
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1078,7 +1078,7 @@ class Tools {
1078
1078
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1079
1079
  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)}`),
1080
1080
  method: "DELETE",
1081
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
1081
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
1082
1082
  contentType: "application/json",
1083
1083
  requestType: "json",
1084
1084
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -41,6 +41,8 @@ export interface AgentState {
41
41
  llmConfig: Letta.LlmConfig;
42
42
  /** The embedding configuration used by the agent. */
43
43
  embeddingConfig: Letta.EmbeddingConfig;
44
+ /** The response format used by the agent when returning from `send_message`. */
45
+ responseFormat?: Letta.AgentStateResponseFormat;
44
46
  /** The description of the agent. */
45
47
  description?: string;
46
48
  /** The metadata of the agent. */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type AgentStateResponseFormat = Letta.JsonObjectResponseFormat | Letta.JsonSchemaResponseFormat | Letta.TextResponseFormat;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response format for JSON object responses.
6
+ */
7
+ export interface JsonObjectResponseFormat {
8
+ type: "json_object";
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response format for JSON schema-based responses.
6
+ */
7
+ export interface JsonSchemaResponseFormat {
8
+ type: "json_schema";
9
+ /** The JSON schema of the response. */
10
+ jsonSchema: Record<string, unknown>;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response format for plain text responses.
6
+ */
7
+ export interface TextResponseFormat {
8
+ type: "text";
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,6 +10,7 @@ export * from "./AgentEnvironmentVariable";
10
10
  export * from "./AgentSchemaToolRulesItem";
11
11
  export * from "./AgentSchema";
12
12
  export * from "./AgentStateToolRulesItem";
13
+ export * from "./AgentStateResponseFormat";
13
14
  export * from "./AgentState";
14
15
  export * from "./AgentType";
15
16
  export * from "./AppAuthSchemeAuthMode";
@@ -113,6 +114,8 @@ export * from "./JsonSchema";
113
114
  export * from "./Job";
114
115
  export * from "./JobStatus";
115
116
  export * from "./JobType";
117
+ export * from "./JsonObjectResponseFormat";
118
+ export * from "./JsonSchemaResponseFormat";
116
119
  export * from "./LlmConfigModelEndpointType";
117
120
  export * from "./LlmConfigReasoningEffort";
118
121
  export * from "./LlmConfig";
@@ -177,6 +180,7 @@ export * from "./SystemMessage";
177
180
  export * from "./TagSchema";
178
181
  export * from "./TerminalToolRule";
179
182
  export * from "./TextContent";
183
+ export * from "./TextResponseFormat";
180
184
  export * from "./Tool";
181
185
  export * from "./ToolCall";
182
186
  export * from "./ToolCallContent";
@@ -26,6 +26,7 @@ __exportStar(require("./AgentEnvironmentVariable"), exports);
26
26
  __exportStar(require("./AgentSchemaToolRulesItem"), exports);
27
27
  __exportStar(require("./AgentSchema"), exports);
28
28
  __exportStar(require("./AgentStateToolRulesItem"), exports);
29
+ __exportStar(require("./AgentStateResponseFormat"), exports);
29
30
  __exportStar(require("./AgentState"), exports);
30
31
  __exportStar(require("./AgentType"), exports);
31
32
  __exportStar(require("./AppAuthSchemeAuthMode"), exports);
@@ -129,6 +130,8 @@ __exportStar(require("./JsonSchema"), exports);
129
130
  __exportStar(require("./Job"), exports);
130
131
  __exportStar(require("./JobStatus"), exports);
131
132
  __exportStar(require("./JobType"), exports);
133
+ __exportStar(require("./JsonObjectResponseFormat"), exports);
134
+ __exportStar(require("./JsonSchemaResponseFormat"), exports);
132
135
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
133
136
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
134
137
  __exportStar(require("./LlmConfig"), exports);
@@ -193,6 +196,7 @@ __exportStar(require("./SystemMessage"), exports);
193
196
  __exportStar(require("./TagSchema"), exports);
194
197
  __exportStar(require("./TerminalToolRule"), exports);
195
198
  __exportStar(require("./TextContent"), exports);
199
+ __exportStar(require("./TextResponseFormat"), exports);
196
200
  __exportStar(require("./Tool"), exports);
197
201
  __exportStar(require("./ToolCall"), exports);
198
202
  __exportStar(require("./ToolCallContent"), exports);
@@ -94,9 +94,9 @@ export declare class Agents {
94
94
  * @throws {@link Letta.UnprocessableEntityError}
95
95
  *
96
96
  * @example
97
- * await client.agents.export("agent_id")
97
+ * await client.agents.exportFile("agent_id")
98
98
  */
99
- export(agentId: string, requestOptions?: Agents.RequestOptions): Promise<string>;
99
+ exportFile(agentId: string, requestOptions?: Agents.RequestOptions): Promise<string>;
100
100
  /**
101
101
  * Import a serialized agent file and recreate the agent in the system.
102
102
  *
@@ -107,9 +107,9 @@ export declare class Agents {
107
107
  * @throws {@link Letta.UnprocessableEntityError}
108
108
  *
109
109
  * @example
110
- * await client.agents.import(fs.createReadStream("/path/to/your/file"), {})
110
+ * await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {})
111
111
  */
112
- import(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
112
+ importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
113
113
  /**
114
114
  * Get the state of the agent.
115
115
  *
@@ -199,7 +199,7 @@ class Agents {
199
199
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
200
200
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
201
201
  method: "GET",
202
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
202
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
203
203
  contentType: "application/json",
204
204
  queryParameters: _queryParams,
205
205
  requestType: "json",
@@ -266,7 +266,7 @@ class Agents {
266
266
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
267
267
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
268
268
  method: "POST",
269
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (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.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
270
  contentType: "application/json",
271
271
  requestType: "json",
272
272
  body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -324,15 +324,15 @@ class Agents {
324
324
  * @throws {@link Letta.UnprocessableEntityError}
325
325
  *
326
326
  * @example
327
- * await client.agents.export("agent_id")
327
+ * await client.agents.exportFile("agent_id")
328
328
  */
329
- export(agentId, requestOptions) {
329
+ exportFile(agentId, requestOptions) {
330
330
  return __awaiter(this, void 0, void 0, function* () {
331
331
  var _a, _b, _c;
332
332
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
333
333
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/export`),
334
334
  method: "GET",
335
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
335
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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
336
  contentType: "application/json",
337
337
  requestType: "json",
338
338
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -340,7 +340,7 @@ class Agents {
340
340
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
341
341
  });
342
342
  if (_response.ok) {
343
- return serializers.agents.export.Response.parseOrThrow(_response.body, {
343
+ return serializers.agents.exportFile.Response.parseOrThrow(_response.body, {
344
344
  unrecognizedObjectKeys: "passthrough",
345
345
  allowUnrecognizedUnionMembers: true,
346
346
  allowUnrecognizedEnumValues: true,
@@ -390,9 +390,9 @@ class Agents {
390
390
  * @throws {@link Letta.UnprocessableEntityError}
391
391
  *
392
392
  * @example
393
- * await client.agents.import(fs.createReadStream("/path/to/your/file"), {})
393
+ * await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {})
394
394
  */
395
- import(file, request, requestOptions) {
395
+ importFile(file, request, requestOptions) {
396
396
  return __awaiter(this, void 0, void 0, function* () {
397
397
  var _a, _b, _c;
398
398
  const _queryParams = {};
@@ -414,7 +414,7 @@ class Agents {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/import"),
416
416
  method: "POST",
417
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
417
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
418
418
  queryParameters: _queryParams,
419
419
  requestType: "file",
420
420
  duplex: _maybeEncodedRequest.duplex,
@@ -481,7 +481,7 @@ class Agents {
481
481
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
482
482
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
483
483
  method: "GET",
484
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
484
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
485
485
  contentType: "application/json",
486
486
  requestType: "json",
487
487
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -546,7 +546,7 @@ class Agents {
546
546
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
547
547
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
548
548
  method: "DELETE",
549
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
549
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
550
550
  contentType: "application/json",
551
551
  requestType: "json",
552
552
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -606,7 +606,7 @@ class Agents {
606
606
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
607
607
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
608
608
  method: "PATCH",
609
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
609
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
610
610
  contentType: "application/json",
611
611
  requestType: "json",
612
612
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -672,7 +672,7 @@ class Agents {
672
672
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
673
673
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/search"),
674
674
  method: "POST",
675
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
675
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.103", "User-Agent": "@letta-ai/letta-client/0.1.103", "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),
676
676
  contentType: "application/json",
677
677
  requestType: "json",
678
678
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,4 +80,6 @@ export interface CreateAgentRequest {
80
80
  messageBufferAutoclear?: boolean;
81
81
  /** If set to True, memory management will move to a background agent thread. */
82
82
  enableSleeptime?: boolean;
83
+ /** The response format for the agent. */
84
+ responseFormat?: Letta.CreateAgentRequestResponseFormat;
83
85
  }
@@ -49,4 +49,6 @@ export interface UpdateAgent {
49
49
  embedding?: string;
50
50
  /** If set to True, memory management will move to a background agent thread. */
51
51
  enableSleeptime?: boolean;
52
+ /** The response format for the agent. */
53
+ responseFormat?: Letta.UpdateAgentResponseFormat;
52
54
  }