@letta-ai/letta-client 0.1.47 → 0.1.49

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 (180) hide show
  1. package/api/resources/agents/client/Client.d.ts +27 -0
  2. package/api/resources/agents/client/Client.js +142 -8
  3. package/api/resources/agents/client/requests/BodyUploadAgentSerialized.d.ts +13 -0
  4. package/api/resources/agents/client/requests/BodyUploadAgentSerialized.js +5 -0
  5. package/api/resources/agents/client/requests/index.d.ts +1 -0
  6. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/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 +5 -5
  11. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  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/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  16. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
  17. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
  18. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
  19. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
  20. package/api/resources/agents/types/index.d.ts +2 -0
  21. package/api/resources/agents/types/index.js +2 -0
  22. package/api/resources/blocks/client/Client.js +6 -6
  23. package/api/resources/health/client/Client.js +1 -1
  24. package/api/resources/identities/client/Client.js +6 -6
  25. package/api/resources/jobs/client/Client.js +4 -4
  26. package/api/resources/models/client/Client.js +2 -2
  27. package/api/resources/providers/client/Client.js +4 -4
  28. package/api/resources/runs/client/Client.d.ts +23 -0
  29. package/api/resources/runs/client/Client.js +97 -6
  30. package/api/resources/runs/client/requests/ListRunStepsRequest.d.ts +25 -0
  31. package/api/resources/runs/client/requests/ListRunStepsRequest.js +5 -0
  32. package/api/resources/runs/client/requests/index.d.ts +1 -0
  33. package/api/resources/sources/client/Client.js +6 -6
  34. package/api/resources/sources/resources/files/client/Client.js +3 -3
  35. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  36. package/api/resources/steps/client/Client.js +2 -2
  37. package/api/resources/tag/client/Client.js +1 -1
  38. package/api/resources/templates/client/Client.js +1 -1
  39. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
  40. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
  41. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
  42. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
  43. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
  44. package/api/resources/templates/types/index.d.ts +2 -0
  45. package/api/resources/templates/types/index.js +2 -0
  46. package/api/resources/tools/client/Client.js +11 -11
  47. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  48. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  49. package/api/resources/voice/client/Client.js +1 -1
  50. package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  51. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  52. package/api/types/Tool.d.ts +2 -0
  53. package/api/types/ToolCreate.d.ts +2 -0
  54. package/core/index.d.ts +1 -1
  55. package/core/index.js +1 -1
  56. package/dist/api/resources/agents/client/Client.d.ts +27 -0
  57. package/dist/api/resources/agents/client/Client.js +142 -8
  58. package/dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.d.ts +13 -0
  59. package/dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js +5 -0
  60. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  61. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  62. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  66. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  67. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  69. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  70. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  71. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
  72. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
  73. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
  74. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
  75. package/dist/api/resources/agents/types/index.d.ts +2 -0
  76. package/dist/api/resources/agents/types/index.js +2 -0
  77. package/dist/api/resources/blocks/client/Client.js +6 -6
  78. package/dist/api/resources/health/client/Client.js +1 -1
  79. package/dist/api/resources/identities/client/Client.js +6 -6
  80. package/dist/api/resources/jobs/client/Client.js +4 -4
  81. package/dist/api/resources/models/client/Client.js +2 -2
  82. package/dist/api/resources/providers/client/Client.js +4 -4
  83. package/dist/api/resources/runs/client/Client.d.ts +23 -0
  84. package/dist/api/resources/runs/client/Client.js +97 -6
  85. package/dist/api/resources/runs/client/requests/ListRunStepsRequest.d.ts +25 -0
  86. package/dist/api/resources/runs/client/requests/ListRunStepsRequest.js +5 -0
  87. package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
  88. package/dist/api/resources/sources/client/Client.js +6 -6
  89. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  90. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  91. package/dist/api/resources/steps/client/Client.js +2 -2
  92. package/dist/api/resources/tag/client/Client.js +1 -1
  93. package/dist/api/resources/templates/client/Client.js +1 -1
  94. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
  95. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
  96. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
  97. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
  98. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
  99. package/dist/api/resources/templates/types/index.d.ts +2 -0
  100. package/dist/api/resources/templates/types/index.js +2 -0
  101. package/dist/api/resources/tools/client/Client.js +11 -11
  102. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  103. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  104. package/dist/api/resources/voice/client/Client.js +1 -1
  105. package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  106. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  107. package/dist/api/types/Tool.d.ts +2 -0
  108. package/dist/api/types/ToolCreate.d.ts +2 -0
  109. package/dist/core/index.d.ts +1 -1
  110. package/dist/core/index.js +1 -1
  111. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  112. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  113. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  114. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  115. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  116. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  117. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  118. package/dist/serialization/resources/agents/types/index.js +2 -0
  119. package/dist/serialization/resources/runs/client/index.d.ts +1 -0
  120. package/dist/serialization/resources/runs/client/index.js +2 -1
  121. package/dist/serialization/resources/runs/client/listRunSteps.d.ts +11 -0
  122. package/dist/serialization/resources/runs/client/listRunSteps.js +42 -0
  123. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  124. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  125. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  126. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  127. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  128. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  129. package/dist/serialization/resources/templates/types/index.d.ts +2 -0
  130. package/dist/serialization/resources/templates/types/index.js +2 -0
  131. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -0
  132. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -0
  133. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  134. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  135. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  136. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
  137. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  138. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
  139. package/dist/serialization/types/Tool.d.ts +1 -0
  140. package/dist/serialization/types/Tool.js +1 -0
  141. package/dist/serialization/types/ToolCreate.d.ts +1 -0
  142. package/dist/serialization/types/ToolCreate.js +1 -0
  143. package/dist/version.d.ts +1 -1
  144. package/dist/version.js +1 -1
  145. package/package.json +1 -1
  146. package/reference.md +215 -0
  147. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  148. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  149. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  150. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  151. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  152. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  153. package/serialization/resources/agents/types/index.d.ts +2 -0
  154. package/serialization/resources/agents/types/index.js +2 -0
  155. package/serialization/resources/runs/client/index.d.ts +1 -0
  156. package/serialization/resources/runs/client/index.js +2 -1
  157. package/serialization/resources/runs/client/listRunSteps.d.ts +11 -0
  158. package/serialization/resources/runs/client/listRunSteps.js +42 -0
  159. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  160. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  161. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  162. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  163. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  164. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  165. package/serialization/resources/templates/types/index.d.ts +2 -0
  166. package/serialization/resources/templates/types/index.js +2 -0
  167. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -0
  168. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -0
  169. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  170. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  171. package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  172. package/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
  173. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  174. package/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
  175. package/serialization/types/Tool.d.ts +1 -0
  176. package/serialization/types/Tool.js +1 -0
  177. package/serialization/types/ToolCreate.d.ts +1 -0
  178. package/serialization/types/ToolCreate.js +1 -0
  179. package/version.d.ts +1 -1
  180. package/version.js +1 -1
@@ -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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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,
@@ -100,7 +100,7 @@ class Steps {
100
100
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
101
101
  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"),
102
102
  method: "GET",
103
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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),
103
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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),
104
104
  contentType: "application/json",
105
105
  queryParameters: _queryParams,
106
106
  requestType: "json",
@@ -166,7 +166,7 @@ class Steps {
166
166
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
167
167
  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)}`),
168
168
  method: "GET",
169
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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),
169
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tag {
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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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",
@@ -75,7 +75,7 @@ class Templates {
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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -12,6 +12,7 @@ export interface TemplatesCreateAgentsResponseAgentsItemToolsItem {
12
12
  tags?: string[];
13
13
  sourceCode?: Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode;
14
14
  jsonSchema?: Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema;
15
+ argsJsonSchema?: Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema;
15
16
  returnCharLimit?: number;
16
17
  createdById?: Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById;
17
18
  lastUpdatedById?: Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById;
@@ -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 TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema = unknown | string | undefined | (Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem | undefined)[];
@@ -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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem = unknown | string | undefined;
@@ -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 });
@@ -104,6 +104,8 @@ export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCodeItem"
104
104
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode";
105
105
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchemaItem";
106
106
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema";
107
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem";
108
+ export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema";
107
109
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedByIdItem";
108
110
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById";
109
111
  export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedByIdItem";
@@ -120,6 +120,8 @@ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCo
120
120
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode"), exports);
121
121
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchemaItem"), exports);
122
122
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema"), exports);
123
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem"), exports);
124
+ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema"), exports);
123
125
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedByIdItem"), exports);
124
126
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById"), exports);
125
127
  __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedByIdItem"), exports);
@@ -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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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" }),
@@ -614,7 +614,7 @@ class Tools {
614
614
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
615
615
  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"),
616
616
  method: "GET",
617
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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),
617
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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),
618
618
  contentType: "application/json",
619
619
  requestType: "json",
620
620
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -679,7 +679,7 @@ class Tools {
679
679
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
680
680
  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`),
681
681
  method: "GET",
682
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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),
682
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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),
683
683
  contentType: "application/json",
684
684
  requestType: "json",
685
685
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -744,7 +744,7 @@ class Tools {
744
744
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
745
745
  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)}`),
746
746
  method: "POST",
747
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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),
747
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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),
748
748
  contentType: "application/json",
749
749
  requestType: "json",
750
750
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -21,4 +21,6 @@ export interface ToolRunFromSource {
21
21
  name?: string;
22
22
  /** The type of the source code. */
23
23
  sourceType?: string;
24
+ /** The args JSON schema of the function. */
25
+ argsJsonSchema?: Record<string, unknown>;
24
26
  }
@@ -16,6 +16,8 @@ export interface ToolUpdate {
16
16
  sourceType?: string;
17
17
  /** The JSON schema of the function (auto-generated from source_code if not provided) */
18
18
  jsonSchema?: Record<string, unknown>;
19
+ /** The args JSON schema of the function. */
20
+ argsJsonSchema?: Record<string, unknown>;
19
21
  /** The maximum number of characters in the response. */
20
22
  returnCharLimit?: number;
21
23
  }
@@ -80,7 +80,7 @@ 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/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.47", "User-Agent": "@letta-ai/letta-client/0.1.47", "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),
83
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.49", "User-Agent": "@letta-ai/letta-client/0.1.49", "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),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CompletionCreateParamsNonStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
4
+ export type CompletionCreateParamsNonStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CompletionCreateParamsStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
4
+ export type CompletionCreateParamsStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
@@ -29,6 +29,8 @@ export interface Tool {
29
29
  sourceCode?: string;
30
30
  /** The JSON schema of the function. */
31
31
  jsonSchema?: Record<string, unknown>;
32
+ /** The args JSON schema of the function. */
33
+ argsJsonSchema?: Record<string, unknown>;
32
34
  /** The maximum number of characters in the response. */
33
35
  returnCharLimit?: number;
34
36
  /** The id of the user that made this Tool. */
@@ -12,6 +12,8 @@ export interface ToolCreate {
12
12
  sourceType?: string;
13
13
  /** The JSON schema of the function (auto-generated from source_code if not provided) */
14
14
  jsonSchema?: Record<string, unknown>;
15
+ /** The args JSON schema of the function. */
16
+ argsJsonSchema?: Record<string, unknown>;
15
17
  /** The maximum number of characters in the response. */
16
18
  returnCharLimit?: number;
17
19
  }
package/core/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "./fetcher";
2
2
  export * from "./runtime";
3
- export * from "./streaming-fetcher";
4
3
  export * from "./form-data-utils";
4
+ export * from "./streaming-fetcher";
5
5
  export * as serialization from "./schemas";
package/core/index.js CHANGED
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.serialization = void 0;
40
40
  __exportStar(require("./fetcher"), exports);
41
41
  __exportStar(require("./runtime"), exports);
42
- __exportStar(require("./streaming-fetcher"), exports);
43
42
  __exportStar(require("./form-data-utils"), exports);
43
+ __exportStar(require("./streaming-fetcher"), exports);
44
44
  exports.serialization = __importStar(require("./schemas"));
@@ -4,6 +4,8 @@
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import * as Letta from "../../../index";
7
+ import * as fs from "fs";
8
+ import { Blob } from "buffer";
7
9
  import { Context } from "../resources/context/client/Client";
8
10
  import { Tools } from "../resources/tools/client/Client";
9
11
  import { Sources } from "../resources/sources/client/Client";
@@ -78,6 +80,31 @@ export declare class Agents {
78
80
  * await client.agents.create()
79
81
  */
80
82
  create(request?: Letta.CreateAgentRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
83
+ /**
84
+ * Download the serialized JSON representation of an agent.
85
+ *
86
+ * @param {string} agentId
87
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link Letta.UnprocessableEntityError}
90
+ *
91
+ * @example
92
+ * await client.agents.downloadAgentSerialized("agent_id")
93
+ */
94
+ downloadAgentSerialized(agentId: string, requestOptions?: Agents.RequestOptions): Promise<unknown>;
95
+ /**
96
+ * Upload a serialized agent JSON file and recreate the agent in the system.
97
+ *
98
+ * @param {File | fs.ReadStream | Blob} file
99
+ * @param {Letta.BodyUploadAgentSerialized} request
100
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
101
+ *
102
+ * @throws {@link Letta.UnprocessableEntityError}
103
+ *
104
+ * @example
105
+ * await client.agents.uploadAgentSerialized(fs.createReadStream("/path/to/your/file"), {})
106
+ */
107
+ uploadAgentSerialized(file: File | fs.ReadStream | Blob, request: Letta.BodyUploadAgentSerialized, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
81
108
  /**
82
109
  * Get the state of the agent.
83
110
  *