@letta-ai/letta-client 1.0.0-alpha.19 → 1.0.0-alpha.20
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.
- package/CHANGELOG.md +14 -0
- package/README.md +15 -56
- package/client.d.mts +16 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -16
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +139 -129
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +139 -129
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +6 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +6 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/blocks.d.mts +21 -21
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +21 -21
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/blocks.js +10 -10
- package/resources/agents/blocks.js.map +1 -1
- package/resources/agents/blocks.mjs +10 -10
- package/resources/agents/blocks.mjs.map +1 -1
- package/resources/agents/index.d.mts +3 -3
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +3 -3
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/messages.d.mts +136 -136
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +136 -136
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +21 -21
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +21 -21
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/archives/archives.d.mts +16 -12
- package/resources/archives/archives.d.mts.map +1 -1
- package/resources/archives/archives.d.ts +16 -12
- package/resources/archives/archives.d.ts.map +1 -1
- package/resources/archives/archives.js +6 -6
- package/resources/archives/archives.js.map +1 -1
- package/resources/archives/archives.mjs +6 -6
- package/resources/archives/archives.mjs.map +1 -1
- package/resources/archives/index.d.mts +1 -1
- package/resources/archives/index.d.mts.map +1 -1
- package/resources/archives/index.d.ts +1 -1
- package/resources/archives/index.d.ts.map +1 -1
- package/resources/blocks/blocks.d.mts +61 -61
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +61 -61
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js +6 -6
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs +6 -6
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/blocks/index.d.mts +1 -1
- package/resources/blocks/index.d.mts.map +1 -1
- package/resources/blocks/index.d.ts +1 -1
- package/resources/blocks/index.d.ts.map +1 -1
- package/resources/folders/folders.d.mts +12 -12
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +12 -12
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js +6 -6
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs +6 -6
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/folders/index.d.mts +1 -1
- package/resources/folders/index.d.mts.map +1 -1
- package/resources/folders/index.d.ts +1 -1
- package/resources/folders/index.d.ts.map +1 -1
- package/resources/groups/groups.d.mts +20 -20
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +20 -20
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -6
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -6
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/groups/index.d.mts +2 -2
- package/resources/groups/index.d.mts.map +1 -1
- package/resources/groups/index.d.ts +2 -2
- package/resources/groups/index.d.ts.map +1 -1
- package/resources/groups/messages.d.mts +84 -84
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +84 -84
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +15 -15
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +15 -15
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/identities.d.mts +15 -15
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +15 -15
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +6 -6
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +6 -6
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/identities/index.d.mts +1 -1
- package/resources/identities/index.d.mts.map +1 -1
- package/resources/identities/index.d.ts +1 -1
- package/resources/identities/index.d.ts.map +1 -1
- package/resources/index.d.mts +8 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/mcp-servers/index.d.mts +1 -1
- package/resources/mcp-servers/index.d.mts.map +1 -1
- package/resources/mcp-servers/index.d.ts +1 -1
- package/resources/mcp-servers/index.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.mts +10 -10
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.ts +10 -10
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.js +6 -6
- package/resources/mcp-servers/mcp-servers.js.map +1 -1
- package/resources/mcp-servers/mcp-servers.mjs +6 -6
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
- package/resources/models/models.d.mts +5 -0
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +5 -0
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/tools.d.mts +36 -36
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +36 -36
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +6 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +6 -6
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +18 -18
- package/src/resources/agents/agents.ts +187 -177
- package/src/resources/agents/blocks.ts +35 -35
- package/src/resources/agents/index.ts +9 -9
- package/src/resources/agents/messages.ts +200 -200
- package/src/resources/archives/archives.ts +22 -17
- package/src/resources/archives/index.ts +1 -1
- package/src/resources/blocks/blocks.ts +69 -69
- package/src/resources/blocks/index.ts +1 -1
- package/src/resources/folders/folders.ts +16 -16
- package/src/resources/folders/index.ts +1 -1
- package/src/resources/groups/groups.ts +33 -33
- package/src/resources/groups/index.ts +4 -4
- package/src/resources/groups/messages.ts +126 -126
- package/src/resources/identities/identities.ts +22 -22
- package/src/resources/identities/index.ts +1 -1
- package/src/resources/index.ts +9 -9
- package/src/resources/mcp-servers/index.ts +2 -2
- package/src/resources/mcp-servers/mcp-servers.ts +23 -23
- package/src/resources/models/models.ts +5 -0
- package/src/resources/tools.ts +46 -46
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -26,6 +26,13 @@ export class Archives extends APIResource {
|
|
|
26
26
|
return this._client.get(path`/v1/archives/${archiveID}`, options);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Update an existing archive's name and/or description.
|
|
31
|
+
*/
|
|
32
|
+
update(archiveID: string, body: ArchiveUpdateParams, options?: RequestOptions): APIPromise<Archive> {
|
|
33
|
+
return this._client.patch(path`/v1/archives/${archiveID}`, { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
/**
|
|
30
37
|
* Get a list of all archives for the current organization with optional filters
|
|
31
38
|
* and pagination.
|
|
@@ -43,13 +50,6 @@ export class Archives extends APIResource {
|
|
|
43
50
|
delete(archiveID: string, options?: RequestOptions): APIPromise<Archive> {
|
|
44
51
|
return this._client.delete(path`/v1/archives/${archiveID}`, options);
|
|
45
52
|
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Update an existing archive's name and/or description.
|
|
49
|
-
*/
|
|
50
|
-
modify(archiveID: string, body: ArchiveModifyParams, options?: RequestOptions): APIPromise<Archive> {
|
|
51
|
-
return this._client.patch(path`/v1/archives/${archiveID}`, { body, ...options });
|
|
52
|
-
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export type ArchivesArrayPage = ArrayPage<Archive>;
|
|
@@ -116,14 +116,25 @@ export interface Archive {
|
|
|
116
116
|
export type VectorDBProvider = 'native' | 'tpuf' | 'pinecone';
|
|
117
117
|
|
|
118
118
|
export interface ArchiveCreateParams {
|
|
119
|
+
name: string;
|
|
120
|
+
|
|
121
|
+
description?: string | null;
|
|
122
|
+
|
|
119
123
|
/**
|
|
120
|
-
* Embedding
|
|
124
|
+
* Embedding model handle for the archive
|
|
121
125
|
*/
|
|
122
|
-
|
|
126
|
+
embedding?: string | null;
|
|
123
127
|
|
|
124
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Configuration for embedding model connection and processing parameters.
|
|
130
|
+
*/
|
|
131
|
+
embedding_config?: ModelsAPI.EmbeddingConfig | null;
|
|
132
|
+
}
|
|
125
133
|
|
|
134
|
+
export interface ArchiveUpdateParams {
|
|
126
135
|
description?: string | null;
|
|
136
|
+
|
|
137
|
+
name?: string | null;
|
|
127
138
|
}
|
|
128
139
|
|
|
129
140
|
export interface ArchiveListParams extends ArrayPageParams {
|
|
@@ -138,12 +149,6 @@ export interface ArchiveListParams extends ArrayPageParams {
|
|
|
138
149
|
name?: string | null;
|
|
139
150
|
}
|
|
140
151
|
|
|
141
|
-
export interface ArchiveModifyParams {
|
|
142
|
-
description?: string | null;
|
|
143
|
-
|
|
144
|
-
name?: string | null;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
152
|
Archives.Passages = Passages;
|
|
148
153
|
|
|
149
154
|
export declare namespace Archives {
|
|
@@ -152,8 +157,8 @@ export declare namespace Archives {
|
|
|
152
157
|
type VectorDBProvider as VectorDBProvider,
|
|
153
158
|
type ArchivesArrayPage as ArchivesArrayPage,
|
|
154
159
|
type ArchiveCreateParams as ArchiveCreateParams,
|
|
160
|
+
type ArchiveUpdateParams as ArchiveUpdateParams,
|
|
155
161
|
type ArchiveListParams as ArchiveListParams,
|
|
156
|
-
type ArchiveModifyParams as ArchiveModifyParams,
|
|
157
162
|
};
|
|
158
163
|
|
|
159
164
|
export {
|
|
@@ -25,6 +25,13 @@ export class Blocks extends APIResource {
|
|
|
25
25
|
return this._client.get(path`/v1/blocks/${blockID}`, options);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Update Block
|
|
30
|
+
*/
|
|
31
|
+
update(blockID: string, body: BlockUpdateParams, options?: RequestOptions): APIPromise<BlockResponse> {
|
|
32
|
+
return this._client.patch(path`/v1/blocks/${blockID}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
/**
|
|
29
36
|
* List Blocks
|
|
30
37
|
*/
|
|
@@ -41,13 +48,6 @@ export class Blocks extends APIResource {
|
|
|
41
48
|
delete(blockID: string, options?: RequestOptions): APIPromise<unknown> {
|
|
42
49
|
return this._client.delete(path`/v1/blocks/${blockID}`, options);
|
|
43
50
|
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Modify Block
|
|
47
|
-
*/
|
|
48
|
-
modify(blockID: string, body: BlockModifyParams, options?: RequestOptions): APIPromise<BlockResponse> {
|
|
49
|
-
return this._client.patch(path`/v1/blocks/${blockID}`, { body, ...options });
|
|
50
|
-
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export type BlockResponsesArrayPage = ArrayPage<BlockResponse>;
|
|
@@ -297,148 +297,148 @@ export interface BlockCreateParams {
|
|
|
297
297
|
template_name?: string | null;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
export interface
|
|
300
|
+
export interface BlockUpdateParams {
|
|
301
301
|
/**
|
|
302
|
-
*
|
|
303
|
-
* blocks that have exactly this number of connected agents.
|
|
302
|
+
* The base template id of the block.
|
|
304
303
|
*/
|
|
305
|
-
|
|
304
|
+
base_template_id?: string | null;
|
|
306
305
|
|
|
307
306
|
/**
|
|
308
|
-
*
|
|
309
|
-
* that have more than this number of connected agents.
|
|
307
|
+
* The id of the deployment.
|
|
310
308
|
*/
|
|
311
|
-
|
|
309
|
+
deployment_id?: string | null;
|
|
312
310
|
|
|
313
311
|
/**
|
|
314
|
-
*
|
|
315
|
-
* that have less than this number of connected agents.
|
|
312
|
+
* Description of the block.
|
|
316
313
|
*/
|
|
317
|
-
|
|
314
|
+
description?: string | null;
|
|
318
315
|
|
|
319
316
|
/**
|
|
320
|
-
*
|
|
321
|
-
* description. This is a full-text search on block descriptions.
|
|
317
|
+
* The id of the entity within the template.
|
|
322
318
|
*/
|
|
323
|
-
|
|
319
|
+
entity_id?: string | null;
|
|
324
320
|
|
|
325
321
|
/**
|
|
326
|
-
*
|
|
322
|
+
* If set to True, the block will be hidden.
|
|
327
323
|
*/
|
|
328
|
-
|
|
324
|
+
hidden?: boolean | null;
|
|
329
325
|
|
|
330
326
|
/**
|
|
331
|
-
*
|
|
327
|
+
* Whether the block is a template (e.g. saved human/persona options).
|
|
332
328
|
*/
|
|
333
|
-
|
|
329
|
+
is_template?: boolean;
|
|
334
330
|
|
|
335
331
|
/**
|
|
336
|
-
*
|
|
332
|
+
* Label of the block (e.g. 'human', 'persona') in the context window.
|
|
337
333
|
*/
|
|
338
334
|
label?: string | null;
|
|
339
335
|
|
|
340
336
|
/**
|
|
341
|
-
*
|
|
342
|
-
* is a full-text search on labels.
|
|
337
|
+
* Character limit of the block.
|
|
343
338
|
*/
|
|
344
|
-
|
|
339
|
+
limit?: number | null;
|
|
345
340
|
|
|
346
341
|
/**
|
|
347
|
-
*
|
|
342
|
+
* Metadata of the block.
|
|
348
343
|
*/
|
|
349
|
-
|
|
344
|
+
metadata?: { [key: string]: unknown } | null;
|
|
350
345
|
|
|
351
346
|
/**
|
|
352
|
-
*
|
|
347
|
+
* Preserve the block on template migration.
|
|
353
348
|
*/
|
|
354
|
-
|
|
349
|
+
preserve_on_migration?: boolean | null;
|
|
355
350
|
|
|
356
351
|
/**
|
|
357
|
-
*
|
|
352
|
+
* The associated project id.
|
|
358
353
|
*/
|
|
359
|
-
|
|
354
|
+
project_id?: string | null;
|
|
360
355
|
|
|
361
356
|
/**
|
|
362
|
-
*
|
|
357
|
+
* Whether the agent has read-only access to the block.
|
|
363
358
|
*/
|
|
364
|
-
|
|
365
|
-
}
|
|
359
|
+
read_only?: boolean;
|
|
366
360
|
|
|
367
|
-
export interface BlockModifyParams {
|
|
368
361
|
/**
|
|
369
|
-
* The
|
|
362
|
+
* The id of the template.
|
|
370
363
|
*/
|
|
371
|
-
|
|
364
|
+
template_id?: string | null;
|
|
372
365
|
|
|
373
366
|
/**
|
|
374
|
-
*
|
|
367
|
+
* Name of the block if it is a template.
|
|
375
368
|
*/
|
|
376
|
-
|
|
369
|
+
template_name?: string | null;
|
|
377
370
|
|
|
378
371
|
/**
|
|
379
|
-
*
|
|
372
|
+
* Value of the block.
|
|
380
373
|
*/
|
|
381
|
-
|
|
374
|
+
value?: string | null;
|
|
375
|
+
}
|
|
382
376
|
|
|
377
|
+
export interface BlockListParams extends ArrayPageParams {
|
|
383
378
|
/**
|
|
384
|
-
*
|
|
379
|
+
* Filter blocks by the exact number of connected agents. If provided, returns
|
|
380
|
+
* blocks that have exactly this number of connected agents.
|
|
385
381
|
*/
|
|
386
|
-
|
|
382
|
+
connected_to_agents_count_eq?: Array<number> | null;
|
|
387
383
|
|
|
388
384
|
/**
|
|
389
|
-
*
|
|
385
|
+
* Filter blocks by the number of connected agents. If provided, returns blocks
|
|
386
|
+
* that have more than this number of connected agents.
|
|
390
387
|
*/
|
|
391
|
-
|
|
388
|
+
connected_to_agents_count_gt?: number | null;
|
|
392
389
|
|
|
393
390
|
/**
|
|
394
|
-
*
|
|
391
|
+
* Filter blocks by the number of connected agents. If provided, returns blocks
|
|
392
|
+
* that have less than this number of connected agents.
|
|
395
393
|
*/
|
|
396
|
-
|
|
394
|
+
connected_to_agents_count_lt?: number | null;
|
|
397
395
|
|
|
398
396
|
/**
|
|
399
|
-
*
|
|
397
|
+
* Search blocks by description. If provided, returns blocks that match this
|
|
398
|
+
* description. This is a full-text search on block descriptions.
|
|
400
399
|
*/
|
|
401
|
-
|
|
400
|
+
description_search?: string | null;
|
|
402
401
|
|
|
403
402
|
/**
|
|
404
|
-
*
|
|
403
|
+
* Search agents by identifier keys
|
|
405
404
|
*/
|
|
406
|
-
|
|
405
|
+
identifier_keys?: Array<string> | null;
|
|
407
406
|
|
|
408
407
|
/**
|
|
409
|
-
*
|
|
408
|
+
* Search agents by identifier id
|
|
410
409
|
*/
|
|
411
|
-
|
|
410
|
+
identity_id?: string | null;
|
|
412
411
|
|
|
413
412
|
/**
|
|
414
|
-
*
|
|
413
|
+
* Labels to include (e.g. human, persona)
|
|
415
414
|
*/
|
|
416
|
-
|
|
415
|
+
label?: string | null;
|
|
417
416
|
|
|
418
417
|
/**
|
|
419
|
-
*
|
|
418
|
+
* Search blocks by label. If provided, returns blocks that match this label. This
|
|
419
|
+
* is a full-text search on labels.
|
|
420
420
|
*/
|
|
421
|
-
|
|
421
|
+
label_search?: string | null;
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
|
-
*
|
|
424
|
+
* Name of the block
|
|
425
425
|
*/
|
|
426
|
-
|
|
426
|
+
name?: string | null;
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
|
-
*
|
|
429
|
+
* Search blocks by project id
|
|
430
430
|
*/
|
|
431
|
-
|
|
431
|
+
project_id?: string | null;
|
|
432
432
|
|
|
433
433
|
/**
|
|
434
|
-
*
|
|
434
|
+
* Whether to include only templates
|
|
435
435
|
*/
|
|
436
|
-
|
|
436
|
+
templates_only?: boolean;
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
|
-
*
|
|
439
|
+
* Search blocks by value. If provided, returns blocks that match this value.
|
|
440
440
|
*/
|
|
441
|
-
|
|
441
|
+
value_search?: string | null;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
Blocks.Agents = Agents;
|
|
@@ -450,8 +450,8 @@ export declare namespace Blocks {
|
|
|
450
450
|
type BlockDeleteResponse as BlockDeleteResponse,
|
|
451
451
|
type BlockResponsesArrayPage as BlockResponsesArrayPage,
|
|
452
452
|
type BlockCreateParams as BlockCreateParams,
|
|
453
|
+
type BlockUpdateParams as BlockUpdateParams,
|
|
453
454
|
type BlockListParams as BlockListParams,
|
|
454
|
-
type BlockModifyParams as BlockModifyParams,
|
|
455
455
|
};
|
|
456
456
|
|
|
457
457
|
export { Agents as Agents, type AgentListParams as AgentListParams };
|
|
@@ -37,6 +37,13 @@ export class Folders extends APIResource {
|
|
|
37
37
|
return this._client.get(path`/v1/folders/${folderID}`, options);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Update the name or documentation of an existing data folder.
|
|
42
|
+
*/
|
|
43
|
+
update(folderID: string, body: FolderUpdateParams, options?: RequestOptions): APIPromise<Folder> {
|
|
44
|
+
return this._client.patch(path`/v1/folders/${folderID}`, { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
/**
|
|
41
48
|
* List all data folders created by a user.
|
|
42
49
|
*/
|
|
@@ -53,13 +60,6 @@ export class Folders extends APIResource {
|
|
|
53
60
|
delete(folderID: string, options?: RequestOptions): APIPromise<unknown> {
|
|
54
61
|
return this._client.delete(path`/v1/folders/${folderID}`, options);
|
|
55
62
|
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Update the name or documentation of an existing data folder.
|
|
59
|
-
*/
|
|
60
|
-
modify(folderID: string, body: FolderModifyParams, options?: RequestOptions): APIPromise<Folder> {
|
|
61
|
-
return this._client.patch(path`/v1/folders/${folderID}`, { body, ...options });
|
|
62
|
-
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export type FoldersArrayPage = ArrayPage<Folder>;
|
|
@@ -158,14 +158,7 @@ export interface FolderCreateParams {
|
|
|
158
158
|
metadata?: { [key: string]: unknown } | null;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export interface
|
|
162
|
-
/**
|
|
163
|
-
* Folder name to filter by
|
|
164
|
-
*/
|
|
165
|
-
name?: string | null;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export interface FolderModifyParams {
|
|
161
|
+
export interface FolderUpdateParams {
|
|
169
162
|
/**
|
|
170
163
|
* The description of the source.
|
|
171
164
|
*/
|
|
@@ -192,6 +185,13 @@ export interface FolderModifyParams {
|
|
|
192
185
|
name?: string | null;
|
|
193
186
|
}
|
|
194
187
|
|
|
188
|
+
export interface FolderListParams extends ArrayPageParams {
|
|
189
|
+
/**
|
|
190
|
+
* Folder name to filter by
|
|
191
|
+
*/
|
|
192
|
+
name?: string | null;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
195
|
Folders.Files = Files;
|
|
196
196
|
Folders.Agents = Agents;
|
|
197
197
|
|
|
@@ -201,8 +201,8 @@ export declare namespace Folders {
|
|
|
201
201
|
type FolderDeleteResponse as FolderDeleteResponse,
|
|
202
202
|
type FoldersArrayPage as FoldersArrayPage,
|
|
203
203
|
type FolderCreateParams as FolderCreateParams,
|
|
204
|
+
type FolderUpdateParams as FolderUpdateParams,
|
|
204
205
|
type FolderListParams as FolderListParams,
|
|
205
|
-
type FolderModifyParams as FolderModifyParams,
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
export {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as MessagesAPI from './messages';
|
|
5
5
|
import {
|
|
6
|
+
MessageCreateParams,
|
|
6
7
|
MessageListParams,
|
|
7
|
-
MessageModifyParams,
|
|
8
|
-
MessageModifyResponse,
|
|
9
8
|
MessageResetResponse,
|
|
10
|
-
MessageSendParams,
|
|
11
9
|
MessageStreamParams,
|
|
12
10
|
MessageStreamResponse,
|
|
11
|
+
MessageUpdateParams,
|
|
12
|
+
MessageUpdateResponse,
|
|
13
13
|
Messages,
|
|
14
14
|
} from './messages';
|
|
15
15
|
import { APIPromise } from '../../core/api-promise';
|
|
@@ -34,6 +34,13 @@ export class Groups extends APIResource {
|
|
|
34
34
|
return this._client.get(path`/v1/groups/${groupID}`, options);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Create a new multi-agent group with the specified configuration.
|
|
39
|
+
*/
|
|
40
|
+
update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<Group> {
|
|
41
|
+
return this._client.patch(path`/v1/groups/${groupID}`, { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
37
44
|
/**
|
|
38
45
|
* Fetch all multi-agent groups matching query.
|
|
39
46
|
*/
|
|
@@ -50,13 +57,6 @@ export class Groups extends APIResource {
|
|
|
50
57
|
delete(groupID: string, options?: RequestOptions): APIPromise<unknown> {
|
|
51
58
|
return this._client.delete(path`/v1/groups/${groupID}`, options);
|
|
52
59
|
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Create a new multi-agent group with the specified configuration.
|
|
56
|
-
*/
|
|
57
|
-
modify(groupID: string, body: GroupModifyParams, options?: RequestOptions): APIPromise<Group> {
|
|
58
|
-
return this._client.patch(path`/v1/groups/${groupID}`, { body, ...options });
|
|
59
|
-
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type GroupsArrayPage = ArrayPage<Group>;
|
|
@@ -216,29 +216,17 @@ export interface GroupCreateParams {
|
|
|
216
216
|
shared_block_ids?: Array<string>;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
export interface
|
|
220
|
-
/**
|
|
221
|
-
* Search groups by manager type
|
|
222
|
-
*/
|
|
223
|
-
manager_type?: ManagerType | null;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Search groups by project id
|
|
227
|
-
*/
|
|
228
|
-
project_id?: string | null;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export interface GroupModifyParams {
|
|
219
|
+
export interface GroupUpdateParams {
|
|
232
220
|
agent_ids?: Array<string> | null;
|
|
233
221
|
|
|
234
222
|
description?: string | null;
|
|
235
223
|
|
|
236
224
|
manager_config?:
|
|
237
|
-
|
|
|
238
|
-
|
|
|
239
|
-
|
|
|
240
|
-
|
|
|
241
|
-
|
|
|
225
|
+
| GroupUpdateParams.RoundRobinManagerUpdate
|
|
226
|
+
| GroupUpdateParams.SupervisorManagerUpdate
|
|
227
|
+
| GroupUpdateParams.DynamicManagerUpdate
|
|
228
|
+
| GroupUpdateParams.SleeptimeManagerUpdate
|
|
229
|
+
| GroupUpdateParams.VoiceSleeptimeManagerUpdate
|
|
242
230
|
| null;
|
|
243
231
|
|
|
244
232
|
/**
|
|
@@ -252,7 +240,7 @@ export interface GroupModifyParams {
|
|
|
252
240
|
shared_block_ids?: Array<string> | null;
|
|
253
241
|
}
|
|
254
242
|
|
|
255
|
-
export namespace
|
|
243
|
+
export namespace GroupUpdateParams {
|
|
256
244
|
export interface RoundRobinManagerUpdate {
|
|
257
245
|
manager_type?: 'round_robin';
|
|
258
246
|
|
|
@@ -303,6 +291,18 @@ export namespace GroupModifyParams {
|
|
|
303
291
|
}
|
|
304
292
|
}
|
|
305
293
|
|
|
294
|
+
export interface GroupListParams extends ArrayPageParams {
|
|
295
|
+
/**
|
|
296
|
+
* Search groups by manager type
|
|
297
|
+
*/
|
|
298
|
+
manager_type?: ManagerType | null;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Search groups by project id
|
|
302
|
+
*/
|
|
303
|
+
project_id?: string | null;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
306
|
Groups.Messages = Messages;
|
|
307
307
|
|
|
308
308
|
export declare namespace Groups {
|
|
@@ -317,18 +317,18 @@ export declare namespace Groups {
|
|
|
317
317
|
type GroupDeleteResponse as GroupDeleteResponse,
|
|
318
318
|
type GroupsArrayPage as GroupsArrayPage,
|
|
319
319
|
type GroupCreateParams as GroupCreateParams,
|
|
320
|
+
type GroupUpdateParams as GroupUpdateParams,
|
|
320
321
|
type GroupListParams as GroupListParams,
|
|
321
|
-
type GroupModifyParams as GroupModifyParams,
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
export {
|
|
325
325
|
Messages as Messages,
|
|
326
|
-
type
|
|
326
|
+
type MessageUpdateResponse as MessageUpdateResponse,
|
|
327
327
|
type MessageResetResponse as MessageResetResponse,
|
|
328
328
|
type MessageStreamResponse as MessageStreamResponse,
|
|
329
|
+
type MessageCreateParams as MessageCreateParams,
|
|
330
|
+
type MessageUpdateParams as MessageUpdateParams,
|
|
329
331
|
type MessageListParams as MessageListParams,
|
|
330
|
-
type MessageModifyParams as MessageModifyParams,
|
|
331
|
-
type MessageSendParams as MessageSendParams,
|
|
332
332
|
type MessageStreamParams as MessageStreamParams,
|
|
333
333
|
};
|
|
334
334
|
}
|
|
@@ -11,17 +11,17 @@ export {
|
|
|
11
11
|
type VoiceSleeptimeManager,
|
|
12
12
|
type GroupDeleteResponse,
|
|
13
13
|
type GroupCreateParams,
|
|
14
|
+
type GroupUpdateParams,
|
|
14
15
|
type GroupListParams,
|
|
15
|
-
type GroupModifyParams,
|
|
16
16
|
type GroupsArrayPage,
|
|
17
17
|
} from './groups';
|
|
18
18
|
export {
|
|
19
19
|
Messages,
|
|
20
|
-
type
|
|
20
|
+
type MessageUpdateResponse,
|
|
21
21
|
type MessageResetResponse,
|
|
22
22
|
type MessageStreamResponse,
|
|
23
|
+
type MessageCreateParams,
|
|
24
|
+
type MessageUpdateParams,
|
|
23
25
|
type MessageListParams,
|
|
24
|
-
type MessageModifyParams,
|
|
25
|
-
type MessageSendParams,
|
|
26
26
|
type MessageStreamParams,
|
|
27
27
|
} from './messages';
|