@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
@@ -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
  }
@@ -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";
@@ -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"));
@@ -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
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem_1 = require("./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem");
42
+ exports.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema = core.serialization.undiscriminatedUnion([
43
+ core.serialization.unknown(),
44
+ core.serialization.string().optional(),
45
+ core.serialization.list(AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem_1.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.optional()),
46
+ ]);
@@ -0,0 +1,10 @@
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
+ export declare const AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.Raw, Letta.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem>;
8
+ export declare namespace AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem {
9
+ type Raw = unknown | (string | null | undefined);
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem = core.serialization.undiscriminatedUnion([core.serialization.unknown(), core.serialization.string().optional()]);
@@ -111,6 +111,8 @@ export * from "./AgentsSearchResponseAgentsItemToolsItemSourceCodeItem";
111
111
  export * from "./AgentsSearchResponseAgentsItemToolsItemSourceCode";
112
112
  export * from "./AgentsSearchResponseAgentsItemToolsItemJsonSchemaItem";
113
113
  export * from "./AgentsSearchResponseAgentsItemToolsItemJsonSchema";
114
+ export * from "./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem";
115
+ export * from "./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema";
114
116
  export * from "./AgentsSearchResponseAgentsItemToolsItemCreatedByIdItem";
115
117
  export * from "./AgentsSearchResponseAgentsItemToolsItemCreatedById";
116
118
  export * from "./AgentsSearchResponseAgentsItemToolsItemLastUpdatedByIdItem";
@@ -127,6 +127,8 @@ __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemSourceCodeItem"),
127
127
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemSourceCode"), exports);
128
128
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemJsonSchemaItem"), exports);
129
129
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemJsonSchema"), exports);
130
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem"), exports);
131
+ __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema"), exports);
130
132
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemCreatedByIdItem"), exports);
131
133
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemCreatedById"), exports);
132
134
  __exportStar(require("./AgentsSearchResponseAgentsItemToolsItemLastUpdatedByIdItem"), exports);
@@ -1,3 +1,4 @@
1
1
  export * as listRuns from "./listRuns";
2
2
  export * as listActiveRuns from "./listActiveRuns";
3
3
  export * as listRunMessages from "./listRunMessages";
4
+ export * as listRunSteps from "./listRunSteps";
@@ -33,7 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.listRunMessages = exports.listActiveRuns = exports.listRuns = void 0;
36
+ exports.listRunSteps = exports.listRunMessages = exports.listActiveRuns = exports.listRuns = void 0;
37
37
  exports.listRuns = __importStar(require("./listRuns"));
38
38
  exports.listActiveRuns = __importStar(require("./listActiveRuns"));
39
39
  exports.listRunMessages = __importStar(require("./listRunMessages"));
40
+ exports.listRunSteps = __importStar(require("./listRunSteps"));
@@ -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 { Step } from "../../../types/Step";
8
+ export declare const Response: core.serialization.Schema<serializers.runs.listRunSteps.Response.Raw, Letta.Step[]>;
9
+ export declare namespace Response {
10
+ type Raw = Step.Raw[];
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const Step_1 = require("../../../types/Step");
42
+ exports.Response = core.serialization.list(Step_1.Step);
@@ -11,6 +11,7 @@ import { TemplatesCreateAgentsResponseAgentsItemToolsItemOrganizationId } from "
11
11
  import { TemplatesCreateAgentsResponseAgentsItemToolsItemName } from "./TemplatesCreateAgentsResponseAgentsItemToolsItemName";
12
12
  import { TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode } from "./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode";
13
13
  import { TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema } from "./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema";
14
+ import { TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema } from "./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema";
14
15
  import { TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById } from "./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById";
15
16
  import { TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById } from "./TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById";
16
17
  export declare const TemplatesCreateAgentsResponseAgentsItemToolsItem: core.serialization.ObjectSchema<serializers.TemplatesCreateAgentsResponseAgentsItemToolsItem.Raw, Letta.TemplatesCreateAgentsResponseAgentsItemToolsItem>;
@@ -25,6 +26,7 @@ export declare namespace TemplatesCreateAgentsResponseAgentsItemToolsItem {
25
26
  tags?: string[] | null;
26
27
  source_code?: TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode.Raw | null;
27
28
  json_schema?: TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema.Raw | null;
29
+ args_json_schema?: TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.Raw | null;
28
30
  return_char_limit?: number | null;
29
31
  created_by_id?: TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById.Raw | null;
30
32
  last_updated_by_id?: TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById.Raw | null;