@letta-ai/letta-client 0.1.33 → 0.1.35

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 (226) hide show
  1. package/api/resources/agents/client/Client.js +7 -7
  2. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  3. package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  12. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +8 -0
  13. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js +5 -0
  14. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +4 -0
  15. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js +5 -0
  16. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +8 -0
  17. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.js +5 -0
  18. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts +4 -0
  19. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js +5 -0
  20. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  21. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  22. package/api/resources/agents/types/index.d.ts +4 -0
  23. package/api/resources/agents/types/index.js +4 -0
  24. package/api/resources/blocks/client/Client.js +6 -6
  25. package/api/resources/health/client/Client.js +1 -1
  26. package/api/resources/identities/client/Client.d.ts +65 -0
  27. package/api/resources/identities/client/Client.js +330 -1
  28. package/api/resources/identities/client/requests/CreateIdentityRequest.d.ts +18 -0
  29. package/api/resources/identities/client/requests/CreateIdentityRequest.js +5 -0
  30. package/api/resources/identities/client/requests/IdentityUpdate.d.ts +16 -0
  31. package/api/resources/identities/client/requests/IdentityUpdate.js +5 -0
  32. package/api/resources/identities/client/requests/UpsertIdentityRequest.d.ts +18 -0
  33. package/api/resources/identities/client/requests/UpsertIdentityRequest.js +5 -0
  34. package/api/resources/identities/client/requests/index.d.ts +3 -0
  35. package/api/resources/jobs/client/Client.js +4 -4
  36. package/api/resources/models/client/Client.js +2 -2
  37. package/api/resources/providers/client/Client.js +4 -4
  38. package/api/resources/runs/client/Client.js +6 -6
  39. package/api/resources/sources/client/Client.js +6 -6
  40. package/api/resources/sources/resources/files/client/Client.js +3 -3
  41. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  42. package/api/resources/steps/client/Client.js +2 -2
  43. package/api/resources/tag/client/Client.js +1 -1
  44. package/api/resources/templates/client/Client.js +1 -1
  45. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  46. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.d.ts +8 -0
  47. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.js +5 -0
  48. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.d.ts +4 -0
  49. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.js +5 -0
  50. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.d.ts +8 -0
  51. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.js +5 -0
  52. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.d.ts +4 -0
  53. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.js +5 -0
  54. package/api/resources/templates/types/index.d.ts +4 -0
  55. package/api/resources/templates/types/index.js +4 -0
  56. package/api/resources/tools/client/Client.js +11 -11
  57. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  58. package/api/types/ContinueToolRule.d.ts +11 -0
  59. package/api/types/ContinueToolRule.js +5 -0
  60. package/api/types/Identity.d.ts +1 -1
  61. package/api/types/IdentityCreate.d.ts +16 -0
  62. package/api/types/IdentityCreate.js +5 -0
  63. package/api/types/index.d.ts +2 -0
  64. package/api/types/index.js +2 -0
  65. package/dist/api/resources/agents/client/Client.js +7 -7
  66. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  67. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  70. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  71. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  72. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  73. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  75. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  76. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +8 -0
  77. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js +5 -0
  78. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +4 -0
  79. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js +5 -0
  80. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +8 -0
  81. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.js +5 -0
  82. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts +4 -0
  83. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js +5 -0
  84. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  85. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  86. package/dist/api/resources/agents/types/index.d.ts +4 -0
  87. package/dist/api/resources/agents/types/index.js +4 -0
  88. package/dist/api/resources/blocks/client/Client.js +6 -6
  89. package/dist/api/resources/health/client/Client.js +1 -1
  90. package/dist/api/resources/identities/client/Client.d.ts +65 -0
  91. package/dist/api/resources/identities/client/Client.js +330 -1
  92. package/dist/api/resources/identities/client/requests/CreateIdentityRequest.d.ts +18 -0
  93. package/dist/api/resources/identities/client/requests/CreateIdentityRequest.js +5 -0
  94. package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +16 -0
  95. package/dist/api/resources/identities/client/requests/IdentityUpdate.js +5 -0
  96. package/dist/api/resources/identities/client/requests/UpsertIdentityRequest.d.ts +18 -0
  97. package/dist/api/resources/identities/client/requests/UpsertIdentityRequest.js +5 -0
  98. package/dist/api/resources/identities/client/requests/index.d.ts +3 -0
  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 +6 -6
  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/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  110. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.d.ts +8 -0
  111. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.js +5 -0
  112. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.d.ts +4 -0
  113. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.js +5 -0
  114. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.d.ts +8 -0
  115. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.js +5 -0
  116. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.d.ts +4 -0
  117. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.js +5 -0
  118. package/dist/api/resources/templates/types/index.d.ts +4 -0
  119. package/dist/api/resources/templates/types/index.js +4 -0
  120. package/dist/api/resources/tools/client/Client.js +11 -11
  121. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  122. package/dist/api/types/ContinueToolRule.d.ts +11 -0
  123. package/dist/api/types/ContinueToolRule.js +5 -0
  124. package/dist/api/types/Identity.d.ts +1 -1
  125. package/dist/api/types/IdentityCreate.d.ts +16 -0
  126. package/dist/api/types/IdentityCreate.js +5 -0
  127. package/dist/api/types/index.d.ts +2 -0
  128. package/dist/api/types/index.js +2 -0
  129. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  130. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  131. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +2 -1
  132. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +2 -0
  133. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +14 -0
  134. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js +45 -0
  135. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +10 -0
  136. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js +44 -0
  137. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +14 -0
  138. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.js +45 -0
  139. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts +10 -0
  140. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js +44 -0
  141. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  142. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +8 -1
  143. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  144. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +8 -1
  145. package/dist/serialization/resources/agents/types/index.d.ts +4 -0
  146. package/dist/serialization/resources/agents/types/index.js +4 -0
  147. package/dist/serialization/resources/identities/client/index.d.ts +1 -0
  148. package/dist/serialization/resources/identities/client/index.js +4 -0
  149. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +15 -0
  150. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +46 -0
  151. package/dist/serialization/resources/identities/client/requests/index.d.ts +1 -0
  152. package/dist/serialization/resources/identities/client/requests/index.js +5 -0
  153. package/dist/serialization/resources/index.d.ts +1 -0
  154. package/dist/serialization/resources/index.js +1 -0
  155. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +2 -1
  156. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.js +2 -0
  157. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.d.ts +14 -0
  158. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.js +45 -0
  159. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.d.ts +10 -0
  160. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.js +44 -0
  161. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.d.ts +14 -0
  162. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.js +45 -0
  163. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.d.ts +10 -0
  164. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.js +44 -0
  165. package/dist/serialization/resources/templates/types/index.d.ts +4 -0
  166. package/dist/serialization/resources/templates/types/index.js +4 -0
  167. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  168. package/dist/serialization/types/AgentStateToolRulesItem.js +8 -1
  169. package/dist/serialization/types/ContinueToolRule.d.ts +13 -0
  170. package/dist/serialization/types/ContinueToolRule.js +44 -0
  171. package/dist/serialization/types/IdentityCreate.d.ts +17 -0
  172. package/dist/serialization/types/IdentityCreate.js +48 -0
  173. package/dist/serialization/types/index.d.ts +2 -0
  174. package/dist/serialization/types/index.js +2 -0
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +1 -1
  178. package/reference.md +275 -0
  179. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  180. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  181. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +2 -1
  182. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +2 -0
  183. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +14 -0
  184. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js +45 -0
  185. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +10 -0
  186. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js +44 -0
  187. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +14 -0
  188. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.js +45 -0
  189. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts +10 -0
  190. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js +44 -0
  191. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  192. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +8 -1
  193. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  194. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +8 -1
  195. package/serialization/resources/agents/types/index.d.ts +4 -0
  196. package/serialization/resources/agents/types/index.js +4 -0
  197. package/serialization/resources/identities/client/index.d.ts +1 -0
  198. package/serialization/resources/identities/client/index.js +4 -0
  199. package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +15 -0
  200. package/serialization/resources/identities/client/requests/IdentityUpdate.js +46 -0
  201. package/serialization/resources/identities/client/requests/index.d.ts +1 -0
  202. package/serialization/resources/identities/client/requests/index.js +5 -0
  203. package/serialization/resources/index.d.ts +1 -0
  204. package/serialization/resources/index.js +1 -0
  205. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +2 -1
  206. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.js +2 -0
  207. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.d.ts +14 -0
  208. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName.js +45 -0
  209. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.d.ts +10 -0
  210. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType.js +44 -0
  211. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.d.ts +14 -0
  212. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName.js +45 -0
  213. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.d.ts +10 -0
  214. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType.js +44 -0
  215. package/serialization/resources/templates/types/index.d.ts +4 -0
  216. package/serialization/resources/templates/types/index.js +4 -0
  217. package/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  218. package/serialization/types/AgentStateToolRulesItem.js +8 -1
  219. package/serialization/types/ContinueToolRule.d.ts +13 -0
  220. package/serialization/types/ContinueToolRule.js +44 -0
  221. package/serialization/types/IdentityCreate.d.ts +17 -0
  222. package/serialization/types/IdentityCreate.js +48 -0
  223. package/serialization/types/index.d.ts +2 -0
  224. package/serialization/types/index.js +2 -0
  225. package/version.d.ts +1 -1
  226. package/version.js +1 -1
@@ -75,7 +75,7 @@ class Runs {
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/runs/"),
77
77
  method: "GET",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -139,7 +139,7 @@ class Runs {
139
139
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
140
140
  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/runs/active"),
141
141
  method: "GET",
142
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
142
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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),
143
143
  contentType: "application/json",
144
144
  requestType: "json",
145
145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -204,7 +204,7 @@ class Runs {
204
204
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
205
205
  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/runs/${encodeURIComponent(runId)}`),
206
206
  method: "GET",
207
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
207
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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),
208
208
  contentType: "application/json",
209
209
  requestType: "json",
210
210
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -269,7 +269,7 @@ class Runs {
269
269
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
270
  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/runs/${encodeURIComponent(runId)}`),
271
271
  method: "DELETE",
272
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
272
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -365,7 +365,7 @@ class Runs {
365
365
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
366
366
  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/runs/${encodeURIComponent(runId)}/messages`),
367
367
  method: "GET",
368
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
368
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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),
369
369
  contentType: "application/json",
370
370
  queryParameters: _queryParams,
371
371
  requestType: "json",
@@ -431,7 +431,7 @@ class Runs {
431
431
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
432
432
  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/runs/${encodeURIComponent(runId)}/usage`),
433
433
  method: "GET",
434
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
434
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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),
435
435
  contentType: "application/json",
436
436
  requestType: "json",
437
437
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -100,7 +100,7 @@ class Steps {
100
100
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
101
101
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
102
102
  method: "GET",
103
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
104
  contentType: "application/json",
105
105
  queryParameters: _queryParams,
106
106
  requestType: "json",
@@ -166,7 +166,7 @@ class Steps {
166
166
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
167
167
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
168
168
  method: "GET",
169
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tag {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.TemplatesCreateAgentsFromTemplateRequest.jsonOrThrow(request, {
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem = Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildren | Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOne | Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwo | Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMapping;
5
+ export type TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem = Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildren | Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOne | Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwo | Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMapping | Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName {
6
+ toolName: string;
7
+ type?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType;
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType = "continue_loop" | unknown;
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName {
6
+ toolName: string;
7
+ type?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType;
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType = "continue_loop" | unknown;
@@ -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 });
@@ -17,6 +17,8 @@ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesIte
17
17
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild";
18
18
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping";
19
19
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMapping";
20
+ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType";
21
+ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName";
20
22
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItem";
21
23
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType";
22
24
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildren";
@@ -29,6 +31,8 @@ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesIte
29
31
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild";
30
32
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping";
31
33
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMapping";
34
+ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType";
35
+ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName";
32
36
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem";
33
37
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRules";
34
38
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageIdsItem";
@@ -33,6 +33,8 @@ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolR
33
33
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild"), exports);
34
34
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping"), exports);
35
35
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMapping"), exports);
36
+ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType"), exports);
37
+ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName"), exports);
36
38
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItem"), exports);
37
39
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType"), exports);
38
40
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildren"), exports);
@@ -45,6 +47,8 @@ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolR
45
47
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild"), exports);
46
48
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping"), exports);
47
49
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMapping"), exports);
50
+ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType"), exports);
51
+ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName"), exports);
48
52
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem"), exports);
49
53
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRules"), exports);
50
54
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageIdsItem"), exports);
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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.35", "User-Agent": "@letta-ai/letta-client/0.1.35", "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,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type AgentStateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.TerminalToolRule | Letta.InitToolRule;
5
+ export type AgentStateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.InitToolRule;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Represents a tool rule configuration where if this tool gets called, it must continue the agent loop.
6
+ */
7
+ export interface ContinueToolRule {
8
+ /** The name of the tool. Must exist in the database for the user's organization. */
9
+ toolName: string;
10
+ type: "continue_loop";
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 });
@@ -13,6 +13,6 @@ export interface Identity {
13
13
  identityType: Letta.IdentityType;
14
14
  /** The project id of the identity, if applicable. */
15
15
  projectId?: string;
16
- /** The ids of the agents associated with the identity. */
16
+ /** The agents associated with the identity. */
17
17
  agents: Letta.AgentState[];
18
18
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface IdentityCreate {
6
+ /** External, user-generated identifier key of the identity. */
7
+ identifierKey: string;
8
+ /** The name of the identity. */
9
+ name: string;
10
+ /** The type of the identity. */
11
+ identityType: Letta.IdentityType;
12
+ /** The project id of the identity, if applicable. */
13
+ projectId?: string;
14
+ /** The agent ids that are associated with the identity. */
15
+ agentIds?: string[];
16
+ }
@@ -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 });
@@ -72,6 +72,7 @@ export * from "./CompletionCreateParamsStreamingToolChoice";
72
72
  export * from "./CompletionCreateParamsStreaming";
73
73
  export * from "./ConditionalToolRule";
74
74
  export * from "./ContextWindowOverview";
75
+ export * from "./ContinueToolRule";
75
76
  export * from "./CreateBlock";
76
77
  export * from "./E2BSandboxConfig";
77
78
  export * from "./EmbeddingConfigEmbeddingEndpointType";
@@ -85,6 +86,7 @@ export * from "./FunctionTool";
85
86
  export * from "./HttpValidationError";
86
87
  export * from "./Health";
87
88
  export * from "./Identity";
89
+ export * from "./IdentityCreate";
88
90
  export * from "./IdentityType";
89
91
  export * from "./ImageUrlDetail";
90
92
  export * from "./ImageUrl";
@@ -88,6 +88,7 @@ __exportStar(require("./CompletionCreateParamsStreamingToolChoice"), exports);
88
88
  __exportStar(require("./CompletionCreateParamsStreaming"), exports);
89
89
  __exportStar(require("./ConditionalToolRule"), exports);
90
90
  __exportStar(require("./ContextWindowOverview"), exports);
91
+ __exportStar(require("./ContinueToolRule"), exports);
91
92
  __exportStar(require("./CreateBlock"), exports);
92
93
  __exportStar(require("./E2BSandboxConfig"), exports);
93
94
  __exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
@@ -101,6 +102,7 @@ __exportStar(require("./FunctionTool"), exports);
101
102
  __exportStar(require("./HttpValidationError"), exports);
102
103
  __exportStar(require("./Health"), exports);
103
104
  __exportStar(require("./Identity"), exports);
105
+ __exportStar(require("./IdentityCreate"), exports);
104
106
  __exportStar(require("./IdentityType"), exports);
105
107
  __exportStar(require("./ImageUrlDetail"), exports);
106
108
  __exportStar(require("./ImageUrl"), exports);
@@ -28,6 +28,7 @@ export declare namespace CreateAgentRequest {
28
28
  initial_message_sequence?: MessageCreate.Raw[] | null;
29
29
  include_base_tools?: boolean | null;
30
30
  include_multi_agent_tools?: boolean | null;
31
+ include_base_tool_rules?: boolean | null;
31
32
  description?: string | null;
32
33
  metadata?: Record<string, unknown> | null;
33
34
  model?: string | null;
@@ -60,6 +60,7 @@ exports.CreateAgentRequest = core.serialization.object({
60
60
  initialMessageSequence: core.serialization.property("initial_message_sequence", core.serialization.list(MessageCreate_1.MessageCreate).optional()),
61
61
  includeBaseTools: core.serialization.property("include_base_tools", core.serialization.boolean().optional()),
62
62
  includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
63
+ includeBaseToolRules: core.serialization.property("include_base_tool_rules", core.serialization.boolean().optional()),
63
64
  description: core.serialization.string().optional(),
64
65
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
65
66
  model: core.serialization.string().optional(),
@@ -8,7 +8,8 @@ import { AgentsSearchResponseAgentsItemToolRulesItemItemChildren } from "./Agent
8
8
  import { AgentsSearchResponseAgentsItemToolRulesItemItemOne } from "./AgentsSearchResponseAgentsItemToolRulesItemItemOne";
9
9
  import { AgentsSearchResponseAgentsItemToolRulesItemItemTwo } from "./AgentsSearchResponseAgentsItemToolRulesItemItemTwo";
10
10
  import { AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping } from "./AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping";
11
+ import { AgentsSearchResponseAgentsItemToolRulesItemItemToolName } from "./AgentsSearchResponseAgentsItemToolRulesItemItemToolName";
11
12
  export declare const AgentsSearchResponseAgentsItemToolRulesItemItem: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemToolRulesItemItem.Raw, Letta.AgentsSearchResponseAgentsItemToolRulesItemItem>;
12
13
  export declare namespace AgentsSearchResponseAgentsItemToolRulesItemItem {
13
- type Raw = AgentsSearchResponseAgentsItemToolRulesItemItemChildren.Raw | AgentsSearchResponseAgentsItemToolRulesItemItemOne.Raw | AgentsSearchResponseAgentsItemToolRulesItemItemTwo.Raw | AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping.Raw;
14
+ type Raw = AgentsSearchResponseAgentsItemToolRulesItemItemChildren.Raw | AgentsSearchResponseAgentsItemToolRulesItemItemOne.Raw | AgentsSearchResponseAgentsItemToolRulesItemItemTwo.Raw | AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping.Raw | AgentsSearchResponseAgentsItemToolRulesItemItemToolName.Raw;
14
15
  }