@taico/client 0.2.13 → 0.2.15
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/dist/contracts/types.d.ts +280 -14
- package/dist/src/v1/client/index.d.ts +6 -0
- package/dist/src/v1/client/models/ActiveTaskExecutionListResponseDto.d.ts +23 -0
- package/dist/src/v1/client/models/ActiveTaskExecutionListResponseDto.js +1 -0
- package/dist/src/v1/client/models/ActiveTaskExecutionResponseDto.d.ts +5 -0
- package/dist/src/v1/client/models/AgentAvatarDto.d.ts +18 -0
- package/dist/src/v1/client/models/AgentAvatarDto.js +1 -0
- package/dist/src/v1/client/models/AgentTemplateCatalogResponseDto.d.ts +2 -0
- package/dist/src/v1/client/models/ExecutionStatsResponseDto.d.ts +26 -0
- package/dist/src/v1/client/models/ExecutionStatsResponseDto.js +1 -0
- package/dist/src/v1/client/models/StopActiveTaskExecutionDto.d.ts +1 -0
- package/dist/src/v1/client/models/StopActiveTaskExecutionDto.js +1 -0
- package/dist/src/v1/client/models/TaskExecutionHistoryListResponseDto.d.ts +23 -0
- package/dist/src/v1/client/models/TaskExecutionHistoryListResponseDto.js +1 -0
- package/dist/src/v1/client/models/TaskExecutionHistoryResponseDto.d.ts +6 -0
- package/dist/src/v1/client/models/TaskExecutionHistoryResponseDto.js +1 -0
- package/dist/src/v1/client/models/TaskExecutionQueueListResponseDto.d.ts +23 -0
- package/dist/src/v1/client/models/TaskExecutionQueueListResponseDto.js +1 -0
- package/dist/src/v1/client/models/UpdateExecutionStatsDto.d.ts +26 -0
- package/dist/src/v1/client/models/UpdateExecutionStatsDto.js +1 -0
- package/dist/src/v1/client/services/ExecutionsService.d.ts +38 -10
- package/dist/src/v1/client/services/ExecutionsService.js +66 -9
- package/dist/src/v2/executions-resource.d.ts +23 -4
- package/dist/src/v2/executions-resource.js +11 -3
- package/dist/src/v2/types.d.ts +48 -2
- package/package.json +1 -1
|
@@ -1688,7 +1688,7 @@ export interface paths {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
/**
|
|
1690
1690
|
* List the current task execution work queue
|
|
1691
|
-
* @description Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
|
|
1691
|
+
* @description Returns the tasks currently present in the execution queue with pagination. Presence means the task is ready to be picked by the executor.
|
|
1692
1692
|
*/
|
|
1693
1693
|
get: operations["TaskExecutionQueueController_listQueue"];
|
|
1694
1694
|
put?: never;
|
|
@@ -1728,7 +1728,7 @@ export interface paths {
|
|
|
1728
1728
|
};
|
|
1729
1729
|
/**
|
|
1730
1730
|
* List active task executions
|
|
1731
|
-
* @description Returns the tasks currently being worked on in the execution system.
|
|
1731
|
+
* @description Returns the tasks currently being worked on in the execution system with pagination.
|
|
1732
1732
|
*/
|
|
1733
1733
|
get: operations["ActiveTaskExecutionController_listActiveExecutions"];
|
|
1734
1734
|
put?: never;
|
|
@@ -1799,6 +1799,46 @@ export interface paths {
|
|
|
1799
1799
|
patch: operations["ActiveTaskExecutionController_incrementToolCallCount"];
|
|
1800
1800
|
trace?: never;
|
|
1801
1801
|
};
|
|
1802
|
+
"/api/v1/executions/active/{executionId}/stats": {
|
|
1803
|
+
parameters: {
|
|
1804
|
+
query?: never;
|
|
1805
|
+
header?: never;
|
|
1806
|
+
path?: never;
|
|
1807
|
+
cookie?: never;
|
|
1808
|
+
};
|
|
1809
|
+
get?: never;
|
|
1810
|
+
put?: never;
|
|
1811
|
+
post?: never;
|
|
1812
|
+
delete?: never;
|
|
1813
|
+
options?: never;
|
|
1814
|
+
head?: never;
|
|
1815
|
+
/**
|
|
1816
|
+
* Patch execution stats and metadata
|
|
1817
|
+
* @description Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
|
|
1818
|
+
*/
|
|
1819
|
+
patch: operations["ActiveTaskExecutionController_updateExecutionStats"];
|
|
1820
|
+
trace?: never;
|
|
1821
|
+
};
|
|
1822
|
+
"/api/v1/executions/active/{executionId}/interrupt": {
|
|
1823
|
+
parameters: {
|
|
1824
|
+
query?: never;
|
|
1825
|
+
header?: never;
|
|
1826
|
+
path?: never;
|
|
1827
|
+
cookie?: never;
|
|
1828
|
+
};
|
|
1829
|
+
get?: never;
|
|
1830
|
+
put?: never;
|
|
1831
|
+
/**
|
|
1832
|
+
* Request interruption of an active execution
|
|
1833
|
+
* @description Signals the worker to abort the currently running agent execution.
|
|
1834
|
+
*/
|
|
1835
|
+
post: operations["ActiveTaskExecutionController_interruptExecution"];
|
|
1836
|
+
delete?: never;
|
|
1837
|
+
options?: never;
|
|
1838
|
+
head?: never;
|
|
1839
|
+
patch?: never;
|
|
1840
|
+
trace?: never;
|
|
1841
|
+
};
|
|
1802
1842
|
"/api/v1/executions/history": {
|
|
1803
1843
|
parameters: {
|
|
1804
1844
|
query?: never;
|
|
@@ -1808,7 +1848,7 @@ export interface paths {
|
|
|
1808
1848
|
};
|
|
1809
1849
|
/**
|
|
1810
1850
|
* List task execution history
|
|
1811
|
-
* @description Returns the persisted execution history rows in the execution system.
|
|
1851
|
+
* @description Returns the persisted execution history rows in the execution system with pagination.
|
|
1812
1852
|
*/
|
|
1813
1853
|
get: operations["TaskExecutionHistoryController_listHistory"];
|
|
1814
1854
|
put?: never;
|
|
@@ -4121,7 +4161,7 @@ export interface components {
|
|
|
4121
4161
|
providerId?: string;
|
|
4122
4162
|
/**
|
|
4123
4163
|
* @description Model ID used by the agent runtime
|
|
4124
|
-
* @example gpt-5.
|
|
4164
|
+
* @example gpt-5.4
|
|
4125
4165
|
*/
|
|
4126
4166
|
modelId?: string;
|
|
4127
4167
|
/**
|
|
@@ -4211,7 +4251,7 @@ export interface components {
|
|
|
4211
4251
|
providerId?: string | null;
|
|
4212
4252
|
/**
|
|
4213
4253
|
* @description Model ID used by the agent runtime
|
|
4214
|
-
* @example gpt-5.
|
|
4254
|
+
* @example gpt-5.4
|
|
4215
4255
|
*/
|
|
4216
4256
|
modelId?: string | null;
|
|
4217
4257
|
/**
|
|
@@ -4391,9 +4431,32 @@ export interface components {
|
|
|
4391
4431
|
description: string;
|
|
4392
4432
|
modelOptions: components["schemas"]["AgentTemplateModelOptionDto"][];
|
|
4393
4433
|
};
|
|
4434
|
+
AgentAvatarDto: {
|
|
4435
|
+
/**
|
|
4436
|
+
* @description Stable avatar identifier.
|
|
4437
|
+
* @example openai
|
|
4438
|
+
*/
|
|
4439
|
+
id: string;
|
|
4440
|
+
/**
|
|
4441
|
+
* @description Human-readable avatar label.
|
|
4442
|
+
* @example OpenAI Blossom
|
|
4443
|
+
*/
|
|
4444
|
+
label: string;
|
|
4445
|
+
/**
|
|
4446
|
+
* @description Relative public URL for the avatar image.
|
|
4447
|
+
* @example /avatar/openai.svg
|
|
4448
|
+
*/
|
|
4449
|
+
url: string;
|
|
4450
|
+
/**
|
|
4451
|
+
* @description Short explanation of what this avatar represents.
|
|
4452
|
+
* @example OpenAI-inspired avatar for GPT and Codex model selections.
|
|
4453
|
+
*/
|
|
4454
|
+
description: string;
|
|
4455
|
+
};
|
|
4394
4456
|
AgentTemplateCatalogResponseDto: {
|
|
4395
4457
|
templates: components["schemas"]["AgentTemplateDto"][];
|
|
4396
4458
|
harnesses: components["schemas"]["AgentTemplateHarnessDto"][];
|
|
4459
|
+
avatars: components["schemas"]["AgentAvatarDto"][];
|
|
4397
4460
|
};
|
|
4398
4461
|
PatchAgentDto: {
|
|
4399
4462
|
/**
|
|
@@ -4418,7 +4481,7 @@ export interface components {
|
|
|
4418
4481
|
providerId?: string;
|
|
4419
4482
|
/**
|
|
4420
4483
|
* @description Model ID used by the agent runtime
|
|
4421
|
-
* @example gpt-5.
|
|
4484
|
+
* @example gpt-5.4
|
|
4422
4485
|
*/
|
|
4423
4486
|
modelId?: string;
|
|
4424
4487
|
/**
|
|
@@ -5194,6 +5257,30 @@ export interface components {
|
|
|
5194
5257
|
*/
|
|
5195
5258
|
taskStatus: "NOT_STARTED" | "IN_PROGRESS" | "FOR_REVIEW" | "DONE" | null;
|
|
5196
5259
|
};
|
|
5260
|
+
TaskExecutionQueueListResponseDto: {
|
|
5261
|
+
/** @description List of task execution queue entries */
|
|
5262
|
+
items: components["schemas"]["TaskExecutionQueueEntryResponseDto"][];
|
|
5263
|
+
/**
|
|
5264
|
+
* @description Total number of queue entries
|
|
5265
|
+
* @example 42
|
|
5266
|
+
*/
|
|
5267
|
+
total: number;
|
|
5268
|
+
/**
|
|
5269
|
+
* @description Current page number
|
|
5270
|
+
* @example 1
|
|
5271
|
+
*/
|
|
5272
|
+
page: number;
|
|
5273
|
+
/**
|
|
5274
|
+
* @description Number of items per page
|
|
5275
|
+
* @example 50
|
|
5276
|
+
*/
|
|
5277
|
+
limit: number;
|
|
5278
|
+
/**
|
|
5279
|
+
* @description Total number of pages
|
|
5280
|
+
* @example 3
|
|
5281
|
+
*/
|
|
5282
|
+
totalPages: number;
|
|
5283
|
+
};
|
|
5197
5284
|
ActiveTaskExecutionTagSnapshotResponseDto: {
|
|
5198
5285
|
/**
|
|
5199
5286
|
* @description Tag ID at the time the task was claimed
|
|
@@ -5206,6 +5293,38 @@ export interface components {
|
|
|
5206
5293
|
*/
|
|
5207
5294
|
name: string;
|
|
5208
5295
|
};
|
|
5296
|
+
ExecutionStatsResponseDto: {
|
|
5297
|
+
/**
|
|
5298
|
+
* @description Harness used to execute the run
|
|
5299
|
+
* @example opencode
|
|
5300
|
+
*/
|
|
5301
|
+
harness: string | null;
|
|
5302
|
+
/**
|
|
5303
|
+
* @description LLM provider id resolved for this run
|
|
5304
|
+
* @example openai
|
|
5305
|
+
*/
|
|
5306
|
+
providerId: string | null;
|
|
5307
|
+
/**
|
|
5308
|
+
* @description LLM model id resolved for this run
|
|
5309
|
+
* @example gpt-5.4
|
|
5310
|
+
*/
|
|
5311
|
+
modelId: string | null;
|
|
5312
|
+
/**
|
|
5313
|
+
* @description Input token usage when available
|
|
5314
|
+
* @example 1200
|
|
5315
|
+
*/
|
|
5316
|
+
inputTokens: number | null;
|
|
5317
|
+
/**
|
|
5318
|
+
* @description Output token usage when available
|
|
5319
|
+
* @example 380
|
|
5320
|
+
*/
|
|
5321
|
+
outputTokens: number | null;
|
|
5322
|
+
/**
|
|
5323
|
+
* @description Total token usage when available
|
|
5324
|
+
* @example 1580
|
|
5325
|
+
*/
|
|
5326
|
+
totalTokens: number | null;
|
|
5327
|
+
};
|
|
5209
5328
|
ActiveTaskExecutionResponseDto: {
|
|
5210
5329
|
/**
|
|
5211
5330
|
* @description Execution ID
|
|
@@ -5269,6 +5388,32 @@ export interface components {
|
|
|
5269
5388
|
* @example 19dc147c-6051-49e3-bf7a-404e3bb575d3
|
|
5270
5389
|
*/
|
|
5271
5390
|
agentActorId: string;
|
|
5391
|
+
/** @description Execution metadata and usage stats */
|
|
5392
|
+
stats: components["schemas"]["ExecutionStatsResponseDto"] | null;
|
|
5393
|
+
};
|
|
5394
|
+
ActiveTaskExecutionListResponseDto: {
|
|
5395
|
+
/** @description List of active task executions */
|
|
5396
|
+
items: components["schemas"]["ActiveTaskExecutionResponseDto"][];
|
|
5397
|
+
/**
|
|
5398
|
+
* @description Total number of active executions
|
|
5399
|
+
* @example 42
|
|
5400
|
+
*/
|
|
5401
|
+
total: number;
|
|
5402
|
+
/**
|
|
5403
|
+
* @description Current page number
|
|
5404
|
+
* @example 1
|
|
5405
|
+
*/
|
|
5406
|
+
page: number;
|
|
5407
|
+
/**
|
|
5408
|
+
* @description Number of items per page
|
|
5409
|
+
* @example 50
|
|
5410
|
+
*/
|
|
5411
|
+
limit: number;
|
|
5412
|
+
/**
|
|
5413
|
+
* @description Total number of pages
|
|
5414
|
+
* @example 3
|
|
5415
|
+
*/
|
|
5416
|
+
totalPages: number;
|
|
5272
5417
|
};
|
|
5273
5418
|
StopActiveTaskExecutionDto: {
|
|
5274
5419
|
/**
|
|
@@ -5282,7 +5427,7 @@ export interface components {
|
|
|
5282
5427
|
* @example OUT_OF_QUOTA
|
|
5283
5428
|
* @enum {string|null}
|
|
5284
5429
|
*/
|
|
5285
|
-
errorCode?: "OUT_OF_QUOTA" | "UNKNOWN" | null;
|
|
5430
|
+
errorCode?: "OUT_OF_QUOTA" | "INTERRUPTED" | "UNKNOWN" | null;
|
|
5286
5431
|
/**
|
|
5287
5432
|
* @description Optional human-readable error message for failed or cancelled executions
|
|
5288
5433
|
* @example ADK runner failed: 429 quota exceeded.
|
|
@@ -5349,12 +5494,14 @@ export interface components {
|
|
|
5349
5494
|
* @description Optional failure code when execution ended with an error
|
|
5350
5495
|
* @enum {string|null}
|
|
5351
5496
|
*/
|
|
5352
|
-
errorCode: "OUT_OF_QUOTA" | "UNKNOWN" | null;
|
|
5497
|
+
errorCode: "OUT_OF_QUOTA" | "INTERRUPTED" | "UNKNOWN" | null;
|
|
5353
5498
|
/**
|
|
5354
5499
|
* @description Optional human-readable error message for failed or cancelled executions
|
|
5355
5500
|
* @example ADK runner failed: 429 quota exceeded.
|
|
5356
5501
|
*/
|
|
5357
5502
|
errorMessage: string | null;
|
|
5503
|
+
/** @description Execution metadata and usage stats */
|
|
5504
|
+
stats: components["schemas"]["ExecutionStatsResponseDto"] | null;
|
|
5358
5505
|
};
|
|
5359
5506
|
UpdateRunnerSessionIdDto: {
|
|
5360
5507
|
/**
|
|
@@ -5363,6 +5510,62 @@ export interface components {
|
|
|
5363
5510
|
*/
|
|
5364
5511
|
sessionId: string;
|
|
5365
5512
|
};
|
|
5513
|
+
UpdateExecutionStatsDto: {
|
|
5514
|
+
/**
|
|
5515
|
+
* @description Harness used by the worker to run this execution
|
|
5516
|
+
* @example opencode
|
|
5517
|
+
*/
|
|
5518
|
+
harness?: string | null;
|
|
5519
|
+
/**
|
|
5520
|
+
* @description Model provider id used by the harness
|
|
5521
|
+
* @example openai
|
|
5522
|
+
*/
|
|
5523
|
+
providerId?: string | null;
|
|
5524
|
+
/**
|
|
5525
|
+
* @description Model id used by the harness
|
|
5526
|
+
* @example gpt-5.4
|
|
5527
|
+
*/
|
|
5528
|
+
modelId?: string | null;
|
|
5529
|
+
/**
|
|
5530
|
+
* @description Input token usage when available
|
|
5531
|
+
* @example 1200
|
|
5532
|
+
*/
|
|
5533
|
+
inputTokens?: number | null;
|
|
5534
|
+
/**
|
|
5535
|
+
* @description Output token usage when available
|
|
5536
|
+
* @example 380
|
|
5537
|
+
*/
|
|
5538
|
+
outputTokens?: number | null;
|
|
5539
|
+
/**
|
|
5540
|
+
* @description Total token usage when available
|
|
5541
|
+
* @example 1580
|
|
5542
|
+
*/
|
|
5543
|
+
totalTokens?: number | null;
|
|
5544
|
+
};
|
|
5545
|
+
TaskExecutionHistoryListResponseDto: {
|
|
5546
|
+
/** @description List of task execution history entries */
|
|
5547
|
+
items: components["schemas"]["TaskExecutionHistoryResponseDto"][];
|
|
5548
|
+
/**
|
|
5549
|
+
* @description Total number of history entries
|
|
5550
|
+
* @example 42
|
|
5551
|
+
*/
|
|
5552
|
+
total: number;
|
|
5553
|
+
/**
|
|
5554
|
+
* @description Current page number
|
|
5555
|
+
* @example 1
|
|
5556
|
+
*/
|
|
5557
|
+
page: number;
|
|
5558
|
+
/**
|
|
5559
|
+
* @description Number of items per page
|
|
5560
|
+
* @example 50
|
|
5561
|
+
*/
|
|
5562
|
+
limit: number;
|
|
5563
|
+
/**
|
|
5564
|
+
* @description Total number of pages
|
|
5565
|
+
* @example 3
|
|
5566
|
+
*/
|
|
5567
|
+
totalPages: number;
|
|
5568
|
+
};
|
|
5366
5569
|
WorkerResponseDto: {
|
|
5367
5570
|
/** Format: uuid */
|
|
5368
5571
|
id: string;
|
|
@@ -9925,7 +10128,12 @@ export interface operations {
|
|
|
9925
10128
|
};
|
|
9926
10129
|
TaskExecutionQueueController_listQueue: {
|
|
9927
10130
|
parameters: {
|
|
9928
|
-
query?:
|
|
10131
|
+
query?: {
|
|
10132
|
+
/** @description Page number (1-indexed) */
|
|
10133
|
+
page?: number;
|
|
10134
|
+
/** @description Items per page (1-100) */
|
|
10135
|
+
limit?: number;
|
|
10136
|
+
};
|
|
9929
10137
|
header?: never;
|
|
9930
10138
|
path?: never;
|
|
9931
10139
|
cookie?: never;
|
|
@@ -9937,7 +10145,7 @@ export interface operations {
|
|
|
9937
10145
|
[name: string]: unknown;
|
|
9938
10146
|
};
|
|
9939
10147
|
content: {
|
|
9940
|
-
"application/json": components["schemas"]["
|
|
10148
|
+
"application/json": components["schemas"]["TaskExecutionQueueListResponseDto"];
|
|
9941
10149
|
};
|
|
9942
10150
|
};
|
|
9943
10151
|
};
|
|
@@ -9966,7 +10174,14 @@ export interface operations {
|
|
|
9966
10174
|
};
|
|
9967
10175
|
ActiveTaskExecutionController_listActiveExecutions: {
|
|
9968
10176
|
parameters: {
|
|
9969
|
-
query?:
|
|
10177
|
+
query?: {
|
|
10178
|
+
/** @description Page number (1-indexed) */
|
|
10179
|
+
page?: number;
|
|
10180
|
+
/** @description Items per page (1-100) */
|
|
10181
|
+
limit?: number;
|
|
10182
|
+
/** @description Filter by task ID */
|
|
10183
|
+
taskId?: string;
|
|
10184
|
+
};
|
|
9970
10185
|
header?: never;
|
|
9971
10186
|
path?: never;
|
|
9972
10187
|
cookie?: never;
|
|
@@ -9978,7 +10193,7 @@ export interface operations {
|
|
|
9978
10193
|
[name: string]: unknown;
|
|
9979
10194
|
};
|
|
9980
10195
|
content: {
|
|
9981
|
-
"application/json": components["schemas"]["
|
|
10196
|
+
"application/json": components["schemas"]["ActiveTaskExecutionListResponseDto"];
|
|
9982
10197
|
};
|
|
9983
10198
|
};
|
|
9984
10199
|
};
|
|
@@ -10053,10 +10268,61 @@ export interface operations {
|
|
|
10053
10268
|
};
|
|
10054
10269
|
};
|
|
10055
10270
|
};
|
|
10056
|
-
|
|
10271
|
+
ActiveTaskExecutionController_updateExecutionStats: {
|
|
10272
|
+
parameters: {
|
|
10273
|
+
query?: never;
|
|
10274
|
+
header?: never;
|
|
10275
|
+
path: {
|
|
10276
|
+
/** @description Execution ID to update */
|
|
10277
|
+
executionId: string;
|
|
10278
|
+
};
|
|
10279
|
+
cookie?: never;
|
|
10280
|
+
};
|
|
10281
|
+
requestBody: {
|
|
10282
|
+
content: {
|
|
10283
|
+
"application/json": components["schemas"]["UpdateExecutionStatsDto"];
|
|
10284
|
+
};
|
|
10285
|
+
};
|
|
10286
|
+
responses: {
|
|
10287
|
+
204: {
|
|
10288
|
+
headers: {
|
|
10289
|
+
[name: string]: unknown;
|
|
10290
|
+
};
|
|
10291
|
+
content?: never;
|
|
10292
|
+
};
|
|
10293
|
+
};
|
|
10294
|
+
};
|
|
10295
|
+
ActiveTaskExecutionController_interruptExecution: {
|
|
10057
10296
|
parameters: {
|
|
10058
10297
|
query?: never;
|
|
10059
10298
|
header?: never;
|
|
10299
|
+
path: {
|
|
10300
|
+
/** @description Execution ID to interrupt */
|
|
10301
|
+
executionId: string;
|
|
10302
|
+
};
|
|
10303
|
+
cookie?: never;
|
|
10304
|
+
};
|
|
10305
|
+
requestBody?: never;
|
|
10306
|
+
responses: {
|
|
10307
|
+
204: {
|
|
10308
|
+
headers: {
|
|
10309
|
+
[name: string]: unknown;
|
|
10310
|
+
};
|
|
10311
|
+
content?: never;
|
|
10312
|
+
};
|
|
10313
|
+
};
|
|
10314
|
+
};
|
|
10315
|
+
TaskExecutionHistoryController_listHistory: {
|
|
10316
|
+
parameters: {
|
|
10317
|
+
query?: {
|
|
10318
|
+
/** @description Page number (1-indexed) */
|
|
10319
|
+
page?: number;
|
|
10320
|
+
/** @description Items per page (1-100) */
|
|
10321
|
+
limit?: number;
|
|
10322
|
+
/** @description Filter by task ID */
|
|
10323
|
+
taskId?: string;
|
|
10324
|
+
};
|
|
10325
|
+
header?: never;
|
|
10060
10326
|
path?: never;
|
|
10061
10327
|
cookie?: never;
|
|
10062
10328
|
};
|
|
@@ -10067,7 +10333,7 @@ export interface operations {
|
|
|
10067
10333
|
[name: string]: unknown;
|
|
10068
10334
|
};
|
|
10069
10335
|
content: {
|
|
10070
|
-
"application/json": components["schemas"]["
|
|
10336
|
+
"application/json": components["schemas"]["TaskExecutionHistoryListResponseDto"];
|
|
10071
10337
|
};
|
|
10072
10338
|
};
|
|
10073
10339
|
};
|
|
@@ -2,10 +2,12 @@ export { ApiError } from './core/ApiError.js';
|
|
|
2
2
|
export { CancelablePromise, CancelError } from './core/CancelablePromise.js';
|
|
3
3
|
export { OpenAPI } from './core/OpenAPI.js';
|
|
4
4
|
export type { OpenAPIConfig } from './core/OpenAPI.js';
|
|
5
|
+
export type { ActiveTaskExecutionListResponseDto } from './models/ActiveTaskExecutionListResponseDto.js';
|
|
5
6
|
export { ActiveTaskExecutionResponseDto } from './models/ActiveTaskExecutionResponseDto.js';
|
|
6
7
|
export type { ActiveTaskExecutionTagSnapshotResponseDto } from './models/ActiveTaskExecutionTagSnapshotResponseDto.js';
|
|
7
8
|
export { ActorResponseDto } from './models/ActorResponseDto.js';
|
|
8
9
|
export type { AddParticipantDto } from './models/AddParticipantDto.js';
|
|
10
|
+
export type { AgentAvatarDto } from './models/AgentAvatarDto.js';
|
|
9
11
|
export type { AgentExecutionTokenResponseDto } from './models/AgentExecutionTokenResponseDto.js';
|
|
10
12
|
export type { AgentListResponseDto } from './models/AgentListResponseDto.js';
|
|
11
13
|
export { AgentResponseDto } from './models/AgentResponseDto.js';
|
|
@@ -64,6 +66,7 @@ export type { DeleteConnectionResponseDto } from './models/DeleteConnectionRespo
|
|
|
64
66
|
export type { DeleteMappingResponseDto } from './models/DeleteMappingResponseDto.js';
|
|
65
67
|
export type { DeleteScopeResponseDto } from './models/DeleteScopeResponseDto.js';
|
|
66
68
|
export type { DeleteServerResponseDto } from './models/DeleteServerResponseDto.js';
|
|
69
|
+
export type { ExecutionStatsResponseDto } from './models/ExecutionStatsResponseDto.js';
|
|
67
70
|
export type { FlowClientDto } from './models/FlowClientDto.js';
|
|
68
71
|
export type { FlowServerDto } from './models/FlowServerDto.js';
|
|
69
72
|
export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
|
|
@@ -108,8 +111,10 @@ export { StopActiveTaskExecutionDto } from './models/StopActiveTaskExecutionDto.
|
|
|
108
111
|
export type { TagResponseDto } from './models/TagResponseDto.js';
|
|
109
112
|
export type { TaskBlueprintListResponseDto } from './models/TaskBlueprintListResponseDto.js';
|
|
110
113
|
export type { TaskBlueprintResponseDto } from './models/TaskBlueprintResponseDto.js';
|
|
114
|
+
export type { TaskExecutionHistoryListResponseDto } from './models/TaskExecutionHistoryListResponseDto.js';
|
|
111
115
|
export { TaskExecutionHistoryResponseDto } from './models/TaskExecutionHistoryResponseDto.js';
|
|
112
116
|
export { TaskExecutionQueueEntryResponseDto } from './models/TaskExecutionQueueEntryResponseDto.js';
|
|
117
|
+
export type { TaskExecutionQueueListResponseDto } from './models/TaskExecutionQueueListResponseDto.js';
|
|
113
118
|
export type { TaskInfoDto } from './models/TaskInfoDto.js';
|
|
114
119
|
export type { TaskListResponseDto } from './models/TaskListResponseDto.js';
|
|
115
120
|
export { TaskResponseDto } from './models/TaskResponseDto.js';
|
|
@@ -128,6 +133,7 @@ export type { UpdateAgentRunDto } from './models/UpdateAgentRunDto.js';
|
|
|
128
133
|
export type { UpdateBlockDto } from './models/UpdateBlockDto.js';
|
|
129
134
|
export type { UpdateChatProviderDto } from './models/UpdateChatProviderDto.js';
|
|
130
135
|
export type { UpdateConnectionDto } from './models/UpdateConnectionDto.js';
|
|
136
|
+
export type { UpdateExecutionStatsDto } from './models/UpdateExecutionStatsDto.js';
|
|
131
137
|
export type { UpdateRunnerSessionIdDto } from './models/UpdateRunnerSessionIdDto.js';
|
|
132
138
|
export type { UpdateScheduledTaskDto } from './models/UpdateScheduledTaskDto.js';
|
|
133
139
|
export type { UpdateSecretDto } from './models/UpdateSecretDto.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ActiveTaskExecutionResponseDto } from './ActiveTaskExecutionResponseDto.js';
|
|
2
|
+
export type ActiveTaskExecutionListResponseDto = {
|
|
3
|
+
/**
|
|
4
|
+
* List of active task executions
|
|
5
|
+
*/
|
|
6
|
+
items: Array<ActiveTaskExecutionResponseDto>;
|
|
7
|
+
/**
|
|
8
|
+
* Total number of active executions
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page number
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
totalPages: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActiveTaskExecutionTagSnapshotResponseDto } from './ActiveTaskExecutionTagSnapshotResponseDto.js';
|
|
2
|
+
import type { ExecutionStatsResponseDto } from './ExecutionStatsResponseDto.js';
|
|
2
3
|
export type ActiveTaskExecutionResponseDto = {
|
|
3
4
|
/**
|
|
4
5
|
* Execution ID
|
|
@@ -52,6 +53,10 @@ export type ActiveTaskExecutionResponseDto = {
|
|
|
52
53
|
* Agent actor id that picked up the task
|
|
53
54
|
*/
|
|
54
55
|
agentActorId: string;
|
|
56
|
+
/**
|
|
57
|
+
* Execution metadata and usage stats
|
|
58
|
+
*/
|
|
59
|
+
stats: ExecutionStatsResponseDto | null;
|
|
55
60
|
};
|
|
56
61
|
export declare namespace ActiveTaskExecutionResponseDto {
|
|
57
62
|
/**
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type AgentAvatarDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Stable avatar identifier.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Human-readable avatar label.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Relative public URL for the avatar image.
|
|
12
|
+
*/
|
|
13
|
+
url: string;
|
|
14
|
+
/**
|
|
15
|
+
* Short explanation of what this avatar represents.
|
|
16
|
+
*/
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { AgentAvatarDto } from './AgentAvatarDto.js';
|
|
1
2
|
import type { AgentTemplateDto } from './AgentTemplateDto.js';
|
|
2
3
|
import type { AgentTemplateHarnessDto } from './AgentTemplateHarnessDto.js';
|
|
3
4
|
export type AgentTemplateCatalogResponseDto = {
|
|
4
5
|
templates: Array<AgentTemplateDto>;
|
|
5
6
|
harnesses: Array<AgentTemplateHarnessDto>;
|
|
7
|
+
avatars: Array<AgentAvatarDto>;
|
|
6
8
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ExecutionStatsResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Harness used to execute the run
|
|
4
|
+
*/
|
|
5
|
+
harness: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* LLM provider id resolved for this run
|
|
8
|
+
*/
|
|
9
|
+
providerId: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* LLM model id resolved for this run
|
|
12
|
+
*/
|
|
13
|
+
modelId: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Input token usage when available
|
|
16
|
+
*/
|
|
17
|
+
inputTokens: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* Output token usage when available
|
|
20
|
+
*/
|
|
21
|
+
outputTokens: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Total token usage when available
|
|
24
|
+
*/
|
|
25
|
+
totalTokens: number | null;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,6 +16,7 @@ export var StopActiveTaskExecutionDto;
|
|
|
16
16
|
let errorCode;
|
|
17
17
|
(function (errorCode) {
|
|
18
18
|
errorCode["OUT_OF_QUOTA"] = "OUT_OF_QUOTA";
|
|
19
|
+
errorCode["INTERRUPTED"] = "INTERRUPTED";
|
|
19
20
|
errorCode["UNKNOWN"] = "UNKNOWN";
|
|
20
21
|
})(errorCode = StopActiveTaskExecutionDto.errorCode || (StopActiveTaskExecutionDto.errorCode = {}));
|
|
21
22
|
})(StopActiveTaskExecutionDto || (StopActiveTaskExecutionDto = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TaskExecutionHistoryResponseDto } from './TaskExecutionHistoryResponseDto.js';
|
|
2
|
+
export type TaskExecutionHistoryListResponseDto = {
|
|
3
|
+
/**
|
|
4
|
+
* List of task execution history entries
|
|
5
|
+
*/
|
|
6
|
+
items: Array<TaskExecutionHistoryResponseDto>;
|
|
7
|
+
/**
|
|
8
|
+
* Total number of history entries
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page number
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
totalPages: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExecutionStatsResponseDto } from './ExecutionStatsResponseDto.js';
|
|
1
2
|
export type TaskExecutionHistoryResponseDto = {
|
|
2
3
|
/**
|
|
3
4
|
* History row ID
|
|
@@ -51,6 +52,10 @@ export type TaskExecutionHistoryResponseDto = {
|
|
|
51
52
|
* Optional human-readable error message for failed or cancelled executions
|
|
52
53
|
*/
|
|
53
54
|
errorMessage: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Execution metadata and usage stats
|
|
57
|
+
*/
|
|
58
|
+
stats: ExecutionStatsResponseDto | null;
|
|
54
59
|
};
|
|
55
60
|
export declare namespace TaskExecutionHistoryResponseDto {
|
|
56
61
|
/**
|
|
@@ -76,6 +81,7 @@ export declare namespace TaskExecutionHistoryResponseDto {
|
|
|
76
81
|
*/
|
|
77
82
|
enum errorCode {
|
|
78
83
|
OUT_OF_QUOTA = "OUT_OF_QUOTA",
|
|
84
|
+
INTERRUPTED = "INTERRUPTED",
|
|
79
85
|
UNKNOWN = "UNKNOWN"
|
|
80
86
|
}
|
|
81
87
|
}
|
|
@@ -26,6 +26,7 @@ export var TaskExecutionHistoryResponseDto;
|
|
|
26
26
|
let errorCode;
|
|
27
27
|
(function (errorCode) {
|
|
28
28
|
errorCode["OUT_OF_QUOTA"] = "OUT_OF_QUOTA";
|
|
29
|
+
errorCode["INTERRUPTED"] = "INTERRUPTED";
|
|
29
30
|
errorCode["UNKNOWN"] = "UNKNOWN";
|
|
30
31
|
})(errorCode = TaskExecutionHistoryResponseDto.errorCode || (TaskExecutionHistoryResponseDto.errorCode = {}));
|
|
31
32
|
})(TaskExecutionHistoryResponseDto || (TaskExecutionHistoryResponseDto = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TaskExecutionQueueEntryResponseDto } from './TaskExecutionQueueEntryResponseDto.js';
|
|
2
|
+
export type TaskExecutionQueueListResponseDto = {
|
|
3
|
+
/**
|
|
4
|
+
* List of task execution queue entries
|
|
5
|
+
*/
|
|
6
|
+
items: Array<TaskExecutionQueueEntryResponseDto>;
|
|
7
|
+
/**
|
|
8
|
+
* Total number of queue entries
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page number
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
totalPages: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type UpdateExecutionStatsDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Harness used by the worker to run this execution
|
|
4
|
+
*/
|
|
5
|
+
harness?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Model provider id used by the harness
|
|
8
|
+
*/
|
|
9
|
+
providerId?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Model id used by the harness
|
|
12
|
+
*/
|
|
13
|
+
modelId?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Input token usage when available
|
|
16
|
+
*/
|
|
17
|
+
inputTokens?: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* Output token usage when available
|
|
20
|
+
*/
|
|
21
|
+
outputTokens?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Total token usage when available
|
|
24
|
+
*/
|
|
25
|
+
totalTokens?: number | null;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
import type { ActiveTaskExecutionListResponseDto } from '../models/ActiveTaskExecutionListResponseDto.js';
|
|
1
2
|
import type { ActiveTaskExecutionResponseDto } from '../models/ActiveTaskExecutionResponseDto.js';
|
|
2
3
|
import type { StopActiveTaskExecutionDto } from '../models/StopActiveTaskExecutionDto.js';
|
|
4
|
+
import type { TaskExecutionHistoryListResponseDto } from '../models/TaskExecutionHistoryListResponseDto.js';
|
|
3
5
|
import type { TaskExecutionHistoryResponseDto } from '../models/TaskExecutionHistoryResponseDto.js';
|
|
4
|
-
import type {
|
|
6
|
+
import type { TaskExecutionQueueListResponseDto } from '../models/TaskExecutionQueueListResponseDto.js';
|
|
7
|
+
import type { UpdateExecutionStatsDto } from '../models/UpdateExecutionStatsDto.js';
|
|
5
8
|
import type { UpdateRunnerSessionIdDto } from '../models/UpdateRunnerSessionIdDto.js';
|
|
6
9
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
10
|
import type { OpenAPIConfig } from '../core/OpenAPI.js';
|
|
8
11
|
export declare class ExecutionsService {
|
|
9
12
|
/**
|
|
10
13
|
* List the current task execution work queue
|
|
11
|
-
* Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
|
|
12
|
-
* @
|
|
14
|
+
* Returns the tasks currently present in the execution queue with pagination. Presence means the task is ready to be picked by the executor.
|
|
15
|
+
* @param page Page number (1-indexed)
|
|
16
|
+
* @param limit Items per page (1-100)
|
|
17
|
+
* @returns TaskExecutionQueueListResponseDto
|
|
13
18
|
* @throws ApiError
|
|
14
19
|
*/
|
|
15
|
-
static taskExecutionQueueControllerListQueue(config?: OpenAPIConfig): CancelablePromise<
|
|
20
|
+
static taskExecutionQueueControllerListQueue(page?: number, limit?: number, config?: OpenAPIConfig): CancelablePromise<TaskExecutionQueueListResponseDto>;
|
|
16
21
|
/**
|
|
17
22
|
* Claim a specific task from the execution queue
|
|
18
23
|
* Atomically removes the task from the queue and inserts it into the active execution table.
|
|
@@ -23,11 +28,14 @@ export declare class ExecutionsService {
|
|
|
23
28
|
static taskExecutionQueueControllerClaimTask(taskId: string, config?: OpenAPIConfig): CancelablePromise<ActiveTaskExecutionResponseDto>;
|
|
24
29
|
/**
|
|
25
30
|
* List active task executions
|
|
26
|
-
* Returns the tasks currently being worked on in the execution system.
|
|
27
|
-
* @
|
|
31
|
+
* Returns the tasks currently being worked on in the execution system with pagination.
|
|
32
|
+
* @param page Page number (1-indexed)
|
|
33
|
+
* @param limit Items per page (1-100)
|
|
34
|
+
* @param taskId Filter by task ID
|
|
35
|
+
* @returns ActiveTaskExecutionListResponseDto
|
|
28
36
|
* @throws ApiError
|
|
29
37
|
*/
|
|
30
|
-
static activeTaskExecutionControllerListActiveExecutions(config?: OpenAPIConfig): CancelablePromise<
|
|
38
|
+
static activeTaskExecutionControllerListActiveExecutions(page?: number, limit?: number, taskId?: string, config?: OpenAPIConfig): CancelablePromise<ActiveTaskExecutionListResponseDto>;
|
|
31
39
|
/**
|
|
32
40
|
* Stop an active task execution and move it to history
|
|
33
41
|
* Atomically removes the execution from the active execution table and inserts it into the history table.
|
|
@@ -54,11 +62,31 @@ export declare class ExecutionsService {
|
|
|
54
62
|
* @throws ApiError
|
|
55
63
|
*/
|
|
56
64
|
static activeTaskExecutionControllerIncrementToolCallCount(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Patch execution stats and metadata
|
|
67
|
+
* Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
|
|
68
|
+
* @param executionId Execution ID to update
|
|
69
|
+
* @param requestBody
|
|
70
|
+
* @returns void
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
static activeTaskExecutionControllerUpdateExecutionStats(executionId: string, requestBody: UpdateExecutionStatsDto, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Request interruption of an active execution
|
|
76
|
+
* Signals the worker to abort the currently running agent execution.
|
|
77
|
+
* @param executionId Execution ID to interrupt
|
|
78
|
+
* @returns void
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
static activeTaskExecutionControllerInterruptExecution(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
57
82
|
/**
|
|
58
83
|
* List task execution history
|
|
59
|
-
* Returns the persisted execution history rows in the execution system.
|
|
60
|
-
* @
|
|
84
|
+
* Returns the persisted execution history rows in the execution system with pagination.
|
|
85
|
+
* @param page Page number (1-indexed)
|
|
86
|
+
* @param limit Items per page (1-100)
|
|
87
|
+
* @param taskId Filter by task ID
|
|
88
|
+
* @returns TaskExecutionHistoryListResponseDto
|
|
61
89
|
* @throws ApiError
|
|
62
90
|
*/
|
|
63
|
-
static taskExecutionHistoryControllerListHistory(config?: OpenAPIConfig): CancelablePromise<
|
|
91
|
+
static taskExecutionHistoryControllerListHistory(page?: number, limit?: number, taskId?: string, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryListResponseDto>;
|
|
64
92
|
}
|
|
@@ -3,14 +3,20 @@ import { request as __request } from '../core/request.js';
|
|
|
3
3
|
export class ExecutionsService {
|
|
4
4
|
/**
|
|
5
5
|
* List the current task execution work queue
|
|
6
|
-
* Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
|
|
7
|
-
* @
|
|
6
|
+
* Returns the tasks currently present in the execution queue with pagination. Presence means the task is ready to be picked by the executor.
|
|
7
|
+
* @param page Page number (1-indexed)
|
|
8
|
+
* @param limit Items per page (1-100)
|
|
9
|
+
* @returns TaskExecutionQueueListResponseDto
|
|
8
10
|
* @throws ApiError
|
|
9
11
|
*/
|
|
10
|
-
static taskExecutionQueueControllerListQueue(config = OpenAPI) {
|
|
12
|
+
static taskExecutionQueueControllerListQueue(page = 1, limit = 50, config = OpenAPI) {
|
|
11
13
|
return __request(config, {
|
|
12
14
|
method: 'GET',
|
|
13
15
|
url: '/api/v1/executions/queue',
|
|
16
|
+
query: {
|
|
17
|
+
'page': page,
|
|
18
|
+
'limit': limit,
|
|
19
|
+
},
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
@@ -31,14 +37,22 @@ export class ExecutionsService {
|
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* List active task executions
|
|
34
|
-
* Returns the tasks currently being worked on in the execution system.
|
|
35
|
-
* @
|
|
40
|
+
* Returns the tasks currently being worked on in the execution system with pagination.
|
|
41
|
+
* @param page Page number (1-indexed)
|
|
42
|
+
* @param limit Items per page (1-100)
|
|
43
|
+
* @param taskId Filter by task ID
|
|
44
|
+
* @returns ActiveTaskExecutionListResponseDto
|
|
36
45
|
* @throws ApiError
|
|
37
46
|
*/
|
|
38
|
-
static activeTaskExecutionControllerListActiveExecutions(config = OpenAPI) {
|
|
47
|
+
static activeTaskExecutionControllerListActiveExecutions(page = 1, limit = 50, taskId, config = OpenAPI) {
|
|
39
48
|
return __request(config, {
|
|
40
49
|
method: 'GET',
|
|
41
50
|
url: '/api/v1/executions/active',
|
|
51
|
+
query: {
|
|
52
|
+
'page': page,
|
|
53
|
+
'limit': limit,
|
|
54
|
+
'taskId': taskId,
|
|
55
|
+
},
|
|
42
56
|
});
|
|
43
57
|
}
|
|
44
58
|
/**
|
|
@@ -95,16 +109,59 @@ export class ExecutionsService {
|
|
|
95
109
|
},
|
|
96
110
|
});
|
|
97
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Patch execution stats and metadata
|
|
114
|
+
* Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
|
|
115
|
+
* @param executionId Execution ID to update
|
|
116
|
+
* @param requestBody
|
|
117
|
+
* @returns void
|
|
118
|
+
* @throws ApiError
|
|
119
|
+
*/
|
|
120
|
+
static activeTaskExecutionControllerUpdateExecutionStats(executionId, requestBody, config = OpenAPI) {
|
|
121
|
+
return __request(config, {
|
|
122
|
+
method: 'PATCH',
|
|
123
|
+
url: '/api/v1/executions/active/{executionId}/stats',
|
|
124
|
+
path: {
|
|
125
|
+
'executionId': executionId,
|
|
126
|
+
},
|
|
127
|
+
body: requestBody,
|
|
128
|
+
mediaType: 'application/json',
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Request interruption of an active execution
|
|
133
|
+
* Signals the worker to abort the currently running agent execution.
|
|
134
|
+
* @param executionId Execution ID to interrupt
|
|
135
|
+
* @returns void
|
|
136
|
+
* @throws ApiError
|
|
137
|
+
*/
|
|
138
|
+
static activeTaskExecutionControllerInterruptExecution(executionId, config = OpenAPI) {
|
|
139
|
+
return __request(config, {
|
|
140
|
+
method: 'POST',
|
|
141
|
+
url: '/api/v1/executions/active/{executionId}/interrupt',
|
|
142
|
+
path: {
|
|
143
|
+
'executionId': executionId,
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
}
|
|
98
147
|
/**
|
|
99
148
|
* List task execution history
|
|
100
|
-
* Returns the persisted execution history rows in the execution system.
|
|
101
|
-
* @
|
|
149
|
+
* Returns the persisted execution history rows in the execution system with pagination.
|
|
150
|
+
* @param page Page number (1-indexed)
|
|
151
|
+
* @param limit Items per page (1-100)
|
|
152
|
+
* @param taskId Filter by task ID
|
|
153
|
+
* @returns TaskExecutionHistoryListResponseDto
|
|
102
154
|
* @throws ApiError
|
|
103
155
|
*/
|
|
104
|
-
static taskExecutionHistoryControllerListHistory(config = OpenAPI) {
|
|
156
|
+
static taskExecutionHistoryControllerListHistory(page = 1, limit = 50, taskId, config = OpenAPI) {
|
|
105
157
|
return __request(config, {
|
|
106
158
|
method: 'GET',
|
|
107
159
|
url: '/api/v1/executions/history',
|
|
160
|
+
query: {
|
|
161
|
+
'page': page,
|
|
162
|
+
'limit': limit,
|
|
163
|
+
'taskId': taskId,
|
|
164
|
+
},
|
|
108
165
|
});
|
|
109
166
|
}
|
|
110
167
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BaseClient, ClientConfig } from './base-client.js';
|
|
2
|
-
import type { ActiveTaskExecutionResponseDto, StopActiveTaskExecutionDto, TaskExecutionHistoryResponseDto,
|
|
2
|
+
import type { ActiveTaskExecutionListResponseDto, ActiveTaskExecutionResponseDto, StopActiveTaskExecutionDto, TaskExecutionHistoryListResponseDto, TaskExecutionHistoryResponseDto, TaskExecutionQueueListResponseDto, UpdateExecutionStatsDto, UpdateRunnerSessionIdDto } from './types.js';
|
|
3
3
|
export declare class ExecutionsResource extends BaseClient {
|
|
4
4
|
constructor(config: ClientConfig);
|
|
5
5
|
/** List the current task execution work queue */
|
|
6
6
|
TaskExecutionQueueController_listQueue(params?: {
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
7
9
|
signal?: AbortSignal;
|
|
8
|
-
}): Promise<
|
|
10
|
+
}): Promise<TaskExecutionQueueListResponseDto>;
|
|
9
11
|
/** Claim a specific task from the execution queue */
|
|
10
12
|
TaskExecutionQueueController_claimTask(params: {
|
|
11
13
|
taskId: string;
|
|
@@ -13,8 +15,11 @@ export declare class ExecutionsResource extends BaseClient {
|
|
|
13
15
|
}): Promise<ActiveTaskExecutionResponseDto>;
|
|
14
16
|
/** List active task executions */
|
|
15
17
|
ActiveTaskExecutionController_listActiveExecutions(params?: {
|
|
18
|
+
page?: number;
|
|
19
|
+
limit?: number;
|
|
20
|
+
taskId?: string;
|
|
16
21
|
signal?: AbortSignal;
|
|
17
|
-
}): Promise<
|
|
22
|
+
}): Promise<ActiveTaskExecutionListResponseDto>;
|
|
18
23
|
/** Stop an active task execution and move it to history */
|
|
19
24
|
ActiveTaskExecutionController_stopTaskExecution(params: {
|
|
20
25
|
executionId: string;
|
|
@@ -32,8 +37,22 @@ export declare class ExecutionsResource extends BaseClient {
|
|
|
32
37
|
executionId: string;
|
|
33
38
|
signal?: AbortSignal;
|
|
34
39
|
}): Promise<void>;
|
|
40
|
+
/** Patch execution stats and metadata */
|
|
41
|
+
ActiveTaskExecutionController_updateExecutionStats(params: {
|
|
42
|
+
executionId: string;
|
|
43
|
+
body: UpdateExecutionStatsDto;
|
|
44
|
+
signal?: AbortSignal;
|
|
45
|
+
}): Promise<void>;
|
|
46
|
+
/** Request interruption of an active execution */
|
|
47
|
+
ActiveTaskExecutionController_interruptExecution(params: {
|
|
48
|
+
executionId: string;
|
|
49
|
+
signal?: AbortSignal;
|
|
50
|
+
}): Promise<void>;
|
|
35
51
|
/** List task execution history */
|
|
36
52
|
TaskExecutionHistoryController_listHistory(params?: {
|
|
53
|
+
page?: number;
|
|
54
|
+
limit?: number;
|
|
55
|
+
taskId?: string;
|
|
37
56
|
signal?: AbortSignal;
|
|
38
|
-
}): Promise<
|
|
57
|
+
}): Promise<TaskExecutionHistoryListResponseDto>;
|
|
39
58
|
}
|
|
@@ -5,7 +5,7 @@ export class ExecutionsResource extends BaseClient {
|
|
|
5
5
|
}
|
|
6
6
|
/** List the current task execution work queue */
|
|
7
7
|
async TaskExecutionQueueController_listQueue(params) {
|
|
8
|
-
return this.request('GET', '/api/v1/executions/queue', { signal: params?.signal });
|
|
8
|
+
return this.request('GET', '/api/v1/executions/queue', { params: { page: params?.page, limit: params?.limit }, signal: params?.signal });
|
|
9
9
|
}
|
|
10
10
|
/** Claim a specific task from the execution queue */
|
|
11
11
|
async TaskExecutionQueueController_claimTask(params) {
|
|
@@ -13,7 +13,7 @@ export class ExecutionsResource extends BaseClient {
|
|
|
13
13
|
}
|
|
14
14
|
/** List active task executions */
|
|
15
15
|
async ActiveTaskExecutionController_listActiveExecutions(params) {
|
|
16
|
-
return this.request('GET', '/api/v1/executions/active', { signal: params?.signal });
|
|
16
|
+
return this.request('GET', '/api/v1/executions/active', { params: { page: params?.page, limit: params?.limit, taskId: params?.taskId }, signal: params?.signal });
|
|
17
17
|
}
|
|
18
18
|
/** Stop an active task execution and move it to history */
|
|
19
19
|
async ActiveTaskExecutionController_stopTaskExecution(params) {
|
|
@@ -27,8 +27,16 @@ export class ExecutionsResource extends BaseClient {
|
|
|
27
27
|
async ActiveTaskExecutionController_incrementToolCallCount(params) {
|
|
28
28
|
return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/tool-calls/increment`, { responseType: 'void', signal: params?.signal });
|
|
29
29
|
}
|
|
30
|
+
/** Patch execution stats and metadata */
|
|
31
|
+
async ActiveTaskExecutionController_updateExecutionStats(params) {
|
|
32
|
+
return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/stats`, { body: params.body, responseType: 'void', signal: params?.signal });
|
|
33
|
+
}
|
|
34
|
+
/** Request interruption of an active execution */
|
|
35
|
+
async ActiveTaskExecutionController_interruptExecution(params) {
|
|
36
|
+
return this.request('POST', `/api/v1/executions/active/${params.executionId}/interrupt`, { responseType: 'void', signal: params?.signal });
|
|
37
|
+
}
|
|
30
38
|
/** List task execution history */
|
|
31
39
|
async TaskExecutionHistoryController_listHistory(params) {
|
|
32
|
-
return this.request('GET', '/api/v1/executions/history', { signal: params?.signal });
|
|
40
|
+
return this.request('GET', '/api/v1/executions/history', { params: { page: params?.page, limit: params?.limit, taskId: params?.taskId }, signal: params?.signal });
|
|
33
41
|
}
|
|
34
42
|
}
|
package/dist/src/v2/types.d.ts
CHANGED
|
@@ -612,9 +612,16 @@ export interface AgentTemplateHarnessDto {
|
|
|
612
612
|
description: string;
|
|
613
613
|
modelOptions: AgentTemplateModelOptionDto[];
|
|
614
614
|
}
|
|
615
|
+
export interface AgentAvatarDto {
|
|
616
|
+
id: string;
|
|
617
|
+
label: string;
|
|
618
|
+
url: string;
|
|
619
|
+
description: string;
|
|
620
|
+
}
|
|
615
621
|
export interface AgentTemplateCatalogResponseDto {
|
|
616
622
|
templates: AgentTemplateDto[];
|
|
617
623
|
harnesses: AgentTemplateHarnessDto[];
|
|
624
|
+
avatars: AgentAvatarDto[];
|
|
618
625
|
}
|
|
619
626
|
export interface PatchAgentDto {
|
|
620
627
|
slug?: string;
|
|
@@ -816,10 +823,25 @@ export interface TaskExecutionQueueEntryResponseDto {
|
|
|
816
823
|
taskName: string | null;
|
|
817
824
|
taskStatus: 'NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE';
|
|
818
825
|
}
|
|
826
|
+
export interface TaskExecutionQueueListResponseDto {
|
|
827
|
+
items: TaskExecutionQueueEntryResponseDto[];
|
|
828
|
+
total: number;
|
|
829
|
+
page: number;
|
|
830
|
+
limit: number;
|
|
831
|
+
totalPages: number;
|
|
832
|
+
}
|
|
819
833
|
export interface ActiveTaskExecutionTagSnapshotResponseDto {
|
|
820
834
|
id: string;
|
|
821
835
|
name: string;
|
|
822
836
|
}
|
|
837
|
+
export interface ExecutionStatsResponseDto {
|
|
838
|
+
harness: string | null;
|
|
839
|
+
providerId: string | null;
|
|
840
|
+
modelId: string | null;
|
|
841
|
+
inputTokens: number | null;
|
|
842
|
+
outputTokens: number | null;
|
|
843
|
+
totalTokens: number | null;
|
|
844
|
+
}
|
|
823
845
|
export interface ActiveTaskExecutionResponseDto {
|
|
824
846
|
id: string;
|
|
825
847
|
taskId: string;
|
|
@@ -834,10 +856,18 @@ export interface ActiveTaskExecutionResponseDto {
|
|
|
834
856
|
workerClientId: string;
|
|
835
857
|
taskAssigneeActorIdBeforeClaim: string | null;
|
|
836
858
|
agentActorId: string;
|
|
859
|
+
stats: ExecutionStatsResponseDto;
|
|
860
|
+
}
|
|
861
|
+
export interface ActiveTaskExecutionListResponseDto {
|
|
862
|
+
items: ActiveTaskExecutionResponseDto[];
|
|
863
|
+
total: number;
|
|
864
|
+
page: number;
|
|
865
|
+
limit: number;
|
|
866
|
+
totalPages: number;
|
|
837
867
|
}
|
|
838
868
|
export interface StopActiveTaskExecutionDto {
|
|
839
869
|
status: 'SUCCEEDED' | 'FAILED' | 'STALE' | 'CANCELLED';
|
|
840
|
-
errorCode?: 'OUT_OF_QUOTA' | 'UNKNOWN';
|
|
870
|
+
errorCode?: 'OUT_OF_QUOTA' | 'INTERRUPTED' | 'UNKNOWN';
|
|
841
871
|
errorMessage?: string | null;
|
|
842
872
|
}
|
|
843
873
|
export interface TaskExecutionHistoryResponseDto {
|
|
@@ -852,12 +882,28 @@ export interface TaskExecutionHistoryResponseDto {
|
|
|
852
882
|
runnerSessionId: string | null;
|
|
853
883
|
toolCallCount: number;
|
|
854
884
|
status: 'SUCCEEDED' | 'FAILED' | 'STALE' | 'CANCELLED';
|
|
855
|
-
errorCode: 'OUT_OF_QUOTA' | 'UNKNOWN';
|
|
885
|
+
errorCode: 'OUT_OF_QUOTA' | 'INTERRUPTED' | 'UNKNOWN';
|
|
856
886
|
errorMessage: string | null;
|
|
887
|
+
stats: ExecutionStatsResponseDto;
|
|
857
888
|
}
|
|
858
889
|
export interface UpdateRunnerSessionIdDto {
|
|
859
890
|
sessionId: string;
|
|
860
891
|
}
|
|
892
|
+
export interface UpdateExecutionStatsDto {
|
|
893
|
+
harness?: string | null;
|
|
894
|
+
providerId?: string | null;
|
|
895
|
+
modelId?: string | null;
|
|
896
|
+
inputTokens?: number | null;
|
|
897
|
+
outputTokens?: number | null;
|
|
898
|
+
totalTokens?: number | null;
|
|
899
|
+
}
|
|
900
|
+
export interface TaskExecutionHistoryListResponseDto {
|
|
901
|
+
items: TaskExecutionHistoryResponseDto[];
|
|
902
|
+
total: number;
|
|
903
|
+
page: number;
|
|
904
|
+
limit: number;
|
|
905
|
+
totalPages: number;
|
|
906
|
+
}
|
|
861
907
|
export interface WorkerResponseDto {
|
|
862
908
|
id: string;
|
|
863
909
|
oauthClientId: string;
|