@letta-ai/letta-client 0.1.63 → 0.1.65

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 (292) hide show
  1. package/api/resources/agents/client/Client.d.ts +7 -7
  2. package/api/resources/agents/client/Client.js +28 -22
  3. package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  4. package/api/resources/agents/client/requests/index.d.ts +1 -1
  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/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.d.ts +9 -6
  10. package/api/resources/agents/resources/messages/client/Client.js +14 -11
  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/blocks/client/Client.js +6 -6
  16. package/api/resources/groups/client/Client.d.ts +8 -2
  17. package/api/resources/groups/client/Client.js +15 -9
  18. package/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
  19. package/api/resources/health/client/Client.js +1 -1
  20. package/api/resources/identities/client/Client.js +6 -6
  21. package/api/resources/jobs/client/Client.js +4 -4
  22. package/api/resources/models/client/Client.js +2 -2
  23. package/api/resources/providers/client/Client.js +4 -4
  24. package/api/resources/runs/client/Client.js +7 -7
  25. package/api/resources/sources/client/Client.js +6 -6
  26. package/api/resources/sources/resources/files/client/Client.js +3 -3
  27. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  28. package/api/resources/steps/client/Client.js +2 -2
  29. package/api/resources/tag/client/Client.js +1 -1
  30. package/api/resources/templates/client/Client.js +1 -1
  31. package/api/resources/tools/client/Client.js +16 -16
  32. package/api/resources/voice/client/Client.js +1 -1
  33. package/api/types/AgentSchema.d.ts +27 -0
  34. package/api/types/AssistantMessage.d.ts +3 -1
  35. package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  36. package/api/types/LettaMessageContentUnion.d.ts +5 -0
  37. package/api/types/Message.d.ts +1 -1
  38. package/api/types/MessageContentItem.d.ts +5 -0
  39. package/api/types/MessageCreateContent.d.ts +1 -1
  40. package/api/types/MessageSchema.d.ts +17 -0
  41. package/api/types/OmittedReasoningContent.d.ts +8 -0
  42. package/api/types/OmittedReasoningContent.js +5 -0
  43. package/api/types/ParameterProperties.d.ts +7 -0
  44. package/api/types/ParameterProperties.js +5 -0
  45. package/api/types/ParametersSchema.d.ts +9 -0
  46. package/api/types/ParametersSchema.js +5 -0
  47. package/api/types/ReasoningContent.d.ts +12 -0
  48. package/api/types/ReasoningContent.js +5 -0
  49. package/api/types/ReasoningMessage.d.ts +6 -0
  50. package/api/types/ReasoningMessageSource.d.ts +8 -0
  51. package/api/types/ReasoningMessageSource.js +10 -0
  52. package/api/types/RedactedReasoningContent.d.ts +8 -0
  53. package/api/types/RedactedReasoningContent.js +5 -0
  54. package/api/types/SystemMessage.d.ts +5 -4
  55. package/api/types/TagSchema.d.ts +6 -0
  56. package/api/types/TagSchema.js +5 -0
  57. package/api/types/ToolCallContent.d.ts +12 -0
  58. package/api/types/ToolCallContent.js +5 -0
  59. package/api/types/ToolCallMessage.d.ts +2 -0
  60. package/api/types/ToolEnvVarSchema.d.ts +11 -0
  61. package/api/types/ToolEnvVarSchema.js +5 -0
  62. package/api/types/ToolJsonSchema.d.ts +11 -0
  63. package/api/types/ToolJsonSchema.js +5 -0
  64. package/api/types/ToolReturnContent.d.ts +12 -0
  65. package/api/types/ToolReturnContent.js +5 -0
  66. package/api/types/ToolReturnMessage.d.ts +2 -0
  67. package/api/types/ToolRuleSchema.d.ts +7 -0
  68. package/api/types/ToolRuleSchema.js +5 -0
  69. package/api/types/ToolSchema.d.ts +18 -0
  70. package/api/types/ToolSchema.js +5 -0
  71. package/api/types/UpdateSystemMessage.d.ts +2 -3
  72. package/api/types/UpdateUserMessage.d.ts +1 -1
  73. package/api/types/UpdateUserMessageContent.d.ts +1 -1
  74. package/api/types/UserMessage.d.ts +4 -2
  75. package/api/types/UserMessageContent.d.ts +1 -1
  76. package/api/types/index.d.ts +18 -2
  77. package/api/types/index.js +18 -2
  78. package/dist/api/resources/agents/client/Client.d.ts +7 -7
  79. package/dist/api/resources/agents/client/Client.js +28 -22
  80. package/dist/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  81. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js +5 -0
  82. package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
  83. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  84. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  85. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  86. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  87. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +9 -6
  88. package/dist/api/resources/agents/resources/messages/client/Client.js +14 -11
  89. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  90. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  91. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  92. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  93. package/dist/api/resources/blocks/client/Client.js +6 -6
  94. package/dist/api/resources/groups/client/Client.d.ts +8 -2
  95. package/dist/api/resources/groups/client/Client.js +15 -9
  96. package/dist/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
  97. package/dist/api/resources/health/client/Client.js +1 -1
  98. package/dist/api/resources/identities/client/Client.js +6 -6
  99. package/dist/api/resources/jobs/client/Client.js +4 -4
  100. package/dist/api/resources/models/client/Client.js +2 -2
  101. package/dist/api/resources/providers/client/Client.js +4 -4
  102. package/dist/api/resources/runs/client/Client.js +7 -7
  103. package/dist/api/resources/sources/client/Client.js +6 -6
  104. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  105. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  106. package/dist/api/resources/steps/client/Client.js +2 -2
  107. package/dist/api/resources/tag/client/Client.js +1 -1
  108. package/dist/api/resources/templates/client/Client.js +1 -1
  109. package/dist/api/resources/tools/client/Client.js +16 -16
  110. package/dist/api/resources/voice/client/Client.js +1 -1
  111. package/dist/api/types/AgentSchema.d.ts +27 -0
  112. package/dist/api/types/AgentSchema.js +5 -0
  113. package/dist/api/types/AssistantMessage.d.ts +3 -1
  114. package/dist/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  115. package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
  116. package/dist/api/types/LettaMessageContentUnion.d.ts +5 -0
  117. package/dist/api/types/LettaMessageContentUnion.js +5 -0
  118. package/dist/api/types/Message.d.ts +1 -1
  119. package/dist/api/types/MessageContentItem.d.ts +5 -0
  120. package/dist/api/types/MessageContentItem.js +5 -0
  121. package/dist/api/types/MessageCreateContent.d.ts +1 -1
  122. package/dist/api/types/MessageSchema.d.ts +17 -0
  123. package/dist/api/types/MessageSchema.js +5 -0
  124. package/dist/api/types/OmittedReasoningContent.d.ts +8 -0
  125. package/dist/api/types/OmittedReasoningContent.js +5 -0
  126. package/dist/api/types/ParameterProperties.d.ts +7 -0
  127. package/dist/api/types/ParameterProperties.js +5 -0
  128. package/dist/api/types/ParametersSchema.d.ts +9 -0
  129. package/dist/api/types/ParametersSchema.js +5 -0
  130. package/dist/api/types/ReasoningContent.d.ts +12 -0
  131. package/dist/api/types/ReasoningContent.js +5 -0
  132. package/dist/api/types/ReasoningMessage.d.ts +6 -0
  133. package/dist/api/types/ReasoningMessageSource.d.ts +8 -0
  134. package/dist/api/types/ReasoningMessageSource.js +10 -0
  135. package/dist/api/types/RedactedReasoningContent.d.ts +8 -0
  136. package/dist/api/types/RedactedReasoningContent.js +5 -0
  137. package/dist/api/types/SystemMessage.d.ts +5 -4
  138. package/dist/api/types/TagSchema.d.ts +6 -0
  139. package/dist/api/types/TagSchema.js +5 -0
  140. package/dist/api/types/ToolCallContent.d.ts +12 -0
  141. package/dist/api/types/ToolCallContent.js +5 -0
  142. package/dist/api/types/ToolCallMessage.d.ts +2 -0
  143. package/dist/api/types/ToolEnvVarSchema.d.ts +11 -0
  144. package/dist/api/types/ToolEnvVarSchema.js +5 -0
  145. package/dist/api/types/ToolJsonSchema.d.ts +11 -0
  146. package/dist/api/types/ToolJsonSchema.js +5 -0
  147. package/dist/api/types/ToolReturnContent.d.ts +12 -0
  148. package/dist/api/types/ToolReturnContent.js +5 -0
  149. package/dist/api/types/ToolReturnMessage.d.ts +2 -0
  150. package/dist/api/types/ToolRuleSchema.d.ts +7 -0
  151. package/dist/api/types/ToolRuleSchema.js +5 -0
  152. package/dist/api/types/ToolSchema.d.ts +18 -0
  153. package/dist/api/types/ToolSchema.js +5 -0
  154. package/dist/api/types/UpdateSystemMessage.d.ts +2 -3
  155. package/dist/api/types/UpdateUserMessage.d.ts +1 -1
  156. package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
  157. package/dist/api/types/UserMessage.d.ts +4 -2
  158. package/dist/api/types/UserMessageContent.d.ts +1 -1
  159. package/dist/api/types/index.d.ts +18 -2
  160. package/dist/api/types/index.js +18 -2
  161. package/dist/serialization/types/AgentSchema.d.ts +40 -0
  162. package/dist/serialization/types/AgentSchema.js +71 -0
  163. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  164. package/dist/serialization/types/AssistantMessage.js +1 -0
  165. package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  166. package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
  167. package/dist/serialization/types/LettaMessageContentUnion.d.ts +15 -0
  168. package/dist/serialization/types/LettaMessageContentUnion.js +52 -0
  169. package/dist/serialization/types/Message.d.ts +2 -2
  170. package/dist/serialization/types/Message.js +2 -2
  171. package/dist/serialization/types/MessageContentItem.d.ts +16 -0
  172. package/dist/serialization/types/MessageContentItem.js +54 -0
  173. package/dist/serialization/types/MessageCreateContent.d.ts +2 -2
  174. package/dist/serialization/types/MessageCreateContent.js +5 -2
  175. package/dist/serialization/types/MessageSchema.d.ts +23 -0
  176. package/dist/serialization/types/MessageSchema.js +54 -0
  177. package/dist/serialization/types/OmittedReasoningContent.d.ts +13 -0
  178. package/dist/serialization/types/{SystemMessageContent.js → OmittedReasoningContent.js} +5 -6
  179. package/dist/serialization/types/ParameterProperties.d.ts +13 -0
  180. package/{serialization/types/SystemMessageContent.js → dist/serialization/types/ParameterProperties.js} +5 -6
  181. package/dist/serialization/types/ParametersSchema.d.ts +15 -0
  182. package/dist/serialization/types/ParametersSchema.js +46 -0
  183. package/dist/serialization/types/ReasoningContent.d.ts +15 -0
  184. package/dist/serialization/types/ReasoningContent.js +46 -0
  185. package/dist/serialization/types/ReasoningMessage.d.ts +3 -0
  186. package/dist/serialization/types/ReasoningMessage.js +3 -0
  187. package/dist/serialization/types/ReasoningMessageSource.d.ts +10 -0
  188. package/dist/serialization/types/{UpdateSystemMessageContent.js → ReasoningMessageSource.js} +2 -6
  189. package/dist/serialization/types/RedactedReasoningContent.d.ts +13 -0
  190. package/{serialization/types/UpdateSystemMessageContent.js → dist/serialization/types/RedactedReasoningContent.js} +5 -6
  191. package/dist/serialization/types/SystemMessage.d.ts +2 -2
  192. package/dist/serialization/types/SystemMessage.js +2 -2
  193. package/dist/serialization/types/TagSchema.d.ts +12 -0
  194. package/dist/serialization/types/TagSchema.js +43 -0
  195. package/dist/serialization/types/ToolCallContent.d.ts +15 -0
  196. package/dist/serialization/types/ToolCallContent.js +46 -0
  197. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  198. package/dist/serialization/types/ToolCallMessage.js +1 -0
  199. package/dist/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  200. package/dist/serialization/types/ToolEnvVarSchema.js +48 -0
  201. package/dist/serialization/types/ToolJsonSchema.d.ts +17 -0
  202. package/dist/serialization/types/ToolJsonSchema.js +48 -0
  203. package/dist/serialization/types/ToolReturnContent.d.ts +15 -0
  204. package/dist/serialization/types/ToolReturnContent.js +46 -0
  205. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  206. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  207. package/dist/serialization/types/ToolRuleSchema.d.ts +13 -0
  208. package/dist/serialization/types/ToolRuleSchema.js +44 -0
  209. package/dist/serialization/types/ToolSchema.d.ts +24 -0
  210. package/dist/serialization/types/ToolSchema.js +55 -0
  211. package/dist/serialization/types/UpdateSystemMessage.d.ts +1 -2
  212. package/dist/serialization/types/UpdateSystemMessage.js +1 -2
  213. package/dist/serialization/types/UserMessage.d.ts +1 -0
  214. package/dist/serialization/types/UserMessage.js +1 -0
  215. package/dist/serialization/types/index.d.ts +18 -2
  216. package/dist/serialization/types/index.js +18 -2
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +1 -1
  220. package/reference.md +38 -18
  221. package/serialization/types/AgentSchema.d.ts +40 -0
  222. package/serialization/types/AgentSchema.js +71 -0
  223. package/serialization/types/AssistantMessage.d.ts +1 -0
  224. package/serialization/types/AssistantMessage.js +1 -0
  225. package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  226. package/serialization/types/CoreMemoryBlockSchema.js +53 -0
  227. package/serialization/types/LettaMessageContentUnion.d.ts +15 -0
  228. package/serialization/types/LettaMessageContentUnion.js +52 -0
  229. package/serialization/types/Message.d.ts +2 -2
  230. package/serialization/types/Message.js +2 -2
  231. package/serialization/types/MessageContentItem.d.ts +16 -0
  232. package/serialization/types/MessageContentItem.js +54 -0
  233. package/serialization/types/MessageCreateContent.d.ts +2 -2
  234. package/serialization/types/MessageCreateContent.js +5 -2
  235. package/serialization/types/MessageSchema.d.ts +23 -0
  236. package/serialization/types/MessageSchema.js +54 -0
  237. package/serialization/types/OmittedReasoningContent.d.ts +13 -0
  238. package/serialization/types/OmittedReasoningContent.js +44 -0
  239. package/serialization/types/ParameterProperties.d.ts +13 -0
  240. package/serialization/types/ParameterProperties.js +44 -0
  241. package/serialization/types/ParametersSchema.d.ts +15 -0
  242. package/serialization/types/ParametersSchema.js +46 -0
  243. package/serialization/types/ReasoningContent.d.ts +15 -0
  244. package/serialization/types/ReasoningContent.js +46 -0
  245. package/serialization/types/ReasoningMessage.d.ts +3 -0
  246. package/serialization/types/ReasoningMessage.js +3 -0
  247. package/serialization/types/ReasoningMessageSource.d.ts +10 -0
  248. package/serialization/types/ReasoningMessageSource.js +41 -0
  249. package/serialization/types/RedactedReasoningContent.d.ts +13 -0
  250. package/serialization/types/RedactedReasoningContent.js +44 -0
  251. package/serialization/types/SystemMessage.d.ts +2 -2
  252. package/serialization/types/SystemMessage.js +2 -2
  253. package/serialization/types/TagSchema.d.ts +12 -0
  254. package/serialization/types/TagSchema.js +43 -0
  255. package/serialization/types/ToolCallContent.d.ts +15 -0
  256. package/serialization/types/ToolCallContent.js +46 -0
  257. package/serialization/types/ToolCallMessage.d.ts +1 -0
  258. package/serialization/types/ToolCallMessage.js +1 -0
  259. package/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  260. package/serialization/types/ToolEnvVarSchema.js +48 -0
  261. package/serialization/types/ToolJsonSchema.d.ts +17 -0
  262. package/serialization/types/ToolJsonSchema.js +48 -0
  263. package/serialization/types/ToolReturnContent.d.ts +15 -0
  264. package/serialization/types/ToolReturnContent.js +46 -0
  265. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  266. package/serialization/types/ToolReturnMessage.js +1 -0
  267. package/serialization/types/ToolRuleSchema.d.ts +13 -0
  268. package/serialization/types/ToolRuleSchema.js +44 -0
  269. package/serialization/types/ToolSchema.d.ts +24 -0
  270. package/serialization/types/ToolSchema.js +55 -0
  271. package/serialization/types/UpdateSystemMessage.d.ts +1 -2
  272. package/serialization/types/UpdateSystemMessage.js +1 -2
  273. package/serialization/types/UserMessage.d.ts +1 -0
  274. package/serialization/types/UserMessage.js +1 -0
  275. package/serialization/types/index.d.ts +18 -2
  276. package/serialization/types/index.js +18 -2
  277. package/version.d.ts +1 -1
  278. package/version.js +1 -1
  279. package/api/types/SystemMessageContent.d.ts +0 -8
  280. package/api/types/UpdateSystemMessageContent.d.ts +0 -8
  281. package/dist/api/types/SystemMessageContent.d.ts +0 -8
  282. package/dist/api/types/UpdateSystemMessageContent.d.ts +0 -8
  283. package/dist/serialization/types/SystemMessageContent.d.ts +0 -11
  284. package/dist/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
  285. package/serialization/types/SystemMessageContent.d.ts +0 -11
  286. package/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
  287. /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
  288. /package/api/types/{SystemMessageContent.js → AgentSchema.js} +0 -0
  289. /package/api/types/{UpdateSystemMessageContent.js → CoreMemoryBlockSchema.js} +0 -0
  290. /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/types/LettaMessageContentUnion.js} +0 -0
  291. /package/{dist/api/types/SystemMessageContent.js → api/types/MessageContentItem.js} +0 -0
  292. /package/{dist/api/types/UpdateSystemMessageContent.js → api/types/MessageSchema.js} +0 -0
@@ -103,7 +103,7 @@ class Steps {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
105
105
  method: "GET",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -169,7 +169,7 @@ class Steps {
169
169
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
170
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
171
171
  method: "GET",
172
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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" }),
@@ -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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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,
@@ -808,7 +808,7 @@ class Tools {
808
808
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
809
809
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
810
810
  method: "GET",
811
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
811
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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),
812
812
  contentType: "application/json",
813
813
  requestType: "json",
814
814
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -877,7 +877,7 @@ class Tools {
877
877
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
878
878
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
879
879
  method: "PUT",
880
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
880
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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),
881
881
  contentType: "application/json",
882
882
  requestType: "json",
883
883
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -943,7 +943,7 @@ class Tools {
943
943
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
944
944
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
945
945
  method: "GET",
946
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
946
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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),
947
947
  contentType: "application/json",
948
948
  requestType: "json",
949
949
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1009,7 +1009,7 @@ class Tools {
1009
1009
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1010
1010
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1011
1011
  method: "POST",
1012
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
1012
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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),
1013
1013
  contentType: "application/json",
1014
1014
  requestType: "json",
1015
1015
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1074,7 +1074,7 @@ class Tools {
1074
1074
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1075
1075
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1076
1076
  method: "DELETE",
1077
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
1077
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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),
1078
1078
  contentType: "application/json",
1079
1079
  requestType: "json",
1080
1080
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Voice {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  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/${encodeURIComponent(agentId)}/chat/completions`),
83
83
  method: "POST",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.65", "User-Agent": "@letta-ai/letta-client/0.1.65", "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
  body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface AgentSchema {
6
+ agentType: string;
7
+ coreMemory: Letta.CoreMemoryBlockSchema[];
8
+ createdAt: string;
9
+ description: string;
10
+ embeddingConfig: Letta.EmbeddingConfig;
11
+ groups: unknown[];
12
+ identities: unknown[];
13
+ isDeleted: boolean;
14
+ llmConfig: Letta.LlmConfig;
15
+ messageBufferAutoclear: boolean;
16
+ messages: Letta.MessageSchema[];
17
+ metadata: Record<string, unknown>;
18
+ multiAgentGroup?: unknown;
19
+ name: string;
20
+ system: string;
21
+ tags: Letta.TagSchema[];
22
+ toolExecEnvironmentVariables: Letta.ToolEnvVarSchema[];
23
+ toolRules: Letta.ToolRuleSchema[];
24
+ tools: Letta.ToolSchema[];
25
+ updatedAt: string;
26
+ version: string;
27
+ }
@@ -8,11 +8,13 @@ import * as Letta from "../index";
8
8
  * Args:
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
- * content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
11
+ * name (Optional[str]): The name of the sender of the message
12
+ * content (Union[str, List[LettaAssistantMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
12
13
  */
13
14
  export interface AssistantMessage {
14
15
  id: string;
15
16
  date: Date;
17
+ name?: string;
16
18
  messageType: "assistant_message";
17
19
  /** The message content sent by the agent (can be a string or an array of content parts) */
18
20
  content: Letta.AssistantMessageContent;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CoreMemoryBlockSchema {
5
+ createdAt: string;
6
+ description?: string;
7
+ identities: unknown[];
8
+ isDeleted: boolean;
9
+ isTemplate: boolean;
10
+ label: string;
11
+ limit: number;
12
+ metadata?: Record<string, unknown>;
13
+ templateName?: string;
14
+ updatedAt: string;
15
+ value: string;
16
+ }
@@ -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 LettaMessageContentUnion = Letta.TextContent | Letta.ToolCallContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.OmittedReasoningContent;
@@ -31,7 +31,7 @@ export interface Message {
31
31
  /** The role of the participant. */
32
32
  role: Letta.MessageRole;
33
33
  /** The content of the message. */
34
- content?: Letta.TextContent[];
34
+ content?: Letta.MessageContentItem[];
35
35
  /** The unique identifier of the agent. */
36
36
  agentId?: string;
37
37
  /** The model used to make the function call. */
@@ -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 MessageContentItem = Letta.OmittedReasoningContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.TextContent | Letta.ToolCallContent | Letta.ToolReturnContent;
@@ -5,4 +5,4 @@ import * as Letta from "../index";
5
5
  /**
6
6
  * The content of the message.
7
7
  */
8
- export type MessageCreateContent = string | Letta.TextContent[];
8
+ export type MessageCreateContent = Letta.LettaMessageContentUnion[] | string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface MessageSchema {
6
+ createdAt: string;
7
+ groupId?: string;
8
+ inContext: boolean;
9
+ model?: string;
10
+ name?: string;
11
+ role: string;
12
+ content: Letta.TextContent[];
13
+ toolCallId?: string;
14
+ toolCalls: unknown[];
15
+ toolReturns: unknown[];
16
+ updatedAt: string;
17
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OmittedReasoningContent {
5
+ type: "omitted_reasoning";
6
+ /** The reasoning token count for intermediate reasoning content. */
7
+ tokens: number;
8
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ParameterProperties {
5
+ type: string;
6
+ description?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ParametersSchema {
6
+ type?: string;
7
+ properties: Record<string, Letta.ParameterProperties>;
8
+ required?: 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 });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ReasoningContent {
5
+ type: "reasoning";
6
+ /** Whether the reasoning content was generated by a reasoner model that processed this step. */
7
+ isNative: boolean;
8
+ /** The intermediate reasoning or thought process content. */
9
+ reasoning: string;
10
+ /** A unique identifier for this reasoning step. */
11
+ signature?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +1,23 @@
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
  /**
5
6
  * Representation of an agent's internal reasoning.
6
7
  *
7
8
  * Args:
8
9
  * id (str): The ID of the message
9
10
  * date (datetime): The date the message was created in ISO format
11
+ * name (Optional[str]): The name of the sender of the message
12
+ * source (Literal["reasoner_model", "non_reasoner_model"]): Whether the reasoning
13
+ * content was generated natively by a reasoner model or derived via prompting
10
14
  * reasoning (str): The internal reasoning of the agent
11
15
  */
12
16
  export interface ReasoningMessage {
13
17
  id: string;
14
18
  date: Date;
19
+ name?: string;
15
20
  messageType: "reasoning_message";
21
+ source?: Letta.ReasoningMessageSource;
16
22
  reasoning: string;
17
23
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ReasoningMessageSource = "reasoner_model" | "non_reasoner_model";
5
+ export declare const ReasoningMessageSource: {
6
+ readonly ReasonerModel: "reasoner_model";
7
+ readonly NonReasonerModel: "non_reasoner_model";
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.ReasoningMessageSource = void 0;
7
+ exports.ReasoningMessageSource = {
8
+ ReasonerModel: "reasoner_model",
9
+ NonReasonerModel: "non_reasoner_model",
10
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface RedactedReasoningContent {
5
+ type: "redacted_reasoning";
6
+ /** The redacted or filtered intermediate reasoning content. */
7
+ data: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +1,20 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Letta from "../index";
5
4
  /**
6
5
  * A message generated by the system. Never streamed back on a response, only used for cursor pagination.
7
6
  *
8
7
  * Args:
9
8
  * id (str): The ID of the message
10
9
  * date (datetime): The date the message was created in ISO format
11
- * content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the system (can be a string or an array of content parts)
10
+ * name (Optional[str]): The name of the sender of the message
11
+ * content (str): The message content sent by the system
12
12
  */
13
13
  export interface SystemMessage {
14
14
  id: string;
15
15
  date: Date;
16
+ name?: string;
16
17
  messageType: "system_message";
17
- /** The message content sent by the system (can be a string or an array of content parts) */
18
- content: Letta.SystemMessageContent;
18
+ /** The message content sent by the system */
19
+ content: string;
19
20
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TagSchema {
5
+ tag: string;
6
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolCallContent {
5
+ type: "tool_return";
6
+ /** A unique identifier for this specific tool call instance. */
7
+ id: string;
8
+ /** The name of the tool being called. */
9
+ name: string;
10
+ /** The parameters being passed to the tool, structured as a dictionary of parameter names to values. */
11
+ input: Record<string, unknown>;
12
+ }
@@ -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 });
@@ -8,11 +8,13 @@ import * as Letta from "../index";
8
8
  * Args:
9
9
  * id (str): The ID of the message
10
10
  * date (datetime): The date the message was created in ISO format
11
+ * name (Optional[str]): The name of the sender of the message
11
12
  * tool_call (Union[ToolCall, ToolCallDelta]): The tool call
12
13
  */
13
14
  export interface ToolCallMessage {
14
15
  id: string;
15
16
  date: Date;
17
+ name?: string;
16
18
  messageType: "tool_call_message";
17
19
  toolCall: Letta.ToolCallMessageToolCall;
18
20
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolEnvVarSchema {
5
+ createdAt: string;
6
+ description?: string;
7
+ isDeleted: boolean;
8
+ key: string;
9
+ updatedAt: string;
10
+ value: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ToolJsonSchema {
6
+ name: string;
7
+ description: string;
8
+ parameters: Letta.ParametersSchema;
9
+ type?: string;
10
+ required?: string[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolReturnContent {
5
+ type: "tool_return";
6
+ /** References the ID of the ToolCallContent that initiated this tool call. */
7
+ toolCallId: string;
8
+ /** The content returned by the tool execution. */
9
+ content: string;
10
+ /** Indicates whether the tool execution resulted in an error. */
11
+ isError: boolean;
12
+ }
@@ -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 });