@letta-ai/letta-client 0.1.46 → 0.1.48

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 (192) hide show
  1. package/api/resources/agents/client/Client.js +8 -8
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  7. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.d.ts +1 -2
  12. package/api/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.js +0 -1
  13. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  14. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
  15. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
  16. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
  17. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
  18. package/api/resources/agents/types/index.d.ts +2 -0
  19. package/api/resources/agents/types/index.js +2 -0
  20. package/api/resources/blocks/client/Client.js +6 -6
  21. package/api/resources/health/client/Client.js +1 -1
  22. package/api/resources/identities/client/Client.js +6 -6
  23. package/api/resources/jobs/client/Client.js +4 -4
  24. package/api/resources/models/client/Client.js +2 -2
  25. package/api/resources/providers/client/Client.js +4 -4
  26. package/api/resources/runs/client/Client.d.ts +23 -0
  27. package/api/resources/runs/client/Client.js +97 -6
  28. package/api/resources/runs/client/requests/ListRunStepsRequest.d.ts +25 -0
  29. package/api/resources/runs/client/requests/ListRunStepsRequest.js +5 -0
  30. package/api/resources/runs/client/requests/index.d.ts +1 -0
  31. package/api/resources/sources/client/Client.js +6 -6
  32. package/api/resources/sources/resources/files/client/Client.js +3 -3
  33. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  34. package/api/resources/steps/client/Client.js +2 -2
  35. package/api/resources/tag/client/Client.js +1 -1
  36. package/api/resources/templates/client/Client.js +1 -1
  37. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.d.ts +1 -2
  38. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.js +0 -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/AgentType.d.ts +1 -2
  51. package/api/types/AgentType.js +0 -1
  52. package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  53. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  54. package/api/types/Tool.d.ts +2 -0
  55. package/api/types/ToolCreate.d.ts +2 -0
  56. package/dist/api/resources/agents/client/Client.js +8 -8
  57. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  58. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  62. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  63. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  64. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  65. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  66. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.d.ts +1 -2
  67. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.js +0 -1
  68. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  69. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
  70. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
  71. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
  72. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
  73. package/dist/api/resources/agents/types/index.d.ts +2 -0
  74. package/dist/api/resources/agents/types/index.js +2 -0
  75. package/dist/api/resources/blocks/client/Client.js +6 -6
  76. package/dist/api/resources/health/client/Client.js +1 -1
  77. package/dist/api/resources/identities/client/Client.js +6 -6
  78. package/dist/api/resources/jobs/client/Client.js +4 -4
  79. package/dist/api/resources/models/client/Client.js +2 -2
  80. package/dist/api/resources/providers/client/Client.js +4 -4
  81. package/dist/api/resources/runs/client/Client.d.ts +23 -0
  82. package/dist/api/resources/runs/client/Client.js +97 -6
  83. package/dist/api/resources/runs/client/requests/ListRunStepsRequest.d.ts +25 -0
  84. package/dist/api/resources/runs/client/requests/ListRunStepsRequest.js +5 -0
  85. package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
  86. package/dist/api/resources/sources/client/Client.js +6 -6
  87. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  88. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  89. package/dist/api/resources/steps/client/Client.js +2 -2
  90. package/dist/api/resources/tag/client/Client.js +1 -1
  91. package/dist/api/resources/templates/client/Client.js +1 -1
  92. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.d.ts +1 -2
  93. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.js +0 -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/AgentType.d.ts +1 -2
  106. package/dist/api/types/AgentType.js +0 -1
  107. package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  108. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  109. package/dist/api/types/Tool.d.ts +2 -0
  110. package/dist/api/types/ToolCreate.d.ts +2 -0
  111. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.d.ts +1 -1
  112. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.js +1 -1
  113. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  114. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  115. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  116. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  117. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  118. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  119. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  120. package/dist/serialization/resources/agents/types/index.js +2 -0
  121. package/dist/serialization/resources/runs/client/index.d.ts +1 -0
  122. package/dist/serialization/resources/runs/client/index.js +2 -1
  123. package/dist/serialization/resources/runs/client/listRunSteps.d.ts +11 -0
  124. package/dist/serialization/resources/runs/client/listRunSteps.js +42 -0
  125. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.d.ts +1 -1
  126. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.js +1 -1
  127. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  128. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  129. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  130. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  131. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  132. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  133. package/dist/serialization/resources/templates/types/index.d.ts +2 -0
  134. package/dist/serialization/resources/templates/types/index.js +2 -0
  135. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -0
  136. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -0
  137. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  138. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  139. package/dist/serialization/types/AgentType.d.ts +1 -1
  140. package/dist/serialization/types/AgentType.js +1 -1
  141. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  142. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
  143. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  144. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
  145. package/dist/serialization/types/Tool.d.ts +1 -0
  146. package/dist/serialization/types/Tool.js +1 -0
  147. package/dist/serialization/types/ToolCreate.d.ts +1 -0
  148. package/dist/serialization/types/ToolCreate.js +1 -0
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +81 -0
  153. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.d.ts +1 -1
  154. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemAgentType.js +1 -1
  155. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  156. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  157. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  158. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  159. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  160. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  161. package/serialization/resources/agents/types/index.d.ts +2 -0
  162. package/serialization/resources/agents/types/index.js +2 -0
  163. package/serialization/resources/runs/client/index.d.ts +1 -0
  164. package/serialization/resources/runs/client/index.js +2 -1
  165. package/serialization/resources/runs/client/listRunSteps.d.ts +11 -0
  166. package/serialization/resources/runs/client/listRunSteps.js +42 -0
  167. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.d.ts +1 -1
  168. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemAgentType.js +1 -1
  169. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  170. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  171. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
  172. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
  173. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
  174. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
  175. package/serialization/resources/templates/types/index.d.ts +2 -0
  176. package/serialization/resources/templates/types/index.js +2 -0
  177. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -0
  178. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -0
  179. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  180. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  181. package/serialization/types/AgentType.d.ts +1 -1
  182. package/serialization/types/AgentType.js +1 -1
  183. package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  184. package/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
  185. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  186. package/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
  187. package/serialization/types/Tool.d.ts +1 -0
  188. package/serialization/types/Tool.js +1 -0
  189. package/serialization/types/ToolCreate.d.ts +1 -0
  190. package/serialization/types/ToolCreate.js +1 -0
  191. package/version.d.ts +1 -1
  192. package/version.js +1 -1
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ListRunStepsRequest {
9
+ /**
10
+ * Cursor for pagination
11
+ */
12
+ before?: string;
13
+ /**
14
+ * Cursor for pagination
15
+ */
16
+ after?: string;
17
+ /**
18
+ * Maximum number of messages to return
19
+ */
20
+ limit?: number;
21
+ /**
22
+ * Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
23
+ */
24
+ order?: string;
25
+ }
@@ -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 });
@@ -1 +1,2 @@
1
1
  export { type ListRunMessagesRequest } from "./ListRunMessagesRequest";
2
+ export { type ListRunStepsRequest } from "./ListRunStepsRequest";
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  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)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  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)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  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)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  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/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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" }),
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TemplatesCreateAgentsResponseAgentsItemAgentType = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent" | "chat_only_agent";
4
+ export type TemplatesCreateAgentsResponseAgentsItemAgentType = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent";
5
5
  export declare const TemplatesCreateAgentsResponseAgentsItemAgentType: {
6
6
  readonly MemgptAgent: "memgpt_agent";
7
7
  readonly SplitThreadAgent: "split_thread_agent";
8
8
  readonly OfflineMemoryAgent: "offline_memory_agent";
9
- readonly ChatOnlyAgent: "chat_only_agent";
10
9
  };
@@ -8,5 +8,4 @@ exports.TemplatesCreateAgentsResponseAgentsItemAgentType = {
8
8
  MemgptAgent: "memgpt_agent",
9
9
  SplitThreadAgent: "split_thread_agent",
10
10
  OfflineMemoryAgent: "offline_memory_agent",
11
- ChatOnlyAgent: "chat_only_agent",
12
11
  };
@@ -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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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.46", "User-Agent": "@letta-ai/letta-client/0.1.46", "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.48", "User-Agent": "@letta-ai/letta-client/0.1.48", "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, {
@@ -4,10 +4,9 @@
4
4
  /**
5
5
  * Enum to represent the type of agent.
6
6
  */
7
- export type AgentType = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent" | "chat_only_agent";
7
+ export type AgentType = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent";
8
8
  export declare const AgentType: {
9
9
  readonly MemgptAgent: "memgpt_agent";
10
10
  readonly SplitThreadAgent: "split_thread_agent";
11
11
  readonly OfflineMemoryAgent: "offline_memory_agent";
12
- readonly ChatOnlyAgent: "chat_only_agent";
13
12
  };
@@ -8,5 +8,4 @@ exports.AgentType = {
8
8
  MemgptAgent: "memgpt_agent",
9
9
  SplitThreadAgent: "split_thread_agent",
10
10
  OfflineMemoryAgent: "offline_memory_agent",
11
- ChatOnlyAgent: "chat_only_agent",
12
11
  };
@@ -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
  }
@@ -6,5 +6,5 @@ import * as Letta from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const AgentsSearchResponseAgentsItemAgentType: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemAgentType.Raw, Letta.AgentsSearchResponseAgentsItemAgentType>;
8
8
  export declare namespace AgentsSearchResponseAgentsItemAgentType {
9
- type Raw = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent" | "chat_only_agent";
9
+ type Raw = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AgentsSearchResponseAgentsItemAgentType = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- exports.AgentsSearchResponseAgentsItemAgentType = core.serialization.enum_(["memgpt_agent", "split_thread_agent", "offline_memory_agent", "chat_only_agent"]);
41
+ exports.AgentsSearchResponseAgentsItemAgentType = core.serialization.enum_(["memgpt_agent", "split_thread_agent", "offline_memory_agent"]);
@@ -11,6 +11,7 @@ import { AgentsSearchResponseAgentsItemToolsItemOrganizationId } from "./AgentsS
11
11
  import { AgentsSearchResponseAgentsItemToolsItemName } from "./AgentsSearchResponseAgentsItemToolsItemName";
12
12
  import { AgentsSearchResponseAgentsItemToolsItemSourceCode } from "./AgentsSearchResponseAgentsItemToolsItemSourceCode";
13
13
  import { AgentsSearchResponseAgentsItemToolsItemJsonSchema } from "./AgentsSearchResponseAgentsItemToolsItemJsonSchema";
14
+ import { AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema } from "./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema";
14
15
  import { AgentsSearchResponseAgentsItemToolsItemCreatedById } from "./AgentsSearchResponseAgentsItemToolsItemCreatedById";
15
16
  import { AgentsSearchResponseAgentsItemToolsItemLastUpdatedById } from "./AgentsSearchResponseAgentsItemToolsItemLastUpdatedById";
16
17
  export declare const AgentsSearchResponseAgentsItemToolsItem: core.serialization.ObjectSchema<serializers.AgentsSearchResponseAgentsItemToolsItem.Raw, Letta.AgentsSearchResponseAgentsItemToolsItem>;
@@ -25,6 +26,7 @@ export declare namespace AgentsSearchResponseAgentsItemToolsItem {
25
26
  tags?: string[] | null;
26
27
  source_code?: AgentsSearchResponseAgentsItemToolsItemSourceCode.Raw | null;
27
28
  json_schema?: AgentsSearchResponseAgentsItemToolsItemJsonSchema.Raw | null;
29
+ args_json_schema?: AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.Raw | null;
28
30
  return_char_limit?: number | null;
29
31
  created_by_id?: AgentsSearchResponseAgentsItemToolsItemCreatedById.Raw | null;
30
32
  last_updated_by_id?: AgentsSearchResponseAgentsItemToolsItemLastUpdatedById.Raw | null;
@@ -45,6 +45,7 @@ const AgentsSearchResponseAgentsItemToolsItemOrganizationId_1 = require("./Agent
45
45
  const AgentsSearchResponseAgentsItemToolsItemName_1 = require("./AgentsSearchResponseAgentsItemToolsItemName");
46
46
  const AgentsSearchResponseAgentsItemToolsItemSourceCode_1 = require("./AgentsSearchResponseAgentsItemToolsItemSourceCode");
47
47
  const AgentsSearchResponseAgentsItemToolsItemJsonSchema_1 = require("./AgentsSearchResponseAgentsItemToolsItemJsonSchema");
48
+ const AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema_1 = require("./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema");
48
49
  const AgentsSearchResponseAgentsItemToolsItemCreatedById_1 = require("./AgentsSearchResponseAgentsItemToolsItemCreatedById");
49
50
  const AgentsSearchResponseAgentsItemToolsItemLastUpdatedById_1 = require("./AgentsSearchResponseAgentsItemToolsItemLastUpdatedById");
50
51
  exports.AgentsSearchResponseAgentsItemToolsItem = core.serialization.object({
@@ -57,6 +58,7 @@ exports.AgentsSearchResponseAgentsItemToolsItem = core.serialization.object({
57
58
  tags: core.serialization.list(core.serialization.string()).optional(),
58
59
  sourceCode: core.serialization.property("source_code", AgentsSearchResponseAgentsItemToolsItemSourceCode_1.AgentsSearchResponseAgentsItemToolsItemSourceCode.optional()),
59
60
  jsonSchema: core.serialization.property("json_schema", AgentsSearchResponseAgentsItemToolsItemJsonSchema_1.AgentsSearchResponseAgentsItemToolsItemJsonSchema.optional()),
61
+ argsJsonSchema: core.serialization.property("args_json_schema", AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema_1.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.optional()),
60
62
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
61
63
  createdById: core.serialization.property("created_by_id", AgentsSearchResponseAgentsItemToolsItemCreatedById_1.AgentsSearchResponseAgentsItemToolsItemCreatedById.optional()),
62
64
  lastUpdatedById: core.serialization.property("last_updated_by_id", AgentsSearchResponseAgentsItemToolsItemLastUpdatedById_1.AgentsSearchResponseAgentsItemToolsItemLastUpdatedById.optional()),
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem } from "./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem";
8
+ export declare const AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.Raw, Letta.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema>;
9
+ export declare namespace AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema {
10
+ type Raw = unknown | (string | null | undefined) | (AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.Raw | null | undefined)[];
11
+ }