@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
@@ -1,6 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Agents } from "./agents.mjs";
3
- export { Blocks } from "./blocks.mjs";
4
- export { Identities, } from "./identities.mjs";
5
- export { Properties } from "./properties.mjs";
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAwB;OAChC,EAAE,MAAM,EAAwB;OAChC,EACL,UAAU,GAUX;OACM,EAAE,UAAU,EAA0D"}
@@ -1,18 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as IdentitiesAPI from "./identities.mjs";
3
- import { APIPromise } from "../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../internal/request-options.mjs";
5
- export declare class Properties extends APIResource {
6
- /**
7
- * Upsert Properties For Identity
8
- */
9
- upsert(identityID: string, params: PropertyUpsertParams, options?: RequestOptions): APIPromise<unknown>;
10
- }
11
- export type PropertyUpsertResponse = unknown;
12
- export interface PropertyUpsertParams {
13
- body: Array<IdentitiesAPI.IdentityProperty>;
14
- }
15
- export declare namespace Properties {
16
- export { type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
17
- }
18
- //# sourceMappingURL=properties.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.d.mts","sourceRoot":"","sources":["../../src/resources/identities/properties.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAIxG;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,18 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as IdentitiesAPI from "./identities.js";
3
- import { APIPromise } from "../../core/api-promise.js";
4
- import { RequestOptions } from "../../internal/request-options.js";
5
- export declare class Properties extends APIResource {
6
- /**
7
- * Upsert Properties For Identity
8
- */
9
- upsert(identityID: string, params: PropertyUpsertParams, options?: RequestOptions): APIPromise<unknown>;
10
- }
11
- export type PropertyUpsertResponse = unknown;
12
- export interface PropertyUpsertParams {
13
- body: Array<IdentitiesAPI.IdentityProperty>;
14
- }
15
- export declare namespace Properties {
16
- export { type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
17
- }
18
- //# sourceMappingURL=properties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../src/resources/identities/properties.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAIxG;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,17 +0,0 @@
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.Properties = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- class Properties extends resource_1.APIResource {
8
- /**
9
- * Upsert Properties For Identity
10
- */
11
- upsert(identityID, params, options) {
12
- const { body } = params;
13
- return this._client.put((0, path_1.path) `/v1/identities/${identityID}/properties`, { body: body, ...options });
14
- }
15
- }
16
- exports.Properties = Properties;
17
- //# sourceMappingURL=properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../src/resources/identities/properties.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,MAA4B,EAAE,OAAwB;QAC/E,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,UAAU,aAAa,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AARD,gCAQC"}
@@ -1,13 +0,0 @@
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 Properties extends APIResource {
5
- /**
6
- * Upsert Properties For Identity
7
- */
8
- upsert(identityID, params, options) {
9
- const { body } = params;
10
- return this._client.put(path `/v1/identities/${identityID}/properties`, { body: body, ...options });
11
- }
12
- }
13
- //# sourceMappingURL=properties.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.mjs","sourceRoot":"","sources":["../../src/resources/identities/properties.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,MAA4B,EAAE,OAAwB;QAC/E,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,UAAU,aAAa,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./identities/index.mjs";
2
- //# sourceMappingURL=identities.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.d.mts","sourceRoot":"","sources":["../src/resources/identities.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./identities/index.js";
2
- //# sourceMappingURL=identities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.d.ts","sourceRoot":"","sources":["../src/resources/identities.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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
- const tslib_1 = require("../internal/tslib.js");
5
- tslib_1.__exportStar(require("./identities/index.js"), exports);
6
- //# sourceMappingURL=identities.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.js","sourceRoot":"","sources":["../src/resources/identities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./identities/index.mjs";
3
- //# sourceMappingURL=identities.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identities.mjs","sourceRoot":"","sources":["../src/resources/identities.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,37 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as GroupsGroupsAPI from '../groups/groups';
5
- import { GroupsArrayPage } from '../groups/groups';
6
- import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
7
- import { RequestOptions } from '../../internal/request-options';
8
- import { path } from '../../internal/utils/path';
9
-
10
- export class Groups extends APIResource {
11
- /**
12
- * Lists the groups for an agent.
13
- */
14
- list(
15
- agentID: string,
16
- query: GroupListParams | null | undefined = {},
17
- options?: RequestOptions,
18
- ): PagePromise<GroupsArrayPage, GroupsGroupsAPI.Group> {
19
- return this._client.getAPIList(path`/v1/agents/${agentID}/groups`, ArrayPage<GroupsGroupsAPI.Group>, {
20
- query,
21
- ...options,
22
- });
23
- }
24
- }
25
-
26
- export interface GroupListParams extends ArrayPageParams {
27
- /**
28
- * Manager type to filter groups by
29
- */
30
- manager_type?: string | null;
31
- }
32
-
33
- export declare namespace Groups {
34
- export { type GroupListParams as GroupListParams };
35
- }
36
-
37
- export { type GroupsArrayPage };
@@ -1,317 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as AgentsAPI from '../agents/agents';
5
- import * as MessagesAPI from '../agents/messages';
6
- import * as BatchesMessagesAPI from './messages';
7
- import { MessageListParams, Messages } from './messages';
8
- import * as RunsAPI from '../runs/runs';
9
- import { APIPromise } from '../../core/api-promise';
10
- import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
11
- import { RequestOptions } from '../../internal/request-options';
12
- import { path } from '../../internal/utils/path';
13
-
14
- export class Batches extends APIResource {
15
- messages: BatchesMessagesAPI.Messages = new BatchesMessagesAPI.Messages(this._client);
16
-
17
- /**
18
- * Submit a batch of agent runs for asynchronous processing.
19
- *
20
- * Creates a job that will fan out messages to all listed agents and process them
21
- * in parallel. The request will be rejected if it exceeds 256MB.
22
- */
23
- create(body: BatchCreateParams, options?: RequestOptions): APIPromise<BatchJob> {
24
- return this._client.post('/v1/messages/batches', { body, ...options });
25
- }
26
-
27
- /**
28
- * Retrieve the status and details of a batch run.
29
- */
30
- retrieve(batchID: string, options?: RequestOptions): APIPromise<BatchJob> {
31
- return this._client.get(path`/v1/messages/batches/${batchID}`, options);
32
- }
33
-
34
- /**
35
- * List all batch runs.
36
- */
37
- list(
38
- query: BatchListParams | null | undefined = {},
39
- options?: RequestOptions,
40
- ): PagePromise<BatchJobsArrayPage, BatchJob> {
41
- return this._client.getAPIList('/v1/messages/batches', ArrayPage<BatchJob>, { query, ...options });
42
- }
43
-
44
- /**
45
- * Cancel a batch run.
46
- */
47
- cancel(batchID: string, options?: RequestOptions): APIPromise<unknown> {
48
- return this._client.patch(path`/v1/messages/batches/${batchID}/cancel`, options);
49
- }
50
- }
51
-
52
- export type BatchJobsArrayPage = ArrayPage<BatchJob>;
53
-
54
- export interface BatchJob {
55
- /**
56
- * The human-friendly ID of the Job
57
- */
58
- id: string;
59
-
60
- /**
61
- * The agent associated with this job/run.
62
- */
63
- agent_id?: string | null;
64
-
65
- /**
66
- * Whether the job was created in background mode.
67
- */
68
- background?: boolean | null;
69
-
70
- /**
71
- * Optional error message from attempting to POST the callback endpoint.
72
- */
73
- callback_error?: string | null;
74
-
75
- /**
76
- * Timestamp when the callback was last attempted.
77
- */
78
- callback_sent_at?: string | null;
79
-
80
- /**
81
- * HTTP status code returned by the callback endpoint.
82
- */
83
- callback_status_code?: number | null;
84
-
85
- /**
86
- * If set, POST to this URL when the job completes.
87
- */
88
- callback_url?: string | null;
89
-
90
- /**
91
- * The unix timestamp of when the job was completed.
92
- */
93
- completed_at?: string | null;
94
-
95
- /**
96
- * The unix timestamp of when the job was created.
97
- */
98
- created_at?: string;
99
-
100
- /**
101
- * The id of the user that made this object.
102
- */
103
- created_by_id?: string | null;
104
-
105
- job_type?: MessagesAPI.JobType;
106
-
107
- /**
108
- * The id of the user that made this object.
109
- */
110
- last_updated_by_id?: string | null;
111
-
112
- /**
113
- * The metadata of the job.
114
- */
115
- metadata?: { [key: string]: unknown } | null;
116
-
117
- /**
118
- * The status of the job.
119
- */
120
- status?: MessagesAPI.JobStatus;
121
-
122
- /**
123
- * The reason why the job was stopped.
124
- */
125
- stop_reason?: RunsAPI.StopReasonType | null;
126
-
127
- /**
128
- * Total run duration in nanoseconds
129
- */
130
- total_duration_ns?: number | null;
131
-
132
- /**
133
- * Time to first token for a run in nanoseconds
134
- */
135
- ttft_ns?: number | null;
136
-
137
- /**
138
- * The timestamp when the object was last updated.
139
- */
140
- updated_at?: string | null;
141
- }
142
-
143
- export type BatchCancelResponse = unknown;
144
-
145
- export interface BatchCreateParams {
146
- /**
147
- * List of requests to be processed in batch.
148
- */
149
- requests: Array<BatchCreateParams.Request>;
150
-
151
- /**
152
- * Optional URL to call via POST when the batch completes. The callback payload
153
- * will be a JSON object with the following fields: {'job_id': string, 'status':
154
- * string, 'completed_at': string}. Where 'job_id' is the unique batch job
155
- * identifier, 'status' is the final batch status (e.g., 'completed', 'failed'),
156
- * and 'completed_at' is an ISO 8601 timestamp indicating when the batch job
157
- * completed.
158
- */
159
- callback_url?: string | null;
160
- }
161
-
162
- export namespace BatchCreateParams {
163
- export interface Request {
164
- /**
165
- * The ID of the agent to send this batch request for
166
- */
167
- agent_id: string;
168
-
169
- /**
170
- * @deprecated The name of the message argument in the designated message tool.
171
- * Still supported for legacy agent types, but deprecated for letta_v1_agent
172
- * onward.
173
- */
174
- assistant_message_tool_kwarg?: string;
175
-
176
- /**
177
- * @deprecated The name of the designated message tool. Still supported for legacy
178
- * agent types, but deprecated for letta_v1_agent onward.
179
- */
180
- assistant_message_tool_name?: string;
181
-
182
- /**
183
- * Client-side tools that the agent can call. When the agent calls a client-side
184
- * tool, execution pauses and returns control to the client to execute the tool and
185
- * provide the result via a ToolReturn.
186
- */
187
- client_tools?: Array<Request.ClientTool> | null;
188
-
189
- /**
190
- * @deprecated If set to True, enables reasoning before responses or tool calls
191
- * from the agent.
192
- */
193
- enable_thinking?: string;
194
-
195
- /**
196
- * Only return specified message types in the response. If `None` (default) returns
197
- * all messages.
198
- */
199
- include_return_message_types?: Array<MessagesAPI.MessageType> | null;
200
-
201
- /**
202
- * Syntactic sugar for a single user message. Equivalent to messages=[{'role':
203
- * 'user', 'content': input}].
204
- */
205
- input?:
206
- | string
207
- | Array<
208
- | MessagesAPI.TextContent
209
- | MessagesAPI.ImageContent
210
- | MessagesAPI.ToolCallContent
211
- | MessagesAPI.ToolReturnContent
212
- | MessagesAPI.ReasoningContent
213
- | MessagesAPI.RedactedReasoningContent
214
- | MessagesAPI.OmittedReasoningContent
215
- | Request.SummarizedReasoningContent
216
- >
217
- | null;
218
-
219
- /**
220
- * Maximum number of steps the agent should take to process the request.
221
- */
222
- max_steps?: number;
223
-
224
- /**
225
- * The messages to be sent to the agent.
226
- */
227
- messages?: Array<AgentsAPI.MessageCreate | MessagesAPI.ApprovalCreate> | null;
228
-
229
- /**
230
- * @deprecated Whether the server should parse specific tool call arguments
231
- * (default `send_message`) as `AssistantMessage` objects. Still supported for
232
- * legacy agent types, but deprecated for letta_v1_agent onward.
233
- */
234
- use_assistant_message?: boolean;
235
- }
236
-
237
- export namespace Request {
238
- /**
239
- * Schema for a client-side tool passed in the request.
240
- *
241
- * Client-side tools are executed by the client, not the server. When the agent
242
- * calls a client-side tool, execution pauses and returns control to the client to
243
- * execute the tool and provide the result.
244
- */
245
- export interface ClientTool {
246
- /**
247
- * The name of the tool function
248
- */
249
- name: string;
250
-
251
- /**
252
- * Description of what the tool does
253
- */
254
- description?: string | null;
255
-
256
- /**
257
- * JSON Schema for the function parameters
258
- */
259
- parameters?: { [key: string]: unknown } | null;
260
- }
261
-
262
- /**
263
- * The style of reasoning content returned by the OpenAI Responses API
264
- */
265
- export interface SummarizedReasoningContent {
266
- /**
267
- * The unique identifier for this reasoning step.
268
- */
269
- id: string;
270
-
271
- /**
272
- * Summaries of the reasoning content.
273
- */
274
- summary: Array<SummarizedReasoningContent.Summary>;
275
-
276
- /**
277
- * The encrypted reasoning content.
278
- */
279
- encrypted_content?: string;
280
-
281
- /**
282
- * Indicates this is a summarized reasoning step.
283
- */
284
- type?: 'summarized_reasoning';
285
- }
286
-
287
- export namespace SummarizedReasoningContent {
288
- export interface Summary {
289
- /**
290
- * The index of the summary part.
291
- */
292
- index: number;
293
-
294
- /**
295
- * The text of the summary part.
296
- */
297
- text: string;
298
- }
299
- }
300
- }
301
- }
302
-
303
- export interface BatchListParams extends ArrayPageParams {}
304
-
305
- Batches.Messages = Messages;
306
-
307
- export declare namespace Batches {
308
- export {
309
- type BatchJob as BatchJob,
310
- type BatchCancelResponse as BatchCancelResponse,
311
- type BatchJobsArrayPage as BatchJobsArrayPage,
312
- type BatchCreateParams as BatchCreateParams,
313
- type BatchListParams as BatchListParams,
314
- };
315
-
316
- export { Messages as Messages, type MessageListParams as MessageListParams };
317
- }
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- Batches,
5
- type BatchJob,
6
- type BatchCancelResponse,
7
- type BatchCreateParams,
8
- type BatchListParams,
9
- type BatchJobsArrayPage,
10
- } from './batches';
11
- export { Messages, type MessageListParams } from './messages';
@@ -1,38 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as MessagesAPI from '../agents/messages';
5
- import { InternalMessagesObjectPage } from '../agents/messages';
6
- import { ObjectPage, type ObjectPageParams, PagePromise } from '../../core/pagination';
7
- import { RequestOptions } from '../../internal/request-options';
8
- import { path } from '../../internal/utils/path';
9
-
10
- export class Messages extends APIResource {
11
- /**
12
- * Get response messages for a specific batch job.
13
- */
14
- list(
15
- batchID: string,
16
- query: MessageListParams | null | undefined = {},
17
- options?: RequestOptions,
18
- ): PagePromise<InternalMessagesObjectPage, MessagesAPI.InternalMessage> {
19
- return this._client.getAPIList(
20
- path`/v1/messages/batches/${batchID}/messages`,
21
- ObjectPage<MessagesAPI.InternalMessage>,
22
- { query, ...options },
23
- );
24
- }
25
- }
26
-
27
- export interface MessageListParams extends ObjectPageParams {
28
- /**
29
- * Filter messages by agent ID
30
- */
31
- agent_id?: string | null;
32
- }
33
-
34
- export declare namespace Messages {
35
- export { type MessageListParams as MessageListParams };
36
- }
37
-
38
- export { type InternalMessagesObjectPage };
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './batches/index';