@letta-ai/letta-client 0.1.198 → 0.1.199

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 (264) hide show
  1. package/api/resources/agents/client/Client.d.ts +0 -17
  2. package/api/resources/agents/client/Client.js +11 -95
  3. package/api/resources/agents/client/requests/index.d.ts +0 -1
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/files/client/Client.js +4 -4
  8. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/index.d.ts +1 -0
  11. package/api/resources/agents/resources/index.js +1 -0
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  14. package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  15. package/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  16. package/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  17. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  18. package/api/resources/agents/resources/messages/types/index.js +1 -0
  19. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  20. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  21. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  22. package/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  23. package/api/resources/agents/resources/tools/client/Client.js +48 -17
  24. package/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  25. package/api/resources/agents/resources/tools/client/index.js +15 -0
  26. package/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  27. package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  28. package/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  29. package/api/resources/batches/client/Client.js +4 -4
  30. package/api/resources/blocks/client/Client.js +6 -6
  31. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  32. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  33. package/api/resources/embeddingModels/client/Client.js +1 -1
  34. package/api/resources/folders/client/Client.js +9 -9
  35. package/api/resources/folders/resources/files/client/Client.js +3 -3
  36. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  37. package/api/resources/groups/client/Client.js +6 -6
  38. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  39. package/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  40. package/api/resources/health/client/Client.js +1 -1
  41. package/api/resources/identities/client/Client.js +7 -7
  42. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  43. package/api/resources/jobs/client/Client.js +5 -5
  44. package/api/resources/messages/client/Client.js +1 -1
  45. package/api/resources/models/client/Client.js +2 -2
  46. package/api/resources/projects/client/Client.js +1 -1
  47. package/api/resources/providers/client/Client.js +6 -6
  48. package/api/resources/runs/client/Client.js +5 -5
  49. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  50. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  51. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  52. package/api/resources/sources/client/Client.js +10 -10
  53. package/api/resources/sources/resources/files/client/Client.js +3 -3
  54. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  55. package/api/resources/steps/client/Client.js +3 -3
  56. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  57. package/api/resources/tags/client/Client.js +1 -1
  58. package/api/resources/telemetry/client/Client.js +1 -1
  59. package/api/resources/templates/client/Client.js +15 -9
  60. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  61. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  62. package/api/resources/tools/client/Client.js +20 -20
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/ApprovalCreate.d.ts +16 -0
  65. package/api/types/ApprovalCreate.js +5 -0
  66. package/api/types/ApprovalRequestMessage.d.ts +27 -0
  67. package/api/types/ApprovalRequestMessage.js +5 -0
  68. package/api/types/ApprovalResponseMessage.d.ts +32 -0
  69. package/api/types/ApprovalResponseMessage.js +5 -0
  70. package/api/types/LettaBatchRequest.d.ts +1 -1
  71. package/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  72. package/api/types/LettaBatchRequestMessagesItem.js +5 -0
  73. package/api/types/LettaMessageUnion.d.ts +1 -1
  74. package/api/types/LettaRequest.d.ts +1 -1
  75. package/api/types/LettaRequestMessagesItem.d.ts +5 -0
  76. package/api/types/LettaRequestMessagesItem.js +5 -0
  77. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  78. package/api/types/LettaStreamingRequest.d.ts +1 -1
  79. package/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  80. package/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  81. package/api/types/MessageCreate.d.ts +2 -0
  82. package/api/types/MessageRole.d.ts +2 -1
  83. package/api/types/MessageRole.js +1 -0
  84. package/api/types/StopReasonType.d.ts +2 -1
  85. package/api/types/StopReasonType.js +1 -0
  86. package/api/types/index.d.ts +6 -0
  87. package/api/types/index.js +6 -0
  88. package/dist/api/resources/agents/client/Client.d.ts +0 -17
  89. package/dist/api/resources/agents/client/Client.js +11 -95
  90. package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
  91. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  92. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  93. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  95. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  96. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  97. package/dist/api/resources/agents/resources/index.d.ts +1 -0
  98. package/dist/api/resources/agents/resources/index.js +1 -0
  99. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  100. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  101. package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  102. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  103. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +5 -0
  104. package/dist/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  105. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  106. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  107. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  108. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  109. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  110. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  111. package/dist/api/resources/agents/resources/tools/client/Client.js +48 -17
  112. package/dist/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  113. package/dist/api/resources/agents/resources/tools/client/index.js +15 -0
  114. package/dist/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  115. package/dist/api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js +5 -0
  116. package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  117. package/dist/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  118. package/dist/api/resources/batches/client/Client.js +4 -4
  119. package/dist/api/resources/blocks/client/Client.js +6 -6
  120. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  121. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  122. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  123. package/dist/api/resources/folders/client/Client.js +9 -9
  124. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  125. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  126. package/dist/api/resources/groups/client/Client.js +6 -6
  127. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  128. package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  129. package/dist/api/resources/health/client/Client.js +1 -1
  130. package/dist/api/resources/identities/client/Client.js +7 -7
  131. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  132. package/dist/api/resources/jobs/client/Client.js +5 -5
  133. package/dist/api/resources/messages/client/Client.js +1 -1
  134. package/dist/api/resources/models/client/Client.js +2 -2
  135. package/dist/api/resources/projects/client/Client.js +1 -1
  136. package/dist/api/resources/providers/client/Client.js +6 -6
  137. package/dist/api/resources/runs/client/Client.js +5 -5
  138. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  139. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  140. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  141. package/dist/api/resources/sources/client/Client.js +10 -10
  142. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  143. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  144. package/dist/api/resources/steps/client/Client.js +3 -3
  145. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  146. package/dist/api/resources/tags/client/Client.js +1 -1
  147. package/dist/api/resources/telemetry/client/Client.js +1 -1
  148. package/dist/api/resources/templates/client/Client.js +15 -9
  149. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  150. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  151. package/dist/api/resources/tools/client/Client.js +20 -20
  152. package/dist/api/resources/voice/client/Client.js +1 -1
  153. package/dist/api/types/ApprovalCreate.d.ts +16 -0
  154. package/dist/api/types/ApprovalCreate.js +5 -0
  155. package/dist/api/types/ApprovalRequestMessage.d.ts +27 -0
  156. package/dist/api/types/ApprovalRequestMessage.js +5 -0
  157. package/dist/api/types/ApprovalResponseMessage.d.ts +32 -0
  158. package/dist/api/types/ApprovalResponseMessage.js +5 -0
  159. package/dist/api/types/LettaBatchRequest.d.ts +1 -1
  160. package/dist/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  161. package/dist/api/types/LettaBatchRequestMessagesItem.js +5 -0
  162. package/dist/api/types/LettaMessageUnion.d.ts +1 -1
  163. package/dist/api/types/LettaRequest.d.ts +1 -1
  164. package/dist/api/types/LettaRequestMessagesItem.d.ts +5 -0
  165. package/dist/api/types/LettaRequestMessagesItem.js +5 -0
  166. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  167. package/dist/api/types/LettaStreamingRequest.d.ts +1 -1
  168. package/dist/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  169. package/dist/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  170. package/dist/api/types/MessageCreate.d.ts +2 -0
  171. package/dist/api/types/MessageRole.d.ts +2 -1
  172. package/dist/api/types/MessageRole.js +1 -0
  173. package/dist/api/types/StopReasonType.d.ts +2 -1
  174. package/dist/api/types/StopReasonType.js +1 -0
  175. package/dist/api/types/index.d.ts +6 -0
  176. package/dist/api/types/index.js +6 -0
  177. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  178. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  179. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  180. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  181. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  182. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  183. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  184. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  185. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  186. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  187. package/dist/serialization/types/ApprovalCreate.d.ts +15 -0
  188. package/dist/serialization/types/ApprovalCreate.js +46 -0
  189. package/dist/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  190. package/dist/serialization/types/ApprovalRequestMessage.js +54 -0
  191. package/dist/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  192. package/dist/serialization/types/ApprovalResponseMessage.js +55 -0
  193. package/dist/serialization/types/LettaBatchRequest.d.ts +2 -2
  194. package/dist/serialization/types/LettaBatchRequest.js +2 -2
  195. package/dist/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  196. package/dist/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  197. package/dist/serialization/types/LettaMessageUnion.d.ts +3 -1
  198. package/dist/serialization/types/LettaMessageUnion.js +4 -0
  199. package/dist/serialization/types/LettaRequest.d.ts +2 -2
  200. package/dist/serialization/types/LettaRequest.js +2 -2
  201. package/dist/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  202. package/dist/serialization/types/LettaRequestMessagesItem.js +43 -0
  203. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  204. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  205. package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -2
  206. package/dist/serialization/types/LettaStreamingRequest.js +2 -2
  207. package/dist/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  208. package/dist/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  209. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  210. package/dist/serialization/types/MessageCreate.js +1 -0
  211. package/dist/serialization/types/MessageRole.d.ts +1 -1
  212. package/dist/serialization/types/MessageRole.js +1 -1
  213. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  214. package/dist/serialization/types/StopReasonType.js +1 -0
  215. package/dist/serialization/types/index.d.ts +6 -0
  216. package/dist/serialization/types/index.js +6 -0
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +1 -1
  220. package/reference.md +28 -84
  221. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  222. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  223. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  224. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  225. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  226. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  227. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  228. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  229. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  230. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  231. package/serialization/types/ApprovalCreate.d.ts +15 -0
  232. package/serialization/types/ApprovalCreate.js +46 -0
  233. package/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  234. package/serialization/types/ApprovalRequestMessage.js +54 -0
  235. package/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  236. package/serialization/types/ApprovalResponseMessage.js +55 -0
  237. package/serialization/types/LettaBatchRequest.d.ts +2 -2
  238. package/serialization/types/LettaBatchRequest.js +2 -2
  239. package/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  240. package/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  241. package/serialization/types/LettaMessageUnion.d.ts +3 -1
  242. package/serialization/types/LettaMessageUnion.js +4 -0
  243. package/serialization/types/LettaRequest.d.ts +2 -2
  244. package/serialization/types/LettaRequest.js +2 -2
  245. package/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  246. package/serialization/types/LettaRequestMessagesItem.js +43 -0
  247. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  248. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  249. package/serialization/types/LettaStreamingRequest.d.ts +2 -2
  250. package/serialization/types/LettaStreamingRequest.js +2 -2
  251. package/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  252. package/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  253. package/serialization/types/MessageCreate.d.ts +1 -0
  254. package/serialization/types/MessageCreate.js +1 -0
  255. package/serialization/types/MessageRole.d.ts +1 -1
  256. package/serialization/types/MessageRole.js +1 -1
  257. package/serialization/types/StopReasonType.d.ts +1 -1
  258. package/serialization/types/StopReasonType.js +1 -0
  259. package/serialization/types/index.d.ts +6 -0
  260. package/serialization/types/index.js +6 -0
  261. package/version.d.ts +1 -1
  262. package/version.js +1 -1
  263. /package/api/resources/agents/{client/requests/ModifyApprovalRequest.js → resources/messages/types/LettaAsyncRequestMessagesItem.js} +0 -0
  264. /package/{dist/api/resources/agents/client/requests/ModifyApprovalRequest.js → api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js} +0 -0
@@ -4,7 +4,7 @@
4
4
  import * as Letta from "../index";
5
5
  export interface LettaRequest {
6
6
  /** The messages to be sent to the agent. */
7
- messages: Letta.MessageCreate[];
7
+ messages: Letta.LettaRequestMessagesItem[];
8
8
  /** Maximum number of steps the agent should take to process the request. */
9
9
  maxSteps?: number;
10
10
  /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaRequestMessagesItem = Letta.MessageCreate | Letta.ApprovalCreate;
@@ -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 });
@@ -6,6 +6,8 @@ import * as Letta from "../index";
6
6
  * Message with human-readable ID for agent file
7
7
  */
8
8
  export interface LettaSchemasAgentFileMessageSchema {
9
+ /** The message type to be created. */
10
+ type?: "message";
9
11
  /** The role of the participant. */
10
12
  role: Letta.MessageRole;
11
13
  /** The content of the message. */
@@ -4,7 +4,7 @@
4
4
  import * as Letta from "../index";
5
5
  export interface LettaStreamingRequest {
6
6
  /** The messages to be sent to the agent. */
7
- messages: Letta.MessageCreate[];
7
+ messages: Letta.LettaStreamingRequestMessagesItem[];
8
8
  /** Maximum number of steps the agent should take to process the request. */
9
9
  maxSteps?: number;
10
10
  /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaStreamingRequestMessagesItem = Letta.MessageCreate | Letta.ApprovalCreate;
@@ -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 });
@@ -6,6 +6,8 @@ import * as Letta from "../index";
6
6
  * Request to create a message
7
7
  */
8
8
  export interface MessageCreate {
9
+ /** The message type to be created. */
10
+ type?: "message";
9
11
  /** The role of the participant. */
10
12
  role: Letta.MessageCreateRole;
11
13
  /** The content of the message. */
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type MessageRole = "assistant" | "user" | "tool" | "function" | "system";
4
+ export type MessageRole = "assistant" | "user" | "tool" | "function" | "system" | "approval";
5
5
  export declare const MessageRole: {
6
6
  readonly Assistant: "assistant";
7
7
  readonly User: "user";
8
8
  readonly Tool: "tool";
9
9
  readonly Function: "function";
10
10
  readonly System: "system";
11
+ readonly Approval: "approval";
11
12
  };
@@ -10,4 +10,5 @@ exports.MessageRole = {
10
10
  Tool: "tool",
11
11
  Function: "function",
12
12
  System: "system",
13
+ Approval: "approval",
13
14
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type StopReasonType = "end_turn" | "error" | "invalid_llm_response" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
4
+ export type StopReasonType = "end_turn" | "error" | "invalid_llm_response" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled" | "requires_approval";
5
5
  export declare const StopReasonType: {
6
6
  readonly EndTurn: "end_turn";
7
7
  readonly Error: "error";
@@ -11,4 +11,5 @@ export declare const StopReasonType: {
11
11
  readonly NoToolCall: "no_tool_call";
12
12
  readonly ToolRule: "tool_rule";
13
13
  readonly Cancelled: "cancelled";
14
+ readonly RequiresApproval: "requires_approval";
14
15
  };
@@ -13,4 +13,5 @@ exports.StopReasonType = {
13
13
  NoToolCall: "no_tool_call",
14
14
  ToolRule: "tool_rule",
15
15
  Cancelled: "cancelled",
16
+ RequiresApproval: "requires_approval",
16
17
  };
@@ -15,6 +15,9 @@ export * from "./AgentType";
15
15
  export * from "./AppAuthSchemeAuthMode";
16
16
  export * from "./AppAuthScheme";
17
17
  export * from "./AppModel";
18
+ export * from "./ApprovalCreate";
19
+ export * from "./ApprovalRequestMessage";
20
+ export * from "./ApprovalResponseMessage";
18
21
  export * from "./AssistantMessageContent";
19
22
  export * from "./AssistantMessage";
20
23
  export * from "./Audio";
@@ -156,12 +159,15 @@ export * from "./LlmConfigCompatibilityType";
156
159
  export * from "./LlmConfigVerbosity";
157
160
  export * from "./LlmConfig";
158
161
  export * from "./LettaBatchMessages";
162
+ export * from "./LettaBatchRequestMessagesItem";
159
163
  export * from "./LettaBatchRequest";
160
164
  export * from "./LettaImage";
165
+ export * from "./LettaRequestMessagesItem";
161
166
  export * from "./LettaRequest";
162
167
  export * from "./LettaRequestConfig";
163
168
  export * from "./LettaResponse";
164
169
  export * from "./LettaStopReason";
170
+ export * from "./LettaStreamingRequestMessagesItem";
165
171
  export * from "./LettaStreamingRequest";
166
172
  export * from "./LettaUsageStatistics";
167
173
  export * from "./LocalSandboxConfig";
@@ -31,6 +31,9 @@ __exportStar(require("./AgentType"), exports);
31
31
  __exportStar(require("./AppAuthSchemeAuthMode"), exports);
32
32
  __exportStar(require("./AppAuthScheme"), exports);
33
33
  __exportStar(require("./AppModel"), exports);
34
+ __exportStar(require("./ApprovalCreate"), exports);
35
+ __exportStar(require("./ApprovalRequestMessage"), exports);
36
+ __exportStar(require("./ApprovalResponseMessage"), exports);
34
37
  __exportStar(require("./AssistantMessageContent"), exports);
35
38
  __exportStar(require("./AssistantMessage"), exports);
36
39
  __exportStar(require("./Audio"), exports);
@@ -172,12 +175,15 @@ __exportStar(require("./LlmConfigCompatibilityType"), exports);
172
175
  __exportStar(require("./LlmConfigVerbosity"), exports);
173
176
  __exportStar(require("./LlmConfig"), exports);
174
177
  __exportStar(require("./LettaBatchMessages"), exports);
178
+ __exportStar(require("./LettaBatchRequestMessagesItem"), exports);
175
179
  __exportStar(require("./LettaBatchRequest"), exports);
176
180
  __exportStar(require("./LettaImage"), exports);
181
+ __exportStar(require("./LettaRequestMessagesItem"), exports);
177
182
  __exportStar(require("./LettaRequest"), exports);
178
183
  __exportStar(require("./LettaRequestConfig"), exports);
179
184
  __exportStar(require("./LettaResponse"), exports);
180
185
  __exportStar(require("./LettaStopReason"), exports);
186
+ __exportStar(require("./LettaStreamingRequestMessagesItem"), exports);
181
187
  __exportStar(require("./LettaStreamingRequest"), exports);
182
188
  __exportStar(require("./LettaUsageStatistics"), exports);
183
189
  __exportStar(require("./LocalSandboxConfig"), exports);
@@ -183,23 +183,6 @@ export declare class Agents {
183
183
  */
184
184
  modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
185
185
  private __modify;
186
- /**
187
- * Attach a tool to an agent.
188
- *
189
- * @param {string} agentId
190
- * @param {string} toolName
191
- * @param {Letta.ModifyApprovalRequest} request
192
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
193
- *
194
- * @throws {@link Letta.UnprocessableEntityError}
195
- *
196
- * @example
197
- * await client.agents.modifyApproval("agent_id", "tool_name", {
198
- * requiresApproval: true
199
- * })
200
- */
201
- modifyApproval(agentId: string, toolName: string, request: Letta.ModifyApprovalRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
202
- private __modifyApproval;
203
186
  /**
204
187
  * Get the files attached to an agent with their open/closed status (paginated).
205
188
  *
@@ -206,7 +206,7 @@ class Agents {
206
206
  method: "GET",
207
207
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
208
208
  ? yield core.Supplier.get(this._options.project)
209
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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
210
  contentType: "application/json",
211
211
  queryParameters: _queryParams,
212
212
  requestType: "json",
@@ -283,7 +283,7 @@ class Agents {
283
283
  method: "POST",
284
284
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
285
285
  ? yield core.Supplier.get(this._options.project)
286
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
286
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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
287
  contentType: "application/json",
288
288
  requestType: "json",
289
289
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -359,7 +359,7 @@ class Agents {
359
359
  method: "GET",
360
360
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
361
361
  ? yield core.Supplier.get(this._options.project)
362
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -448,7 +448,7 @@ class Agents {
448
448
  method: "GET",
449
449
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
450
450
  ? yield core.Supplier.get(this._options.project)
451
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
451
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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
452
  contentType: "application/json",
453
453
  queryParameters: _queryParams,
454
454
  requestType: "json",
@@ -548,7 +548,7 @@ class Agents {
548
548
  method: "POST",
549
549
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
550
550
  ? yield core.Supplier.get(this._options.project)
551
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
551
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
552
552
  requestType: "file",
553
553
  duplex: _maybeEncodedRequest.duplex,
554
554
  body: _maybeEncodedRequest.body,
@@ -636,7 +636,7 @@ class Agents {
636
636
  method: "GET",
637
637
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
638
638
  ? yield core.Supplier.get(this._options.project)
639
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
639
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
640
640
  contentType: "application/json",
641
641
  queryParameters: _queryParams,
642
642
  requestType: "json",
@@ -713,7 +713,7 @@ class Agents {
713
713
  method: "DELETE",
714
714
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
715
715
  ? yield core.Supplier.get(this._options.project)
716
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
716
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
717
717
  contentType: "application/json",
718
718
  requestType: "json",
719
719
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -781,7 +781,7 @@ class Agents {
781
781
  method: "PATCH",
782
782
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
783
783
  ? yield core.Supplier.get(this._options.project)
784
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
784
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
785
785
  contentType: "application/json",
786
786
  requestType: "json",
787
787
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -836,90 +836,6 @@ class Agents {
836
836
  }
837
837
  });
838
838
  }
839
- /**
840
- * Attach a tool to an agent.
841
- *
842
- * @param {string} agentId
843
- * @param {string} toolName
844
- * @param {Letta.ModifyApprovalRequest} request
845
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
846
- *
847
- * @throws {@link Letta.UnprocessableEntityError}
848
- *
849
- * @example
850
- * await client.agents.modifyApproval("agent_id", "tool_name", {
851
- * requiresApproval: true
852
- * })
853
- */
854
- modifyApproval(agentId, toolName, request, requestOptions) {
855
- return core.HttpResponsePromise.fromPromise(this.__modifyApproval(agentId, toolName, request, requestOptions));
856
- }
857
- __modifyApproval(agentId, toolName, request, requestOptions) {
858
- return __awaiter(this, void 0, void 0, function* () {
859
- var _a, _b, _c;
860
- const { requiresApproval } = request;
861
- const _queryParams = {};
862
- _queryParams["requires_approval"] = requiresApproval.toString();
863
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
864
- 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)}/tools/approval/${encodeURIComponent(toolName)}`),
865
- method: "PATCH",
866
- headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
867
- ? yield core.Supplier.get(this._options.project)
868
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
869
- contentType: "application/json",
870
- queryParameters: _queryParams,
871
- requestType: "json",
872
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
873
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
874
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
875
- });
876
- if (_response.ok) {
877
- return {
878
- data: serializers.AgentState.parseOrThrow(_response.body, {
879
- unrecognizedObjectKeys: "passthrough",
880
- allowUnrecognizedUnionMembers: true,
881
- allowUnrecognizedEnumValues: true,
882
- skipValidation: true,
883
- breadcrumbsPrefix: ["response"],
884
- }),
885
- rawResponse: _response.rawResponse,
886
- };
887
- }
888
- if (_response.error.reason === "status-code") {
889
- switch (_response.error.statusCode) {
890
- case 422:
891
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
892
- unrecognizedObjectKeys: "passthrough",
893
- allowUnrecognizedUnionMembers: true,
894
- allowUnrecognizedEnumValues: true,
895
- skipValidation: true,
896
- breadcrumbsPrefix: ["response"],
897
- }), _response.rawResponse);
898
- default:
899
- throw new errors.LettaError({
900
- statusCode: _response.error.statusCode,
901
- body: _response.error.body,
902
- rawResponse: _response.rawResponse,
903
- });
904
- }
905
- }
906
- switch (_response.error.reason) {
907
- case "non-json":
908
- throw new errors.LettaError({
909
- statusCode: _response.error.statusCode,
910
- body: _response.error.rawBody,
911
- rawResponse: _response.rawResponse,
912
- });
913
- case "timeout":
914
- throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/tools/approval/{tool_name}.");
915
- case "unknown":
916
- throw new errors.LettaError({
917
- message: _response.error.errorMessage,
918
- rawResponse: _response.rawResponse,
919
- });
920
- }
921
- });
922
- }
923
839
  /**
924
840
  * Get the files attached to an agent with their open/closed status (paginated).
925
841
  *
@@ -954,7 +870,7 @@ class Agents {
954
870
  method: "GET",
955
871
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
956
872
  ? yield core.Supplier.get(this._options.project)
957
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
873
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
958
874
  contentType: "application/json",
959
875
  queryParameters: _queryParams,
960
876
  requestType: "json",
@@ -1040,7 +956,7 @@ class Agents {
1040
956
  method: "POST",
1041
957
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1042
958
  ? yield core.Supplier.get(this._options.project)
1043
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
959
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
1044
960
  contentType: "application/json",
1045
961
  queryParameters: _queryParams,
1046
962
  requestType: "json",
@@ -1108,7 +1024,7 @@ class Agents {
1108
1024
  method: "POST",
1109
1025
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1110
1026
  ? yield core.Supplier.get(this._options.project)
1111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
1027
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
1112
1028
  contentType: "application/json",
1113
1029
  requestType: "json",
1114
1030
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -4,7 +4,6 @@ export { type AgentsExportFileRequest } from "./AgentsExportFileRequest";
4
4
  export { type BodyImportAgentSerialized } from "./BodyImportAgentSerialized";
5
5
  export { type AgentsRetrieveRequest } from "./AgentsRetrieveRequest";
6
6
  export { type UpdateAgent } from "./UpdateAgent";
7
- export { type ModifyApprovalRequest } from "./ModifyApprovalRequest";
8
7
  export { type ListAgentFilesRequest } from "./ListAgentFilesRequest";
9
8
  export { type SummarizeAgentConversationRequest } from "./SummarizeAgentConversationRequest";
10
9
  export { type AgentsSearchRequest } from "./AgentsSearchRequest";
@@ -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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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,
@@ -308,7 +308,7 @@ class Files {
308
308
  method: "PATCH",
309
309
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
310
310
  ? yield core.Supplier.get(this._options.project)
311
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
312
312
  contentType: "application/json",
313
313
  requestType: "json",
314
314
  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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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",
@@ -13,6 +13,7 @@ export * as coreMemory from "./coreMemory";
13
13
  export * as blocks from "./blocks";
14
14
  export * as passages from "./passages";
15
15
  export * as groups from "./groups";
16
+ export * from "./tools/client/requests";
16
17
  export * from "./passages/client/requests";
17
18
  export * from "./messages/client/requests";
18
19
  export * from "./groups/client/requests";
@@ -52,6 +52,7 @@ exports.coreMemory = __importStar(require("./coreMemory"));
52
52
  exports.blocks = __importStar(require("./blocks"));
53
53
  exports.passages = __importStar(require("./passages"));
54
54
  exports.groups = __importStar(require("./groups"));
55
+ __exportStar(require("./tools/client/requests"), exports);
55
56
  __exportStar(require("./passages/client/requests"), exports);
56
57
  __exportStar(require("./messages/client/requests"), exports);
57
58
  __exportStar(require("./groups/client/requests"), exports);
@@ -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.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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,