@letta-ai/letta-client 1.6.5 → 1.6.7

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 (277) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/client.d.mts +2 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -9
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +182 -13
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +182 -13
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js +0 -4
  16. package/resources/agents/agents.js.map +1 -1
  17. package/resources/agents/agents.mjs +0 -4
  18. package/resources/agents/agents.mjs.map +1 -1
  19. package/resources/agents/blocks.d.mts +12 -0
  20. package/resources/agents/blocks.d.mts.map +1 -1
  21. package/resources/agents/blocks.d.ts +12 -0
  22. package/resources/agents/blocks.d.ts.map +1 -1
  23. package/resources/agents/index.d.mts +1 -2
  24. package/resources/agents/index.d.mts.map +1 -1
  25. package/resources/agents/index.d.ts +1 -2
  26. package/resources/agents/index.d.ts.map +1 -1
  27. package/resources/agents/index.js +1 -3
  28. package/resources/agents/index.js.map +1 -1
  29. package/resources/agents/index.mjs +0 -1
  30. package/resources/agents/index.mjs.map +1 -1
  31. package/resources/agents/messages.d.mts +10 -7
  32. package/resources/agents/messages.d.mts.map +1 -1
  33. package/resources/agents/messages.d.ts +10 -7
  34. package/resources/agents/messages.d.ts.map +1 -1
  35. package/resources/agents/messages.js.map +1 -1
  36. package/resources/agents/messages.mjs.map +1 -1
  37. package/resources/agents/passages.d.mts +4 -0
  38. package/resources/agents/passages.d.mts.map +1 -1
  39. package/resources/agents/passages.d.ts +4 -0
  40. package/resources/agents/passages.d.ts.map +1 -1
  41. package/resources/blocks/agents.d.mts +1 -1
  42. package/resources/blocks/agents.d.mts.map +1 -1
  43. package/resources/blocks/agents.d.ts +1 -1
  44. package/resources/blocks/agents.d.ts.map +1 -1
  45. package/resources/blocks/blocks.d.mts +25 -0
  46. package/resources/blocks/blocks.d.mts.map +1 -1
  47. package/resources/blocks/blocks.d.ts +25 -0
  48. package/resources/blocks/blocks.d.ts.map +1 -1
  49. package/resources/blocks/blocks.js.map +1 -1
  50. package/resources/blocks/blocks.mjs.map +1 -1
  51. package/resources/conversations/conversations.d.mts +19 -2
  52. package/resources/conversations/conversations.d.mts.map +1 -1
  53. package/resources/conversations/conversations.d.ts +19 -2
  54. package/resources/conversations/conversations.d.ts.map +1 -1
  55. package/resources/conversations/conversations.js.map +1 -1
  56. package/resources/conversations/conversations.mjs.map +1 -1
  57. package/resources/conversations/index.d.mts +1 -1
  58. package/resources/conversations/index.d.mts.map +1 -1
  59. package/resources/conversations/index.d.ts +1 -1
  60. package/resources/conversations/index.d.ts.map +1 -1
  61. package/resources/conversations/index.js.map +1 -1
  62. package/resources/conversations/index.mjs.map +1 -1
  63. package/resources/conversations/messages.d.mts +12 -16
  64. package/resources/conversations/messages.d.mts.map +1 -1
  65. package/resources/conversations/messages.d.ts +12 -16
  66. package/resources/conversations/messages.d.ts.map +1 -1
  67. package/resources/conversations/messages.js +3 -3
  68. package/resources/conversations/messages.js.map +1 -1
  69. package/resources/conversations/messages.mjs +3 -3
  70. package/resources/conversations/messages.mjs.map +1 -1
  71. package/resources/folders/files.d.mts +1 -1
  72. package/resources/folders/files.d.ts +1 -1
  73. package/resources/index.d.mts +1 -4
  74. package/resources/index.d.mts.map +1 -1
  75. package/resources/index.d.ts +1 -4
  76. package/resources/index.d.ts.map +1 -1
  77. package/resources/index.js +1 -7
  78. package/resources/index.js.map +1 -1
  79. package/resources/index.mjs +0 -3
  80. package/resources/index.mjs.map +1 -1
  81. package/resources/mcp-servers/tools.d.mts +1 -1
  82. package/resources/mcp-servers/tools.d.ts +1 -1
  83. package/resources/messages.d.mts +18 -1
  84. package/resources/messages.d.mts.map +1 -1
  85. package/resources/messages.d.ts +18 -1
  86. package/resources/messages.d.ts.map +1 -1
  87. package/resources/messages.js +7 -0
  88. package/resources/messages.js.map +1 -1
  89. package/resources/messages.mjs +7 -0
  90. package/resources/messages.mjs.map +1 -1
  91. package/resources/runs/index.d.mts +1 -0
  92. package/resources/runs/index.d.mts.map +1 -1
  93. package/resources/runs/index.d.ts +1 -0
  94. package/resources/runs/index.d.ts.map +1 -1
  95. package/resources/runs/index.js +3 -1
  96. package/resources/runs/index.js.map +1 -1
  97. package/resources/runs/index.mjs +1 -0
  98. package/resources/runs/index.mjs.map +1 -1
  99. package/resources/runs/runs.d.mts +8 -0
  100. package/resources/runs/runs.d.mts.map +1 -1
  101. package/resources/runs/runs.d.ts +8 -0
  102. package/resources/runs/runs.d.ts.map +1 -1
  103. package/resources/runs/runs.js +4 -0
  104. package/resources/runs/runs.js.map +1 -1
  105. package/resources/runs/runs.mjs +4 -0
  106. package/resources/runs/runs.mjs.map +1 -1
  107. package/resources/runs/trace.d.mts +31 -0
  108. package/resources/runs/trace.d.mts.map +1 -0
  109. package/resources/runs/trace.d.ts +31 -0
  110. package/resources/runs/trace.d.ts.map +1 -0
  111. package/resources/runs/trace.js +25 -0
  112. package/resources/runs/trace.js.map +1 -0
  113. package/resources/runs/trace.mjs +21 -0
  114. package/resources/runs/trace.mjs.map +1 -0
  115. package/resources/tags.d.mts +1 -1
  116. package/resources/tags.d.ts +1 -1
  117. package/resources/tags.js +1 -1
  118. package/resources/tags.mjs +1 -1
  119. package/src/client.ts +2 -79
  120. package/src/resources/agents/agents.ts +229 -13
  121. package/src/resources/agents/blocks.ts +15 -0
  122. package/src/resources/agents/index.ts +0 -2
  123. package/src/resources/agents/messages.ts +12 -9
  124. package/src/resources/agents/passages.ts +5 -0
  125. package/src/resources/blocks/agents.ts +1 -0
  126. package/src/resources/blocks/blocks.ts +31 -0
  127. package/src/resources/conversations/conversations.ts +20 -2
  128. package/src/resources/conversations/index.ts +0 -1
  129. package/src/resources/conversations/messages.ts +17 -19
  130. package/src/resources/folders/files.ts +1 -1
  131. package/src/resources/index.ts +1 -35
  132. package/src/resources/mcp-servers/tools.ts +1 -1
  133. package/src/resources/messages.ts +26 -0
  134. package/src/resources/runs/index.ts +1 -0
  135. package/src/resources/runs/runs.ts +15 -0
  136. package/src/resources/runs/trace.ts +44 -0
  137. package/src/resources/tags.ts +1 -1
  138. package/src/version.ts +1 -1
  139. package/version.d.mts +1 -1
  140. package/version.d.ts +1 -1
  141. package/version.js +1 -1
  142. package/version.mjs +1 -1
  143. package/resources/agents/groups.d.mts +0 -22
  144. package/resources/agents/groups.d.mts.map +0 -1
  145. package/resources/agents/groups.d.ts +0 -22
  146. package/resources/agents/groups.d.ts.map +0 -1
  147. package/resources/agents/groups.js +0 -20
  148. package/resources/agents/groups.js.map +0 -1
  149. package/resources/agents/groups.mjs +0 -16
  150. package/resources/agents/groups.mjs.map +0 -1
  151. package/resources/batches/batches.d.mts +0 -240
  152. package/resources/batches/batches.d.mts.map +0 -1
  153. package/resources/batches/batches.d.ts +0 -240
  154. package/resources/batches/batches.d.ts.map +0 -1
  155. package/resources/batches/batches.js +0 -46
  156. package/resources/batches/batches.js.map +0 -1
  157. package/resources/batches/batches.mjs +0 -41
  158. package/resources/batches/batches.mjs.map +0 -1
  159. package/resources/batches/index.d.mts +0 -3
  160. package/resources/batches/index.d.mts.map +0 -1
  161. package/resources/batches/index.d.ts +0 -3
  162. package/resources/batches/index.d.ts.map +0 -1
  163. package/resources/batches/index.js +0 -9
  164. package/resources/batches/index.js.map +0 -1
  165. package/resources/batches/index.mjs +0 -4
  166. package/resources/batches/index.mjs.map +0 -1
  167. package/resources/batches/messages.d.mts +0 -22
  168. package/resources/batches/messages.d.mts.map +0 -1
  169. package/resources/batches/messages.d.ts +0 -22
  170. package/resources/batches/messages.d.ts.map +0 -1
  171. package/resources/batches/messages.js +0 -17
  172. package/resources/batches/messages.js.map +0 -1
  173. package/resources/batches/messages.mjs +0 -13
  174. package/resources/batches/messages.mjs.map +0 -1
  175. package/resources/batches.d.mts +0 -2
  176. package/resources/batches.d.mts.map +0 -1
  177. package/resources/batches.d.ts +0 -2
  178. package/resources/batches.d.ts.map +0 -1
  179. package/resources/batches.js +0 -6
  180. package/resources/batches.js.map +0 -1
  181. package/resources/batches.mjs +0 -3
  182. package/resources/batches.mjs.map +0 -1
  183. package/resources/groups/groups.d.mts +0 -197
  184. package/resources/groups/groups.d.mts.map +0 -1
  185. package/resources/groups/groups.d.ts +0 -197
  186. package/resources/groups/groups.d.ts.map +0 -1
  187. package/resources/groups/groups.js +0 -49
  188. package/resources/groups/groups.js.map +0 -1
  189. package/resources/groups/groups.mjs +0 -44
  190. package/resources/groups/groups.mjs.map +0 -1
  191. package/resources/groups/index.d.mts +0 -3
  192. package/resources/groups/index.d.mts.map +0 -1
  193. package/resources/groups/index.d.ts +0 -3
  194. package/resources/groups/index.d.ts.map +0 -1
  195. package/resources/groups/index.js +0 -9
  196. package/resources/groups/index.js.map +0 -1
  197. package/resources/groups/index.mjs +0 -4
  198. package/resources/groups/index.mjs.map +0 -1
  199. package/resources/groups/messages.d.mts +0 -360
  200. package/resources/groups/messages.d.mts.map +0 -1
  201. package/resources/groups/messages.d.ts +0 -360
  202. package/resources/groups/messages.d.ts.map +0 -1
  203. package/resources/groups/messages.js +0 -54
  204. package/resources/groups/messages.js.map +0 -1
  205. package/resources/groups/messages.mjs +0 -50
  206. package/resources/groups/messages.mjs.map +0 -1
  207. package/resources/groups.d.mts +0 -2
  208. package/resources/groups.d.mts.map +0 -1
  209. package/resources/groups.d.ts +0 -2
  210. package/resources/groups.d.ts.map +0 -1
  211. package/resources/groups.js +0 -6
  212. package/resources/groups.js.map +0 -1
  213. package/resources/groups.mjs +0 -3
  214. package/resources/groups.mjs.map +0 -1
  215. package/resources/identities/agents.d.mts +0 -23
  216. package/resources/identities/agents.d.mts.map +0 -1
  217. package/resources/identities/agents.d.ts +0 -23
  218. package/resources/identities/agents.d.ts.map +0 -1
  219. package/resources/identities/agents.js +0 -17
  220. package/resources/identities/agents.js.map +0 -1
  221. package/resources/identities/agents.mjs +0 -13
  222. package/resources/identities/agents.mjs.map +0 -1
  223. package/resources/identities/blocks.d.mts +0 -18
  224. package/resources/identities/blocks.d.mts.map +0 -1
  225. package/resources/identities/blocks.d.ts +0 -18
  226. package/resources/identities/blocks.d.ts.map +0 -1
  227. package/resources/identities/blocks.js +0 -17
  228. package/resources/identities/blocks.js.map +0 -1
  229. package/resources/identities/blocks.mjs +0 -13
  230. package/resources/identities/blocks.mjs.map +0 -1
  231. package/resources/identities/identities.d.mts +0 -204
  232. package/resources/identities/identities.d.mts.map +0 -1
  233. package/resources/identities/identities.d.ts +0 -204
  234. package/resources/identities/identities.d.ts.map +0 -1
  235. package/resources/identities/identities.js +0 -63
  236. package/resources/identities/identities.js.map +0 -1
  237. package/resources/identities/identities.mjs +0 -58
  238. package/resources/identities/identities.mjs.map +0 -1
  239. package/resources/identities/index.d.mts +0 -5
  240. package/resources/identities/index.d.mts.map +0 -1
  241. package/resources/identities/index.d.ts +0 -5
  242. package/resources/identities/index.d.ts.map +0 -1
  243. package/resources/identities/index.js +0 -13
  244. package/resources/identities/index.js.map +0 -1
  245. package/resources/identities/index.mjs +0 -6
  246. package/resources/identities/index.mjs.map +0 -1
  247. package/resources/identities/properties.d.mts +0 -18
  248. package/resources/identities/properties.d.mts.map +0 -1
  249. package/resources/identities/properties.d.ts +0 -18
  250. package/resources/identities/properties.d.ts.map +0 -1
  251. package/resources/identities/properties.js +0 -17
  252. package/resources/identities/properties.js.map +0 -1
  253. package/resources/identities/properties.mjs +0 -13
  254. package/resources/identities/properties.mjs.map +0 -1
  255. package/resources/identities.d.mts +0 -2
  256. package/resources/identities.d.mts.map +0 -1
  257. package/resources/identities.d.ts +0 -2
  258. package/resources/identities.d.ts.map +0 -1
  259. package/resources/identities.js +0 -6
  260. package/resources/identities.js.map +0 -1
  261. package/resources/identities.mjs +0 -3
  262. package/resources/identities.mjs.map +0 -1
  263. package/src/resources/agents/groups.ts +0 -37
  264. package/src/resources/batches/batches.ts +0 -317
  265. package/src/resources/batches/index.ts +0 -11
  266. package/src/resources/batches/messages.ts +0 -38
  267. package/src/resources/batches.ts +0 -3
  268. package/src/resources/groups/groups.ts +0 -334
  269. package/src/resources/groups/index.ts +0 -27
  270. package/src/resources/groups/messages.ts +0 -505
  271. package/src/resources/groups.ts +0 -3
  272. package/src/resources/identities/agents.ts +0 -47
  273. package/src/resources/identities/blocks.ts +0 -33
  274. package/src/resources/identities/identities.ts +0 -286
  275. package/src/resources/identities/index.ts +0 -17
  276. package/src/resources/identities/properties.ts +0 -30
  277. package/src/resources/identities.ts +0 -3
@@ -0,0 +1,31 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Trace extends APIResource {
5
+ /**
6
+ * Retrieve OTEL trace spans for a run.
7
+ *
8
+ * Returns a filtered set of spans relevant for observability:
9
+ *
10
+ * - agent_step: Individual agent reasoning steps
11
+ * - tool executions: Tool call spans
12
+ * - Root span: The top-level request span
13
+ * - time_to_first_token: TTFT measurement span
14
+ *
15
+ * Requires ClickHouse to be configured for trace storage.
16
+ */
17
+ retrieve(runID: string, query?: TraceRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<TraceRetrieveResponse>;
18
+ }
19
+ export type TraceRetrieveResponse = Array<{
20
+ [key: string]: unknown;
21
+ }>;
22
+ export interface TraceRetrieveParams {
23
+ /**
24
+ * Maximum number of spans to return
25
+ */
26
+ limit?: number;
27
+ }
28
+ export declare namespace Trace {
29
+ export { type TraceRetrieveResponse as TraceRetrieveResponse, type TraceRetrieveParams as TraceRetrieveParams, };
30
+ }
31
+ //# sourceMappingURL=trace.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace.d.mts","sourceRoot":"","sources":["../../src/resources/runs/trace.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAGrC;AAED,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,31 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Trace extends APIResource {
5
+ /**
6
+ * Retrieve OTEL trace spans for a run.
7
+ *
8
+ * Returns a filtered set of spans relevant for observability:
9
+ *
10
+ * - agent_step: Individual agent reasoning steps
11
+ * - tool executions: Tool call spans
12
+ * - Root span: The top-level request span
13
+ * - time_to_first_token: TTFT measurement span
14
+ *
15
+ * Requires ClickHouse to be configured for trace storage.
16
+ */
17
+ retrieve(runID: string, query?: TraceRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<TraceRetrieveResponse>;
18
+ }
19
+ export type TraceRetrieveResponse = Array<{
20
+ [key: string]: unknown;
21
+ }>;
22
+ export interface TraceRetrieveParams {
23
+ /**
24
+ * Maximum number of spans to return
25
+ */
26
+ limit?: number;
27
+ }
28
+ export declare namespace Trace {
29
+ export { type TraceRetrieveResponse as TraceRetrieveResponse, type TraceRetrieveParams as TraceRetrieveParams, };
30
+ }
31
+ //# sourceMappingURL=trace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/resources/runs/trace.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAGrC;AAED,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Trace = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Trace extends resource_1.APIResource {
8
+ /**
9
+ * Retrieve OTEL trace spans for a run.
10
+ *
11
+ * Returns a filtered set of spans relevant for observability:
12
+ *
13
+ * - agent_step: Individual agent reasoning steps
14
+ * - tool executions: Tool call spans
15
+ * - Root span: The top-level request span
16
+ * - time_to_first_token: TTFT measurement span
17
+ *
18
+ * Requires ClickHouse to be configured for trace storage.
19
+ */
20
+ retrieve(runID, query = {}, options) {
21
+ return this._client.get((0, path_1.path) `/v1/runs/${runID}/trace`, { query, ...options });
22
+ }
23
+ }
24
+ exports.Trace = Trace;
25
+ //# sourceMappingURL=trace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace.js","sourceRoot":"","sources":["../../src/resources/runs/trace.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAAa,EACb,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,KAAK,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AApBD,sBAoBC"}
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class Trace extends APIResource {
5
+ /**
6
+ * Retrieve OTEL trace spans for a run.
7
+ *
8
+ * Returns a filtered set of spans relevant for observability:
9
+ *
10
+ * - agent_step: Individual agent reasoning steps
11
+ * - tool executions: Tool call spans
12
+ * - Root span: The top-level request span
13
+ * - time_to_first_token: TTFT measurement span
14
+ *
15
+ * Requires ClickHouse to be configured for trace storage.
16
+ */
17
+ retrieve(runID, query = {}, options) {
18
+ return this._client.get(path `/v1/runs/${runID}/trace`, { query, ...options });
19
+ }
20
+ }
21
+ //# sourceMappingURL=trace.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace.mjs","sourceRoot":"","sources":["../../src/resources/runs/trace.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAAa,EACb,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,KAAK,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
@@ -3,7 +3,7 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class Tags extends APIResource {
5
5
  /**
6
- * Get the list of all agent tags that have been created.
6
+ * Get the list of all tags (from agents and blocks) that have been created.
7
7
  */
8
8
  list(query?: TagListParams | null | undefined, options?: RequestOptions): APIPromise<TagListResponse>;
9
9
  }
@@ -3,7 +3,7 @@ import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class Tags extends APIResource {
5
5
  /**
6
- * Get the list of all agent tags that have been created.
6
+ * Get the list of all tags (from agents and blocks) that have been created.
7
7
  */
8
8
  list(query?: TagListParams | null | undefined, options?: RequestOptions): APIPromise<TagListResponse>;
9
9
  }
package/resources/tags.js CHANGED
@@ -5,7 +5,7 @@ exports.Tags = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  class Tags extends resource_1.APIResource {
7
7
  /**
8
- * Get the list of all agent tags that have been created.
8
+ * Get the list of all tags (from agents and blocks) that have been created.
9
9
  */
10
10
  list(query = {}, options) {
11
11
  return this._client.get('/v1/tags/', { query, ...options });
@@ -2,7 +2,7 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  export class Tags extends APIResource {
4
4
  /**
5
- * Get the list of all agent tags that have been created.
5
+ * Get the list of all tags (from agents and blocks) that have been created.
6
6
  */
7
7
  list(query = {}, options) {
8
8
  return this._client.get('/v1/tags/', { query, ...options });
package/src/client.ts CHANGED
@@ -41,6 +41,7 @@ import {
41
41
  import {
42
42
  MessageListParams,
43
43
  MessageListResponse,
44
+ MessageRetrieveResponse,
44
45
  MessageSearchParams,
45
46
  MessageSearchRequest,
46
47
  MessageSearchResponse,
@@ -117,14 +118,6 @@ import {
117
118
  ArchivesArrayPage,
118
119
  VectorDBProvider,
119
120
  } from './resources/archives/archives';
120
- import {
121
- BatchCancelResponse,
122
- BatchCreateParams,
123
- BatchJob,
124
- BatchJobsArrayPage,
125
- BatchListParams,
126
- Batches,
127
- } from './resources/batches/batches';
128
121
  import {
129
122
  BlockCreateParams,
130
123
  BlockDeleteResponse,
@@ -152,33 +145,6 @@ import {
152
145
  Folders,
153
146
  FoldersArrayPage,
154
147
  } from './resources/folders/folders';
155
- import {
156
- DynamicManager,
157
- Group,
158
- GroupCreateParams,
159
- GroupDeleteResponse,
160
- GroupListParams,
161
- GroupUpdateParams,
162
- Groups,
163
- GroupsArrayPage,
164
- ManagerType,
165
- RoundRobinManager,
166
- SleeptimeManager,
167
- SupervisorManager,
168
- VoiceSleeptimeManager,
169
- } from './resources/groups/groups';
170
- import {
171
- Identities,
172
- IdentitiesArrayPage,
173
- Identity,
174
- IdentityCreateParams,
175
- IdentityDeleteResponse,
176
- IdentityListParams,
177
- IdentityProperty,
178
- IdentityType,
179
- IdentityUpdateParams,
180
- IdentityUpsertParams,
181
- } from './resources/identities/identities';
182
148
  import {
183
149
  CreateSseMcpServer,
184
150
  CreateStdioMcpServer,
@@ -981,11 +947,8 @@ export class Letta {
981
947
  steps: API.Steps = new API.Steps(this);
982
948
  templates: API.Templates = new API.Templates(this);
983
949
  tags: API.Tags = new API.Tags(this);
984
- identities: API.Identities = new API.Identities(this);
985
- groups: API.Groups = new API.Groups(this);
986
950
  messages: API.Messages = new API.Messages(this);
987
951
  passages: API.Passages = new API.Passages(this);
988
- batches: API.Batches = new API.Batches(this);
989
952
  conversations: API.Conversations = new API.Conversations(this);
990
953
  accessTokens: API.AccessTokens = new API.AccessTokens(this);
991
954
  }
@@ -1001,11 +964,8 @@ Letta.Runs = Runs;
1001
964
  Letta.Steps = Steps;
1002
965
  Letta.Templates = Templates;
1003
966
  Letta.Tags = Tags;
1004
- Letta.Identities = Identities;
1005
- Letta.Groups = Groups;
1006
967
  Letta.Messages = Messages;
1007
968
  Letta.Passages = Passages;
1008
- Letta.Batches = Batches;
1009
969
  Letta.Conversations = Conversations;
1010
970
  Letta.AccessTokens = AccessTokens;
1011
971
 
@@ -1178,39 +1138,11 @@ export declare namespace Letta {
1178
1138
 
1179
1139
  export { Tags as Tags, type TagListResponse as TagListResponse, type TagListParams as TagListParams };
1180
1140
 
1181
- export {
1182
- Identities as Identities,
1183
- type Identity as Identity,
1184
- type IdentityProperty as IdentityProperty,
1185
- type IdentityType as IdentityType,
1186
- type IdentityDeleteResponse as IdentityDeleteResponse,
1187
- type IdentitiesArrayPage as IdentitiesArrayPage,
1188
- type IdentityCreateParams as IdentityCreateParams,
1189
- type IdentityUpdateParams as IdentityUpdateParams,
1190
- type IdentityListParams as IdentityListParams,
1191
- type IdentityUpsertParams as IdentityUpsertParams,
1192
- };
1193
-
1194
- export {
1195
- Groups as Groups,
1196
- type DynamicManager as DynamicManager,
1197
- type Group as Group,
1198
- type ManagerType as ManagerType,
1199
- type RoundRobinManager as RoundRobinManager,
1200
- type SleeptimeManager as SleeptimeManager,
1201
- type SupervisorManager as SupervisorManager,
1202
- type VoiceSleeptimeManager as VoiceSleeptimeManager,
1203
- type GroupDeleteResponse as GroupDeleteResponse,
1204
- type GroupsArrayPage as GroupsArrayPage,
1205
- type GroupCreateParams as GroupCreateParams,
1206
- type GroupUpdateParams as GroupUpdateParams,
1207
- type GroupListParams as GroupListParams,
1208
- };
1209
-
1210
1141
  export {
1211
1142
  Messages as Messages,
1212
1143
  type MessageSearchRequest as MessageSearchRequest,
1213
1144
  type MessageSearchResult as MessageSearchResult,
1145
+ type MessageRetrieveResponse as MessageRetrieveResponse,
1214
1146
  type MessageListResponse as MessageListResponse,
1215
1147
  type MessageSearchResponse as MessageSearchResponse,
1216
1148
  type MessageListParams as MessageListParams,
@@ -1224,15 +1156,6 @@ export declare namespace Letta {
1224
1156
  type PassageSearchParams as PassageSearchParams,
1225
1157
  };
1226
1158
 
1227
- export {
1228
- Batches as Batches,
1229
- type BatchJob as BatchJob,
1230
- type BatchCancelResponse as BatchCancelResponse,
1231
- type BatchJobsArrayPage as BatchJobsArrayPage,
1232
- type BatchCreateParams as BatchCreateParams,
1233
- type BatchListParams as BatchListParams,
1234
- };
1235
-
1236
1159
  export {
1237
1160
  Conversations as Conversations,
1238
1161
  type Conversation as Conversation,
@@ -43,8 +43,6 @@ import {
43
43
  FolderListResponsesArrayPage,
44
44
  Folders,
45
45
  } from './folders';
46
- import * as GroupsAPI from './groups';
47
- import { GroupListParams, Groups } from './groups';
48
46
  import * as IdentitiesAPI from './identities';
49
47
  import {
50
48
  Identities,
@@ -133,8 +131,6 @@ import {
133
131
  } from './tools';
134
132
  import * as ArchivesArchivesAPI from '../archives/archives';
135
133
  import * as BlocksBlocksAPI from '../blocks/blocks';
136
- import * as GroupsGroupsAPI from '../groups/groups';
137
- import * as IdentitiesIdentitiesAPI from '../identities/identities';
138
134
  import * as ModelsAPI from '../models/models';
139
135
  import * as RunsAPI from '../runs/runs';
140
136
  import { APIPromise } from '../../core/api-promise';
@@ -151,7 +147,6 @@ export class Agents extends APIResource {
151
147
  tools: AgentsToolsAPI.Tools = new AgentsToolsAPI.Tools(this._client);
152
148
  folders: FoldersAPI.Folders = new FoldersAPI.Folders(this._client);
153
149
  files: FilesAPI.Files = new FilesAPI.Files(this._client);
154
- groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
155
150
  archives: ArchivesAPI.Archives = new ArchivesAPI.Archives(this._client);
156
151
  passages: PassagesAPI.Passages = new PassagesAPI.Passages(this._client);
157
152
  identities: IdentitiesAPI.Identities = new IdentitiesAPI.Identities(this._client);
@@ -413,7 +408,7 @@ export interface AgentState {
413
408
  /**
414
409
  * The identities associated with this agent.
415
410
  */
416
- identities?: Array<IdentitiesIdentitiesAPI.Identity>;
411
+ identities?: Array<AgentState.Identity>;
417
412
 
418
413
  /**
419
414
  * @deprecated Deprecated: Use `identities` field instead. The ids of the
@@ -444,7 +439,7 @@ export interface AgentState {
444
439
  /**
445
440
  * The multi-agent group that this agent manages
446
441
  */
447
- managed_group?: GroupsGroupsAPI.Group | null;
442
+ managed_group?: AgentState.ManagedGroup | null;
448
443
 
449
444
  /**
450
445
  * Maximum number of files that can be open at once for this agent. Setting this
@@ -495,7 +490,17 @@ export interface AgentState {
495
490
  * @deprecated Deprecated: Use `managed_group` field instead. The multi-agent group
496
491
  * that this agent manages.
497
492
  */
498
- multi_agent_group?: GroupsGroupsAPI.Group | null;
493
+ multi_agent_group?: AgentState.MultiAgentGroup | null;
494
+
495
+ /**
496
+ * A message representing a request for approval to call a tool (generated by the
497
+ * LLM to trigger tool execution).
498
+ *
499
+ * Args: id (str): The ID of the message date (datetime): The date the message was
500
+ * created in ISO format name (Optional[str]): The name of the sender of the
501
+ * message tool_call (ToolCall): The tool call
502
+ */
503
+ pending_approval?: MessagesAPI.ApprovalRequestMessage | null;
499
504
 
500
505
  /**
501
506
  * The per-file view window character limit for this agent. Setting this too high
@@ -685,6 +690,11 @@ export namespace AgentState {
685
690
  */
686
691
  read_only?: boolean;
687
692
 
693
+ /**
694
+ * The tags associated with the block.
695
+ */
696
+ tags?: Array<string> | null;
697
+
688
698
  /**
689
699
  * The id of the template.
690
700
  */
@@ -853,6 +863,141 @@ export namespace AgentState {
853
863
  }
854
864
  }
855
865
 
866
+ export interface Identity {
867
+ /**
868
+ * The human-friendly ID of the Identity
869
+ */
870
+ id: string;
871
+
872
+ /**
873
+ * @deprecated The IDs of the agents associated with the identity.
874
+ */
875
+ agent_ids: Array<string>;
876
+
877
+ /**
878
+ * @deprecated The IDs of the blocks associated with the identity.
879
+ */
880
+ block_ids: Array<string>;
881
+
882
+ /**
883
+ * External, user-generated identifier key of the identity.
884
+ */
885
+ identifier_key: string;
886
+
887
+ /**
888
+ * The type of the identity.
889
+ */
890
+ identity_type: 'org' | 'user' | 'other';
891
+
892
+ /**
893
+ * The name of the identity.
894
+ */
895
+ name: string;
896
+
897
+ /**
898
+ * The project id of the identity, if applicable.
899
+ */
900
+ project_id?: string | null;
901
+
902
+ /**
903
+ * List of properties associated with the identity
904
+ */
905
+ properties?: Array<Identity.Property>;
906
+ }
907
+
908
+ export namespace Identity {
909
+ /**
910
+ * A property of an identity
911
+ */
912
+ export interface Property {
913
+ /**
914
+ * The key of the property
915
+ */
916
+ key: string;
917
+
918
+ /**
919
+ * The type of the property
920
+ */
921
+ type: 'string' | 'number' | 'boolean' | 'json';
922
+
923
+ /**
924
+ * The value of the property
925
+ */
926
+ value: string | number | boolean | { [key: string]: unknown };
927
+ }
928
+ }
929
+
930
+ /**
931
+ * The multi-agent group that this agent manages
932
+ */
933
+ export interface ManagedGroup {
934
+ /**
935
+ * The id of the group. Assigned by the database.
936
+ */
937
+ id: string;
938
+
939
+ agent_ids: Array<string>;
940
+
941
+ description: string;
942
+
943
+ manager_type: 'round_robin' | 'supervisor' | 'dynamic' | 'sleeptime' | 'voice_sleeptime' | 'swarm';
944
+
945
+ /**
946
+ * The base template id.
947
+ */
948
+ base_template_id?: string | null;
949
+
950
+ /**
951
+ * The id of the deployment.
952
+ */
953
+ deployment_id?: string | null;
954
+
955
+ /**
956
+ * If set to True, the group will be hidden.
957
+ */
958
+ hidden?: boolean | null;
959
+
960
+ last_processed_message_id?: string | null;
961
+
962
+ manager_agent_id?: string | null;
963
+
964
+ /**
965
+ * The desired maximum length of messages in the context window of the convo agent.
966
+ * This is a best effort, and may be off slightly due to user/assistant
967
+ * interleaving.
968
+ */
969
+ max_message_buffer_length?: number | null;
970
+
971
+ max_turns?: number | null;
972
+
973
+ /**
974
+ * The desired minimum length of messages in the context window of the convo agent.
975
+ * This is a best effort, and may be off-by-one due to user/assistant interleaving.
976
+ */
977
+ min_message_buffer_length?: number | null;
978
+
979
+ /**
980
+ * The associated project id.
981
+ */
982
+ project_id?: string | null;
983
+
984
+ /**
985
+ * @deprecated
986
+ */
987
+ shared_block_ids?: Array<string>;
988
+
989
+ sleeptime_agent_frequency?: number | null;
990
+
991
+ /**
992
+ * The id of the template.
993
+ */
994
+ template_id?: string | null;
995
+
996
+ termination_token?: string | null;
997
+
998
+ turns_counter?: number | null;
999
+ }
1000
+
856
1001
  /**
857
1002
  * Z.ai (ZhipuAI) model configuration (OpenAI-compatible).
858
1003
  */
@@ -886,6 +1031,78 @@ export namespace AgentState {
886
1031
  */
887
1032
  temperature?: number;
888
1033
  }
1034
+
1035
+ /**
1036
+ * @deprecated Deprecated: Use `managed_group` field instead. The multi-agent group
1037
+ * that this agent manages.
1038
+ */
1039
+ export interface MultiAgentGroup {
1040
+ /**
1041
+ * The id of the group. Assigned by the database.
1042
+ */
1043
+ id: string;
1044
+
1045
+ agent_ids: Array<string>;
1046
+
1047
+ description: string;
1048
+
1049
+ manager_type: 'round_robin' | 'supervisor' | 'dynamic' | 'sleeptime' | 'voice_sleeptime' | 'swarm';
1050
+
1051
+ /**
1052
+ * The base template id.
1053
+ */
1054
+ base_template_id?: string | null;
1055
+
1056
+ /**
1057
+ * The id of the deployment.
1058
+ */
1059
+ deployment_id?: string | null;
1060
+
1061
+ /**
1062
+ * If set to True, the group will be hidden.
1063
+ */
1064
+ hidden?: boolean | null;
1065
+
1066
+ last_processed_message_id?: string | null;
1067
+
1068
+ manager_agent_id?: string | null;
1069
+
1070
+ /**
1071
+ * The desired maximum length of messages in the context window of the convo agent.
1072
+ * This is a best effort, and may be off slightly due to user/assistant
1073
+ * interleaving.
1074
+ */
1075
+ max_message_buffer_length?: number | null;
1076
+
1077
+ max_turns?: number | null;
1078
+
1079
+ /**
1080
+ * The desired minimum length of messages in the context window of the convo agent.
1081
+ * This is a best effort, and may be off-by-one due to user/assistant interleaving.
1082
+ */
1083
+ min_message_buffer_length?: number | null;
1084
+
1085
+ /**
1086
+ * The associated project id.
1087
+ */
1088
+ project_id?: string | null;
1089
+
1090
+ /**
1091
+ * @deprecated
1092
+ */
1093
+ shared_block_ids?: Array<string>;
1094
+
1095
+ sleeptime_agent_frequency?: number | null;
1096
+
1097
+ /**
1098
+ * The id of the template.
1099
+ */
1100
+ template_id?: string | null;
1101
+
1102
+ termination_token?: string | null;
1103
+
1104
+ turns_counter?: number | null;
1105
+ }
889
1106
  }
890
1107
 
891
1108
  /**
@@ -2055,6 +2272,7 @@ export interface AgentRetrieveParams {
2055
2272
  | 'agent.blocks'
2056
2273
  | 'agent.identities'
2057
2274
  | 'agent.managed_group'
2275
+ | 'agent.pending_approval'
2058
2276
  | 'agent.secrets'
2059
2277
  | 'agent.sources'
2060
2278
  | 'agent.tags'
@@ -2458,6 +2676,7 @@ export interface AgentListParams extends ArrayPageParams {
2458
2676
  | 'agent.blocks'
2459
2677
  | 'agent.identities'
2460
2678
  | 'agent.managed_group'
2679
+ | 'agent.pending_approval'
2461
2680
  | 'agent.secrets'
2462
2681
  | 'agent.sources'
2463
2682
  | 'agent.tags'
@@ -2531,7 +2750,7 @@ export interface AgentExportFileParams {
2531
2750
 
2532
2751
  export interface AgentImportFileParams {
2533
2752
  /**
2534
- * Body param:
2753
+ * Body param
2535
2754
  */
2536
2755
  file: Uploadable;
2537
2756
 
@@ -2593,7 +2812,7 @@ export interface AgentImportFileParams {
2593
2812
  strip_messages?: boolean;
2594
2813
 
2595
2814
  /**
2596
- * Header param:
2815
+ * Header param
2597
2816
  */
2598
2817
  'x-override-embedding-model'?: string;
2599
2818
  }
@@ -2603,7 +2822,6 @@ Agents.Blocks = Blocks;
2603
2822
  Agents.Tools = Tools;
2604
2823
  Agents.Folders = Folders;
2605
2824
  Agents.Files = Files;
2606
- Agents.Groups = Groups;
2607
2825
  Agents.Archives = Archives;
2608
2826
  Agents.Passages = Passages;
2609
2827
  Agents.Identities = Identities;
@@ -2747,8 +2965,6 @@ export declare namespace Agents {
2747
2965
  type FileOpenParams as FileOpenParams,
2748
2966
  };
2749
2967
 
2750
- export { Groups as Groups, type GroupListParams as GroupListParams };
2751
-
2752
2968
  export {
2753
2969
  Archives as Archives,
2754
2970
  type ArchiveAttachResponse as ArchiveAttachResponse,
@@ -161,6 +161,11 @@ export interface Block {
161
161
  */
162
162
  read_only?: boolean;
163
163
 
164
+ /**
165
+ * The tags associated with the block.
166
+ */
167
+ tags?: Array<string> | null;
168
+
164
169
  /**
165
170
  * The id of the template.
166
171
  */
@@ -236,6 +241,11 @@ export interface BlockUpdate {
236
241
  */
237
242
  read_only?: boolean;
238
243
 
244
+ /**
245
+ * The tags to associate with the block.
246
+ */
247
+ tags?: Array<string> | null;
248
+
239
249
  /**
240
250
  * The id of the template.
241
251
  */
@@ -325,6 +335,11 @@ export interface BlockUpdateParams {
325
335
  */
326
336
  read_only?: boolean;
327
337
 
338
+ /**
339
+ * Body param: The tags to associate with the block.
340
+ */
341
+ tags?: Array<string> | null;
342
+
328
343
  /**
329
344
  * Body param: The id of the template.
330
345
  */