@letta-ai/letta-client 1.6.6 → 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 (226) hide show
  1. package/CHANGELOG.md +15 -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 +165 -13
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +165 -13
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js +0 -8
  16. package/resources/agents/agents.js.map +1 -1
  17. package/resources/agents/agents.mjs +0 -8
  18. package/resources/agents/agents.mjs.map +1 -1
  19. package/resources/agents/index.d.mts +1 -3
  20. package/resources/agents/index.d.mts.map +1 -1
  21. package/resources/agents/index.d.ts +1 -3
  22. package/resources/agents/index.d.ts.map +1 -1
  23. package/resources/agents/index.js +1 -5
  24. package/resources/agents/index.js.map +1 -1
  25. package/resources/agents/index.mjs +0 -2
  26. package/resources/agents/index.mjs.map +1 -1
  27. package/resources/agents/messages.d.mts +1 -2
  28. package/resources/agents/messages.d.mts.map +1 -1
  29. package/resources/agents/messages.d.ts +1 -2
  30. package/resources/agents/messages.d.ts.map +1 -1
  31. package/resources/agents/messages.js.map +1 -1
  32. package/resources/agents/messages.mjs.map +1 -1
  33. package/resources/conversations/conversations.d.mts +2 -2
  34. package/resources/conversations/conversations.d.mts.map +1 -1
  35. package/resources/conversations/conversations.d.ts +2 -2
  36. package/resources/conversations/conversations.d.ts.map +1 -1
  37. package/resources/conversations/conversations.js.map +1 -1
  38. package/resources/conversations/conversations.mjs.map +1 -1
  39. package/resources/conversations/index.d.mts +1 -1
  40. package/resources/conversations/index.d.mts.map +1 -1
  41. package/resources/conversations/index.d.ts +1 -1
  42. package/resources/conversations/index.d.ts.map +1 -1
  43. package/resources/conversations/index.js.map +1 -1
  44. package/resources/conversations/index.mjs.map +1 -1
  45. package/resources/conversations/messages.d.mts +12 -16
  46. package/resources/conversations/messages.d.mts.map +1 -1
  47. package/resources/conversations/messages.d.ts +12 -16
  48. package/resources/conversations/messages.d.ts.map +1 -1
  49. package/resources/conversations/messages.js +3 -3
  50. package/resources/conversations/messages.js.map +1 -1
  51. package/resources/conversations/messages.mjs +3 -3
  52. package/resources/conversations/messages.mjs.map +1 -1
  53. package/resources/index.d.mts +1 -4
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +1 -4
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +1 -7
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +0 -3
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/messages.d.mts +6 -1
  62. package/resources/messages.d.mts.map +1 -1
  63. package/resources/messages.d.ts +6 -1
  64. package/resources/messages.d.ts.map +1 -1
  65. package/resources/messages.js +7 -0
  66. package/resources/messages.js.map +1 -1
  67. package/resources/messages.mjs +7 -0
  68. package/resources/messages.mjs.map +1 -1
  69. package/src/client.ts +2 -79
  70. package/src/resources/agents/agents.ts +210 -37
  71. package/src/resources/agents/index.ts +0 -13
  72. package/src/resources/agents/messages.ts +1 -3
  73. package/src/resources/conversations/conversations.ts +0 -2
  74. package/src/resources/conversations/index.ts +0 -1
  75. package/src/resources/conversations/messages.ts +17 -19
  76. package/src/resources/index.ts +1 -35
  77. package/src/resources/messages.ts +11 -0
  78. package/src/version.ts +1 -1
  79. package/version.d.mts +1 -1
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
  82. package/version.mjs +1 -1
  83. package/resources/agents/groups.d.mts +0 -22
  84. package/resources/agents/groups.d.mts.map +0 -1
  85. package/resources/agents/groups.d.ts +0 -22
  86. package/resources/agents/groups.d.ts.map +0 -1
  87. package/resources/agents/groups.js +0 -20
  88. package/resources/agents/groups.js.map +0 -1
  89. package/resources/agents/groups.mjs +0 -16
  90. package/resources/agents/groups.mjs.map +0 -1
  91. package/resources/agents/schedule.d.mts +0 -197
  92. package/resources/agents/schedule.d.mts.map +0 -1
  93. package/resources/agents/schedule.d.ts +0 -197
  94. package/resources/agents/schedule.d.ts.map +0 -1
  95. package/resources/agents/schedule.js +0 -40
  96. package/resources/agents/schedule.js.map +0 -1
  97. package/resources/agents/schedule.mjs +0 -36
  98. package/resources/agents/schedule.mjs.map +0 -1
  99. package/resources/batches/batches.d.mts +0 -240
  100. package/resources/batches/batches.d.mts.map +0 -1
  101. package/resources/batches/batches.d.ts +0 -240
  102. package/resources/batches/batches.d.ts.map +0 -1
  103. package/resources/batches/batches.js +0 -46
  104. package/resources/batches/batches.js.map +0 -1
  105. package/resources/batches/batches.mjs +0 -41
  106. package/resources/batches/batches.mjs.map +0 -1
  107. package/resources/batches/index.d.mts +0 -3
  108. package/resources/batches/index.d.mts.map +0 -1
  109. package/resources/batches/index.d.ts +0 -3
  110. package/resources/batches/index.d.ts.map +0 -1
  111. package/resources/batches/index.js +0 -9
  112. package/resources/batches/index.js.map +0 -1
  113. package/resources/batches/index.mjs +0 -4
  114. package/resources/batches/index.mjs.map +0 -1
  115. package/resources/batches/messages.d.mts +0 -22
  116. package/resources/batches/messages.d.mts.map +0 -1
  117. package/resources/batches/messages.d.ts +0 -22
  118. package/resources/batches/messages.d.ts.map +0 -1
  119. package/resources/batches/messages.js +0 -17
  120. package/resources/batches/messages.js.map +0 -1
  121. package/resources/batches/messages.mjs +0 -13
  122. package/resources/batches/messages.mjs.map +0 -1
  123. package/resources/batches.d.mts +0 -2
  124. package/resources/batches.d.mts.map +0 -1
  125. package/resources/batches.d.ts +0 -2
  126. package/resources/batches.d.ts.map +0 -1
  127. package/resources/batches.js +0 -6
  128. package/resources/batches.js.map +0 -1
  129. package/resources/batches.mjs +0 -3
  130. package/resources/batches.mjs.map +0 -1
  131. package/resources/groups/groups.d.mts +0 -197
  132. package/resources/groups/groups.d.mts.map +0 -1
  133. package/resources/groups/groups.d.ts +0 -197
  134. package/resources/groups/groups.d.ts.map +0 -1
  135. package/resources/groups/groups.js +0 -49
  136. package/resources/groups/groups.js.map +0 -1
  137. package/resources/groups/groups.mjs +0 -44
  138. package/resources/groups/groups.mjs.map +0 -1
  139. package/resources/groups/index.d.mts +0 -3
  140. package/resources/groups/index.d.mts.map +0 -1
  141. package/resources/groups/index.d.ts +0 -3
  142. package/resources/groups/index.d.ts.map +0 -1
  143. package/resources/groups/index.js +0 -9
  144. package/resources/groups/index.js.map +0 -1
  145. package/resources/groups/index.mjs +0 -4
  146. package/resources/groups/index.mjs.map +0 -1
  147. package/resources/groups/messages.d.mts +0 -360
  148. package/resources/groups/messages.d.mts.map +0 -1
  149. package/resources/groups/messages.d.ts +0 -360
  150. package/resources/groups/messages.d.ts.map +0 -1
  151. package/resources/groups/messages.js +0 -54
  152. package/resources/groups/messages.js.map +0 -1
  153. package/resources/groups/messages.mjs +0 -50
  154. package/resources/groups/messages.mjs.map +0 -1
  155. package/resources/groups.d.mts +0 -2
  156. package/resources/groups.d.mts.map +0 -1
  157. package/resources/groups.d.ts +0 -2
  158. package/resources/groups.d.ts.map +0 -1
  159. package/resources/groups.js +0 -6
  160. package/resources/groups.js.map +0 -1
  161. package/resources/groups.mjs +0 -3
  162. package/resources/groups.mjs.map +0 -1
  163. package/resources/identities/agents.d.mts +0 -23
  164. package/resources/identities/agents.d.mts.map +0 -1
  165. package/resources/identities/agents.d.ts +0 -23
  166. package/resources/identities/agents.d.ts.map +0 -1
  167. package/resources/identities/agents.js +0 -17
  168. package/resources/identities/agents.js.map +0 -1
  169. package/resources/identities/agents.mjs +0 -13
  170. package/resources/identities/agents.mjs.map +0 -1
  171. package/resources/identities/blocks.d.mts +0 -18
  172. package/resources/identities/blocks.d.mts.map +0 -1
  173. package/resources/identities/blocks.d.ts +0 -18
  174. package/resources/identities/blocks.d.ts.map +0 -1
  175. package/resources/identities/blocks.js +0 -17
  176. package/resources/identities/blocks.js.map +0 -1
  177. package/resources/identities/blocks.mjs +0 -13
  178. package/resources/identities/blocks.mjs.map +0 -1
  179. package/resources/identities/identities.d.mts +0 -204
  180. package/resources/identities/identities.d.mts.map +0 -1
  181. package/resources/identities/identities.d.ts +0 -204
  182. package/resources/identities/identities.d.ts.map +0 -1
  183. package/resources/identities/identities.js +0 -63
  184. package/resources/identities/identities.js.map +0 -1
  185. package/resources/identities/identities.mjs +0 -58
  186. package/resources/identities/identities.mjs.map +0 -1
  187. package/resources/identities/index.d.mts +0 -5
  188. package/resources/identities/index.d.mts.map +0 -1
  189. package/resources/identities/index.d.ts +0 -5
  190. package/resources/identities/index.d.ts.map +0 -1
  191. package/resources/identities/index.js +0 -13
  192. package/resources/identities/index.js.map +0 -1
  193. package/resources/identities/index.mjs +0 -6
  194. package/resources/identities/index.mjs.map +0 -1
  195. package/resources/identities/properties.d.mts +0 -18
  196. package/resources/identities/properties.d.mts.map +0 -1
  197. package/resources/identities/properties.d.ts +0 -18
  198. package/resources/identities/properties.d.ts.map +0 -1
  199. package/resources/identities/properties.js +0 -17
  200. package/resources/identities/properties.js.map +0 -1
  201. package/resources/identities/properties.mjs +0 -13
  202. package/resources/identities/properties.mjs.map +0 -1
  203. package/resources/identities.d.mts +0 -2
  204. package/resources/identities.d.mts.map +0 -1
  205. package/resources/identities.d.ts +0 -2
  206. package/resources/identities.d.ts.map +0 -1
  207. package/resources/identities.js +0 -6
  208. package/resources/identities.js.map +0 -1
  209. package/resources/identities.mjs +0 -3
  210. package/resources/identities.mjs.map +0 -1
  211. package/src/resources/agents/groups.ts +0 -37
  212. package/src/resources/agents/schedule.ts +0 -361
  213. package/src/resources/batches/batches.ts +0 -317
  214. package/src/resources/batches/index.ts +0 -11
  215. package/src/resources/batches/messages.ts +0 -38
  216. package/src/resources/batches.ts +0 -3
  217. package/src/resources/groups/groups.ts +0 -334
  218. package/src/resources/groups/index.ts +0 -27
  219. package/src/resources/groups/messages.ts +0 -505
  220. package/src/resources/groups.ts +0 -3
  221. package/src/resources/identities/agents.ts +0 -48
  222. package/src/resources/identities/blocks.ts +0 -33
  223. package/src/resources/identities/identities.ts +0 -286
  224. package/src/resources/identities/index.ts +0 -17
  225. package/src/resources/identities/properties.ts +0 -30
  226. package/src/resources/identities.ts +0 -3
@@ -1,22 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as MessagesAPI from "../agents/messages.js";
3
- import { InternalMessagesObjectPage } from "../agents/messages.js";
4
- import { type ObjectPageParams, PagePromise } from "../../core/pagination.js";
5
- import { RequestOptions } from "../../internal/request-options.js";
6
- export declare class Messages extends APIResource {
7
- /**
8
- * Get response messages for a specific batch job.
9
- */
10
- list(batchID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise<InternalMessagesObjectPage, MessagesAPI.InternalMessage>;
11
- }
12
- export interface MessageListParams extends ObjectPageParams {
13
- /**
14
- * Filter messages by agent ID
15
- */
16
- agent_id?: string | null;
17
- }
18
- export declare namespace Messages {
19
- export { type MessageListParams as MessageListParams };
20
- }
21
- export { type InternalMessagesObjectPage };
22
- //# sourceMappingURL=messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/batches/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,0BAA0B,EAAE;OAC9B,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,WAAW,CAAC,eAAe,CAAC;CAOxE;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD;AAED,OAAO,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
@@ -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.Messages = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const pagination_1 = require("../../core/pagination.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class Messages extends resource_1.APIResource {
9
- /**
10
- * Get response messages for a specific batch job.
11
- */
12
- list(batchID, query = {}, options) {
13
- return this._client.getAPIList((0, path_1.path) `/v1/messages/batches/${batchID}/messages`, (pagination_1.ObjectPage), { query, ...options });
14
- }
15
- }
16
- exports.Messages = Messages;
17
- //# sourceMappingURL=messages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/batches/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAuF;AAEvF,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,wBAAwB,OAAO,WAAW,EAC9C,CAAA,uBAAuC,CAAA,EACvC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAfD,4BAeC"}
@@ -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 { ObjectPage } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class Messages extends APIResource {
6
- /**
7
- * Get response messages for a specific batch job.
8
- */
9
- list(batchID, query = {}, options) {
10
- return this._client.getAPIList(path `/v1/messages/batches/${batchID}/messages`, (ObjectPage), { query, ...options });
11
- }
12
- }
13
- //# sourceMappingURL=messages.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/batches/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,wBAAwB,OAAO,WAAW,EAC9C,CAAA,UAAuC,CAAA,EACvC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./batches/index.mjs";
2
- //# sourceMappingURL=batches.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"batches.d.mts","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./batches/index.js";
2
- //# sourceMappingURL=batches.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"batches.d.ts","sourceRoot":"","sources":["../src/resources/batches.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("./batches/index.js"), exports);
6
- //# sourceMappingURL=batches.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"batches.js","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./batches/index.mjs";
3
- //# sourceMappingURL=batches.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"batches.mjs","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,197 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as MessagesAPI from "./messages.mjs";
3
- import { MessageCreateParams, MessageListParams, MessageResetResponse, MessageStreamParams, MessageStreamResponse, MessageUpdateParams, MessageUpdateResponse, Messages } from "./messages.mjs";
4
- import { APIPromise } from "../../core/api-promise.mjs";
5
- import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
6
- import { RequestOptions } from "../../internal/request-options.mjs";
7
- export declare class Groups extends APIResource {
8
- messages: MessagesAPI.Messages;
9
- /**
10
- * Create a new multi-agent group with the specified configuration.
11
- */
12
- create(body: GroupCreateParams, options?: RequestOptions): APIPromise<Group>;
13
- /**
14
- * Retrieve the group by id.
15
- */
16
- retrieve(groupID: string, options?: RequestOptions): APIPromise<Group>;
17
- /**
18
- * Create a new multi-agent group with the specified configuration.
19
- */
20
- update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<Group>;
21
- /**
22
- * Fetch all multi-agent groups matching query.
23
- */
24
- list(query?: GroupListParams | null | undefined, options?: RequestOptions): PagePromise<GroupsArrayPage, Group>;
25
- /**
26
- * Delete a multi-agent group.
27
- */
28
- delete(groupID: string, options?: RequestOptions): APIPromise<unknown>;
29
- }
30
- export type GroupsArrayPage = ArrayPage<Group>;
31
- export interface DynamicManager {
32
- manager_agent_id: string;
33
- manager_type?: 'dynamic';
34
- max_turns?: number | null;
35
- termination_token?: string | null;
36
- }
37
- export interface Group {
38
- /**
39
- * The id of the group. Assigned by the database.
40
- */
41
- id: string;
42
- agent_ids: Array<string>;
43
- description: string;
44
- manager_type: ManagerType;
45
- /**
46
- * The base template id.
47
- */
48
- base_template_id?: string | null;
49
- /**
50
- * The id of the deployment.
51
- */
52
- deployment_id?: string | null;
53
- /**
54
- * If set to True, the group will be hidden.
55
- */
56
- hidden?: boolean | null;
57
- last_processed_message_id?: string | null;
58
- manager_agent_id?: string | null;
59
- /**
60
- * The desired maximum length of messages in the context window of the convo agent.
61
- * This is a best effort, and may be off slightly due to user/assistant
62
- * interleaving.
63
- */
64
- max_message_buffer_length?: number | null;
65
- max_turns?: number | null;
66
- /**
67
- * The desired minimum length of messages in the context window of the convo agent.
68
- * This is a best effort, and may be off-by-one due to user/assistant interleaving.
69
- */
70
- min_message_buffer_length?: number | null;
71
- /**
72
- * The associated project id.
73
- */
74
- project_id?: string | null;
75
- /**
76
- * @deprecated
77
- */
78
- shared_block_ids?: Array<string>;
79
- sleeptime_agent_frequency?: number | null;
80
- /**
81
- * The id of the template.
82
- */
83
- template_id?: string | null;
84
- termination_token?: string | null;
85
- turns_counter?: number | null;
86
- }
87
- export type ManagerType = 'round_robin' | 'supervisor' | 'dynamic' | 'sleeptime' | 'voice_sleeptime' | 'swarm';
88
- export interface RoundRobinManager {
89
- manager_type?: 'round_robin';
90
- max_turns?: number | null;
91
- }
92
- export interface SleeptimeManager {
93
- manager_agent_id: string;
94
- manager_type?: 'sleeptime';
95
- sleeptime_agent_frequency?: number | null;
96
- }
97
- export interface SupervisorManager {
98
- manager_agent_id: string;
99
- manager_type?: 'supervisor';
100
- }
101
- export interface VoiceSleeptimeManager {
102
- manager_agent_id: string;
103
- manager_type?: 'voice_sleeptime';
104
- /**
105
- * The desired maximum length of messages in the context window of the convo agent.
106
- * This is a best effort, and may be off slightly due to user/assistant
107
- * interleaving.
108
- */
109
- max_message_buffer_length?: number | null;
110
- /**
111
- * The desired minimum length of messages in the context window of the convo agent.
112
- * This is a best effort, and may be off-by-one due to user/assistant interleaving.
113
- */
114
- min_message_buffer_length?: number | null;
115
- }
116
- export type GroupDeleteResponse = unknown;
117
- export interface GroupCreateParams {
118
- agent_ids: Array<string>;
119
- description: string;
120
- /**
121
- * If set to True, the group will be hidden.
122
- */
123
- hidden?: boolean | null;
124
- manager_config?: RoundRobinManager | SupervisorManager | DynamicManager | SleeptimeManager | VoiceSleeptimeManager;
125
- /**
126
- * The associated project id.
127
- */
128
- project_id?: string | null;
129
- /**
130
- * @deprecated
131
- */
132
- shared_block_ids?: Array<string>;
133
- }
134
- export interface GroupUpdateParams {
135
- agent_ids?: Array<string> | null;
136
- description?: string | null;
137
- manager_config?: GroupUpdateParams.RoundRobinManagerUpdate | GroupUpdateParams.SupervisorManagerUpdate | GroupUpdateParams.DynamicManagerUpdate | GroupUpdateParams.SleeptimeManagerUpdate | GroupUpdateParams.VoiceSleeptimeManagerUpdate | null;
138
- /**
139
- * The associated project id.
140
- */
141
- project_id?: string | null;
142
- /**
143
- * @deprecated
144
- */
145
- shared_block_ids?: Array<string> | null;
146
- }
147
- export declare namespace GroupUpdateParams {
148
- interface RoundRobinManagerUpdate {
149
- manager_type?: 'round_robin';
150
- max_turns?: number | null;
151
- }
152
- interface SupervisorManagerUpdate {
153
- manager_agent_id: string | null;
154
- manager_type?: 'supervisor';
155
- }
156
- interface DynamicManagerUpdate {
157
- manager_agent_id?: string | null;
158
- manager_type?: 'dynamic';
159
- max_turns?: number | null;
160
- termination_token?: string | null;
161
- }
162
- interface SleeptimeManagerUpdate {
163
- manager_agent_id?: string | null;
164
- manager_type?: 'sleeptime';
165
- sleeptime_agent_frequency?: number | null;
166
- }
167
- interface VoiceSleeptimeManagerUpdate {
168
- manager_agent_id?: string | null;
169
- manager_type?: 'voice_sleeptime';
170
- /**
171
- * The desired maximum length of messages in the context window of the convo agent.
172
- * This is a best effort, and may be off slightly due to user/assistant
173
- * interleaving.
174
- */
175
- max_message_buffer_length?: number | null;
176
- /**
177
- * The desired minimum length of messages in the context window of the convo agent.
178
- * This is a best effort, and may be off-by-one due to user/assistant interleaving.
179
- */
180
- min_message_buffer_length?: number | null;
181
- }
182
- }
183
- export interface GroupListParams extends ArrayPageParams {
184
- /**
185
- * Search groups by manager type
186
- */
187
- manager_type?: ManagerType | null;
188
- /**
189
- * Search groups by project id
190
- */
191
- project_id?: string | null;
192
- }
193
- export declare namespace Groups {
194
- export { type DynamicManager as DynamicManager, type Group as Group, type ManagerType as ManagerType, type RoundRobinManager as RoundRobinManager, type SleeptimeManager as SleeptimeManager, type SupervisorManager as SupervisorManager, type VoiceSleeptimeManager as VoiceSleeptimeManager, type GroupDeleteResponse as GroupDeleteResponse, type GroupsArrayPage as GroupsArrayPage, type GroupCreateParams as GroupCreateParams, type GroupUpdateParams as GroupUpdateParams, type GroupListParams as GroupListParams, };
195
- export { Messages as Messages, type MessageUpdateResponse as MessageUpdateResponse, type MessageResetResponse as MessageResetResponse, type MessageStreamResponse as MessageStreamResponse, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageStreamParams as MessageStreamParams, };
196
- }
197
- //# sourceMappingURL=groups.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/groups/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;OA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QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,197 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as MessagesAPI from "./messages.js";
3
- import { MessageCreateParams, MessageListParams, MessageResetResponse, MessageStreamParams, MessageStreamResponse, MessageUpdateParams, MessageUpdateResponse, Messages } from "./messages.js";
4
- import { APIPromise } from "../../core/api-promise.js";
5
- import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
6
- import { RequestOptions } from "../../internal/request-options.js";
7
- export declare class Groups extends APIResource {
8
- messages: MessagesAPI.Messages;
9
- /**
10
- * Create a new multi-agent group with the specified configuration.
11
- */
12
- create(body: GroupCreateParams, options?: RequestOptions): APIPromise<Group>;
13
- /**
14
- * Retrieve the group by id.
15
- */
16
- retrieve(groupID: string, options?: RequestOptions): APIPromise<Group>;
17
- /**
18
- * Create a new multi-agent group with the specified configuration.
19
- */
20
- update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<Group>;
21
- /**
22
- * Fetch all multi-agent groups matching query.
23
- */
24
- list(query?: GroupListParams | null | undefined, options?: RequestOptions): PagePromise<GroupsArrayPage, Group>;
25
- /**
26
- * Delete a multi-agent group.
27
- */
28
- delete(groupID: string, options?: RequestOptions): APIPromise<unknown>;
29
- }
30
- export type GroupsArrayPage = ArrayPage<Group>;
31
- export interface DynamicManager {
32
- manager_agent_id: string;
33
- manager_type?: 'dynamic';
34
- max_turns?: number | null;
35
- termination_token?: string | null;
36
- }
37
- export interface Group {
38
- /**
39
- * The id of the group. Assigned by the database.
40
- */
41
- id: string;
42
- agent_ids: Array<string>;
43
- description: string;
44
- manager_type: ManagerType;
45
- /**
46
- * The base template id.
47
- */
48
- base_template_id?: string | null;
49
- /**
50
- * The id of the deployment.
51
- */
52
- deployment_id?: string | null;
53
- /**
54
- * If set to True, the group will be hidden.
55
- */
56
- hidden?: boolean | null;
57
- last_processed_message_id?: string | null;
58
- manager_agent_id?: string | null;
59
- /**
60
- * The desired maximum length of messages in the context window of the convo agent.
61
- * This is a best effort, and may be off slightly due to user/assistant
62
- * interleaving.
63
- */
64
- max_message_buffer_length?: number | null;
65
- max_turns?: number | null;
66
- /**
67
- * The desired minimum length of messages in the context window of the convo agent.
68
- * This is a best effort, and may be off-by-one due to user/assistant interleaving.
69
- */
70
- min_message_buffer_length?: number | null;
71
- /**
72
- * The associated project id.
73
- */
74
- project_id?: string | null;
75
- /**
76
- * @deprecated
77
- */
78
- shared_block_ids?: Array<string>;
79
- sleeptime_agent_frequency?: number | null;
80
- /**
81
- * The id of the template.
82
- */
83
- template_id?: string | null;
84
- termination_token?: string | null;
85
- turns_counter?: number | null;
86
- }
87
- export type ManagerType = 'round_robin' | 'supervisor' | 'dynamic' | 'sleeptime' | 'voice_sleeptime' | 'swarm';
88
- export interface RoundRobinManager {
89
- manager_type?: 'round_robin';
90
- max_turns?: number | null;
91
- }
92
- export interface SleeptimeManager {
93
- manager_agent_id: string;
94
- manager_type?: 'sleeptime';
95
- sleeptime_agent_frequency?: number | null;
96
- }
97
- export interface SupervisorManager {
98
- manager_agent_id: string;
99
- manager_type?: 'supervisor';
100
- }
101
- export interface VoiceSleeptimeManager {
102
- manager_agent_id: string;
103
- manager_type?: 'voice_sleeptime';
104
- /**
105
- * The desired maximum length of messages in the context window of the convo agent.
106
- * This is a best effort, and may be off slightly due to user/assistant
107
- * interleaving.
108
- */
109
- max_message_buffer_length?: number | null;
110
- /**
111
- * The desired minimum length of messages in the context window of the convo agent.
112
- * This is a best effort, and may be off-by-one due to user/assistant interleaving.
113
- */
114
- min_message_buffer_length?: number | null;
115
- }
116
- export type GroupDeleteResponse = unknown;
117
- export interface GroupCreateParams {
118
- agent_ids: Array<string>;
119
- description: string;
120
- /**
121
- * If set to True, the group will be hidden.
122
- */
123
- hidden?: boolean | null;
124
- manager_config?: RoundRobinManager | SupervisorManager | DynamicManager | SleeptimeManager | VoiceSleeptimeManager;
125
- /**
126
- * The associated project id.
127
- */
128
- project_id?: string | null;
129
- /**
130
- * @deprecated
131
- */
132
- shared_block_ids?: Array<string>;
133
- }
134
- export interface GroupUpdateParams {
135
- agent_ids?: Array<string> | null;
136
- description?: string | null;
137
- manager_config?: GroupUpdateParams.RoundRobinManagerUpdate | GroupUpdateParams.SupervisorManagerUpdate | GroupUpdateParams.DynamicManagerUpdate | GroupUpdateParams.SleeptimeManagerUpdate | GroupUpdateParams.VoiceSleeptimeManagerUpdate | null;
138
- /**
139
- * The associated project id.
140
- */
141
- project_id?: string | null;
142
- /**
143
- * @deprecated
144
- */
145
- shared_block_ids?: Array<string> | null;
146
- }
147
- export declare namespace GroupUpdateParams {
148
- interface RoundRobinManagerUpdate {
149
- manager_type?: 'round_robin';
150
- max_turns?: number | null;
151
- }
152
- interface SupervisorManagerUpdate {
153
- manager_agent_id: string | null;
154
- manager_type?: 'supervisor';
155
- }
156
- interface DynamicManagerUpdate {
157
- manager_agent_id?: string | null;
158
- manager_type?: 'dynamic';
159
- max_turns?: number | null;
160
- termination_token?: string | null;
161
- }
162
- interface SleeptimeManagerUpdate {
163
- manager_agent_id?: string | null;
164
- manager_type?: 'sleeptime';
165
- sleeptime_agent_frequency?: number | null;
166
- }
167
- interface VoiceSleeptimeManagerUpdate {
168
- manager_agent_id?: string | null;
169
- manager_type?: 'voice_sleeptime';
170
- /**
171
- * The desired maximum length of messages in the context window of the convo agent.
172
- * This is a best effort, and may be off slightly due to user/assistant
173
- * interleaving.
174
- */
175
- max_message_buffer_length?: number | null;
176
- /**
177
- * The desired minimum length of messages in the context window of the convo agent.
178
- * This is a best effort, and may be off-by-one due to user/assistant interleaving.
179
- */
180
- min_message_buffer_length?: number | null;
181
- }
182
- }
183
- export interface GroupListParams extends ArrayPageParams {
184
- /**
185
- * Search groups by manager type
186
- */
187
- manager_type?: ManagerType | null;
188
- /**
189
- * Search groups by project id
190
- */
191
- project_id?: string | null;
192
- }
193
- export declare namespace Groups {
194
- export { type DynamicManager as DynamicManager, type Group as Group, type ManagerType as ManagerType, type RoundRobinManager as RoundRobinManager, type SleeptimeManager as SleeptimeManager, type SupervisorManager as SupervisorManager, type VoiceSleeptimeManager as VoiceSleeptimeManager, type GroupDeleteResponse as GroupDeleteResponse, type GroupsArrayPage as GroupsArrayPage, type GroupCreateParams as GroupCreateParams, type GroupUpdateParams as GroupUpdateParams, type GroupListParams as GroupListParams, };
195
- export { Messages as Messages, type MessageUpdateResponse as MessageUpdateResponse, type MessageResetResponse as MessageResetResponse, type MessageStreamResponse as MessageStreamResponse, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageStreamParams as MessageStreamParams, };
196
- }
197
- //# sourceMappingURL=groups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/groups/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;OAEG;IACH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EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,49 +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.Groups = void 0;
5
- const tslib_1 = require("../../internal/tslib.js");
6
- const resource_1 = require("../../core/resource.js");
7
- const MessagesAPI = tslib_1.__importStar(require("./messages.js"));
8
- const messages_1 = require("./messages.js");
9
- const pagination_1 = require("../../core/pagination.js");
10
- const path_1 = require("../../internal/utils/path.js");
11
- class Groups extends resource_1.APIResource {
12
- constructor() {
13
- super(...arguments);
14
- this.messages = new MessagesAPI.Messages(this._client);
15
- }
16
- /**
17
- * Create a new multi-agent group with the specified configuration.
18
- */
19
- create(body, options) {
20
- return this._client.post('/v1/groups/', { body, ...options });
21
- }
22
- /**
23
- * Retrieve the group by id.
24
- */
25
- retrieve(groupID, options) {
26
- return this._client.get((0, path_1.path) `/v1/groups/${groupID}`, options);
27
- }
28
- /**
29
- * Create a new multi-agent group with the specified configuration.
30
- */
31
- update(groupID, body, options) {
32
- return this._client.patch((0, path_1.path) `/v1/groups/${groupID}`, { body, ...options });
33
- }
34
- /**
35
- * Fetch all multi-agent groups matching query.
36
- */
37
- list(query = {}, options) {
38
- return this._client.getAPIList('/v1/groups/', (pagination_1.ArrayPage), { query, ...options });
39
- }
40
- /**
41
- * Delete a multi-agent group.
42
- */
43
- delete(groupID, options) {
44
- return this._client.delete((0, path_1.path) `/v1/groups/${groupID}`, options);
45
- }
46
- }
47
- exports.Groups = Groups;
48
- Groups.Messages = messages_1.Messages;
49
- //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,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAxCD,wBAwCC;AAsPD,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -1,44 +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 * as MessagesAPI from "./messages.mjs";
4
- import { Messages, } from "./messages.mjs";
5
- import { ArrayPage } from "../../core/pagination.mjs";
6
- import { path } from "../../internal/utils/path.mjs";
7
- export class Groups extends APIResource {
8
- constructor() {
9
- super(...arguments);
10
- this.messages = new MessagesAPI.Messages(this._client);
11
- }
12
- /**
13
- * Create a new multi-agent group with the specified configuration.
14
- */
15
- create(body, options) {
16
- return this._client.post('/v1/groups/', { body, ...options });
17
- }
18
- /**
19
- * Retrieve the group by id.
20
- */
21
- retrieve(groupID, options) {
22
- return this._client.get(path `/v1/groups/${groupID}`, options);
23
- }
24
- /**
25
- * Create a new multi-agent group with the specified configuration.
26
- */
27
- update(groupID, body, options) {
28
- return this._client.patch(path `/v1/groups/${groupID}`, { body, ...options });
29
- }
30
- /**
31
- * Fetch all multi-agent groups matching query.
32
- */
33
- list(query = {}, options) {
34
- return this._client.getAPIList('/v1/groups/', (ArrayPage), { query, ...options });
35
- }
36
- /**
37
- * Delete a multi-agent group.
38
- */
39
- delete(groupID, options) {
40
- return this._client.delete(path `/v1/groups/${groupID}`, options);
41
- }
42
- }
43
- Groups.Messages = Messages;
44
- //# sourceMappingURL=groups.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/groups/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAQL,QAAQ,GACT;OAEM,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuC1E,CAAC;IArCC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,SAAgB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAsPD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -1,3 +0,0 @@
1
- export { Groups, type DynamicManager, type Group, type ManagerType, type RoundRobinManager, type SleeptimeManager, type SupervisorManager, type VoiceSleeptimeManager, type GroupDeleteResponse, type GroupCreateParams, type GroupUpdateParams, type GroupListParams, type GroupsArrayPage, } from "./groups.mjs";
2
- export { Messages, type MessageUpdateResponse, type MessageResetResponse, type MessageStreamResponse, type MessageCreateParams, type MessageUpdateParams, type MessageListParams, type MessageStreamParams, } from "./messages.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/groups/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,cAAc,EACnB,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB"}
@@ -1,3 +0,0 @@
1
- export { Groups, type DynamicManager, type Group, type ManagerType, type RoundRobinManager, type SleeptimeManager, type SupervisorManager, type VoiceSleeptimeManager, type GroupDeleteResponse, type GroupCreateParams, type GroupUpdateParams, type GroupListParams, type GroupsArrayPage, } from "./groups.js";
2
- export { Messages, type MessageUpdateResponse, type MessageResetResponse, type MessageStreamResponse, type MessageCreateParams, type MessageUpdateParams, type MessageListParams, type MessageStreamParams, } from "./messages.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/groups/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,cAAc,EACnB,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB"}