@sixb/server 0.1.2 → 0.1.4
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/README.md +1 -1
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2122 -1391
- package/dist/index.js.map +24 -19
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +6 -6
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agents.d.ts +164 -77
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +110 -53
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +56 -56
- package/dist/routes/connector-connections.d.ts +14 -14
- package/dist/routes/datasets.d.ts +12 -12
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/files.d.ts +8 -8
- package/dist/routes/links.d.ts +6 -57
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/models.d.ts +60 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/objects.d.ts +51 -3
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +150 -136
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +142 -57
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +16 -16
- package/dist/schemas/agents.d.ts +586 -142
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +96 -96
- package/dist/schemas/connectors.d.ts +35 -25
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +0 -41
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/models.d.ts +50 -0
- package/dist/schemas/models.d.ts.map +1 -0
- package/dist/schemas/objects.d.ts +22 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +947 -806
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +33 -33
- package/dist/schemas/webhook-runs.d.ts +12 -12
- package/dist/schemas/workflows.d.ts +833 -162
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/experience.ts +190 -0
- package/src/auth/public-routes.ts +7 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +4 -0
- package/src/routes/agents.ts +22 -3
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/links.ts +2 -53
- package/src/routes/models.ts +31 -0
- package/src/routes/objects.ts +103 -0
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +19 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/connectors.ts +13 -3
- package/src/schemas/links.ts +0 -17
- package/src/schemas/models.ts +15 -0
- package/src/schemas/objects.ts +104 -0
- package/src/schemas/projections.ts +12 -3
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
package/dist/schemas/agents.d.ts
CHANGED
|
@@ -305,11 +305,34 @@ export declare const AgentLoopConfigSchema: z.ZodObject<{
|
|
|
305
305
|
}, {
|
|
306
306
|
maxSteps?: number | undefined;
|
|
307
307
|
}>>;
|
|
308
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
windowTokens: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
reserveTokens: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
keepRecentTokens: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
windowTokens?: number | undefined;
|
|
314
|
+
reserveTokens?: number | undefined;
|
|
315
|
+
keepRecentTokens?: number | undefined;
|
|
316
|
+
}, {
|
|
317
|
+
windowTokens?: number | undefined;
|
|
318
|
+
reserveTokens?: number | undefined;
|
|
319
|
+
keepRecentTokens?: number | undefined;
|
|
320
|
+
}>>;
|
|
308
321
|
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
context?: {
|
|
323
|
+
windowTokens?: number | undefined;
|
|
324
|
+
reserveTokens?: number | undefined;
|
|
325
|
+
keepRecentTokens?: number | undefined;
|
|
326
|
+
} | undefined;
|
|
309
327
|
stopWhen?: {
|
|
310
328
|
maxSteps?: number | undefined;
|
|
311
329
|
} | undefined;
|
|
312
330
|
}, {
|
|
331
|
+
context?: {
|
|
332
|
+
windowTokens?: number | undefined;
|
|
333
|
+
reserveTokens?: number | undefined;
|
|
334
|
+
keepRecentTokens?: number | undefined;
|
|
335
|
+
} | undefined;
|
|
313
336
|
stopWhen?: {
|
|
314
337
|
maxSteps?: number | undefined;
|
|
315
338
|
} | undefined;
|
|
@@ -330,11 +353,34 @@ export declare const AgentCatalogItemSchema: z.ZodObject<{
|
|
|
330
353
|
}, {
|
|
331
354
|
maxSteps?: number | undefined;
|
|
332
355
|
}>>;
|
|
356
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
windowTokens: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
reserveTokens: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
keepRecentTokens: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
windowTokens?: number | undefined;
|
|
362
|
+
reserveTokens?: number | undefined;
|
|
363
|
+
keepRecentTokens?: number | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
windowTokens?: number | undefined;
|
|
366
|
+
reserveTokens?: number | undefined;
|
|
367
|
+
keepRecentTokens?: number | undefined;
|
|
368
|
+
}>>;
|
|
333
369
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
context?: {
|
|
371
|
+
windowTokens?: number | undefined;
|
|
372
|
+
reserveTokens?: number | undefined;
|
|
373
|
+
keepRecentTokens?: number | undefined;
|
|
374
|
+
} | undefined;
|
|
334
375
|
stopWhen?: {
|
|
335
376
|
maxSteps?: number | undefined;
|
|
336
377
|
} | undefined;
|
|
337
378
|
}, {
|
|
379
|
+
context?: {
|
|
380
|
+
windowTokens?: number | undefined;
|
|
381
|
+
reserveTokens?: number | undefined;
|
|
382
|
+
keepRecentTokens?: number | undefined;
|
|
383
|
+
} | undefined;
|
|
338
384
|
stopWhen?: {
|
|
339
385
|
maxSteps?: number | undefined;
|
|
340
386
|
} | undefined;
|
|
@@ -347,6 +393,11 @@ export declare const AgentCatalogItemSchema: z.ZodObject<{
|
|
|
347
393
|
modelId?: string | undefined;
|
|
348
394
|
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
349
395
|
loop?: {
|
|
396
|
+
context?: {
|
|
397
|
+
windowTokens?: number | undefined;
|
|
398
|
+
reserveTokens?: number | undefined;
|
|
399
|
+
keepRecentTokens?: number | undefined;
|
|
400
|
+
} | undefined;
|
|
350
401
|
stopWhen?: {
|
|
351
402
|
maxSteps?: number | undefined;
|
|
352
403
|
} | undefined;
|
|
@@ -359,6 +410,11 @@ export declare const AgentCatalogItemSchema: z.ZodObject<{
|
|
|
359
410
|
modelId?: string | undefined;
|
|
360
411
|
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
361
412
|
loop?: {
|
|
413
|
+
context?: {
|
|
414
|
+
windowTokens?: number | undefined;
|
|
415
|
+
reserveTokens?: number | undefined;
|
|
416
|
+
keepRecentTokens?: number | undefined;
|
|
417
|
+
} | undefined;
|
|
362
418
|
stopWhen?: {
|
|
363
419
|
maxSteps?: number | undefined;
|
|
364
420
|
} | undefined;
|
|
@@ -419,9 +475,9 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
419
475
|
createdAt: z.ZodString;
|
|
420
476
|
updatedAt: z.ZodString;
|
|
421
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
status: "active" | "archived";
|
|
422
479
|
projectId: string;
|
|
423
480
|
id: string;
|
|
424
|
-
status: "active" | "archived";
|
|
425
481
|
agentId: string;
|
|
426
482
|
ownerPrincipal: {
|
|
427
483
|
id: string;
|
|
@@ -434,9 +490,9 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
434
490
|
title?: string | undefined;
|
|
435
491
|
lastMessageAt?: string | undefined;
|
|
436
492
|
}, {
|
|
493
|
+
status: "active" | "archived";
|
|
437
494
|
projectId: string;
|
|
438
495
|
id: string;
|
|
439
|
-
status: "active" | "archived";
|
|
440
496
|
agentId: string;
|
|
441
497
|
ownerPrincipal: {
|
|
442
498
|
id: string;
|
|
@@ -472,9 +528,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
472
528
|
createdAt: z.ZodString;
|
|
473
529
|
updatedAt: z.ZodString;
|
|
474
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
|
+
status: "active" | "archived";
|
|
475
532
|
projectId: string;
|
|
476
533
|
id: string;
|
|
477
|
-
status: "active" | "archived";
|
|
478
534
|
agentId: string;
|
|
479
535
|
ownerPrincipal: {
|
|
480
536
|
id: string;
|
|
@@ -487,9 +543,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
487
543
|
title?: string | undefined;
|
|
488
544
|
lastMessageAt?: string | undefined;
|
|
489
545
|
}, {
|
|
546
|
+
status: "active" | "archived";
|
|
490
547
|
projectId: string;
|
|
491
548
|
id: string;
|
|
492
|
-
status: "active" | "archived";
|
|
493
549
|
agentId: string;
|
|
494
550
|
ownerPrincipal: {
|
|
495
551
|
id: string;
|
|
@@ -508,9 +564,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
508
564
|
hasMore: boolean;
|
|
509
565
|
total: number;
|
|
510
566
|
threads: {
|
|
567
|
+
status: "active" | "archived";
|
|
511
568
|
projectId: string;
|
|
512
569
|
id: string;
|
|
513
|
-
status: "active" | "archived";
|
|
514
570
|
agentId: string;
|
|
515
571
|
ownerPrincipal: {
|
|
516
572
|
id: string;
|
|
@@ -527,9 +583,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
527
583
|
hasMore: boolean;
|
|
528
584
|
total: number;
|
|
529
585
|
threads: {
|
|
586
|
+
status: "active" | "archived";
|
|
530
587
|
projectId: string;
|
|
531
588
|
id: string;
|
|
532
|
-
status: "active" | "archived";
|
|
533
589
|
agentId: string;
|
|
534
590
|
ownerPrincipal: {
|
|
535
591
|
id: string;
|
|
@@ -566,9 +622,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
566
622
|
createdAt: z.ZodString;
|
|
567
623
|
updatedAt: z.ZodString;
|
|
568
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
status: "active" | "archived";
|
|
569
626
|
projectId: string;
|
|
570
627
|
id: string;
|
|
571
|
-
status: "active" | "archived";
|
|
572
628
|
agentId: string;
|
|
573
629
|
ownerPrincipal: {
|
|
574
630
|
id: string;
|
|
@@ -581,9 +637,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
581
637
|
title?: string | undefined;
|
|
582
638
|
lastMessageAt?: string | undefined;
|
|
583
639
|
}, {
|
|
640
|
+
status: "active" | "archived";
|
|
584
641
|
projectId: string;
|
|
585
642
|
id: string;
|
|
586
|
-
status: "active" | "archived";
|
|
587
643
|
agentId: string;
|
|
588
644
|
ownerPrincipal: {
|
|
589
645
|
id: string;
|
|
@@ -598,9 +654,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
598
654
|
}>;
|
|
599
655
|
}, "strip", z.ZodTypeAny, {
|
|
600
656
|
thread: {
|
|
657
|
+
status: "active" | "archived";
|
|
601
658
|
projectId: string;
|
|
602
659
|
id: string;
|
|
603
|
-
status: "active" | "archived";
|
|
604
660
|
agentId: string;
|
|
605
661
|
ownerPrincipal: {
|
|
606
662
|
id: string;
|
|
@@ -615,9 +671,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
615
671
|
};
|
|
616
672
|
}, {
|
|
617
673
|
thread: {
|
|
674
|
+
status: "active" | "archived";
|
|
618
675
|
projectId: string;
|
|
619
676
|
id: string;
|
|
620
|
-
status: "active" | "archived";
|
|
621
677
|
agentId: string;
|
|
622
678
|
ownerPrincipal: {
|
|
623
679
|
id: string;
|
|
@@ -870,6 +926,19 @@ export declare const AgentRunDiagnosticSchema: z.ZodObject<{
|
|
|
870
926
|
scope: "output";
|
|
871
927
|
path?: string | undefined;
|
|
872
928
|
}>;
|
|
929
|
+
export declare const AgentMessageCompactionSchema: z.ZodObject<{
|
|
930
|
+
checkpointId: z.ZodString;
|
|
931
|
+
summary: z.ZodString;
|
|
932
|
+
createdAt: z.ZodString;
|
|
933
|
+
}, "strip", z.ZodTypeAny, {
|
|
934
|
+
summary: string;
|
|
935
|
+
createdAt: string;
|
|
936
|
+
checkpointId: string;
|
|
937
|
+
}, {
|
|
938
|
+
summary: string;
|
|
939
|
+
createdAt: string;
|
|
940
|
+
checkpointId: string;
|
|
941
|
+
}>;
|
|
873
942
|
export declare const AgentMessageSchema: z.ZodObject<{
|
|
874
943
|
id: z.ZodString;
|
|
875
944
|
projectId: z.ZodString;
|
|
@@ -1126,6 +1195,20 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1126
1195
|
scope: "output";
|
|
1127
1196
|
path?: string | undefined;
|
|
1128
1197
|
}>, "many">;
|
|
1198
|
+
/** A durable context summary created before this response's model call. */
|
|
1199
|
+
compaction: z.ZodOptional<z.ZodObject<{
|
|
1200
|
+
checkpointId: z.ZodString;
|
|
1201
|
+
summary: z.ZodString;
|
|
1202
|
+
createdAt: z.ZodString;
|
|
1203
|
+
}, "strip", z.ZodTypeAny, {
|
|
1204
|
+
summary: string;
|
|
1205
|
+
createdAt: string;
|
|
1206
|
+
checkpointId: string;
|
|
1207
|
+
}, {
|
|
1208
|
+
summary: string;
|
|
1209
|
+
createdAt: string;
|
|
1210
|
+
checkpointId: string;
|
|
1211
|
+
}>>;
|
|
1129
1212
|
metadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
1130
1213
|
contentVersion: z.ZodNumber;
|
|
1131
1214
|
createdAt: z.ZodString;
|
|
@@ -1209,6 +1292,11 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1209
1292
|
id: string;
|
|
1210
1293
|
type: "user" | "serviceAccount" | "system";
|
|
1211
1294
|
} | undefined;
|
|
1295
|
+
compaction?: {
|
|
1296
|
+
summary: string;
|
|
1297
|
+
createdAt: string;
|
|
1298
|
+
checkpointId: string;
|
|
1299
|
+
} | undefined;
|
|
1212
1300
|
metadata?: import("./common").JsonValue | undefined;
|
|
1213
1301
|
}, {
|
|
1214
1302
|
projectId: string;
|
|
@@ -1289,6 +1377,11 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1289
1377
|
id: string;
|
|
1290
1378
|
type: "user" | "serviceAccount" | "system";
|
|
1291
1379
|
} | undefined;
|
|
1380
|
+
compaction?: {
|
|
1381
|
+
summary: string;
|
|
1382
|
+
createdAt: string;
|
|
1383
|
+
checkpointId: string;
|
|
1384
|
+
} | undefined;
|
|
1292
1385
|
metadata?: import("./common").JsonValue | undefined;
|
|
1293
1386
|
}>;
|
|
1294
1387
|
export declare const AgentMessagesQuerySchema: z.ZodObject<{
|
|
@@ -1564,6 +1657,20 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1564
1657
|
scope: "output";
|
|
1565
1658
|
path?: string | undefined;
|
|
1566
1659
|
}>, "many">;
|
|
1660
|
+
/** A durable context summary created before this response's model call. */
|
|
1661
|
+
compaction: z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
checkpointId: z.ZodString;
|
|
1663
|
+
summary: z.ZodString;
|
|
1664
|
+
createdAt: z.ZodString;
|
|
1665
|
+
}, "strip", z.ZodTypeAny, {
|
|
1666
|
+
summary: string;
|
|
1667
|
+
createdAt: string;
|
|
1668
|
+
checkpointId: string;
|
|
1669
|
+
}, {
|
|
1670
|
+
summary: string;
|
|
1671
|
+
createdAt: string;
|
|
1672
|
+
checkpointId: string;
|
|
1673
|
+
}>>;
|
|
1567
1674
|
metadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
1568
1675
|
contentVersion: z.ZodNumber;
|
|
1569
1676
|
createdAt: z.ZodString;
|
|
@@ -1647,6 +1754,11 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1647
1754
|
id: string;
|
|
1648
1755
|
type: "user" | "serviceAccount" | "system";
|
|
1649
1756
|
} | undefined;
|
|
1757
|
+
compaction?: {
|
|
1758
|
+
summary: string;
|
|
1759
|
+
createdAt: string;
|
|
1760
|
+
checkpointId: string;
|
|
1761
|
+
} | undefined;
|
|
1650
1762
|
metadata?: import("./common").JsonValue | undefined;
|
|
1651
1763
|
}, {
|
|
1652
1764
|
projectId: string;
|
|
@@ -1727,6 +1839,11 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1727
1839
|
id: string;
|
|
1728
1840
|
type: "user" | "serviceAccount" | "system";
|
|
1729
1841
|
} | undefined;
|
|
1842
|
+
compaction?: {
|
|
1843
|
+
summary: string;
|
|
1844
|
+
createdAt: string;
|
|
1845
|
+
checkpointId: string;
|
|
1846
|
+
} | undefined;
|
|
1730
1847
|
metadata?: import("./common").JsonValue | undefined;
|
|
1731
1848
|
}>, "many">;
|
|
1732
1849
|
hasMore: z.ZodBoolean;
|
|
@@ -1813,6 +1930,11 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1813
1930
|
id: string;
|
|
1814
1931
|
type: "user" | "serviceAccount" | "system";
|
|
1815
1932
|
} | undefined;
|
|
1933
|
+
compaction?: {
|
|
1934
|
+
summary: string;
|
|
1935
|
+
createdAt: string;
|
|
1936
|
+
checkpointId: string;
|
|
1937
|
+
} | undefined;
|
|
1816
1938
|
metadata?: import("./common").JsonValue | undefined;
|
|
1817
1939
|
}[];
|
|
1818
1940
|
}, {
|
|
@@ -1897,6 +2019,11 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1897
2019
|
id: string;
|
|
1898
2020
|
type: "user" | "serviceAccount" | "system";
|
|
1899
2021
|
} | undefined;
|
|
2022
|
+
compaction?: {
|
|
2023
|
+
summary: string;
|
|
2024
|
+
createdAt: string;
|
|
2025
|
+
checkpointId: string;
|
|
2026
|
+
} | undefined;
|
|
1900
2027
|
metadata?: import("./common").JsonValue | undefined;
|
|
1901
2028
|
}[];
|
|
1902
2029
|
}>;
|
|
@@ -2064,7 +2191,7 @@ export declare const CancelAgentRunBodySchema: z.ZodObject<{
|
|
|
2064
2191
|
runId: string;
|
|
2065
2192
|
}>;
|
|
2066
2193
|
export declare const AgentRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2067
|
-
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>;
|
|
2194
|
+
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>;
|
|
2068
2195
|
export declare const AgentRunSchema: z.ZodObject<{
|
|
2069
2196
|
id: z.ZodString;
|
|
2070
2197
|
projectId: z.ZodString;
|
|
@@ -2083,7 +2210,7 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2083
2210
|
}>>;
|
|
2084
2211
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2085
2212
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2086
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2213
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2087
2214
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2088
2215
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2089
2216
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2115,6 +2242,37 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2115
2242
|
textOutputTokens?: number | undefined;
|
|
2116
2243
|
reasoningOutputTokens?: number | undefined;
|
|
2117
2244
|
}>>;
|
|
2245
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2246
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2247
|
+
currency: z.ZodString;
|
|
2248
|
+
amountNanos: z.ZodString;
|
|
2249
|
+
}, "strip", z.ZodTypeAny, {
|
|
2250
|
+
currency: string;
|
|
2251
|
+
amountNanos: string;
|
|
2252
|
+
}, {
|
|
2253
|
+
currency: string;
|
|
2254
|
+
amountNanos: string;
|
|
2255
|
+
}>, "many">;
|
|
2256
|
+
ratedCallCount: z.ZodNumber;
|
|
2257
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2258
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2259
|
+
}, "strip", z.ZodTypeAny, {
|
|
2260
|
+
amounts: {
|
|
2261
|
+
currency: string;
|
|
2262
|
+
amountNanos: string;
|
|
2263
|
+
}[];
|
|
2264
|
+
ratedCallCount: number;
|
|
2265
|
+
unpriceableCallCount: number;
|
|
2266
|
+
unvaluedCallCount: number;
|
|
2267
|
+
}, {
|
|
2268
|
+
amounts: {
|
|
2269
|
+
currency: string;
|
|
2270
|
+
amountNanos: string;
|
|
2271
|
+
}[];
|
|
2272
|
+
ratedCallCount: number;
|
|
2273
|
+
unpriceableCallCount: number;
|
|
2274
|
+
unvaluedCallCount: number;
|
|
2275
|
+
}>>;
|
|
2118
2276
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2119
2277
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2120
2278
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2141,24 +2299,19 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2141
2299
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2142
2300
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2143
2301
|
}, "strip", z.ZodTypeAny, {
|
|
2302
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2144
2303
|
projectId: string;
|
|
2145
2304
|
id: string;
|
|
2146
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2147
2305
|
agentId: string;
|
|
2306
|
+
attempt: number;
|
|
2148
2307
|
threadId: string;
|
|
2149
2308
|
createdAt: string;
|
|
2150
2309
|
triggerMessageId: string;
|
|
2151
|
-
attempt: number;
|
|
2152
2310
|
streamId: string;
|
|
2153
2311
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2154
2312
|
startedAt?: string | undefined;
|
|
2155
2313
|
completedAt?: string | undefined;
|
|
2156
2314
|
modelId?: string | undefined;
|
|
2157
|
-
requestedBy?: {
|
|
2158
|
-
id: string;
|
|
2159
|
-
type: "user" | "serviceAccount";
|
|
2160
|
-
} | undefined;
|
|
2161
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2162
2315
|
usage?: {
|
|
2163
2316
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2164
2317
|
inputTokens?: number | undefined;
|
|
@@ -2170,6 +2323,20 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2170
2323
|
textOutputTokens?: number | undefined;
|
|
2171
2324
|
reasoningOutputTokens?: number | undefined;
|
|
2172
2325
|
} | undefined;
|
|
2326
|
+
cost?: {
|
|
2327
|
+
amounts: {
|
|
2328
|
+
currency: string;
|
|
2329
|
+
amountNanos: string;
|
|
2330
|
+
}[];
|
|
2331
|
+
ratedCallCount: number;
|
|
2332
|
+
unpriceableCallCount: number;
|
|
2333
|
+
unvaluedCallCount: number;
|
|
2334
|
+
} | undefined;
|
|
2335
|
+
requestedBy?: {
|
|
2336
|
+
id: string;
|
|
2337
|
+
type: "user" | "serviceAccount";
|
|
2338
|
+
} | undefined;
|
|
2339
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2173
2340
|
diagnostics?: {
|
|
2174
2341
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2175
2342
|
message: string;
|
|
@@ -2178,24 +2345,19 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2178
2345
|
path?: string | undefined;
|
|
2179
2346
|
}[] | undefined;
|
|
2180
2347
|
}, {
|
|
2348
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2181
2349
|
projectId: string;
|
|
2182
2350
|
id: string;
|
|
2183
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2184
2351
|
agentId: string;
|
|
2352
|
+
attempt: number;
|
|
2185
2353
|
threadId: string;
|
|
2186
2354
|
createdAt: string;
|
|
2187
2355
|
triggerMessageId: string;
|
|
2188
|
-
attempt: number;
|
|
2189
2356
|
streamId: string;
|
|
2190
2357
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2191
2358
|
startedAt?: string | undefined;
|
|
2192
2359
|
completedAt?: string | undefined;
|
|
2193
2360
|
modelId?: string | undefined;
|
|
2194
|
-
requestedBy?: {
|
|
2195
|
-
id: string;
|
|
2196
|
-
type: "user" | "serviceAccount";
|
|
2197
|
-
} | undefined;
|
|
2198
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2199
2361
|
usage?: {
|
|
2200
2362
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2201
2363
|
inputTokens?: number | undefined;
|
|
@@ -2207,6 +2369,20 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2207
2369
|
textOutputTokens?: number | undefined;
|
|
2208
2370
|
reasoningOutputTokens?: number | undefined;
|
|
2209
2371
|
} | undefined;
|
|
2372
|
+
cost?: {
|
|
2373
|
+
amounts: {
|
|
2374
|
+
currency: string;
|
|
2375
|
+
amountNanos: string;
|
|
2376
|
+
}[];
|
|
2377
|
+
ratedCallCount: number;
|
|
2378
|
+
unpriceableCallCount: number;
|
|
2379
|
+
unvaluedCallCount: number;
|
|
2380
|
+
} | undefined;
|
|
2381
|
+
requestedBy?: {
|
|
2382
|
+
id: string;
|
|
2383
|
+
type: "user" | "serviceAccount";
|
|
2384
|
+
} | undefined;
|
|
2385
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2210
2386
|
diagnostics?: {
|
|
2211
2387
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2212
2388
|
message: string;
|
|
@@ -2234,7 +2410,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2234
2410
|
}>>;
|
|
2235
2411
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2236
2412
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2237
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2413
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2238
2414
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2239
2415
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2240
2416
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2266,6 +2442,37 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2266
2442
|
textOutputTokens?: number | undefined;
|
|
2267
2443
|
reasoningOutputTokens?: number | undefined;
|
|
2268
2444
|
}>>;
|
|
2445
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2446
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2447
|
+
currency: z.ZodString;
|
|
2448
|
+
amountNanos: z.ZodString;
|
|
2449
|
+
}, "strip", z.ZodTypeAny, {
|
|
2450
|
+
currency: string;
|
|
2451
|
+
amountNanos: string;
|
|
2452
|
+
}, {
|
|
2453
|
+
currency: string;
|
|
2454
|
+
amountNanos: string;
|
|
2455
|
+
}>, "many">;
|
|
2456
|
+
ratedCallCount: z.ZodNumber;
|
|
2457
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2458
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2459
|
+
}, "strip", z.ZodTypeAny, {
|
|
2460
|
+
amounts: {
|
|
2461
|
+
currency: string;
|
|
2462
|
+
amountNanos: string;
|
|
2463
|
+
}[];
|
|
2464
|
+
ratedCallCount: number;
|
|
2465
|
+
unpriceableCallCount: number;
|
|
2466
|
+
unvaluedCallCount: number;
|
|
2467
|
+
}, {
|
|
2468
|
+
amounts: {
|
|
2469
|
+
currency: string;
|
|
2470
|
+
amountNanos: string;
|
|
2471
|
+
}[];
|
|
2472
|
+
ratedCallCount: number;
|
|
2473
|
+
unpriceableCallCount: number;
|
|
2474
|
+
unvaluedCallCount: number;
|
|
2475
|
+
}>>;
|
|
2269
2476
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2270
2477
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2271
2478
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2292,24 +2499,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2292
2499
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2293
2500
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2294
2501
|
}, "strip", z.ZodTypeAny, {
|
|
2502
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2295
2503
|
projectId: string;
|
|
2296
2504
|
id: string;
|
|
2297
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2298
2505
|
agentId: string;
|
|
2506
|
+
attempt: number;
|
|
2299
2507
|
threadId: string;
|
|
2300
2508
|
createdAt: string;
|
|
2301
2509
|
triggerMessageId: string;
|
|
2302
|
-
attempt: number;
|
|
2303
2510
|
streamId: string;
|
|
2304
2511
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2305
2512
|
startedAt?: string | undefined;
|
|
2306
2513
|
completedAt?: string | undefined;
|
|
2307
2514
|
modelId?: string | undefined;
|
|
2308
|
-
requestedBy?: {
|
|
2309
|
-
id: string;
|
|
2310
|
-
type: "user" | "serviceAccount";
|
|
2311
|
-
} | undefined;
|
|
2312
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2313
2515
|
usage?: {
|
|
2314
2516
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2315
2517
|
inputTokens?: number | undefined;
|
|
@@ -2321,6 +2523,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2321
2523
|
textOutputTokens?: number | undefined;
|
|
2322
2524
|
reasoningOutputTokens?: number | undefined;
|
|
2323
2525
|
} | undefined;
|
|
2526
|
+
cost?: {
|
|
2527
|
+
amounts: {
|
|
2528
|
+
currency: string;
|
|
2529
|
+
amountNanos: string;
|
|
2530
|
+
}[];
|
|
2531
|
+
ratedCallCount: number;
|
|
2532
|
+
unpriceableCallCount: number;
|
|
2533
|
+
unvaluedCallCount: number;
|
|
2534
|
+
} | undefined;
|
|
2535
|
+
requestedBy?: {
|
|
2536
|
+
id: string;
|
|
2537
|
+
type: "user" | "serviceAccount";
|
|
2538
|
+
} | undefined;
|
|
2539
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2324
2540
|
diagnostics?: {
|
|
2325
2541
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2326
2542
|
message: string;
|
|
@@ -2329,24 +2545,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2329
2545
|
path?: string | undefined;
|
|
2330
2546
|
}[] | undefined;
|
|
2331
2547
|
}, {
|
|
2548
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2332
2549
|
projectId: string;
|
|
2333
2550
|
id: string;
|
|
2334
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2335
2551
|
agentId: string;
|
|
2552
|
+
attempt: number;
|
|
2336
2553
|
threadId: string;
|
|
2337
2554
|
createdAt: string;
|
|
2338
2555
|
triggerMessageId: string;
|
|
2339
|
-
attempt: number;
|
|
2340
2556
|
streamId: string;
|
|
2341
2557
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2342
2558
|
startedAt?: string | undefined;
|
|
2343
2559
|
completedAt?: string | undefined;
|
|
2344
2560
|
modelId?: string | undefined;
|
|
2345
|
-
requestedBy?: {
|
|
2346
|
-
id: string;
|
|
2347
|
-
type: "user" | "serviceAccount";
|
|
2348
|
-
} | undefined;
|
|
2349
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2350
2561
|
usage?: {
|
|
2351
2562
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2352
2563
|
inputTokens?: number | undefined;
|
|
@@ -2358,6 +2569,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2358
2569
|
textOutputTokens?: number | undefined;
|
|
2359
2570
|
reasoningOutputTokens?: number | undefined;
|
|
2360
2571
|
} | undefined;
|
|
2572
|
+
cost?: {
|
|
2573
|
+
amounts: {
|
|
2574
|
+
currency: string;
|
|
2575
|
+
amountNanos: string;
|
|
2576
|
+
}[];
|
|
2577
|
+
ratedCallCount: number;
|
|
2578
|
+
unpriceableCallCount: number;
|
|
2579
|
+
unvaluedCallCount: number;
|
|
2580
|
+
} | undefined;
|
|
2581
|
+
requestedBy?: {
|
|
2582
|
+
id: string;
|
|
2583
|
+
type: "user" | "serviceAccount";
|
|
2584
|
+
} | undefined;
|
|
2585
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2361
2586
|
diagnostics?: {
|
|
2362
2587
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2363
2588
|
message: string;
|
|
@@ -2368,24 +2593,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2368
2593
|
}>;
|
|
2369
2594
|
}, "strip", z.ZodTypeAny, {
|
|
2370
2595
|
run: {
|
|
2596
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2371
2597
|
projectId: string;
|
|
2372
2598
|
id: string;
|
|
2373
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2374
2599
|
agentId: string;
|
|
2600
|
+
attempt: number;
|
|
2375
2601
|
threadId: string;
|
|
2376
2602
|
createdAt: string;
|
|
2377
2603
|
triggerMessageId: string;
|
|
2378
|
-
attempt: number;
|
|
2379
2604
|
streamId: string;
|
|
2380
2605
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2381
2606
|
startedAt?: string | undefined;
|
|
2382
2607
|
completedAt?: string | undefined;
|
|
2383
2608
|
modelId?: string | undefined;
|
|
2384
|
-
requestedBy?: {
|
|
2385
|
-
id: string;
|
|
2386
|
-
type: "user" | "serviceAccount";
|
|
2387
|
-
} | undefined;
|
|
2388
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2389
2609
|
usage?: {
|
|
2390
2610
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2391
2611
|
inputTokens?: number | undefined;
|
|
@@ -2397,6 +2617,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2397
2617
|
textOutputTokens?: number | undefined;
|
|
2398
2618
|
reasoningOutputTokens?: number | undefined;
|
|
2399
2619
|
} | undefined;
|
|
2620
|
+
cost?: {
|
|
2621
|
+
amounts: {
|
|
2622
|
+
currency: string;
|
|
2623
|
+
amountNanos: string;
|
|
2624
|
+
}[];
|
|
2625
|
+
ratedCallCount: number;
|
|
2626
|
+
unpriceableCallCount: number;
|
|
2627
|
+
unvaluedCallCount: number;
|
|
2628
|
+
} | undefined;
|
|
2629
|
+
requestedBy?: {
|
|
2630
|
+
id: string;
|
|
2631
|
+
type: "user" | "serviceAccount";
|
|
2632
|
+
} | undefined;
|
|
2633
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2400
2634
|
diagnostics?: {
|
|
2401
2635
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2402
2636
|
message: string;
|
|
@@ -2407,24 +2641,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2407
2641
|
};
|
|
2408
2642
|
}, {
|
|
2409
2643
|
run: {
|
|
2644
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2410
2645
|
projectId: string;
|
|
2411
2646
|
id: string;
|
|
2412
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2413
2647
|
agentId: string;
|
|
2648
|
+
attempt: number;
|
|
2414
2649
|
threadId: string;
|
|
2415
2650
|
createdAt: string;
|
|
2416
2651
|
triggerMessageId: string;
|
|
2417
|
-
attempt: number;
|
|
2418
2652
|
streamId: string;
|
|
2419
2653
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2420
2654
|
startedAt?: string | undefined;
|
|
2421
2655
|
completedAt?: string | undefined;
|
|
2422
2656
|
modelId?: string | undefined;
|
|
2423
|
-
requestedBy?: {
|
|
2424
|
-
id: string;
|
|
2425
|
-
type: "user" | "serviceAccount";
|
|
2426
|
-
} | undefined;
|
|
2427
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2428
2657
|
usage?: {
|
|
2429
2658
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2430
2659
|
inputTokens?: number | undefined;
|
|
@@ -2436,6 +2665,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2436
2665
|
textOutputTokens?: number | undefined;
|
|
2437
2666
|
reasoningOutputTokens?: number | undefined;
|
|
2438
2667
|
} | undefined;
|
|
2668
|
+
cost?: {
|
|
2669
|
+
amounts: {
|
|
2670
|
+
currency: string;
|
|
2671
|
+
amountNanos: string;
|
|
2672
|
+
}[];
|
|
2673
|
+
ratedCallCount: number;
|
|
2674
|
+
unpriceableCallCount: number;
|
|
2675
|
+
unvaluedCallCount: number;
|
|
2676
|
+
} | undefined;
|
|
2677
|
+
requestedBy?: {
|
|
2678
|
+
id: string;
|
|
2679
|
+
type: "user" | "serviceAccount";
|
|
2680
|
+
} | undefined;
|
|
2681
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2439
2682
|
diagnostics?: {
|
|
2440
2683
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2441
2684
|
message: string;
|
|
@@ -2464,7 +2707,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2464
2707
|
}>>;
|
|
2465
2708
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2466
2709
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2467
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2710
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2468
2711
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2469
2712
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2470
2713
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2496,6 +2739,37 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2496
2739
|
textOutputTokens?: number | undefined;
|
|
2497
2740
|
reasoningOutputTokens?: number | undefined;
|
|
2498
2741
|
}>>;
|
|
2742
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2743
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2744
|
+
currency: z.ZodString;
|
|
2745
|
+
amountNanos: z.ZodString;
|
|
2746
|
+
}, "strip", z.ZodTypeAny, {
|
|
2747
|
+
currency: string;
|
|
2748
|
+
amountNanos: string;
|
|
2749
|
+
}, {
|
|
2750
|
+
currency: string;
|
|
2751
|
+
amountNanos: string;
|
|
2752
|
+
}>, "many">;
|
|
2753
|
+
ratedCallCount: z.ZodNumber;
|
|
2754
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2755
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2756
|
+
}, "strip", z.ZodTypeAny, {
|
|
2757
|
+
amounts: {
|
|
2758
|
+
currency: string;
|
|
2759
|
+
amountNanos: string;
|
|
2760
|
+
}[];
|
|
2761
|
+
ratedCallCount: number;
|
|
2762
|
+
unpriceableCallCount: number;
|
|
2763
|
+
unvaluedCallCount: number;
|
|
2764
|
+
}, {
|
|
2765
|
+
amounts: {
|
|
2766
|
+
currency: string;
|
|
2767
|
+
amountNanos: string;
|
|
2768
|
+
}[];
|
|
2769
|
+
ratedCallCount: number;
|
|
2770
|
+
unpriceableCallCount: number;
|
|
2771
|
+
unvaluedCallCount: number;
|
|
2772
|
+
}>>;
|
|
2499
2773
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2500
2774
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2501
2775
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2522,24 +2796,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2522
2796
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2523
2797
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2524
2798
|
}, "strip", z.ZodTypeAny, {
|
|
2799
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2525
2800
|
projectId: string;
|
|
2526
2801
|
id: string;
|
|
2527
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2528
2802
|
agentId: string;
|
|
2803
|
+
attempt: number;
|
|
2529
2804
|
threadId: string;
|
|
2530
2805
|
createdAt: string;
|
|
2531
2806
|
triggerMessageId: string;
|
|
2532
|
-
attempt: number;
|
|
2533
2807
|
streamId: string;
|
|
2534
2808
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2535
2809
|
startedAt?: string | undefined;
|
|
2536
2810
|
completedAt?: string | undefined;
|
|
2537
2811
|
modelId?: string | undefined;
|
|
2538
|
-
requestedBy?: {
|
|
2539
|
-
id: string;
|
|
2540
|
-
type: "user" | "serviceAccount";
|
|
2541
|
-
} | undefined;
|
|
2542
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2543
2812
|
usage?: {
|
|
2544
2813
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2545
2814
|
inputTokens?: number | undefined;
|
|
@@ -2551,6 +2820,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2551
2820
|
textOutputTokens?: number | undefined;
|
|
2552
2821
|
reasoningOutputTokens?: number | undefined;
|
|
2553
2822
|
} | undefined;
|
|
2823
|
+
cost?: {
|
|
2824
|
+
amounts: {
|
|
2825
|
+
currency: string;
|
|
2826
|
+
amountNanos: string;
|
|
2827
|
+
}[];
|
|
2828
|
+
ratedCallCount: number;
|
|
2829
|
+
unpriceableCallCount: number;
|
|
2830
|
+
unvaluedCallCount: number;
|
|
2831
|
+
} | undefined;
|
|
2832
|
+
requestedBy?: {
|
|
2833
|
+
id: string;
|
|
2834
|
+
type: "user" | "serviceAccount";
|
|
2835
|
+
} | undefined;
|
|
2836
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2554
2837
|
diagnostics?: {
|
|
2555
2838
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2556
2839
|
message: string;
|
|
@@ -2559,24 +2842,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2559
2842
|
path?: string | undefined;
|
|
2560
2843
|
}[] | undefined;
|
|
2561
2844
|
}, {
|
|
2845
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2562
2846
|
projectId: string;
|
|
2563
2847
|
id: string;
|
|
2564
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2565
2848
|
agentId: string;
|
|
2849
|
+
attempt: number;
|
|
2566
2850
|
threadId: string;
|
|
2567
2851
|
createdAt: string;
|
|
2568
2852
|
triggerMessageId: string;
|
|
2569
|
-
attempt: number;
|
|
2570
2853
|
streamId: string;
|
|
2571
2854
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2572
2855
|
startedAt?: string | undefined;
|
|
2573
2856
|
completedAt?: string | undefined;
|
|
2574
2857
|
modelId?: string | undefined;
|
|
2575
|
-
requestedBy?: {
|
|
2576
|
-
id: string;
|
|
2577
|
-
type: "user" | "serviceAccount";
|
|
2578
|
-
} | undefined;
|
|
2579
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2580
2858
|
usage?: {
|
|
2581
2859
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2582
2860
|
inputTokens?: number | undefined;
|
|
@@ -2588,6 +2866,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2588
2866
|
textOutputTokens?: number | undefined;
|
|
2589
2867
|
reasoningOutputTokens?: number | undefined;
|
|
2590
2868
|
} | undefined;
|
|
2869
|
+
cost?: {
|
|
2870
|
+
amounts: {
|
|
2871
|
+
currency: string;
|
|
2872
|
+
amountNanos: string;
|
|
2873
|
+
}[];
|
|
2874
|
+
ratedCallCount: number;
|
|
2875
|
+
unpriceableCallCount: number;
|
|
2876
|
+
unvaluedCallCount: number;
|
|
2877
|
+
} | undefined;
|
|
2878
|
+
requestedBy?: {
|
|
2879
|
+
id: string;
|
|
2880
|
+
type: "user" | "serviceAccount";
|
|
2881
|
+
} | undefined;
|
|
2882
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2591
2883
|
diagnostics?: {
|
|
2592
2884
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2593
2885
|
message: string;
|
|
@@ -2598,24 +2890,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2598
2890
|
}>;
|
|
2599
2891
|
}, "strip", z.ZodTypeAny, {
|
|
2600
2892
|
run: {
|
|
2893
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2601
2894
|
projectId: string;
|
|
2602
2895
|
id: string;
|
|
2603
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2604
2896
|
agentId: string;
|
|
2897
|
+
attempt: number;
|
|
2605
2898
|
threadId: string;
|
|
2606
2899
|
createdAt: string;
|
|
2607
2900
|
triggerMessageId: string;
|
|
2608
|
-
attempt: number;
|
|
2609
2901
|
streamId: string;
|
|
2610
2902
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2611
2903
|
startedAt?: string | undefined;
|
|
2612
2904
|
completedAt?: string | undefined;
|
|
2613
2905
|
modelId?: string | undefined;
|
|
2614
|
-
requestedBy?: {
|
|
2615
|
-
id: string;
|
|
2616
|
-
type: "user" | "serviceAccount";
|
|
2617
|
-
} | undefined;
|
|
2618
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2619
2906
|
usage?: {
|
|
2620
2907
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2621
2908
|
inputTokens?: number | undefined;
|
|
@@ -2627,6 +2914,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2627
2914
|
textOutputTokens?: number | undefined;
|
|
2628
2915
|
reasoningOutputTokens?: number | undefined;
|
|
2629
2916
|
} | undefined;
|
|
2917
|
+
cost?: {
|
|
2918
|
+
amounts: {
|
|
2919
|
+
currency: string;
|
|
2920
|
+
amountNanos: string;
|
|
2921
|
+
}[];
|
|
2922
|
+
ratedCallCount: number;
|
|
2923
|
+
unpriceableCallCount: number;
|
|
2924
|
+
unvaluedCallCount: number;
|
|
2925
|
+
} | undefined;
|
|
2926
|
+
requestedBy?: {
|
|
2927
|
+
id: string;
|
|
2928
|
+
type: "user" | "serviceAccount";
|
|
2929
|
+
} | undefined;
|
|
2930
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2630
2931
|
diagnostics?: {
|
|
2631
2932
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2632
2933
|
message: string;
|
|
@@ -2637,24 +2938,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2637
2938
|
};
|
|
2638
2939
|
}, {
|
|
2639
2940
|
run: {
|
|
2941
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2640
2942
|
projectId: string;
|
|
2641
2943
|
id: string;
|
|
2642
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2643
2944
|
agentId: string;
|
|
2945
|
+
attempt: number;
|
|
2644
2946
|
threadId: string;
|
|
2645
2947
|
createdAt: string;
|
|
2646
2948
|
triggerMessageId: string;
|
|
2647
|
-
attempt: number;
|
|
2648
2949
|
streamId: string;
|
|
2649
2950
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2650
2951
|
startedAt?: string | undefined;
|
|
2651
2952
|
completedAt?: string | undefined;
|
|
2652
2953
|
modelId?: string | undefined;
|
|
2653
|
-
requestedBy?: {
|
|
2654
|
-
id: string;
|
|
2655
|
-
type: "user" | "serviceAccount";
|
|
2656
|
-
} | undefined;
|
|
2657
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2658
2954
|
usage?: {
|
|
2659
2955
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2660
2956
|
inputTokens?: number | undefined;
|
|
@@ -2666,6 +2962,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2666
2962
|
textOutputTokens?: number | undefined;
|
|
2667
2963
|
reasoningOutputTokens?: number | undefined;
|
|
2668
2964
|
} | undefined;
|
|
2965
|
+
cost?: {
|
|
2966
|
+
amounts: {
|
|
2967
|
+
currency: string;
|
|
2968
|
+
amountNanos: string;
|
|
2969
|
+
}[];
|
|
2970
|
+
ratedCallCount: number;
|
|
2971
|
+
unpriceableCallCount: number;
|
|
2972
|
+
unvaluedCallCount: number;
|
|
2973
|
+
} | undefined;
|
|
2974
|
+
requestedBy?: {
|
|
2975
|
+
id: string;
|
|
2976
|
+
type: "user" | "serviceAccount";
|
|
2977
|
+
} | undefined;
|
|
2978
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2669
2979
|
diagnostics?: {
|
|
2670
2980
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2671
2981
|
message: string;
|
|
@@ -2694,7 +3004,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2694
3004
|
}>>;
|
|
2695
3005
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2696
3006
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2697
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
3007
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2698
3008
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2699
3009
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2700
3010
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2726,6 +3036,37 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2726
3036
|
textOutputTokens?: number | undefined;
|
|
2727
3037
|
reasoningOutputTokens?: number | undefined;
|
|
2728
3038
|
}>>;
|
|
3039
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3040
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
3041
|
+
currency: z.ZodString;
|
|
3042
|
+
amountNanos: z.ZodString;
|
|
3043
|
+
}, "strip", z.ZodTypeAny, {
|
|
3044
|
+
currency: string;
|
|
3045
|
+
amountNanos: string;
|
|
3046
|
+
}, {
|
|
3047
|
+
currency: string;
|
|
3048
|
+
amountNanos: string;
|
|
3049
|
+
}>, "many">;
|
|
3050
|
+
ratedCallCount: z.ZodNumber;
|
|
3051
|
+
unpriceableCallCount: z.ZodNumber;
|
|
3052
|
+
unvaluedCallCount: z.ZodNumber;
|
|
3053
|
+
}, "strip", z.ZodTypeAny, {
|
|
3054
|
+
amounts: {
|
|
3055
|
+
currency: string;
|
|
3056
|
+
amountNanos: string;
|
|
3057
|
+
}[];
|
|
3058
|
+
ratedCallCount: number;
|
|
3059
|
+
unpriceableCallCount: number;
|
|
3060
|
+
unvaluedCallCount: number;
|
|
3061
|
+
}, {
|
|
3062
|
+
amounts: {
|
|
3063
|
+
currency: string;
|
|
3064
|
+
amountNanos: string;
|
|
3065
|
+
}[];
|
|
3066
|
+
ratedCallCount: number;
|
|
3067
|
+
unpriceableCallCount: number;
|
|
3068
|
+
unvaluedCallCount: number;
|
|
3069
|
+
}>>;
|
|
2729
3070
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2730
3071
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2731
3072
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2752,24 +3093,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2752
3093
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2753
3094
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2754
3095
|
}, "strip", z.ZodTypeAny, {
|
|
3096
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2755
3097
|
projectId: string;
|
|
2756
3098
|
id: string;
|
|
2757
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2758
3099
|
agentId: string;
|
|
3100
|
+
attempt: number;
|
|
2759
3101
|
threadId: string;
|
|
2760
3102
|
createdAt: string;
|
|
2761
3103
|
triggerMessageId: string;
|
|
2762
|
-
attempt: number;
|
|
2763
3104
|
streamId: string;
|
|
2764
3105
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2765
3106
|
startedAt?: string | undefined;
|
|
2766
3107
|
completedAt?: string | undefined;
|
|
2767
3108
|
modelId?: string | undefined;
|
|
2768
|
-
requestedBy?: {
|
|
2769
|
-
id: string;
|
|
2770
|
-
type: "user" | "serviceAccount";
|
|
2771
|
-
} | undefined;
|
|
2772
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2773
3109
|
usage?: {
|
|
2774
3110
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2775
3111
|
inputTokens?: number | undefined;
|
|
@@ -2781,6 +3117,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2781
3117
|
textOutputTokens?: number | undefined;
|
|
2782
3118
|
reasoningOutputTokens?: number | undefined;
|
|
2783
3119
|
} | undefined;
|
|
3120
|
+
cost?: {
|
|
3121
|
+
amounts: {
|
|
3122
|
+
currency: string;
|
|
3123
|
+
amountNanos: string;
|
|
3124
|
+
}[];
|
|
3125
|
+
ratedCallCount: number;
|
|
3126
|
+
unpriceableCallCount: number;
|
|
3127
|
+
unvaluedCallCount: number;
|
|
3128
|
+
} | undefined;
|
|
3129
|
+
requestedBy?: {
|
|
3130
|
+
id: string;
|
|
3131
|
+
type: "user" | "serviceAccount";
|
|
3132
|
+
} | undefined;
|
|
3133
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2784
3134
|
diagnostics?: {
|
|
2785
3135
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2786
3136
|
message: string;
|
|
@@ -2789,24 +3139,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2789
3139
|
path?: string | undefined;
|
|
2790
3140
|
}[] | undefined;
|
|
2791
3141
|
}, {
|
|
3142
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2792
3143
|
projectId: string;
|
|
2793
3144
|
id: string;
|
|
2794
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2795
3145
|
agentId: string;
|
|
3146
|
+
attempt: number;
|
|
2796
3147
|
threadId: string;
|
|
2797
3148
|
createdAt: string;
|
|
2798
3149
|
triggerMessageId: string;
|
|
2799
|
-
attempt: number;
|
|
2800
3150
|
streamId: string;
|
|
2801
3151
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2802
3152
|
startedAt?: string | undefined;
|
|
2803
3153
|
completedAt?: string | undefined;
|
|
2804
3154
|
modelId?: string | undefined;
|
|
2805
|
-
requestedBy?: {
|
|
2806
|
-
id: string;
|
|
2807
|
-
type: "user" | "serviceAccount";
|
|
2808
|
-
} | undefined;
|
|
2809
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2810
3155
|
usage?: {
|
|
2811
3156
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2812
3157
|
inputTokens?: number | undefined;
|
|
@@ -2818,6 +3163,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2818
3163
|
textOutputTokens?: number | undefined;
|
|
2819
3164
|
reasoningOutputTokens?: number | undefined;
|
|
2820
3165
|
} | undefined;
|
|
3166
|
+
cost?: {
|
|
3167
|
+
amounts: {
|
|
3168
|
+
currency: string;
|
|
3169
|
+
amountNanos: string;
|
|
3170
|
+
}[];
|
|
3171
|
+
ratedCallCount: number;
|
|
3172
|
+
unpriceableCallCount: number;
|
|
3173
|
+
unvaluedCallCount: number;
|
|
3174
|
+
} | undefined;
|
|
3175
|
+
requestedBy?: {
|
|
3176
|
+
id: string;
|
|
3177
|
+
type: "user" | "serviceAccount";
|
|
3178
|
+
} | undefined;
|
|
3179
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2821
3180
|
diagnostics?: {
|
|
2822
3181
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2823
3182
|
message: string;
|
|
@@ -2828,24 +3187,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2828
3187
|
}>;
|
|
2829
3188
|
}, "strip", z.ZodTypeAny, {
|
|
2830
3189
|
run: {
|
|
3190
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2831
3191
|
projectId: string;
|
|
2832
3192
|
id: string;
|
|
2833
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2834
3193
|
agentId: string;
|
|
3194
|
+
attempt: number;
|
|
2835
3195
|
threadId: string;
|
|
2836
3196
|
createdAt: string;
|
|
2837
3197
|
triggerMessageId: string;
|
|
2838
|
-
attempt: number;
|
|
2839
3198
|
streamId: string;
|
|
2840
3199
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2841
3200
|
startedAt?: string | undefined;
|
|
2842
3201
|
completedAt?: string | undefined;
|
|
2843
3202
|
modelId?: string | undefined;
|
|
2844
|
-
requestedBy?: {
|
|
2845
|
-
id: string;
|
|
2846
|
-
type: "user" | "serviceAccount";
|
|
2847
|
-
} | undefined;
|
|
2848
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2849
3203
|
usage?: {
|
|
2850
3204
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2851
3205
|
inputTokens?: number | undefined;
|
|
@@ -2857,6 +3211,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2857
3211
|
textOutputTokens?: number | undefined;
|
|
2858
3212
|
reasoningOutputTokens?: number | undefined;
|
|
2859
3213
|
} | undefined;
|
|
3214
|
+
cost?: {
|
|
3215
|
+
amounts: {
|
|
3216
|
+
currency: string;
|
|
3217
|
+
amountNanos: string;
|
|
3218
|
+
}[];
|
|
3219
|
+
ratedCallCount: number;
|
|
3220
|
+
unpriceableCallCount: number;
|
|
3221
|
+
unvaluedCallCount: number;
|
|
3222
|
+
} | undefined;
|
|
3223
|
+
requestedBy?: {
|
|
3224
|
+
id: string;
|
|
3225
|
+
type: "user" | "serviceAccount";
|
|
3226
|
+
} | undefined;
|
|
3227
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2860
3228
|
diagnostics?: {
|
|
2861
3229
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2862
3230
|
message: string;
|
|
@@ -2867,24 +3235,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2867
3235
|
};
|
|
2868
3236
|
}, {
|
|
2869
3237
|
run: {
|
|
3238
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2870
3239
|
projectId: string;
|
|
2871
3240
|
id: string;
|
|
2872
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2873
3241
|
agentId: string;
|
|
3242
|
+
attempt: number;
|
|
2874
3243
|
threadId: string;
|
|
2875
3244
|
createdAt: string;
|
|
2876
3245
|
triggerMessageId: string;
|
|
2877
|
-
attempt: number;
|
|
2878
3246
|
streamId: string;
|
|
2879
3247
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2880
3248
|
startedAt?: string | undefined;
|
|
2881
3249
|
completedAt?: string | undefined;
|
|
2882
3250
|
modelId?: string | undefined;
|
|
2883
|
-
requestedBy?: {
|
|
2884
|
-
id: string;
|
|
2885
|
-
type: "user" | "serviceAccount";
|
|
2886
|
-
} | undefined;
|
|
2887
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
2888
3251
|
usage?: {
|
|
2889
3252
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2890
3253
|
inputTokens?: number | undefined;
|
|
@@ -2896,6 +3259,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2896
3259
|
textOutputTokens?: number | undefined;
|
|
2897
3260
|
reasoningOutputTokens?: number | undefined;
|
|
2898
3261
|
} | undefined;
|
|
3262
|
+
cost?: {
|
|
3263
|
+
amounts: {
|
|
3264
|
+
currency: string;
|
|
3265
|
+
amountNanos: string;
|
|
3266
|
+
}[];
|
|
3267
|
+
ratedCallCount: number;
|
|
3268
|
+
unpriceableCallCount: number;
|
|
3269
|
+
unvaluedCallCount: number;
|
|
3270
|
+
} | undefined;
|
|
3271
|
+
requestedBy?: {
|
|
3272
|
+
id: string;
|
|
3273
|
+
type: "user" | "serviceAccount";
|
|
3274
|
+
} | undefined;
|
|
3275
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2899
3276
|
diagnostics?: {
|
|
2900
3277
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2901
3278
|
message: string;
|
|
@@ -2940,7 +3317,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2940
3317
|
}>>;
|
|
2941
3318
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2942
3319
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2943
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
3320
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2944
3321
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2945
3322
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2946
3323
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2972,6 +3349,37 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2972
3349
|
textOutputTokens?: number | undefined;
|
|
2973
3350
|
reasoningOutputTokens?: number | undefined;
|
|
2974
3351
|
}>>;
|
|
3352
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3353
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
3354
|
+
currency: z.ZodString;
|
|
3355
|
+
amountNanos: z.ZodString;
|
|
3356
|
+
}, "strip", z.ZodTypeAny, {
|
|
3357
|
+
currency: string;
|
|
3358
|
+
amountNanos: string;
|
|
3359
|
+
}, {
|
|
3360
|
+
currency: string;
|
|
3361
|
+
amountNanos: string;
|
|
3362
|
+
}>, "many">;
|
|
3363
|
+
ratedCallCount: z.ZodNumber;
|
|
3364
|
+
unpriceableCallCount: z.ZodNumber;
|
|
3365
|
+
unvaluedCallCount: z.ZodNumber;
|
|
3366
|
+
}, "strip", z.ZodTypeAny, {
|
|
3367
|
+
amounts: {
|
|
3368
|
+
currency: string;
|
|
3369
|
+
amountNanos: string;
|
|
3370
|
+
}[];
|
|
3371
|
+
ratedCallCount: number;
|
|
3372
|
+
unpriceableCallCount: number;
|
|
3373
|
+
unvaluedCallCount: number;
|
|
3374
|
+
}, {
|
|
3375
|
+
amounts: {
|
|
3376
|
+
currency: string;
|
|
3377
|
+
amountNanos: string;
|
|
3378
|
+
}[];
|
|
3379
|
+
ratedCallCount: number;
|
|
3380
|
+
unpriceableCallCount: number;
|
|
3381
|
+
unvaluedCallCount: number;
|
|
3382
|
+
}>>;
|
|
2975
3383
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2976
3384
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2977
3385
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2998,24 +3406,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2998
3406
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2999
3407
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
3000
3408
|
}, "strip", z.ZodTypeAny, {
|
|
3409
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3001
3410
|
projectId: string;
|
|
3002
3411
|
id: string;
|
|
3003
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3004
3412
|
agentId: string;
|
|
3413
|
+
attempt: number;
|
|
3005
3414
|
threadId: string;
|
|
3006
3415
|
createdAt: string;
|
|
3007
3416
|
triggerMessageId: string;
|
|
3008
|
-
attempt: number;
|
|
3009
3417
|
streamId: string;
|
|
3010
3418
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3011
3419
|
startedAt?: string | undefined;
|
|
3012
3420
|
completedAt?: string | undefined;
|
|
3013
3421
|
modelId?: string | undefined;
|
|
3014
|
-
requestedBy?: {
|
|
3015
|
-
id: string;
|
|
3016
|
-
type: "user" | "serviceAccount";
|
|
3017
|
-
} | undefined;
|
|
3018
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3019
3422
|
usage?: {
|
|
3020
3423
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3021
3424
|
inputTokens?: number | undefined;
|
|
@@ -3027,6 +3430,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3027
3430
|
textOutputTokens?: number | undefined;
|
|
3028
3431
|
reasoningOutputTokens?: number | undefined;
|
|
3029
3432
|
} | undefined;
|
|
3433
|
+
cost?: {
|
|
3434
|
+
amounts: {
|
|
3435
|
+
currency: string;
|
|
3436
|
+
amountNanos: string;
|
|
3437
|
+
}[];
|
|
3438
|
+
ratedCallCount: number;
|
|
3439
|
+
unpriceableCallCount: number;
|
|
3440
|
+
unvaluedCallCount: number;
|
|
3441
|
+
} | undefined;
|
|
3442
|
+
requestedBy?: {
|
|
3443
|
+
id: string;
|
|
3444
|
+
type: "user" | "serviceAccount";
|
|
3445
|
+
} | undefined;
|
|
3446
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3030
3447
|
diagnostics?: {
|
|
3031
3448
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3032
3449
|
message: string;
|
|
@@ -3035,24 +3452,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3035
3452
|
path?: string | undefined;
|
|
3036
3453
|
}[] | undefined;
|
|
3037
3454
|
}, {
|
|
3455
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3038
3456
|
projectId: string;
|
|
3039
3457
|
id: string;
|
|
3040
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3041
3458
|
agentId: string;
|
|
3459
|
+
attempt: number;
|
|
3042
3460
|
threadId: string;
|
|
3043
3461
|
createdAt: string;
|
|
3044
3462
|
triggerMessageId: string;
|
|
3045
|
-
attempt: number;
|
|
3046
3463
|
streamId: string;
|
|
3047
3464
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3048
3465
|
startedAt?: string | undefined;
|
|
3049
3466
|
completedAt?: string | undefined;
|
|
3050
3467
|
modelId?: string | undefined;
|
|
3051
|
-
requestedBy?: {
|
|
3052
|
-
id: string;
|
|
3053
|
-
type: "user" | "serviceAccount";
|
|
3054
|
-
} | undefined;
|
|
3055
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3056
3468
|
usage?: {
|
|
3057
3469
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3058
3470
|
inputTokens?: number | undefined;
|
|
@@ -3064,6 +3476,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3064
3476
|
textOutputTokens?: number | undefined;
|
|
3065
3477
|
reasoningOutputTokens?: number | undefined;
|
|
3066
3478
|
} | undefined;
|
|
3479
|
+
cost?: {
|
|
3480
|
+
amounts: {
|
|
3481
|
+
currency: string;
|
|
3482
|
+
amountNanos: string;
|
|
3483
|
+
}[];
|
|
3484
|
+
ratedCallCount: number;
|
|
3485
|
+
unpriceableCallCount: number;
|
|
3486
|
+
unvaluedCallCount: number;
|
|
3487
|
+
} | undefined;
|
|
3488
|
+
requestedBy?: {
|
|
3489
|
+
id: string;
|
|
3490
|
+
type: "user" | "serviceAccount";
|
|
3491
|
+
} | undefined;
|
|
3492
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3067
3493
|
diagnostics?: {
|
|
3068
3494
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3069
3495
|
message: string;
|
|
@@ -3076,24 +3502,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3076
3502
|
total: z.ZodNumber;
|
|
3077
3503
|
}, "strip", z.ZodTypeAny, {
|
|
3078
3504
|
runs: {
|
|
3505
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3079
3506
|
projectId: string;
|
|
3080
3507
|
id: string;
|
|
3081
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3082
3508
|
agentId: string;
|
|
3509
|
+
attempt: number;
|
|
3083
3510
|
threadId: string;
|
|
3084
3511
|
createdAt: string;
|
|
3085
3512
|
triggerMessageId: string;
|
|
3086
|
-
attempt: number;
|
|
3087
3513
|
streamId: string;
|
|
3088
3514
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3089
3515
|
startedAt?: string | undefined;
|
|
3090
3516
|
completedAt?: string | undefined;
|
|
3091
3517
|
modelId?: string | undefined;
|
|
3092
|
-
requestedBy?: {
|
|
3093
|
-
id: string;
|
|
3094
|
-
type: "user" | "serviceAccount";
|
|
3095
|
-
} | undefined;
|
|
3096
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3097
3518
|
usage?: {
|
|
3098
3519
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3099
3520
|
inputTokens?: number | undefined;
|
|
@@ -3105,6 +3526,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3105
3526
|
textOutputTokens?: number | undefined;
|
|
3106
3527
|
reasoningOutputTokens?: number | undefined;
|
|
3107
3528
|
} | undefined;
|
|
3529
|
+
cost?: {
|
|
3530
|
+
amounts: {
|
|
3531
|
+
currency: string;
|
|
3532
|
+
amountNanos: string;
|
|
3533
|
+
}[];
|
|
3534
|
+
ratedCallCount: number;
|
|
3535
|
+
unpriceableCallCount: number;
|
|
3536
|
+
unvaluedCallCount: number;
|
|
3537
|
+
} | undefined;
|
|
3538
|
+
requestedBy?: {
|
|
3539
|
+
id: string;
|
|
3540
|
+
type: "user" | "serviceAccount";
|
|
3541
|
+
} | undefined;
|
|
3542
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3108
3543
|
diagnostics?: {
|
|
3109
3544
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3110
3545
|
message: string;
|
|
@@ -3117,24 +3552,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3117
3552
|
total: number;
|
|
3118
3553
|
}, {
|
|
3119
3554
|
runs: {
|
|
3555
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3120
3556
|
projectId: string;
|
|
3121
3557
|
id: string;
|
|
3122
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3123
3558
|
agentId: string;
|
|
3559
|
+
attempt: number;
|
|
3124
3560
|
threadId: string;
|
|
3125
3561
|
createdAt: string;
|
|
3126
3562
|
triggerMessageId: string;
|
|
3127
|
-
attempt: number;
|
|
3128
3563
|
streamId: string;
|
|
3129
3564
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3130
3565
|
startedAt?: string | undefined;
|
|
3131
3566
|
completedAt?: string | undefined;
|
|
3132
3567
|
modelId?: string | undefined;
|
|
3133
|
-
requestedBy?: {
|
|
3134
|
-
id: string;
|
|
3135
|
-
type: "user" | "serviceAccount";
|
|
3136
|
-
} | undefined;
|
|
3137
|
-
finishReason?: "length" | "error" | "unknown" | "stop" | "content-filter" | "tool-calls" | "other" | undefined;
|
|
3138
3568
|
usage?: {
|
|
3139
3569
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3140
3570
|
inputTokens?: number | undefined;
|
|
@@ -3146,6 +3576,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3146
3576
|
textOutputTokens?: number | undefined;
|
|
3147
3577
|
reasoningOutputTokens?: number | undefined;
|
|
3148
3578
|
} | undefined;
|
|
3579
|
+
cost?: {
|
|
3580
|
+
amounts: {
|
|
3581
|
+
currency: string;
|
|
3582
|
+
amountNanos: string;
|
|
3583
|
+
}[];
|
|
3584
|
+
ratedCallCount: number;
|
|
3585
|
+
unpriceableCallCount: number;
|
|
3586
|
+
unvaluedCallCount: number;
|
|
3587
|
+
} | undefined;
|
|
3588
|
+
requestedBy?: {
|
|
3589
|
+
id: string;
|
|
3590
|
+
type: "user" | "serviceAccount";
|
|
3591
|
+
} | undefined;
|
|
3592
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3149
3593
|
diagnostics?: {
|
|
3150
3594
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3151
3595
|
message: string;
|