@letta-ai/letta-client 0.1.172 → 0.1.173

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 (195) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.js +3 -3
  9. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  13. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  14. package/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -2
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  18. package/api/resources/batches/client/Client.js +4 -4
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  21. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  22. package/api/resources/embeddingModels/client/Client.js +1 -1
  23. package/api/resources/folders/client/Client.js +9 -9
  24. package/api/resources/folders/resources/files/client/Client.js +3 -3
  25. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  26. package/api/resources/groups/client/Client.js +6 -6
  27. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  28. package/api/resources/health/client/Client.js +1 -1
  29. package/api/resources/identities/client/Client.js +7 -7
  30. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  31. package/api/resources/jobs/client/Client.js +5 -5
  32. package/api/resources/messages/client/Client.js +1 -1
  33. package/api/resources/models/client/Client.js +1 -1
  34. package/api/resources/projects/client/Client.js +1 -1
  35. package/api/resources/providers/client/Client.js +5 -5
  36. package/api/resources/runs/client/Client.js +4 -4
  37. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  38. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  39. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  40. package/api/resources/sources/client/Client.js +10 -10
  41. package/api/resources/sources/resources/files/client/Client.js +3 -3
  42. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  43. package/api/resources/steps/client/Client.js +2 -2
  44. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  45. package/api/resources/tags/client/Client.js +1 -1
  46. package/api/resources/telemetry/client/Client.js +1 -1
  47. package/api/resources/templates/client/Client.js +1 -1
  48. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  49. package/api/resources/tools/client/Client.js +20 -20
  50. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  51. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  52. package/api/resources/voice/client/Client.js +1 -1
  53. package/api/types/AgentState.d.ts +2 -0
  54. package/api/types/EmbeddingConfig.d.ts +1 -11
  55. package/api/types/LlmConfig.d.ts +1 -11
  56. package/api/types/ModalSandboxConfig.d.ts +4 -0
  57. package/api/types/ModalSandboxConfigLanguage.d.ts +8 -0
  58. package/api/types/ModalSandboxConfigLanguage.js +10 -0
  59. package/api/types/NpmRequirement.d.ts +9 -0
  60. package/api/types/NpmRequirement.js +5 -0
  61. package/api/types/Passage.d.ts +4 -4
  62. package/api/types/Tool.d.ts +2 -0
  63. package/api/types/ToolCreate.d.ts +2 -0
  64. package/api/types/ToolType.d.ts +2 -1
  65. package/api/types/ToolType.js +1 -0
  66. package/api/types/index.d.ts +2 -0
  67. package/api/types/index.js +2 -0
  68. package/dist/api/resources/agents/client/Client.js +10 -10
  69. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
  70. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  71. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  72. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  73. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  78. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  79. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  80. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  81. package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -2
  82. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  84. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  85. package/dist/api/resources/batches/client/Client.js +4 -4
  86. package/dist/api/resources/blocks/client/Client.js +6 -6
  87. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  88. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  89. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  90. package/dist/api/resources/folders/client/Client.js +9 -9
  91. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  92. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  93. package/dist/api/resources/groups/client/Client.js +6 -6
  94. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  95. package/dist/api/resources/health/client/Client.js +1 -1
  96. package/dist/api/resources/identities/client/Client.js +7 -7
  97. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  98. package/dist/api/resources/jobs/client/Client.js +5 -5
  99. package/dist/api/resources/messages/client/Client.js +1 -1
  100. package/dist/api/resources/models/client/Client.js +1 -1
  101. package/dist/api/resources/projects/client/Client.js +1 -1
  102. package/dist/api/resources/providers/client/Client.js +5 -5
  103. package/dist/api/resources/runs/client/Client.js +4 -4
  104. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  105. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  106. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  107. package/dist/api/resources/sources/client/Client.js +10 -10
  108. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  109. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  110. package/dist/api/resources/steps/client/Client.js +2 -2
  111. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  112. package/dist/api/resources/tags/client/Client.js +1 -1
  113. package/dist/api/resources/telemetry/client/Client.js +1 -1
  114. package/dist/api/resources/templates/client/Client.js +1 -1
  115. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  116. package/dist/api/resources/tools/client/Client.js +20 -20
  117. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  118. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  119. package/dist/api/resources/voice/client/Client.js +1 -1
  120. package/dist/api/types/AgentState.d.ts +2 -0
  121. package/dist/api/types/EmbeddingConfig.d.ts +1 -11
  122. package/dist/api/types/LlmConfig.d.ts +1 -11
  123. package/dist/api/types/ModalSandboxConfig.d.ts +4 -0
  124. package/dist/api/types/ModalSandboxConfigLanguage.d.ts +8 -0
  125. package/dist/api/types/ModalSandboxConfigLanguage.js +10 -0
  126. package/dist/api/types/NpmRequirement.d.ts +9 -0
  127. package/dist/api/types/NpmRequirement.js +5 -0
  128. package/dist/api/types/Passage.d.ts +4 -4
  129. package/dist/api/types/Tool.d.ts +2 -0
  130. package/dist/api/types/ToolCreate.d.ts +2 -0
  131. package/dist/api/types/ToolType.d.ts +2 -1
  132. package/dist/api/types/ToolType.js +1 -0
  133. package/dist/api/types/index.d.ts +2 -0
  134. package/dist/api/types/index.js +2 -0
  135. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  136. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  137. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  138. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  139. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -1
  140. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -1
  141. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  142. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  143. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  144. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  145. package/dist/serialization/types/AgentState.d.ts +1 -0
  146. package/dist/serialization/types/AgentState.js +1 -0
  147. package/dist/serialization/types/ModalSandboxConfig.d.ts +3 -0
  148. package/dist/serialization/types/ModalSandboxConfig.js +3 -0
  149. package/dist/serialization/types/ModalSandboxConfigLanguage.d.ts +10 -0
  150. package/dist/serialization/types/ModalSandboxConfigLanguage.js +41 -0
  151. package/dist/serialization/types/NpmRequirement.d.ts +13 -0
  152. package/dist/serialization/types/NpmRequirement.js +44 -0
  153. package/dist/serialization/types/Passage.d.ts +1 -1
  154. package/dist/serialization/types/Passage.js +1 -1
  155. package/dist/serialization/types/Tool.d.ts +2 -0
  156. package/dist/serialization/types/Tool.js +2 -0
  157. package/dist/serialization/types/ToolCreate.d.ts +2 -0
  158. package/dist/serialization/types/ToolCreate.js +2 -0
  159. package/dist/serialization/types/ToolType.d.ts +1 -1
  160. package/dist/serialization/types/ToolType.js +1 -0
  161. package/dist/serialization/types/index.d.ts +2 -0
  162. package/dist/serialization/types/index.js +2 -0
  163. package/dist/version.d.ts +1 -1
  164. package/dist/version.js +1 -1
  165. package/package.json +1 -1
  166. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  167. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  168. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  169. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  170. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -1
  171. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -1
  172. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  173. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  174. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  175. package/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  176. package/serialization/types/AgentState.d.ts +1 -0
  177. package/serialization/types/AgentState.js +1 -0
  178. package/serialization/types/ModalSandboxConfig.d.ts +3 -0
  179. package/serialization/types/ModalSandboxConfig.js +3 -0
  180. package/serialization/types/ModalSandboxConfigLanguage.d.ts +10 -0
  181. package/serialization/types/ModalSandboxConfigLanguage.js +41 -0
  182. package/serialization/types/NpmRequirement.d.ts +13 -0
  183. package/serialization/types/NpmRequirement.js +44 -0
  184. package/serialization/types/Passage.d.ts +1 -1
  185. package/serialization/types/Passage.js +1 -1
  186. package/serialization/types/Tool.d.ts +2 -0
  187. package/serialization/types/Tool.js +2 -0
  188. package/serialization/types/ToolCreate.d.ts +2 -0
  189. package/serialization/types/ToolCreate.js +2 -0
  190. package/serialization/types/ToolType.d.ts +1 -1
  191. package/serialization/types/ToolType.js +1 -0
  192. package/serialization/types/index.d.ts +2 -0
  193. package/serialization/types/index.js +2 -0
  194. package/version.d.ts +1 -1
  195. package/version.js +1 -1
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -307,7 +307,7 @@ class Tools {
307
307
  method: "GET",
308
308
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
309
309
  ? yield core.Supplier.get(this._options.project)
310
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
310
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
311
311
  contentType: "application/json",
312
312
  queryParameters: _queryParams,
313
313
  requestType: "json",
@@ -395,7 +395,7 @@ class Tools {
395
395
  method: "GET",
396
396
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
397
397
  ? yield core.Supplier.get(this._options.project)
398
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
398
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
399
399
  contentType: "application/json",
400
400
  queryParameters: _queryParams,
401
401
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "POST",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "PUT",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
556
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -629,7 +629,7 @@ class Tools {
629
629
  method: "POST",
630
630
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
631
631
  ? yield core.Supplier.get(this._options.project)
632
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
632
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -710,7 +710,7 @@ class Tools {
710
710
  method: "POST",
711
711
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
712
712
  ? yield core.Supplier.get(this._options.project)
713
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
713
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
714
714
  contentType: "application/json",
715
715
  requestType: "json",
716
716
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -788,7 +788,7 @@ class Tools {
788
788
  method: "GET",
789
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
790
790
  ? yield core.Supplier.get(this._options.project)
791
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
792
792
  contentType: "application/json",
793
793
  requestType: "json",
794
794
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -864,7 +864,7 @@ class Tools {
864
864
  method: "GET",
865
865
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
866
866
  ? yield core.Supplier.get(this._options.project)
867
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
867
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
868
868
  contentType: "application/json",
869
869
  requestType: "json",
870
870
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -940,7 +940,7 @@ class Tools {
940
940
  method: "POST",
941
941
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
942
942
  ? yield core.Supplier.get(this._options.project)
943
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
943
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
944
944
  contentType: "application/json",
945
945
  requestType: "json",
946
946
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1017,7 +1017,7 @@ class Tools {
1017
1017
  method: "GET",
1018
1018
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1019
1019
  ? yield core.Supplier.get(this._options.project)
1020
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1020
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1021
1021
  contentType: "application/json",
1022
1022
  requestType: "json",
1023
1023
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1097,7 +1097,7 @@ class Tools {
1097
1097
  method: "PUT",
1098
1098
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1099
1099
  ? yield core.Supplier.get(this._options.project)
1100
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
1100
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
1101
1101
  contentType: "application/json",
1102
1102
  requestType: "json",
1103
1103
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1174,7 +1174,7 @@ class Tools {
1174
1174
  method: "GET",
1175
1175
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1176
1176
  ? yield core.Supplier.get(this._options.project)
1177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
1177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
1178
1178
  contentType: "application/json",
1179
1179
  requestType: "json",
1180
1180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "POST",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
1254
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1327,7 +1327,7 @@ class Tools {
1327
1327
  method: "DELETE",
1328
1328
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1329
1329
  ? yield core.Supplier.get(this._options.project)
1330
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
1330
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
1331
1331
  contentType: "application/json",
1332
1332
  requestType: "json",
1333
1333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1404,7 +1404,7 @@ class Tools {
1404
1404
  method: "PATCH",
1405
1405
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1406
1406
  ? yield core.Supplier.get(this._options.project)
1407
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
1407
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
1408
1408
  contentType: "application/json",
1409
1409
  requestType: "json",
1410
1410
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1486,7 +1486,7 @@ class Tools {
1486
1486
  method: "POST",
1487
1487
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1488
1488
  ? yield core.Supplier.get(this._options.project)
1489
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
1489
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
1490
1490
  contentType: "application/json",
1491
1491
  requestType: "json",
1492
1492
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1547,7 +1547,7 @@ class Tools {
1547
1547
  method: "POST",
1548
1548
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1549
1549
  ? yield core.Supplier.get(this._options.project)
1550
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "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),
1550
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "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),
1551
1551
  contentType: "application/json",
1552
1552
  requestType: "json",
1553
1553
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -28,4 +28,6 @@ export interface ToolRunFromSource {
28
28
  jsonSchema?: Record<string, unknown>;
29
29
  /** Optional list of pip packages required by this tool. */
30
30
  pipRequirements?: Letta.PipRequirement[];
31
+ /** Optional list of npm packages required by this tool. */
32
+ npmRequirements?: Letta.NpmRequirement[];
31
33
  }
@@ -23,4 +23,6 @@ export interface ToolUpdate {
23
23
  returnCharLimit?: number;
24
24
  /** Optional list of pip packages required by this tool. */
25
25
  pipRequirements?: Letta.PipRequirement[];
26
+ /** Optional list of npm packages required by this tool. */
27
+ npmRequirements?: Letta.NpmRequirement[];
26
28
  }
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.172", "User-Agent": "@letta-ai/letta-client/0.1.172", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.173", "User-Agent": "@letta-ai/letta-client/0.1.173", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -81,4 +81,6 @@ export interface AgentState {
81
81
  maxFilesOpen?: number;
82
82
  /** The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent. */
83
83
  perFileViewWindowCharLimit?: number;
84
+ /** If set to True, the agent will be hidden. */
85
+ hidden?: boolean;
84
86
  }
@@ -3,17 +3,7 @@
3
3
  */
4
4
  import * as Letta from "../index";
5
5
  /**
6
- * Embedding model configuration. This object specifies all the information necessary to access an embedding model to usage with Letta, except for secret keys.
7
- *
8
- * Attributes:
9
- * embedding_endpoint_type (str): The endpoint type for the model.
10
- * embedding_endpoint (str): The endpoint for the model.
11
- * embedding_model (str): The model for the embedding.
12
- * embedding_dim (int): The dimension of the embedding.
13
- * embedding_chunk_size (int): The chunk size of the embedding.
14
- * azure_endpoint (:obj:`str`, optional): The Azure endpoint for the model (Azure only).
15
- * azure_version (str): The Azure version for the model (Azure only).
16
- * azure_deployment (str): The Azure deployment for the model (Azure only).
6
+ * Configuration for embedding model connection and processing parameters.
17
7
  */
18
8
  export interface EmbeddingConfig {
19
9
  /** The endpoint type for the model. */
@@ -3,17 +3,7 @@
3
3
  */
4
4
  import * as Letta from "../index";
5
5
  /**
6
- * Configuration for a Language Model (LLM) model. This object specifies all the information necessary to access an LLM model to usage with Letta, except for secret keys.
7
- *
8
- * Attributes:
9
- * model (str): The name of the LLM model.
10
- * model_endpoint_type (str): The endpoint type for the model.
11
- * model_endpoint (str): The endpoint for the model.
12
- * model_wrapper (str): The wrapper for the model. This is used to wrap additional text around the input/output of the model. This is useful for text-to-text completions, such as the Completions API in OpenAI.
13
- * context_window (int): The context window size for the model.
14
- * put_inner_thoughts_in_kwargs (bool): Puts `inner_thoughts` as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.
15
- * temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.
16
- * max_tokens (int): The maximum number of tokens to generate.
6
+ * Configuration for Language Model (LLM) connection and generation parameters.
17
7
  */
18
8
  export interface LlmConfig {
19
9
  /** LLM model name. */
@@ -1,9 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  export interface ModalSandboxConfig {
5
6
  /** Time limit for the sandbox (in seconds). */
6
7
  timeout?: number;
7
8
  /** A list of pip packages to install in the Modal sandbox */
8
9
  pipRequirements?: string[];
10
+ /** A list of npm packages to install in the Modal sandbox */
11
+ npmRequirements?: string[];
12
+ language?: Letta.ModalSandboxConfigLanguage;
9
13
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ModalSandboxConfigLanguage = "python" | "typescript";
5
+ export declare const ModalSandboxConfigLanguage: {
6
+ readonly Python: "python";
7
+ readonly Typescript: "typescript";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ModalSandboxConfigLanguage = void 0;
7
+ exports.ModalSandboxConfigLanguage = {
8
+ Python: "python",
9
+ Typescript: "typescript",
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface NpmRequirement {
5
+ /** Name of the npm package. */
6
+ name: string;
7
+ /** Optional version of the package, following semantic versioning. */
8
+ version?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,8 +10,8 @@ import * as Letta from "../index";
10
10
  * embedding (List[float]): The embedding of the passage.
11
11
  * embedding_config (EmbeddingConfig): The embedding configuration used by the passage.
12
12
  * created_at (datetime): The creation date of the passage.
13
- * user_id (str): The unique identifier of the user associated with the passage.
14
- * agent_id (str): The unique identifier of the agent associated with the passage.
13
+ * organization_id (str): The unique identifier of the organization associated with the passage.
14
+ * archive_id (str): The unique identifier of the archive containing this passage.
15
15
  * source_id (str): The data source of the passage.
16
16
  * file_id (str): The unique identifier of the file associated with the passage.
17
17
  */
@@ -26,8 +26,8 @@ export interface Passage {
26
26
  updatedAt?: Date;
27
27
  /** Whether this passage is deleted or not. */
28
28
  isDeleted?: boolean;
29
- /** The unique identifier of the agent associated with the passage. */
30
- agentId?: string;
29
+ /** The unique identifier of the archive containing this passage. */
30
+ archiveId?: string;
31
31
  /** The data source of the passage. */
32
32
  sourceId?: string;
33
33
  /** The unique identifier of the file associated with the passage. */
@@ -35,6 +35,8 @@ export interface Tool {
35
35
  returnCharLimit?: number;
36
36
  /** Optional list of pip packages required by this tool. */
37
37
  pipRequirements?: Letta.PipRequirement[];
38
+ /** Optional list of npm packages required by this tool. */
39
+ npmRequirements?: Letta.NpmRequirement[];
38
40
  /** The id of the user that made this Tool. */
39
41
  createdById?: string;
40
42
  /** The id of the user that made this Tool. */
@@ -19,4 +19,6 @@ export interface ToolCreate {
19
19
  returnCharLimit?: number;
20
20
  /** Optional list of pip packages required by this tool. */
21
21
  pipRequirements?: Letta.PipRequirement[];
22
+ /** Optional list of npm packages required by this tool. */
23
+ npmRequirements?: Letta.NpmRequirement[];
22
24
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "letta_files_core" | "external_composio" | "external_mcp";
4
+ export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "letta_files_core" | "external_composio" | "external_langchain" | "external_mcp";
5
5
  export declare const ToolType: {
6
6
  readonly Custom: "custom";
7
7
  readonly LettaCore: "letta_core";
@@ -12,5 +12,6 @@ export declare const ToolType: {
12
12
  readonly LettaBuiltin: "letta_builtin";
13
13
  readonly LettaFilesCore: "letta_files_core";
14
14
  readonly ExternalComposio: "external_composio";
15
+ readonly ExternalLangchain: "external_langchain";
15
16
  readonly ExternalMcp: "external_mcp";
16
17
  };
@@ -14,5 +14,6 @@ exports.ToolType = {
14
14
  LettaBuiltin: "letta_builtin",
15
15
  LettaFilesCore: "letta_files_core",
16
16
  ExternalComposio: "external_composio",
17
+ ExternalLangchain: "external_langchain",
17
18
  ExternalMcp: "external_mcp",
18
19
  };
@@ -157,7 +157,9 @@ export * from "./MessageCreate";
157
157
  export * from "./MessageRole";
158
158
  export * from "./MessageSchema";
159
159
  export * from "./MessageType";
160
+ export * from "./ModalSandboxConfigLanguage";
160
161
  export * from "./ModalSandboxConfig";
162
+ export * from "./NpmRequirement";
161
163
  export * from "./OmittedReasoningContent";
162
164
  export * from "./Organization";
163
165
  export * from "./OrganizationCreate";
@@ -173,7 +173,9 @@ __exportStar(require("./MessageCreate"), exports);
173
173
  __exportStar(require("./MessageRole"), exports);
174
174
  __exportStar(require("./MessageSchema"), exports);
175
175
  __exportStar(require("./MessageType"), exports);
176
+ __exportStar(require("./ModalSandboxConfigLanguage"), exports);
176
177
  __exportStar(require("./ModalSandboxConfig"), exports);
178
+ __exportStar(require("./NpmRequirement"), exports);
177
179
  __exportStar(require("./OmittedReasoningContent"), exports);
178
180
  __exportStar(require("./Organization"), exports);
179
181
  __exportStar(require("./OrganizationCreate"), exports);
@@ -55,5 +55,6 @@ export declare namespace CreateAgentRequest {
55
55
  timezone?: string | null;
56
56
  max_files_open?: number | null;
57
57
  per_file_view_window_char_limit?: number | null;
58
+ hidden?: boolean | null;
58
59
  }
59
60
  }
@@ -87,4 +87,5 @@ exports.CreateAgentRequest = core.serialization.object({
87
87
  timezone: core.serialization.string().optional(),
88
88
  maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
89
89
  perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
90
+ hidden: core.serialization.boolean().optional(),
90
91
  });
@@ -38,5 +38,6 @@ export declare namespace UpdateAgent {
38
38
  timezone?: string | null;
39
39
  max_files_open?: number | null;
40
40
  per_file_view_window_char_limit?: number | null;
41
+ hidden?: boolean | null;
41
42
  }
42
43
  }
@@ -70,4 +70,5 @@ exports.UpdateAgent = core.serialization.object({
70
70
  timezone: core.serialization.string().optional(),
71
71
  maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
72
72
  perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
73
+ hidden: core.serialization.boolean().optional(),
73
74
  });
@@ -13,7 +13,7 @@ export declare namespace PassageUpdate {
13
13
  created_at?: string | null;
14
14
  updated_at?: string | null;
15
15
  is_deleted?: boolean | null;
16
- agent_id?: string | null;
16
+ archive_id?: string | null;
17
17
  source_id?: string | null;
18
18
  file_id?: string | null;
19
19
  file_name?: string | null;
@@ -45,7 +45,7 @@ exports.PassageUpdate = core.serialization.object({
45
45
  createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
46
46
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
47
47
  isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
48
- passageUpdateAgentId: core.serialization.property("agent_id", core.serialization.string().optional()),
48
+ archiveId: core.serialization.property("archive_id", core.serialization.string().optional()),
49
49
  sourceId: core.serialization.property("source_id", core.serialization.string().optional()),
50
50
  fileId: core.serialization.property("file_id", core.serialization.string().optional()),
51
51
  fileName: core.serialization.property("file_name", core.serialization.string().optional()),
@@ -5,6 +5,7 @@ import * as serializers from "../../../../index";
5
5
  import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { PipRequirement } from "../../../../types/PipRequirement";
8
+ import { NpmRequirement } from "../../../../types/NpmRequirement";
8
9
  export declare const ToolRunFromSource: core.serialization.Schema<serializers.ToolRunFromSource.Raw, Letta.ToolRunFromSource>;
9
10
  export declare namespace ToolRunFromSource {
10
11
  interface Raw {
@@ -16,5 +17,6 @@ export declare namespace ToolRunFromSource {
16
17
  args_json_schema?: Record<string, unknown> | null;
17
18
  json_schema?: Record<string, unknown> | null;
18
19
  pip_requirements?: PipRequirement.Raw[] | null;
20
+ npm_requirements?: NpmRequirement.Raw[] | null;
19
21
  }
20
22
  }
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolRunFromSource = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const PipRequirement_1 = require("../../../../types/PipRequirement");
42
+ const NpmRequirement_1 = require("../../../../types/NpmRequirement");
42
43
  exports.ToolRunFromSource = core.serialization.object({
43
44
  sourceCode: core.serialization.property("source_code", core.serialization.string()),
44
45
  args: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
@@ -48,4 +49,5 @@ exports.ToolRunFromSource = core.serialization.object({
48
49
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
49
50
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
50
51
  pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
52
+ npmRequirements: core.serialization.property("npm_requirements", core.serialization.list(NpmRequirement_1.NpmRequirement).optional()),
51
53
  });
@@ -5,6 +5,7 @@ import * as serializers from "../../../../index";
5
5
  import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { PipRequirement } from "../../../../types/PipRequirement";
8
+ import { NpmRequirement } from "../../../../types/NpmRequirement";
8
9
  export declare const ToolUpdate: core.serialization.Schema<serializers.ToolUpdate.Raw, Letta.ToolUpdate>;
9
10
  export declare namespace ToolUpdate {
10
11
  interface Raw {
@@ -16,5 +17,6 @@ export declare namespace ToolUpdate {
16
17
  args_json_schema?: Record<string, unknown> | null;
17
18
  return_char_limit?: number | null;
18
19
  pip_requirements?: PipRequirement.Raw[] | null;
20
+ npm_requirements?: NpmRequirement.Raw[] | null;
19
21
  }
20
22
  }
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolUpdate = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const PipRequirement_1 = require("../../../../types/PipRequirement");
42
+ const NpmRequirement_1 = require("../../../../types/NpmRequirement");
42
43
  exports.ToolUpdate = core.serialization.object({
43
44
  description: core.serialization.string().optional(),
44
45
  tags: core.serialization.list(core.serialization.string()).optional(),
@@ -48,4 +49,5 @@ exports.ToolUpdate = core.serialization.object({
48
49
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
49
50
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
50
51
  pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
52
+ npmRequirements: core.serialization.property("npm_requirements", core.serialization.list(NpmRequirement_1.NpmRequirement).optional()),
51
53
  });
@@ -49,5 +49,6 @@ export declare namespace AgentState {
49
49
  timezone?: string | null;
50
50
  max_files_open?: number | null;
51
51
  per_file_view_window_char_limit?: number | null;
52
+ hidden?: boolean | null;
52
53
  }
53
54
  }
@@ -81,4 +81,5 @@ exports.AgentState = core.serialization.object({
81
81
  timezone: core.serialization.string().optional(),
82
82
  maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
83
83
  perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
84
+ hidden: core.serialization.boolean().optional(),
84
85
  });
@@ -4,10 +4,13 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ModalSandboxConfigLanguage } from "./ModalSandboxConfigLanguage";
7
8
  export declare const ModalSandboxConfig: core.serialization.ObjectSchema<serializers.ModalSandboxConfig.Raw, Letta.ModalSandboxConfig>;
8
9
  export declare namespace ModalSandboxConfig {
9
10
  interface Raw {
10
11
  timeout?: number | null;
11
12
  pip_requirements?: string[] | null;
13
+ npm_requirements?: string[] | null;
14
+ language?: ModalSandboxConfigLanguage.Raw | null;
12
15
  }
13
16
  }
@@ -38,7 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ModalSandboxConfig = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ModalSandboxConfigLanguage_1 = require("./ModalSandboxConfigLanguage");
41
42
  exports.ModalSandboxConfig = core.serialization.object({
42
43
  timeout: core.serialization.number().optional(),
43
44
  pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(core.serialization.string()).optional()),
45
+ npmRequirements: core.serialization.property("npm_requirements", core.serialization.list(core.serialization.string()).optional()),
46
+ language: ModalSandboxConfigLanguage_1.ModalSandboxConfigLanguage.optional(),
44
47
  });
@@ -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 ModalSandboxConfigLanguage: core.serialization.Schema<serializers.ModalSandboxConfigLanguage.Raw, Letta.ModalSandboxConfigLanguage>;
8
+ export declare namespace ModalSandboxConfigLanguage {
9
+ type Raw = "python" | "typescript";
10
+ }