@letta-ai/letta-client 0.1.176 → 0.1.178

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 (432) hide show
  1. package/api/resources/agents/client/Client.d.ts +9 -3
  2. package/api/resources/agents/client/Client.js +31 -16
  3. package/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +14 -0
  4. package/api/resources/agents/client/requests/index.d.ts +1 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.js +3 -3
  9. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
  13. package/api/resources/agents/resources/messages/client/Client.js +14 -18
  14. package/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +11 -0
  15. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  16. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  17. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  18. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  19. package/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +2 -0
  20. package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +2 -0
  21. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  22. package/api/resources/batches/client/Client.js +4 -4
  23. package/api/resources/blocks/client/Client.js +6 -6
  24. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  25. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  26. package/api/resources/embeddingModels/client/Client.js +1 -1
  27. package/api/resources/folders/client/Client.js +9 -9
  28. package/api/resources/folders/resources/files/client/Client.js +3 -3
  29. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  30. package/api/resources/groups/client/Client.js +6 -6
  31. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  32. package/api/resources/health/client/Client.js +1 -1
  33. package/api/resources/identities/client/Client.js +7 -7
  34. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  35. package/api/resources/jobs/client/Client.js +5 -5
  36. package/api/resources/messages/client/Client.js +1 -1
  37. package/api/resources/models/client/Client.js +1 -1
  38. package/api/resources/projects/client/Client.js +1 -1
  39. package/api/resources/providers/client/Client.d.ts +15 -3
  40. package/api/resources/providers/client/Client.js +64 -8
  41. package/{dist/api/types → api/resources/providers/client/requests}/ProviderCheck.d.ts +12 -1
  42. package/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
  43. package/api/resources/providers/client/requests/ProviderUpdate.d.ts +4 -0
  44. package/api/resources/providers/client/requests/index.d.ts +1 -0
  45. package/api/resources/runs/client/Client.js +4 -4
  46. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  47. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  48. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  49. package/api/resources/sources/client/Client.js +10 -10
  50. package/api/resources/sources/resources/files/client/Client.js +3 -3
  51. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  52. package/api/resources/steps/client/Client.d.ts +13 -0
  53. package/api/resources/steps/client/Client.js +78 -2
  54. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  55. package/api/resources/tags/client/Client.js +1 -1
  56. package/api/resources/telemetry/client/Client.js +1 -1
  57. package/api/resources/templates/client/Client.js +1 -1
  58. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  59. package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  60. package/api/resources/tools/client/Client.d.ts +1 -1
  61. package/api/resources/tools/client/Client.js +21 -21
  62. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/AgentFileSchema.d.ts +27 -0
  65. package/api/types/BlockSchema.d.ts +29 -0
  66. package/api/types/BodyExportAgentSerialized.d.ts +8 -0
  67. package/api/types/CodeInput.d.ts +3 -1
  68. package/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  69. package/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
  70. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
  71. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  72. package/api/types/FileAgentSchema.d.ts +28 -0
  73. package/api/types/FileSchema.d.ts +37 -0
  74. package/api/types/GroupSchema.d.ts +21 -0
  75. package/api/types/GroupSchemaManagerConfig.d.ts +8 -0
  76. package/api/types/ImportedAgentsResponse.d.ts +10 -0
  77. package/api/types/ImportedAgentsResponse.js +5 -0
  78. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
  79. package/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
  80. package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
  81. package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
  82. package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
  83. package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
  84. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
  85. package/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
  86. package/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
  87. package/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
  88. package/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
  89. package/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
  90. package/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
  91. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
  92. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
  93. package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
  94. package/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
  95. package/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
  96. package/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
  97. package/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
  98. package/api/types/LlmConfig.d.ts +1 -1
  99. package/api/types/LlmConfigModelEndpointType.d.ts +1 -2
  100. package/api/types/LlmConfigModelEndpointType.js +0 -1
  101. package/api/types/LlmConfigReasoningEffort.d.ts +2 -1
  102. package/api/types/LlmConfigReasoningEffort.js +1 -0
  103. package/api/types/McpServerSchema.d.ts +15 -0
  104. package/api/types/McpServerSchema.js +5 -0
  105. package/api/types/McpToolExecuteRequest.d.ts +7 -0
  106. package/api/types/McpToolExecuteRequest.js +5 -0
  107. package/api/types/Provider.d.ts +2 -0
  108. package/api/types/ProviderType.d.ts +1 -2
  109. package/api/types/ProviderType.js +0 -1
  110. package/api/types/SourceSchema.d.ts +25 -0
  111. package/api/types/SourceSchema.js +5 -0
  112. package/api/types/StepMetrics.d.ts +25 -0
  113. package/api/types/StepMetrics.js +5 -0
  114. package/api/types/index.d.ts +22 -5
  115. package/api/types/index.js +22 -5
  116. package/dist/api/resources/agents/client/Client.d.ts +9 -3
  117. package/dist/api/resources/agents/client/Client.js +31 -16
  118. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +14 -0
  119. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.js +5 -0
  120. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  121. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  122. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  123. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  124. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  125. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  126. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  127. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  128. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
  129. package/dist/api/resources/agents/resources/messages/client/Client.js +14 -18
  130. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +11 -0
  131. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +5 -0
  132. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  133. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  134. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  135. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  136. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +2 -0
  137. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +2 -0
  138. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  139. package/dist/api/resources/batches/client/Client.js +4 -4
  140. package/dist/api/resources/blocks/client/Client.js +6 -6
  141. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  142. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  143. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  144. package/dist/api/resources/folders/client/Client.js +9 -9
  145. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  146. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  147. package/dist/api/resources/groups/client/Client.js +6 -6
  148. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  149. package/dist/api/resources/health/client/Client.js +1 -1
  150. package/dist/api/resources/identities/client/Client.js +7 -7
  151. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  152. package/dist/api/resources/jobs/client/Client.js +5 -5
  153. package/dist/api/resources/messages/client/Client.js +1 -1
  154. package/dist/api/resources/models/client/Client.js +1 -1
  155. package/dist/api/resources/projects/client/Client.js +1 -1
  156. package/dist/api/resources/providers/client/Client.d.ts +15 -3
  157. package/dist/api/resources/providers/client/Client.js +64 -8
  158. package/{api/types → dist/api/resources/providers/client/requests}/ProviderCheck.d.ts +12 -1
  159. package/dist/api/resources/providers/client/requests/ProviderCheck.js +5 -0
  160. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
  161. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +4 -0
  162. package/dist/api/resources/providers/client/requests/index.d.ts +1 -0
  163. package/dist/api/resources/runs/client/Client.js +4 -4
  164. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  165. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  166. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  167. package/dist/api/resources/sources/client/Client.js +10 -10
  168. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  169. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  170. package/dist/api/resources/steps/client/Client.d.ts +13 -0
  171. package/dist/api/resources/steps/client/Client.js +78 -2
  172. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  173. package/dist/api/resources/tags/client/Client.js +1 -1
  174. package/dist/api/resources/telemetry/client/Client.js +1 -1
  175. package/dist/api/resources/templates/client/Client.js +1 -1
  176. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  177. package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  178. package/dist/api/resources/tools/client/Client.d.ts +1 -1
  179. package/dist/api/resources/tools/client/Client.js +21 -21
  180. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  181. package/dist/api/resources/voice/client/Client.js +1 -1
  182. package/dist/api/types/AgentFileSchema.d.ts +27 -0
  183. package/dist/api/types/AgentFileSchema.js +5 -0
  184. package/dist/api/types/BlockSchema.d.ts +29 -0
  185. package/dist/api/types/BlockSchema.js +5 -0
  186. package/dist/api/types/BodyExportAgentSerialized.d.ts +8 -0
  187. package/dist/api/types/BodyExportAgentSerialized.js +5 -0
  188. package/dist/api/types/CodeInput.d.ts +3 -1
  189. package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  190. package/dist/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
  191. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
  192. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  193. package/dist/api/types/FileAgentSchema.d.ts +28 -0
  194. package/dist/api/types/FileAgentSchema.js +5 -0
  195. package/dist/api/types/FileSchema.d.ts +37 -0
  196. package/dist/api/types/FileSchema.js +5 -0
  197. package/dist/api/types/GroupSchema.d.ts +21 -0
  198. package/dist/api/types/GroupSchema.js +5 -0
  199. package/dist/api/types/GroupSchemaManagerConfig.d.ts +8 -0
  200. package/dist/api/types/GroupSchemaManagerConfig.js +5 -0
  201. package/dist/api/types/ImportedAgentsResponse.d.ts +10 -0
  202. package/dist/api/types/ImportedAgentsResponse.js +5 -0
  203. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
  204. package/dist/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
  205. package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
  206. package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
  207. package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
  208. package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
  209. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
  210. package/dist/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
  211. package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
  212. package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
  213. package/dist/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
  214. package/dist/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
  215. package/dist/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
  216. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
  217. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
  218. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
  219. package/dist/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
  220. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
  221. package/dist/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
  222. package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
  223. package/dist/api/types/LlmConfig.d.ts +1 -1
  224. package/dist/api/types/LlmConfigModelEndpointType.d.ts +1 -2
  225. package/dist/api/types/LlmConfigModelEndpointType.js +0 -1
  226. package/dist/api/types/LlmConfigReasoningEffort.d.ts +2 -1
  227. package/dist/api/types/LlmConfigReasoningEffort.js +1 -0
  228. package/dist/api/types/McpServerSchema.d.ts +15 -0
  229. package/dist/api/types/McpServerSchema.js +5 -0
  230. package/dist/api/types/McpToolExecuteRequest.d.ts +7 -0
  231. package/dist/api/types/McpToolExecuteRequest.js +5 -0
  232. package/dist/api/types/Provider.d.ts +2 -0
  233. package/dist/api/types/ProviderType.d.ts +1 -2
  234. package/dist/api/types/ProviderType.js +0 -1
  235. package/dist/api/types/SourceSchema.d.ts +25 -0
  236. package/dist/api/types/SourceSchema.js +5 -0
  237. package/dist/api/types/StepMetrics.d.ts +25 -0
  238. package/dist/api/types/StepMetrics.js +5 -0
  239. package/dist/api/types/index.d.ts +22 -5
  240. package/dist/api/types/index.js +22 -5
  241. package/dist/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
  242. package/dist/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
  243. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +12 -0
  244. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +43 -0
  245. package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  246. package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  247. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
  248. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
  249. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
  250. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
  251. package/dist/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
  252. package/{serialization/types → dist/serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
  253. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  254. package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  255. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  256. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  257. package/dist/serialization/resources/providers/client/requests/index.d.ts +1 -0
  258. package/dist/serialization/resources/providers/client/requests/index.js +3 -1
  259. package/dist/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
  260. package/dist/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
  261. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
  262. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
  263. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  264. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  265. package/dist/serialization/types/AgentFileSchema.d.ts +27 -0
  266. package/dist/serialization/types/AgentFileSchema.js +58 -0
  267. package/dist/serialization/types/BlockSchema.d.ts +22 -0
  268. package/dist/serialization/types/BlockSchema.js +53 -0
  269. package/dist/serialization/types/BodyExportAgentSerialized.d.ts +15 -0
  270. package/dist/serialization/types/BodyExportAgentSerialized.js +46 -0
  271. package/dist/serialization/types/CodeInput.d.ts +1 -0
  272. package/dist/serialization/types/CodeInput.js +1 -0
  273. package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  274. package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  275. package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  276. package/dist/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  277. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  278. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  279. package/dist/serialization/types/FileAgentSchema.d.ts +21 -0
  280. package/dist/serialization/types/FileAgentSchema.js +52 -0
  281. package/dist/serialization/types/FileSchema.d.ts +26 -0
  282. package/dist/serialization/types/FileSchema.js +57 -0
  283. package/dist/serialization/types/GroupSchema.d.ts +18 -0
  284. package/dist/serialization/types/GroupSchema.js +49 -0
  285. package/dist/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
  286. package/dist/serialization/types/GroupSchemaManagerConfig.js +52 -0
  287. package/dist/serialization/types/ImportedAgentsResponse.d.ts +12 -0
  288. package/dist/serialization/types/ImportedAgentsResponse.js +43 -0
  289. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
  290. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
  291. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
  292. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
  293. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
  294. package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
  295. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
  296. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
  297. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
  298. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
  299. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
  300. package/dist/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
  301. package/dist/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
  302. package/dist/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
  303. package/{serialization/types/AgentSchemaToolRulesItem.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
  304. package/{serialization/types/AgentSchemaToolRulesItem.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
  305. package/dist/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
  306. package/{serialization/types/MessageSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
  307. package/{serialization/types/ToolSchema.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
  308. package/{serialization/types/ToolSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
  309. package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  310. package/dist/serialization/types/LlmConfigModelEndpointType.js +0 -1
  311. package/dist/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
  312. package/dist/serialization/types/LlmConfigReasoningEffort.js +1 -1
  313. package/dist/serialization/types/McpServerSchema.d.ts +17 -0
  314. package/dist/serialization/types/McpServerSchema.js +48 -0
  315. package/dist/serialization/types/McpToolExecuteRequest.d.ts +12 -0
  316. package/dist/serialization/types/McpToolExecuteRequest.js +43 -0
  317. package/dist/serialization/types/Provider.d.ts +1 -0
  318. package/dist/serialization/types/Provider.js +1 -0
  319. package/dist/serialization/types/ProviderType.d.ts +1 -1
  320. package/dist/serialization/types/ProviderType.js +0 -1
  321. package/dist/serialization/types/SourceSchema.d.ts +20 -0
  322. package/dist/serialization/types/SourceSchema.js +51 -0
  323. package/dist/serialization/types/StepMetrics.d.ts +21 -0
  324. package/dist/serialization/types/StepMetrics.js +52 -0
  325. package/dist/serialization/types/index.d.ts +22 -5
  326. package/dist/serialization/types/index.js +22 -5
  327. package/dist/version.d.ts +1 -1
  328. package/dist/version.js +1 -1
  329. package/package.json +1 -1
  330. package/reference.md +138 -11
  331. package/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
  332. package/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
  333. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +12 -0
  334. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +43 -0
  335. package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  336. package/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  337. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
  338. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
  339. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
  340. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
  341. package/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
  342. package/{dist/serialization/types → serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
  343. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  344. package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  345. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  346. package/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  347. package/serialization/resources/providers/client/requests/index.d.ts +1 -0
  348. package/serialization/resources/providers/client/requests/index.js +3 -1
  349. package/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
  350. package/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
  351. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
  352. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
  353. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  354. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  355. package/serialization/types/AgentFileSchema.d.ts +27 -0
  356. package/serialization/types/AgentFileSchema.js +58 -0
  357. package/serialization/types/BlockSchema.d.ts +22 -0
  358. package/serialization/types/BlockSchema.js +53 -0
  359. package/serialization/types/BodyExportAgentSerialized.d.ts +15 -0
  360. package/serialization/types/BodyExportAgentSerialized.js +46 -0
  361. package/serialization/types/CodeInput.d.ts +1 -0
  362. package/serialization/types/CodeInput.js +1 -0
  363. package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
  364. package/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
  365. package/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
  366. package/serialization/types/CompletionCreateParamsStreaming.js +2 -0
  367. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  368. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
  369. package/serialization/types/FileAgentSchema.d.ts +21 -0
  370. package/serialization/types/FileAgentSchema.js +52 -0
  371. package/serialization/types/FileSchema.d.ts +26 -0
  372. package/serialization/types/FileSchema.js +57 -0
  373. package/serialization/types/GroupSchema.d.ts +18 -0
  374. package/serialization/types/GroupSchema.js +49 -0
  375. package/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
  376. package/serialization/types/GroupSchemaManagerConfig.js +52 -0
  377. package/serialization/types/ImportedAgentsResponse.d.ts +12 -0
  378. package/serialization/types/ImportedAgentsResponse.js +43 -0
  379. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
  380. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
  381. package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
  382. package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
  383. package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
  384. package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
  385. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
  386. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
  387. package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
  388. package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
  389. package/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
  390. package/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
  391. package/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
  392. package/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
  393. package/{dist/serialization/types/AgentSchemaToolRulesItem.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
  394. package/{dist/serialization/types/AgentSchemaToolRulesItem.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
  395. package/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
  396. package/{dist/serialization/types/MessageSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
  397. package/{dist/serialization/types/ToolSchema.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
  398. package/{dist/serialization/types/ToolSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
  399. package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
  400. package/serialization/types/LlmConfigModelEndpointType.js +0 -1
  401. package/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
  402. package/serialization/types/LlmConfigReasoningEffort.js +1 -1
  403. package/serialization/types/McpServerSchema.d.ts +17 -0
  404. package/serialization/types/McpServerSchema.js +48 -0
  405. package/serialization/types/McpToolExecuteRequest.d.ts +12 -0
  406. package/serialization/types/McpToolExecuteRequest.js +43 -0
  407. package/serialization/types/Provider.d.ts +1 -0
  408. package/serialization/types/Provider.js +1 -0
  409. package/serialization/types/ProviderType.d.ts +1 -1
  410. package/serialization/types/ProviderType.js +0 -1
  411. package/serialization/types/SourceSchema.d.ts +20 -0
  412. package/serialization/types/SourceSchema.js +51 -0
  413. package/serialization/types/StepMetrics.d.ts +21 -0
  414. package/serialization/types/StepMetrics.js +52 -0
  415. package/serialization/types/index.d.ts +22 -5
  416. package/serialization/types/index.js +22 -5
  417. package/version.d.ts +1 -1
  418. package/version.js +1 -1
  419. package/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
  420. package/dist/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
  421. package/dist/serialization/types/ProviderCheck.d.ts +0 -16
  422. package/serialization/types/ProviderCheck.d.ts +0 -16
  423. /package/api/{types/AgentSchema.js → resources/agents/client/requests/AgentsExportFileRequest.js} +0 -0
  424. /package/api/{types/AgentSchemaToolRulesItem.js → resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js} +0 -0
  425. /package/api/{types → resources/providers/client/requests}/ProviderCheck.js +0 -0
  426. /package/api/types/{MessageSchema.js → AgentFileSchema.js} +0 -0
  427. /package/api/types/{ToolSchema.js → BlockSchema.js} +0 -0
  428. /package/{dist/api/types/AgentSchema.js → api/types/BodyExportAgentSerialized.js} +0 -0
  429. /package/{dist/api/types/AgentSchemaToolRulesItem.js → api/types/FileAgentSchema.js} +0 -0
  430. /package/{dist/api/types/MessageSchema.js → api/types/FileSchema.js} +0 -0
  431. /package/{dist/api/types/ProviderCheck.js → api/types/GroupSchema.js} +0 -0
  432. /package/{dist/api/types/ToolSchema.js → api/types/GroupSchemaManagerConfig.js} +0 -0
@@ -112,7 +112,12 @@ export declare class Agents {
112
112
  /**
113
113
  * Export the serialized JSON representation of an agent, formatted with indentation.
114
114
  *
115
+ * Supports two export formats:
116
+ * - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
117
+ * - New format (default): Multi-entity format with separate agents, tools, blocks, files, etc.
118
+ *
115
119
  * @param {string} agentId
120
+ * @param {Letta.AgentsExportFileRequest} request
116
121
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
117
122
  *
118
123
  * @throws {@link Letta.UnprocessableEntityError}
@@ -120,10 +125,11 @@ export declare class Agents {
120
125
  * @example
121
126
  * await client.agents.exportFile("agent_id")
122
127
  */
123
- exportFile(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<string>;
128
+ exportFile(agentId: string, request?: Letta.AgentsExportFileRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<string>;
124
129
  private __exportFile;
125
130
  /**
126
- * Import a serialized agent file and recreate the agent in the system.
131
+ * Import a serialized agent file and recreate the agent(s) in the system.
132
+ * Returns the IDs of all imported agents.
127
133
  *
128
134
  * @param {File | fs.ReadStream | Blob} file
129
135
  * @param {Letta.BodyImportAgentSerialized} request
@@ -134,7 +140,7 @@ export declare class Agents {
134
140
  * @example
135
141
  * await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {})
136
142
  */
137
- importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
143
+ importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.ImportedAgentsResponse>;
138
144
  private __importFile;
139
145
  /**
140
146
  * Get the state of the agent.
@@ -207,7 +207,7 @@ class Agents {
207
207
  method: "GET",
208
208
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
209
209
  ? yield core.Supplier.get(this._options.project)
210
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
210
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
211
211
  contentType: "application/json",
212
212
  queryParameters: _queryParams,
213
213
  requestType: "json",
@@ -284,7 +284,7 @@ class Agents {
284
284
  method: "POST",
285
285
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
286
286
  ? yield core.Supplier.get(this._options.project)
287
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
287
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
288
288
  contentType: "application/json",
289
289
  requestType: "json",
290
290
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -360,7 +360,7 @@ class Agents {
360
360
  method: "GET",
361
361
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
362
362
  ? yield core.Supplier.get(this._options.project)
363
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
363
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
364
364
  contentType: "application/json",
365
365
  requestType: "json",
366
366
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -417,7 +417,12 @@ class Agents {
417
417
  /**
418
418
  * Export the serialized JSON representation of an agent, formatted with indentation.
419
419
  *
420
+ * Supports two export formats:
421
+ * - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
422
+ * - New format (default): Multi-entity format with separate agents, tools, blocks, files, etc.
423
+ *
420
424
  * @param {string} agentId
425
+ * @param {Letta.AgentsExportFileRequest} request
421
426
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
422
427
  *
423
428
  * @throws {@link Letta.UnprocessableEntityError}
@@ -425,19 +430,28 @@ class Agents {
425
430
  * @example
426
431
  * await client.agents.exportFile("agent_id")
427
432
  */
428
- exportFile(agentId, requestOptions) {
429
- return core.HttpResponsePromise.fromPromise(this.__exportFile(agentId, requestOptions));
433
+ exportFile(agentId, request = {}, requestOptions) {
434
+ return core.HttpResponsePromise.fromPromise(this.__exportFile(agentId, request, requestOptions));
430
435
  }
431
- __exportFile(agentId, requestOptions) {
432
- return __awaiter(this, void 0, void 0, function* () {
436
+ __exportFile(agentId_1) {
437
+ return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
433
438
  var _a, _b, _c;
439
+ const { maxSteps, useLegacyFormat } = request;
440
+ const _queryParams = {};
441
+ if (maxSteps != null) {
442
+ _queryParams["max_steps"] = maxSteps.toString();
443
+ }
444
+ if (useLegacyFormat != null) {
445
+ _queryParams["use_legacy_format"] = useLegacyFormat.toString();
446
+ }
434
447
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
435
448
  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/agents/${encodeURIComponent(agentId)}/export`),
436
449
  method: "GET",
437
450
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
438
451
  ? yield core.Supplier.get(this._options.project)
439
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
452
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
440
453
  contentType: "application/json",
454
+ queryParameters: _queryParams,
441
455
  requestType: "json",
442
456
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
443
457
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -491,7 +505,8 @@ class Agents {
491
505
  });
492
506
  }
493
507
  /**
494
- * Import a serialized agent file and recreate the agent in the system.
508
+ * Import a serialized agent file and recreate the agent(s) in the system.
509
+ * Returns the IDs of all imported agents.
495
510
  *
496
511
  * @param {File | fs.ReadStream | Blob} file
497
512
  * @param {Letta.BodyImportAgentSerialized} request
@@ -531,7 +546,7 @@ class Agents {
531
546
  method: "POST",
532
547
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
533
548
  ? yield core.Supplier.get(this._options.project)
534
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
549
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
535
550
  requestType: "file",
536
551
  duplex: _maybeEncodedRequest.duplex,
537
552
  body: _maybeEncodedRequest.body,
@@ -541,7 +556,7 @@ class Agents {
541
556
  });
542
557
  if (_response.ok) {
543
558
  return {
544
- data: serializers.AgentState.parseOrThrow(_response.body, {
559
+ data: serializers.ImportedAgentsResponse.parseOrThrow(_response.body, {
545
560
  unrecognizedObjectKeys: "passthrough",
546
561
  allowUnrecognizedUnionMembers: true,
547
562
  allowUnrecognizedEnumValues: true,
@@ -619,7 +634,7 @@ class Agents {
619
634
  method: "GET",
620
635
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
621
636
  ? yield core.Supplier.get(this._options.project)
622
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
637
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
623
638
  contentType: "application/json",
624
639
  queryParameters: _queryParams,
625
640
  requestType: "json",
@@ -696,7 +711,7 @@ class Agents {
696
711
  method: "DELETE",
697
712
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
698
713
  ? yield core.Supplier.get(this._options.project)
699
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
714
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
700
715
  contentType: "application/json",
701
716
  requestType: "json",
702
717
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -764,7 +779,7 @@ class Agents {
764
779
  method: "PATCH",
765
780
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
766
781
  ? yield core.Supplier.get(this._options.project)
767
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
782
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
768
783
  contentType: "application/json",
769
784
  requestType: "json",
770
785
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -850,7 +865,7 @@ class Agents {
850
865
  method: "POST",
851
866
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
852
867
  ? yield core.Supplier.get(this._options.project)
853
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
868
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
854
869
  contentType: "application/json",
855
870
  queryParameters: _queryParams,
856
871
  requestType: "json",
@@ -918,7 +933,7 @@ class Agents {
918
933
  method: "POST",
919
934
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
920
935
  ? yield core.Supplier.get(this._options.project)
921
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
936
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
922
937
  contentType: "application/json",
923
938
  requestType: "json",
924
939
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface AgentsExportFileRequest {
9
+ maxSteps?: number;
10
+ /**
11
+ * If true, exports using the legacy single-agent format. If false, exports using the new multi-entity format.
12
+ */
13
+ useLegacyFormat?: boolean;
14
+ }
@@ -1,5 +1,6 @@
1
1
  export { type AgentsListRequest } from "./AgentsListRequest";
2
2
  export { type CreateAgentRequest } from "./CreateAgentRequest";
3
+ export { type AgentsExportFileRequest } from "./AgentsExportFileRequest";
3
4
  export { type BodyImportAgentSerialized } from "./BodyImportAgentSerialized";
4
5
  export { type AgentsRetrieveRequest } from "./AgentsRetrieveRequest";
5
6
  export { type UpdateAgent } from "./UpdateAgent";
@@ -82,7 +82,7 @@ class Blocks {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Blocks {
160
160
  method: "PATCH",
161
161
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
162
162
  ? yield core.Supplier.get(this._options.project)
163
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
163
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Blocks {
237
237
  method: "GET",
238
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
239
  ? yield core.Supplier.get(this._options.project)
240
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
240
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class Blocks {
314
314
  method: "PATCH",
315
315
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
316
316
  ? yield core.Supplier.get(this._options.project)
317
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
317
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -391,7 +391,7 @@ class Blocks {
391
391
  method: "PATCH",
392
392
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
393
393
  ? yield core.Supplier.get(this._options.project)
394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
394
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
395
395
  contentType: "application/json",
396
396
  requestType: "json",
397
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Context {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class CoreMemory {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Files {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class Files {
165
165
  method: "PATCH",
166
166
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
167
167
  ? yield core.Supplier.get(this._options.project)
168
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
168
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,7 +245,7 @@ class Files {
245
245
  method: "PATCH",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class Folders {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Folders {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Folders {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Groups {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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",
@@ -83,7 +83,7 @@ class MemoryVariables {
83
83
  method: "GET",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -97,15 +97,15 @@ export declare class Messages {
97
97
  * Note to cancel active runs associated with an agent, redis is required.
98
98
  *
99
99
  * @param {string} agentId
100
- * @param {string[]} request
100
+ * @param {Letta.agents.CancelAgentRunRequest} request
101
101
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
102
102
  *
103
103
  * @throws {@link Letta.UnprocessableEntityError}
104
104
  *
105
105
  * @example
106
- * await client.agents.messages.cancel("agent_id", undefined)
106
+ * await client.agents.messages.cancel("agent_id")
107
107
  */
108
- cancel(agentId: string, request?: string[], requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
108
+ cancel(agentId: string, request?: Letta.agents.CancelAgentRunRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
109
109
  private __cancel;
110
110
  /**
111
111
  * Asynchronously process a user message and return a run object.
@@ -108,7 +108,7 @@ class Messages {
108
108
  method: "GET",
109
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
110
110
  ? yield core.Supplier.get(this._options.project)
111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
111
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -195,7 +195,7 @@ class Messages {
195
195
  method: "POST",
196
196
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
197
197
  ? yield core.Supplier.get(this._options.project)
198
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
198
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
199
199
  contentType: "application/json",
200
200
  requestType: "json",
201
201
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -276,7 +276,7 @@ class Messages {
276
276
  method: "PATCH",
277
277
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
278
278
  ? yield core.Supplier.get(this._options.project)
279
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
279
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -347,7 +347,7 @@ class Messages {
347
347
  method: "POST",
348
348
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
349
349
  ? yield core.Supplier.get(this._options.project)
350
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
351
351
  contentType: "application/json",
352
352
  requestType: "json",
353
353
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -419,33 +419,29 @@ class Messages {
419
419
  * Note to cancel active runs associated with an agent, redis is required.
420
420
  *
421
421
  * @param {string} agentId
422
- * @param {string[]} request
422
+ * @param {Letta.agents.CancelAgentRunRequest} request
423
423
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
424
424
  *
425
425
  * @throws {@link Letta.UnprocessableEntityError}
426
426
  *
427
427
  * @example
428
- * await client.agents.messages.cancel("agent_id", undefined)
428
+ * await client.agents.messages.cancel("agent_id")
429
429
  */
430
- cancel(agentId, request, requestOptions) {
430
+ cancel(agentId, request = {}, requestOptions) {
431
431
  return core.HttpResponsePromise.fromPromise(this.__cancel(agentId, request, requestOptions));
432
432
  }
433
- __cancel(agentId, request, requestOptions) {
434
- return __awaiter(this, void 0, void 0, function* () {
433
+ __cancel(agentId_1) {
434
+ return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
435
435
  var _a, _b, _c;
436
436
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
437
437
  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/agents/${encodeURIComponent(agentId)}/messages/cancel`),
438
438
  method: "POST",
439
439
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
440
440
  ? yield core.Supplier.get(this._options.project)
441
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
441
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
442
442
  contentType: "application/json",
443
443
  requestType: "json",
444
- body: request != null
445
- ? serializers.agents.messages.cancel.Request.jsonOrThrow(request, {
446
- unrecognizedObjectKeys: "strip",
447
- })
448
- : undefined,
444
+ body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
449
445
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
450
446
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
451
447
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -532,7 +528,7 @@ class Messages {
532
528
  method: "POST",
533
529
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
534
530
  ? yield core.Supplier.get(this._options.project)
535
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
531
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
536
532
  contentType: "application/json",
537
533
  requestType: "json",
538
534
  body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -615,7 +611,7 @@ class Messages {
615
611
  method: "PATCH",
616
612
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
617
613
  ? yield core.Supplier.get(this._options.project)
618
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
614
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
619
615
  contentType: "application/json",
620
616
  queryParameters: _queryParams,
621
617
  requestType: "json",
@@ -705,7 +701,7 @@ class Messages {
705
701
  method: "POST",
706
702
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
707
703
  ? yield core.Supplier.get(this._options.project)
708
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
704
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
709
705
  contentType: "application/json",
710
706
  requestType: "json",
711
707
  body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface CancelAgentRunRequest {
9
+ /** Optional list of run IDs to cancel */
10
+ runIds?: string[];
11
+ }
@@ -1,3 +1,4 @@
1
1
  export { type MessagesListRequest } from "./MessagesListRequest";
2
+ export { type CancelAgentRunRequest } from "./CancelAgentRunRequest";
2
3
  export { type LettaAsyncRequest } from "./LettaAsyncRequest";
3
4
  export { type MessagesResetRequest } from "./MessagesResetRequest";
@@ -99,7 +99,7 @@ class Passages {
99
99
  method: "GET",
100
100
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
101
101
  ? yield core.Supplier.get(this._options.project)
102
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
102
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -179,7 +179,7 @@ class Passages {
179
179
  method: "POST",
180
180
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
181
181
  ? yield core.Supplier.get(this._options.project)
182
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
182
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -257,7 +257,7 @@ class Passages {
257
257
  method: "DELETE",
258
258
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
259
259
  ? yield core.Supplier.get(this._options.project)
260
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
260
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
261
261
  contentType: "application/json",
262
262
  requestType: "json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -328,7 +328,7 @@ class Passages {
328
328
  method: "PATCH",
329
329
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
330
330
  ? yield core.Supplier.get(this._options.project)
331
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.176", "User-Agent": "@letta-ai/letta-client/0.1.176", "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),
331
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
332
332
  contentType: "application/json",
333
333
  requestType: "json",
334
334
  body: serializers.agents.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),