@sixb/server 0.1.2 → 0.1.3
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/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 +1891 -1337
- package/dist/index.js.map +17 -14
- package/dist/openapi/tags.d.ts +6 -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 +149 -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 +9 -9
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/objects.d.ts +3 -3
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +62 -50
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +6 -6
- 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 +459 -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 +24 -24
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +400 -288
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +10 -10
- 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 +4 -0
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agents.ts +1 -0
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +4 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/projections.ts +6 -0
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
package/dist/schemas/agents.d.ts
CHANGED
|
@@ -419,9 +419,9 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
419
419
|
createdAt: z.ZodString;
|
|
420
420
|
updatedAt: z.ZodString;
|
|
421
421
|
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
status: "active" | "archived";
|
|
422
423
|
projectId: string;
|
|
423
424
|
id: string;
|
|
424
|
-
status: "active" | "archived";
|
|
425
425
|
agentId: string;
|
|
426
426
|
ownerPrincipal: {
|
|
427
427
|
id: string;
|
|
@@ -434,9 +434,9 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
434
434
|
title?: string | undefined;
|
|
435
435
|
lastMessageAt?: string | undefined;
|
|
436
436
|
}, {
|
|
437
|
+
status: "active" | "archived";
|
|
437
438
|
projectId: string;
|
|
438
439
|
id: string;
|
|
439
|
-
status: "active" | "archived";
|
|
440
440
|
agentId: string;
|
|
441
441
|
ownerPrincipal: {
|
|
442
442
|
id: string;
|
|
@@ -472,9 +472,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
472
472
|
createdAt: z.ZodString;
|
|
473
473
|
updatedAt: z.ZodString;
|
|
474
474
|
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
status: "active" | "archived";
|
|
475
476
|
projectId: string;
|
|
476
477
|
id: string;
|
|
477
|
-
status: "active" | "archived";
|
|
478
478
|
agentId: string;
|
|
479
479
|
ownerPrincipal: {
|
|
480
480
|
id: string;
|
|
@@ -487,9 +487,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
487
487
|
title?: string | undefined;
|
|
488
488
|
lastMessageAt?: string | undefined;
|
|
489
489
|
}, {
|
|
490
|
+
status: "active" | "archived";
|
|
490
491
|
projectId: string;
|
|
491
492
|
id: string;
|
|
492
|
-
status: "active" | "archived";
|
|
493
493
|
agentId: string;
|
|
494
494
|
ownerPrincipal: {
|
|
495
495
|
id: string;
|
|
@@ -508,9 +508,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
508
508
|
hasMore: boolean;
|
|
509
509
|
total: number;
|
|
510
510
|
threads: {
|
|
511
|
+
status: "active" | "archived";
|
|
511
512
|
projectId: string;
|
|
512
513
|
id: string;
|
|
513
|
-
status: "active" | "archived";
|
|
514
514
|
agentId: string;
|
|
515
515
|
ownerPrincipal: {
|
|
516
516
|
id: string;
|
|
@@ -527,9 +527,9 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
527
527
|
hasMore: boolean;
|
|
528
528
|
total: number;
|
|
529
529
|
threads: {
|
|
530
|
+
status: "active" | "archived";
|
|
530
531
|
projectId: string;
|
|
531
532
|
id: string;
|
|
532
|
-
status: "active" | "archived";
|
|
533
533
|
agentId: string;
|
|
534
534
|
ownerPrincipal: {
|
|
535
535
|
id: string;
|
|
@@ -566,9 +566,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
566
566
|
createdAt: z.ZodString;
|
|
567
567
|
updatedAt: z.ZodString;
|
|
568
568
|
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
status: "active" | "archived";
|
|
569
570
|
projectId: string;
|
|
570
571
|
id: string;
|
|
571
|
-
status: "active" | "archived";
|
|
572
572
|
agentId: string;
|
|
573
573
|
ownerPrincipal: {
|
|
574
574
|
id: string;
|
|
@@ -581,9 +581,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
581
581
|
title?: string | undefined;
|
|
582
582
|
lastMessageAt?: string | undefined;
|
|
583
583
|
}, {
|
|
584
|
+
status: "active" | "archived";
|
|
584
585
|
projectId: string;
|
|
585
586
|
id: string;
|
|
586
|
-
status: "active" | "archived";
|
|
587
587
|
agentId: string;
|
|
588
588
|
ownerPrincipal: {
|
|
589
589
|
id: string;
|
|
@@ -598,9 +598,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
598
598
|
}>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
600
|
thread: {
|
|
601
|
+
status: "active" | "archived";
|
|
601
602
|
projectId: string;
|
|
602
603
|
id: string;
|
|
603
|
-
status: "active" | "archived";
|
|
604
604
|
agentId: string;
|
|
605
605
|
ownerPrincipal: {
|
|
606
606
|
id: string;
|
|
@@ -615,9 +615,9 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
615
615
|
};
|
|
616
616
|
}, {
|
|
617
617
|
thread: {
|
|
618
|
+
status: "active" | "archived";
|
|
618
619
|
projectId: string;
|
|
619
620
|
id: string;
|
|
620
|
-
status: "active" | "archived";
|
|
621
621
|
agentId: string;
|
|
622
622
|
ownerPrincipal: {
|
|
623
623
|
id: string;
|
|
@@ -2064,7 +2064,7 @@ export declare const CancelAgentRunBodySchema: z.ZodObject<{
|
|
|
2064
2064
|
runId: string;
|
|
2065
2065
|
}>;
|
|
2066
2066
|
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"]>;
|
|
2067
|
+
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>;
|
|
2068
2068
|
export declare const AgentRunSchema: z.ZodObject<{
|
|
2069
2069
|
id: z.ZodString;
|
|
2070
2070
|
projectId: z.ZodString;
|
|
@@ -2083,7 +2083,7 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2083
2083
|
}>>;
|
|
2084
2084
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2085
2085
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2086
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2086
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2087
2087
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2088
2088
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2089
2089
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2115,6 +2115,37 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2115
2115
|
textOutputTokens?: number | undefined;
|
|
2116
2116
|
reasoningOutputTokens?: number | undefined;
|
|
2117
2117
|
}>>;
|
|
2118
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2119
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2120
|
+
currency: z.ZodString;
|
|
2121
|
+
amountNanos: z.ZodString;
|
|
2122
|
+
}, "strip", z.ZodTypeAny, {
|
|
2123
|
+
currency: string;
|
|
2124
|
+
amountNanos: string;
|
|
2125
|
+
}, {
|
|
2126
|
+
currency: string;
|
|
2127
|
+
amountNanos: string;
|
|
2128
|
+
}>, "many">;
|
|
2129
|
+
ratedCallCount: z.ZodNumber;
|
|
2130
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2131
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2132
|
+
}, "strip", z.ZodTypeAny, {
|
|
2133
|
+
amounts: {
|
|
2134
|
+
currency: string;
|
|
2135
|
+
amountNanos: string;
|
|
2136
|
+
}[];
|
|
2137
|
+
ratedCallCount: number;
|
|
2138
|
+
unpriceableCallCount: number;
|
|
2139
|
+
unvaluedCallCount: number;
|
|
2140
|
+
}, {
|
|
2141
|
+
amounts: {
|
|
2142
|
+
currency: string;
|
|
2143
|
+
amountNanos: string;
|
|
2144
|
+
}[];
|
|
2145
|
+
ratedCallCount: number;
|
|
2146
|
+
unpriceableCallCount: number;
|
|
2147
|
+
unvaluedCallCount: number;
|
|
2148
|
+
}>>;
|
|
2118
2149
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2119
2150
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2120
2151
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2141,24 +2172,19 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2141
2172
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2142
2173
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2143
2174
|
}, "strip", z.ZodTypeAny, {
|
|
2175
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2144
2176
|
projectId: string;
|
|
2145
2177
|
id: string;
|
|
2146
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2147
2178
|
agentId: string;
|
|
2179
|
+
attempt: number;
|
|
2148
2180
|
threadId: string;
|
|
2149
2181
|
createdAt: string;
|
|
2150
2182
|
triggerMessageId: string;
|
|
2151
|
-
attempt: number;
|
|
2152
2183
|
streamId: string;
|
|
2153
2184
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2154
2185
|
startedAt?: string | undefined;
|
|
2155
2186
|
completedAt?: string | undefined;
|
|
2156
2187
|
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
2188
|
usage?: {
|
|
2163
2189
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2164
2190
|
inputTokens?: number | undefined;
|
|
@@ -2170,6 +2196,20 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2170
2196
|
textOutputTokens?: number | undefined;
|
|
2171
2197
|
reasoningOutputTokens?: number | undefined;
|
|
2172
2198
|
} | undefined;
|
|
2199
|
+
cost?: {
|
|
2200
|
+
amounts: {
|
|
2201
|
+
currency: string;
|
|
2202
|
+
amountNanos: string;
|
|
2203
|
+
}[];
|
|
2204
|
+
ratedCallCount: number;
|
|
2205
|
+
unpriceableCallCount: number;
|
|
2206
|
+
unvaluedCallCount: number;
|
|
2207
|
+
} | undefined;
|
|
2208
|
+
requestedBy?: {
|
|
2209
|
+
id: string;
|
|
2210
|
+
type: "user" | "serviceAccount";
|
|
2211
|
+
} | undefined;
|
|
2212
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2173
2213
|
diagnostics?: {
|
|
2174
2214
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2175
2215
|
message: string;
|
|
@@ -2178,24 +2218,19 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2178
2218
|
path?: string | undefined;
|
|
2179
2219
|
}[] | undefined;
|
|
2180
2220
|
}, {
|
|
2221
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2181
2222
|
projectId: string;
|
|
2182
2223
|
id: string;
|
|
2183
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2184
2224
|
agentId: string;
|
|
2225
|
+
attempt: number;
|
|
2185
2226
|
threadId: string;
|
|
2186
2227
|
createdAt: string;
|
|
2187
2228
|
triggerMessageId: string;
|
|
2188
|
-
attempt: number;
|
|
2189
2229
|
streamId: string;
|
|
2190
2230
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2191
2231
|
startedAt?: string | undefined;
|
|
2192
2232
|
completedAt?: string | undefined;
|
|
2193
2233
|
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
2234
|
usage?: {
|
|
2200
2235
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2201
2236
|
inputTokens?: number | undefined;
|
|
@@ -2207,6 +2242,20 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2207
2242
|
textOutputTokens?: number | undefined;
|
|
2208
2243
|
reasoningOutputTokens?: number | undefined;
|
|
2209
2244
|
} | undefined;
|
|
2245
|
+
cost?: {
|
|
2246
|
+
amounts: {
|
|
2247
|
+
currency: string;
|
|
2248
|
+
amountNanos: string;
|
|
2249
|
+
}[];
|
|
2250
|
+
ratedCallCount: number;
|
|
2251
|
+
unpriceableCallCount: number;
|
|
2252
|
+
unvaluedCallCount: number;
|
|
2253
|
+
} | undefined;
|
|
2254
|
+
requestedBy?: {
|
|
2255
|
+
id: string;
|
|
2256
|
+
type: "user" | "serviceAccount";
|
|
2257
|
+
} | undefined;
|
|
2258
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2210
2259
|
diagnostics?: {
|
|
2211
2260
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2212
2261
|
message: string;
|
|
@@ -2234,7 +2283,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2234
2283
|
}>>;
|
|
2235
2284
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2236
2285
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2237
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2286
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2238
2287
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2239
2288
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2240
2289
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2266,6 +2315,37 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2266
2315
|
textOutputTokens?: number | undefined;
|
|
2267
2316
|
reasoningOutputTokens?: number | undefined;
|
|
2268
2317
|
}>>;
|
|
2318
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2319
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2320
|
+
currency: z.ZodString;
|
|
2321
|
+
amountNanos: z.ZodString;
|
|
2322
|
+
}, "strip", z.ZodTypeAny, {
|
|
2323
|
+
currency: string;
|
|
2324
|
+
amountNanos: string;
|
|
2325
|
+
}, {
|
|
2326
|
+
currency: string;
|
|
2327
|
+
amountNanos: string;
|
|
2328
|
+
}>, "many">;
|
|
2329
|
+
ratedCallCount: z.ZodNumber;
|
|
2330
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2331
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2332
|
+
}, "strip", z.ZodTypeAny, {
|
|
2333
|
+
amounts: {
|
|
2334
|
+
currency: string;
|
|
2335
|
+
amountNanos: string;
|
|
2336
|
+
}[];
|
|
2337
|
+
ratedCallCount: number;
|
|
2338
|
+
unpriceableCallCount: number;
|
|
2339
|
+
unvaluedCallCount: number;
|
|
2340
|
+
}, {
|
|
2341
|
+
amounts: {
|
|
2342
|
+
currency: string;
|
|
2343
|
+
amountNanos: string;
|
|
2344
|
+
}[];
|
|
2345
|
+
ratedCallCount: number;
|
|
2346
|
+
unpriceableCallCount: number;
|
|
2347
|
+
unvaluedCallCount: number;
|
|
2348
|
+
}>>;
|
|
2269
2349
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2270
2350
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2271
2351
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2292,24 +2372,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2292
2372
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2293
2373
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2294
2374
|
}, "strip", z.ZodTypeAny, {
|
|
2375
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2295
2376
|
projectId: string;
|
|
2296
2377
|
id: string;
|
|
2297
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2298
2378
|
agentId: string;
|
|
2379
|
+
attempt: number;
|
|
2299
2380
|
threadId: string;
|
|
2300
2381
|
createdAt: string;
|
|
2301
2382
|
triggerMessageId: string;
|
|
2302
|
-
attempt: number;
|
|
2303
2383
|
streamId: string;
|
|
2304
2384
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2305
2385
|
startedAt?: string | undefined;
|
|
2306
2386
|
completedAt?: string | undefined;
|
|
2307
2387
|
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
2388
|
usage?: {
|
|
2314
2389
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2315
2390
|
inputTokens?: number | undefined;
|
|
@@ -2321,6 +2396,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2321
2396
|
textOutputTokens?: number | undefined;
|
|
2322
2397
|
reasoningOutputTokens?: number | undefined;
|
|
2323
2398
|
} | undefined;
|
|
2399
|
+
cost?: {
|
|
2400
|
+
amounts: {
|
|
2401
|
+
currency: string;
|
|
2402
|
+
amountNanos: string;
|
|
2403
|
+
}[];
|
|
2404
|
+
ratedCallCount: number;
|
|
2405
|
+
unpriceableCallCount: number;
|
|
2406
|
+
unvaluedCallCount: number;
|
|
2407
|
+
} | undefined;
|
|
2408
|
+
requestedBy?: {
|
|
2409
|
+
id: string;
|
|
2410
|
+
type: "user" | "serviceAccount";
|
|
2411
|
+
} | undefined;
|
|
2412
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2324
2413
|
diagnostics?: {
|
|
2325
2414
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2326
2415
|
message: string;
|
|
@@ -2329,24 +2418,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2329
2418
|
path?: string | undefined;
|
|
2330
2419
|
}[] | undefined;
|
|
2331
2420
|
}, {
|
|
2421
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2332
2422
|
projectId: string;
|
|
2333
2423
|
id: string;
|
|
2334
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2335
2424
|
agentId: string;
|
|
2425
|
+
attempt: number;
|
|
2336
2426
|
threadId: string;
|
|
2337
2427
|
createdAt: string;
|
|
2338
2428
|
triggerMessageId: string;
|
|
2339
|
-
attempt: number;
|
|
2340
2429
|
streamId: string;
|
|
2341
2430
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2342
2431
|
startedAt?: string | undefined;
|
|
2343
2432
|
completedAt?: string | undefined;
|
|
2344
2433
|
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
2434
|
usage?: {
|
|
2351
2435
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2352
2436
|
inputTokens?: number | undefined;
|
|
@@ -2358,6 +2442,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2358
2442
|
textOutputTokens?: number | undefined;
|
|
2359
2443
|
reasoningOutputTokens?: number | undefined;
|
|
2360
2444
|
} | undefined;
|
|
2445
|
+
cost?: {
|
|
2446
|
+
amounts: {
|
|
2447
|
+
currency: string;
|
|
2448
|
+
amountNanos: string;
|
|
2449
|
+
}[];
|
|
2450
|
+
ratedCallCount: number;
|
|
2451
|
+
unpriceableCallCount: number;
|
|
2452
|
+
unvaluedCallCount: number;
|
|
2453
|
+
} | undefined;
|
|
2454
|
+
requestedBy?: {
|
|
2455
|
+
id: string;
|
|
2456
|
+
type: "user" | "serviceAccount";
|
|
2457
|
+
} | undefined;
|
|
2458
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2361
2459
|
diagnostics?: {
|
|
2362
2460
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2363
2461
|
message: string;
|
|
@@ -2368,24 +2466,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2368
2466
|
}>;
|
|
2369
2467
|
}, "strip", z.ZodTypeAny, {
|
|
2370
2468
|
run: {
|
|
2469
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2371
2470
|
projectId: string;
|
|
2372
2471
|
id: string;
|
|
2373
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2374
2472
|
agentId: string;
|
|
2473
|
+
attempt: number;
|
|
2375
2474
|
threadId: string;
|
|
2376
2475
|
createdAt: string;
|
|
2377
2476
|
triggerMessageId: string;
|
|
2378
|
-
attempt: number;
|
|
2379
2477
|
streamId: string;
|
|
2380
2478
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2381
2479
|
startedAt?: string | undefined;
|
|
2382
2480
|
completedAt?: string | undefined;
|
|
2383
2481
|
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
2482
|
usage?: {
|
|
2390
2483
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2391
2484
|
inputTokens?: number | undefined;
|
|
@@ -2397,6 +2490,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2397
2490
|
textOutputTokens?: number | undefined;
|
|
2398
2491
|
reasoningOutputTokens?: number | undefined;
|
|
2399
2492
|
} | undefined;
|
|
2493
|
+
cost?: {
|
|
2494
|
+
amounts: {
|
|
2495
|
+
currency: string;
|
|
2496
|
+
amountNanos: string;
|
|
2497
|
+
}[];
|
|
2498
|
+
ratedCallCount: number;
|
|
2499
|
+
unpriceableCallCount: number;
|
|
2500
|
+
unvaluedCallCount: number;
|
|
2501
|
+
} | undefined;
|
|
2502
|
+
requestedBy?: {
|
|
2503
|
+
id: string;
|
|
2504
|
+
type: "user" | "serviceAccount";
|
|
2505
|
+
} | undefined;
|
|
2506
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2400
2507
|
diagnostics?: {
|
|
2401
2508
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2402
2509
|
message: string;
|
|
@@ -2407,24 +2514,19 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2407
2514
|
};
|
|
2408
2515
|
}, {
|
|
2409
2516
|
run: {
|
|
2517
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2410
2518
|
projectId: string;
|
|
2411
2519
|
id: string;
|
|
2412
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2413
2520
|
agentId: string;
|
|
2521
|
+
attempt: number;
|
|
2414
2522
|
threadId: string;
|
|
2415
2523
|
createdAt: string;
|
|
2416
2524
|
triggerMessageId: string;
|
|
2417
|
-
attempt: number;
|
|
2418
2525
|
streamId: string;
|
|
2419
2526
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2420
2527
|
startedAt?: string | undefined;
|
|
2421
2528
|
completedAt?: string | undefined;
|
|
2422
2529
|
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
2530
|
usage?: {
|
|
2429
2531
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2430
2532
|
inputTokens?: number | undefined;
|
|
@@ -2436,6 +2538,20 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2436
2538
|
textOutputTokens?: number | undefined;
|
|
2437
2539
|
reasoningOutputTokens?: number | undefined;
|
|
2438
2540
|
} | undefined;
|
|
2541
|
+
cost?: {
|
|
2542
|
+
amounts: {
|
|
2543
|
+
currency: string;
|
|
2544
|
+
amountNanos: string;
|
|
2545
|
+
}[];
|
|
2546
|
+
ratedCallCount: number;
|
|
2547
|
+
unpriceableCallCount: number;
|
|
2548
|
+
unvaluedCallCount: number;
|
|
2549
|
+
} | undefined;
|
|
2550
|
+
requestedBy?: {
|
|
2551
|
+
id: string;
|
|
2552
|
+
type: "user" | "serviceAccount";
|
|
2553
|
+
} | undefined;
|
|
2554
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2439
2555
|
diagnostics?: {
|
|
2440
2556
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2441
2557
|
message: string;
|
|
@@ -2464,7 +2580,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2464
2580
|
}>>;
|
|
2465
2581
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2466
2582
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2467
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2583
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2468
2584
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2469
2585
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2470
2586
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2496,6 +2612,37 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2496
2612
|
textOutputTokens?: number | undefined;
|
|
2497
2613
|
reasoningOutputTokens?: number | undefined;
|
|
2498
2614
|
}>>;
|
|
2615
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2616
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2617
|
+
currency: z.ZodString;
|
|
2618
|
+
amountNanos: z.ZodString;
|
|
2619
|
+
}, "strip", z.ZodTypeAny, {
|
|
2620
|
+
currency: string;
|
|
2621
|
+
amountNanos: string;
|
|
2622
|
+
}, {
|
|
2623
|
+
currency: string;
|
|
2624
|
+
amountNanos: string;
|
|
2625
|
+
}>, "many">;
|
|
2626
|
+
ratedCallCount: z.ZodNumber;
|
|
2627
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2628
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2629
|
+
}, "strip", z.ZodTypeAny, {
|
|
2630
|
+
amounts: {
|
|
2631
|
+
currency: string;
|
|
2632
|
+
amountNanos: string;
|
|
2633
|
+
}[];
|
|
2634
|
+
ratedCallCount: number;
|
|
2635
|
+
unpriceableCallCount: number;
|
|
2636
|
+
unvaluedCallCount: number;
|
|
2637
|
+
}, {
|
|
2638
|
+
amounts: {
|
|
2639
|
+
currency: string;
|
|
2640
|
+
amountNanos: string;
|
|
2641
|
+
}[];
|
|
2642
|
+
ratedCallCount: number;
|
|
2643
|
+
unpriceableCallCount: number;
|
|
2644
|
+
unvaluedCallCount: number;
|
|
2645
|
+
}>>;
|
|
2499
2646
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2500
2647
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2501
2648
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2522,24 +2669,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2522
2669
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2523
2670
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2524
2671
|
}, "strip", z.ZodTypeAny, {
|
|
2672
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2525
2673
|
projectId: string;
|
|
2526
2674
|
id: string;
|
|
2527
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2528
2675
|
agentId: string;
|
|
2676
|
+
attempt: number;
|
|
2529
2677
|
threadId: string;
|
|
2530
2678
|
createdAt: string;
|
|
2531
2679
|
triggerMessageId: string;
|
|
2532
|
-
attempt: number;
|
|
2533
2680
|
streamId: string;
|
|
2534
2681
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2535
2682
|
startedAt?: string | undefined;
|
|
2536
2683
|
completedAt?: string | undefined;
|
|
2537
2684
|
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
2685
|
usage?: {
|
|
2544
2686
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2545
2687
|
inputTokens?: number | undefined;
|
|
@@ -2551,6 +2693,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2551
2693
|
textOutputTokens?: number | undefined;
|
|
2552
2694
|
reasoningOutputTokens?: number | undefined;
|
|
2553
2695
|
} | undefined;
|
|
2696
|
+
cost?: {
|
|
2697
|
+
amounts: {
|
|
2698
|
+
currency: string;
|
|
2699
|
+
amountNanos: string;
|
|
2700
|
+
}[];
|
|
2701
|
+
ratedCallCount: number;
|
|
2702
|
+
unpriceableCallCount: number;
|
|
2703
|
+
unvaluedCallCount: number;
|
|
2704
|
+
} | undefined;
|
|
2705
|
+
requestedBy?: {
|
|
2706
|
+
id: string;
|
|
2707
|
+
type: "user" | "serviceAccount";
|
|
2708
|
+
} | undefined;
|
|
2709
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2554
2710
|
diagnostics?: {
|
|
2555
2711
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2556
2712
|
message: string;
|
|
@@ -2559,24 +2715,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2559
2715
|
path?: string | undefined;
|
|
2560
2716
|
}[] | undefined;
|
|
2561
2717
|
}, {
|
|
2718
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2562
2719
|
projectId: string;
|
|
2563
2720
|
id: string;
|
|
2564
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2565
2721
|
agentId: string;
|
|
2722
|
+
attempt: number;
|
|
2566
2723
|
threadId: string;
|
|
2567
2724
|
createdAt: string;
|
|
2568
2725
|
triggerMessageId: string;
|
|
2569
|
-
attempt: number;
|
|
2570
2726
|
streamId: string;
|
|
2571
2727
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2572
2728
|
startedAt?: string | undefined;
|
|
2573
2729
|
completedAt?: string | undefined;
|
|
2574
2730
|
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
2731
|
usage?: {
|
|
2581
2732
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2582
2733
|
inputTokens?: number | undefined;
|
|
@@ -2588,6 +2739,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2588
2739
|
textOutputTokens?: number | undefined;
|
|
2589
2740
|
reasoningOutputTokens?: number | undefined;
|
|
2590
2741
|
} | undefined;
|
|
2742
|
+
cost?: {
|
|
2743
|
+
amounts: {
|
|
2744
|
+
currency: string;
|
|
2745
|
+
amountNanos: string;
|
|
2746
|
+
}[];
|
|
2747
|
+
ratedCallCount: number;
|
|
2748
|
+
unpriceableCallCount: number;
|
|
2749
|
+
unvaluedCallCount: number;
|
|
2750
|
+
} | undefined;
|
|
2751
|
+
requestedBy?: {
|
|
2752
|
+
id: string;
|
|
2753
|
+
type: "user" | "serviceAccount";
|
|
2754
|
+
} | undefined;
|
|
2755
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2591
2756
|
diagnostics?: {
|
|
2592
2757
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2593
2758
|
message: string;
|
|
@@ -2598,24 +2763,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2598
2763
|
}>;
|
|
2599
2764
|
}, "strip", z.ZodTypeAny, {
|
|
2600
2765
|
run: {
|
|
2766
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2601
2767
|
projectId: string;
|
|
2602
2768
|
id: string;
|
|
2603
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2604
2769
|
agentId: string;
|
|
2770
|
+
attempt: number;
|
|
2605
2771
|
threadId: string;
|
|
2606
2772
|
createdAt: string;
|
|
2607
2773
|
triggerMessageId: string;
|
|
2608
|
-
attempt: number;
|
|
2609
2774
|
streamId: string;
|
|
2610
2775
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2611
2776
|
startedAt?: string | undefined;
|
|
2612
2777
|
completedAt?: string | undefined;
|
|
2613
2778
|
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
2779
|
usage?: {
|
|
2620
2780
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2621
2781
|
inputTokens?: number | undefined;
|
|
@@ -2627,6 +2787,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2627
2787
|
textOutputTokens?: number | undefined;
|
|
2628
2788
|
reasoningOutputTokens?: number | undefined;
|
|
2629
2789
|
} | undefined;
|
|
2790
|
+
cost?: {
|
|
2791
|
+
amounts: {
|
|
2792
|
+
currency: string;
|
|
2793
|
+
amountNanos: string;
|
|
2794
|
+
}[];
|
|
2795
|
+
ratedCallCount: number;
|
|
2796
|
+
unpriceableCallCount: number;
|
|
2797
|
+
unvaluedCallCount: number;
|
|
2798
|
+
} | undefined;
|
|
2799
|
+
requestedBy?: {
|
|
2800
|
+
id: string;
|
|
2801
|
+
type: "user" | "serviceAccount";
|
|
2802
|
+
} | undefined;
|
|
2803
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2630
2804
|
diagnostics?: {
|
|
2631
2805
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2632
2806
|
message: string;
|
|
@@ -2637,24 +2811,19 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2637
2811
|
};
|
|
2638
2812
|
}, {
|
|
2639
2813
|
run: {
|
|
2814
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2640
2815
|
projectId: string;
|
|
2641
2816
|
id: string;
|
|
2642
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2643
2817
|
agentId: string;
|
|
2818
|
+
attempt: number;
|
|
2644
2819
|
threadId: string;
|
|
2645
2820
|
createdAt: string;
|
|
2646
2821
|
triggerMessageId: string;
|
|
2647
|
-
attempt: number;
|
|
2648
2822
|
streamId: string;
|
|
2649
2823
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2650
2824
|
startedAt?: string | undefined;
|
|
2651
2825
|
completedAt?: string | undefined;
|
|
2652
2826
|
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
2827
|
usage?: {
|
|
2659
2828
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2660
2829
|
inputTokens?: number | undefined;
|
|
@@ -2666,6 +2835,20 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2666
2835
|
textOutputTokens?: number | undefined;
|
|
2667
2836
|
reasoningOutputTokens?: number | undefined;
|
|
2668
2837
|
} | undefined;
|
|
2838
|
+
cost?: {
|
|
2839
|
+
amounts: {
|
|
2840
|
+
currency: string;
|
|
2841
|
+
amountNanos: string;
|
|
2842
|
+
}[];
|
|
2843
|
+
ratedCallCount: number;
|
|
2844
|
+
unpriceableCallCount: number;
|
|
2845
|
+
unvaluedCallCount: number;
|
|
2846
|
+
} | undefined;
|
|
2847
|
+
requestedBy?: {
|
|
2848
|
+
id: string;
|
|
2849
|
+
type: "user" | "serviceAccount";
|
|
2850
|
+
} | undefined;
|
|
2851
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2669
2852
|
diagnostics?: {
|
|
2670
2853
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2671
2854
|
message: string;
|
|
@@ -2694,7 +2877,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2694
2877
|
}>>;
|
|
2695
2878
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2696
2879
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2697
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
2880
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2698
2881
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2699
2882
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2700
2883
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2726,6 +2909,37 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2726
2909
|
textOutputTokens?: number | undefined;
|
|
2727
2910
|
reasoningOutputTokens?: number | undefined;
|
|
2728
2911
|
}>>;
|
|
2912
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
2913
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
2914
|
+
currency: z.ZodString;
|
|
2915
|
+
amountNanos: z.ZodString;
|
|
2916
|
+
}, "strip", z.ZodTypeAny, {
|
|
2917
|
+
currency: string;
|
|
2918
|
+
amountNanos: string;
|
|
2919
|
+
}, {
|
|
2920
|
+
currency: string;
|
|
2921
|
+
amountNanos: string;
|
|
2922
|
+
}>, "many">;
|
|
2923
|
+
ratedCallCount: z.ZodNumber;
|
|
2924
|
+
unpriceableCallCount: z.ZodNumber;
|
|
2925
|
+
unvaluedCallCount: z.ZodNumber;
|
|
2926
|
+
}, "strip", z.ZodTypeAny, {
|
|
2927
|
+
amounts: {
|
|
2928
|
+
currency: string;
|
|
2929
|
+
amountNanos: string;
|
|
2930
|
+
}[];
|
|
2931
|
+
ratedCallCount: number;
|
|
2932
|
+
unpriceableCallCount: number;
|
|
2933
|
+
unvaluedCallCount: number;
|
|
2934
|
+
}, {
|
|
2935
|
+
amounts: {
|
|
2936
|
+
currency: string;
|
|
2937
|
+
amountNanos: string;
|
|
2938
|
+
}[];
|
|
2939
|
+
ratedCallCount: number;
|
|
2940
|
+
unpriceableCallCount: number;
|
|
2941
|
+
unvaluedCallCount: number;
|
|
2942
|
+
}>>;
|
|
2729
2943
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2730
2944
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2731
2945
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2752,24 +2966,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2752
2966
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2753
2967
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2754
2968
|
}, "strip", z.ZodTypeAny, {
|
|
2969
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2755
2970
|
projectId: string;
|
|
2756
2971
|
id: string;
|
|
2757
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2758
2972
|
agentId: string;
|
|
2973
|
+
attempt: number;
|
|
2759
2974
|
threadId: string;
|
|
2760
2975
|
createdAt: string;
|
|
2761
2976
|
triggerMessageId: string;
|
|
2762
|
-
attempt: number;
|
|
2763
2977
|
streamId: string;
|
|
2764
2978
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2765
2979
|
startedAt?: string | undefined;
|
|
2766
2980
|
completedAt?: string | undefined;
|
|
2767
2981
|
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
2982
|
usage?: {
|
|
2774
2983
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2775
2984
|
inputTokens?: number | undefined;
|
|
@@ -2781,6 +2990,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2781
2990
|
textOutputTokens?: number | undefined;
|
|
2782
2991
|
reasoningOutputTokens?: number | undefined;
|
|
2783
2992
|
} | undefined;
|
|
2993
|
+
cost?: {
|
|
2994
|
+
amounts: {
|
|
2995
|
+
currency: string;
|
|
2996
|
+
amountNanos: string;
|
|
2997
|
+
}[];
|
|
2998
|
+
ratedCallCount: number;
|
|
2999
|
+
unpriceableCallCount: number;
|
|
3000
|
+
unvaluedCallCount: number;
|
|
3001
|
+
} | undefined;
|
|
3002
|
+
requestedBy?: {
|
|
3003
|
+
id: string;
|
|
3004
|
+
type: "user" | "serviceAccount";
|
|
3005
|
+
} | undefined;
|
|
3006
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2784
3007
|
diagnostics?: {
|
|
2785
3008
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2786
3009
|
message: string;
|
|
@@ -2789,24 +3012,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2789
3012
|
path?: string | undefined;
|
|
2790
3013
|
}[] | undefined;
|
|
2791
3014
|
}, {
|
|
3015
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2792
3016
|
projectId: string;
|
|
2793
3017
|
id: string;
|
|
2794
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2795
3018
|
agentId: string;
|
|
3019
|
+
attempt: number;
|
|
2796
3020
|
threadId: string;
|
|
2797
3021
|
createdAt: string;
|
|
2798
3022
|
triggerMessageId: string;
|
|
2799
|
-
attempt: number;
|
|
2800
3023
|
streamId: string;
|
|
2801
3024
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2802
3025
|
startedAt?: string | undefined;
|
|
2803
3026
|
completedAt?: string | undefined;
|
|
2804
3027
|
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
3028
|
usage?: {
|
|
2811
3029
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2812
3030
|
inputTokens?: number | undefined;
|
|
@@ -2818,6 +3036,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2818
3036
|
textOutputTokens?: number | undefined;
|
|
2819
3037
|
reasoningOutputTokens?: number | undefined;
|
|
2820
3038
|
} | undefined;
|
|
3039
|
+
cost?: {
|
|
3040
|
+
amounts: {
|
|
3041
|
+
currency: string;
|
|
3042
|
+
amountNanos: string;
|
|
3043
|
+
}[];
|
|
3044
|
+
ratedCallCount: number;
|
|
3045
|
+
unpriceableCallCount: number;
|
|
3046
|
+
unvaluedCallCount: number;
|
|
3047
|
+
} | undefined;
|
|
3048
|
+
requestedBy?: {
|
|
3049
|
+
id: string;
|
|
3050
|
+
type: "user" | "serviceAccount";
|
|
3051
|
+
} | undefined;
|
|
3052
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2821
3053
|
diagnostics?: {
|
|
2822
3054
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2823
3055
|
message: string;
|
|
@@ -2828,24 +3060,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2828
3060
|
}>;
|
|
2829
3061
|
}, "strip", z.ZodTypeAny, {
|
|
2830
3062
|
run: {
|
|
3063
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2831
3064
|
projectId: string;
|
|
2832
3065
|
id: string;
|
|
2833
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2834
3066
|
agentId: string;
|
|
3067
|
+
attempt: number;
|
|
2835
3068
|
threadId: string;
|
|
2836
3069
|
createdAt: string;
|
|
2837
3070
|
triggerMessageId: string;
|
|
2838
|
-
attempt: number;
|
|
2839
3071
|
streamId: string;
|
|
2840
3072
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2841
3073
|
startedAt?: string | undefined;
|
|
2842
3074
|
completedAt?: string | undefined;
|
|
2843
3075
|
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
3076
|
usage?: {
|
|
2850
3077
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2851
3078
|
inputTokens?: number | undefined;
|
|
@@ -2857,6 +3084,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2857
3084
|
textOutputTokens?: number | undefined;
|
|
2858
3085
|
reasoningOutputTokens?: number | undefined;
|
|
2859
3086
|
} | undefined;
|
|
3087
|
+
cost?: {
|
|
3088
|
+
amounts: {
|
|
3089
|
+
currency: string;
|
|
3090
|
+
amountNanos: string;
|
|
3091
|
+
}[];
|
|
3092
|
+
ratedCallCount: number;
|
|
3093
|
+
unpriceableCallCount: number;
|
|
3094
|
+
unvaluedCallCount: number;
|
|
3095
|
+
} | undefined;
|
|
3096
|
+
requestedBy?: {
|
|
3097
|
+
id: string;
|
|
3098
|
+
type: "user" | "serviceAccount";
|
|
3099
|
+
} | undefined;
|
|
3100
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2860
3101
|
diagnostics?: {
|
|
2861
3102
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2862
3103
|
message: string;
|
|
@@ -2867,24 +3108,19 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2867
3108
|
};
|
|
2868
3109
|
}, {
|
|
2869
3110
|
run: {
|
|
3111
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2870
3112
|
projectId: string;
|
|
2871
3113
|
id: string;
|
|
2872
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2873
3114
|
agentId: string;
|
|
3115
|
+
attempt: number;
|
|
2874
3116
|
threadId: string;
|
|
2875
3117
|
createdAt: string;
|
|
2876
3118
|
triggerMessageId: string;
|
|
2877
|
-
attempt: number;
|
|
2878
3119
|
streamId: string;
|
|
2879
3120
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
2880
3121
|
startedAt?: string | undefined;
|
|
2881
3122
|
completedAt?: string | undefined;
|
|
2882
3123
|
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
3124
|
usage?: {
|
|
2889
3125
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2890
3126
|
inputTokens?: number | undefined;
|
|
@@ -2896,6 +3132,20 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
2896
3132
|
textOutputTokens?: number | undefined;
|
|
2897
3133
|
reasoningOutputTokens?: number | undefined;
|
|
2898
3134
|
} | undefined;
|
|
3135
|
+
cost?: {
|
|
3136
|
+
amounts: {
|
|
3137
|
+
currency: string;
|
|
3138
|
+
amountNanos: string;
|
|
3139
|
+
}[];
|
|
3140
|
+
ratedCallCount: number;
|
|
3141
|
+
unpriceableCallCount: number;
|
|
3142
|
+
unvaluedCallCount: number;
|
|
3143
|
+
} | undefined;
|
|
3144
|
+
requestedBy?: {
|
|
3145
|
+
id: string;
|
|
3146
|
+
type: "user" | "serviceAccount";
|
|
3147
|
+
} | undefined;
|
|
3148
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2899
3149
|
diagnostics?: {
|
|
2900
3150
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2901
3151
|
message: string;
|
|
@@ -2940,7 +3190,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2940
3190
|
}>>;
|
|
2941
3191
|
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2942
3192
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2943
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>>;
|
|
3193
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2944
3194
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2945
3195
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2946
3196
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2972,6 +3222,37 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2972
3222
|
textOutputTokens?: number | undefined;
|
|
2973
3223
|
reasoningOutputTokens?: number | undefined;
|
|
2974
3224
|
}>>;
|
|
3225
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
3226
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
3227
|
+
currency: z.ZodString;
|
|
3228
|
+
amountNanos: z.ZodString;
|
|
3229
|
+
}, "strip", z.ZodTypeAny, {
|
|
3230
|
+
currency: string;
|
|
3231
|
+
amountNanos: string;
|
|
3232
|
+
}, {
|
|
3233
|
+
currency: string;
|
|
3234
|
+
amountNanos: string;
|
|
3235
|
+
}>, "many">;
|
|
3236
|
+
ratedCallCount: z.ZodNumber;
|
|
3237
|
+
unpriceableCallCount: z.ZodNumber;
|
|
3238
|
+
unvaluedCallCount: z.ZodNumber;
|
|
3239
|
+
}, "strip", z.ZodTypeAny, {
|
|
3240
|
+
amounts: {
|
|
3241
|
+
currency: string;
|
|
3242
|
+
amountNanos: string;
|
|
3243
|
+
}[];
|
|
3244
|
+
ratedCallCount: number;
|
|
3245
|
+
unpriceableCallCount: number;
|
|
3246
|
+
unvaluedCallCount: number;
|
|
3247
|
+
}, {
|
|
3248
|
+
amounts: {
|
|
3249
|
+
currency: string;
|
|
3250
|
+
amountNanos: string;
|
|
3251
|
+
}[];
|
|
3252
|
+
ratedCallCount: number;
|
|
3253
|
+
unpriceableCallCount: number;
|
|
3254
|
+
unvaluedCallCount: number;
|
|
3255
|
+
}>>;
|
|
2975
3256
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2976
3257
|
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2977
3258
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
@@ -2998,24 +3279,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
2998
3279
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
2999
3280
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
3000
3281
|
}, "strip", z.ZodTypeAny, {
|
|
3282
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3001
3283
|
projectId: string;
|
|
3002
3284
|
id: string;
|
|
3003
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3004
3285
|
agentId: string;
|
|
3286
|
+
attempt: number;
|
|
3005
3287
|
threadId: string;
|
|
3006
3288
|
createdAt: string;
|
|
3007
3289
|
triggerMessageId: string;
|
|
3008
|
-
attempt: number;
|
|
3009
3290
|
streamId: string;
|
|
3010
3291
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3011
3292
|
startedAt?: string | undefined;
|
|
3012
3293
|
completedAt?: string | undefined;
|
|
3013
3294
|
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
3295
|
usage?: {
|
|
3020
3296
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3021
3297
|
inputTokens?: number | undefined;
|
|
@@ -3027,6 +3303,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3027
3303
|
textOutputTokens?: number | undefined;
|
|
3028
3304
|
reasoningOutputTokens?: number | undefined;
|
|
3029
3305
|
} | undefined;
|
|
3306
|
+
cost?: {
|
|
3307
|
+
amounts: {
|
|
3308
|
+
currency: string;
|
|
3309
|
+
amountNanos: string;
|
|
3310
|
+
}[];
|
|
3311
|
+
ratedCallCount: number;
|
|
3312
|
+
unpriceableCallCount: number;
|
|
3313
|
+
unvaluedCallCount: number;
|
|
3314
|
+
} | undefined;
|
|
3315
|
+
requestedBy?: {
|
|
3316
|
+
id: string;
|
|
3317
|
+
type: "user" | "serviceAccount";
|
|
3318
|
+
} | undefined;
|
|
3319
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3030
3320
|
diagnostics?: {
|
|
3031
3321
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3032
3322
|
message: string;
|
|
@@ -3035,24 +3325,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3035
3325
|
path?: string | undefined;
|
|
3036
3326
|
}[] | undefined;
|
|
3037
3327
|
}, {
|
|
3328
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3038
3329
|
projectId: string;
|
|
3039
3330
|
id: string;
|
|
3040
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3041
3331
|
agentId: string;
|
|
3332
|
+
attempt: number;
|
|
3042
3333
|
threadId: string;
|
|
3043
3334
|
createdAt: string;
|
|
3044
3335
|
triggerMessageId: string;
|
|
3045
|
-
attempt: number;
|
|
3046
3336
|
streamId: string;
|
|
3047
3337
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3048
3338
|
startedAt?: string | undefined;
|
|
3049
3339
|
completedAt?: string | undefined;
|
|
3050
3340
|
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
3341
|
usage?: {
|
|
3057
3342
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3058
3343
|
inputTokens?: number | undefined;
|
|
@@ -3064,6 +3349,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3064
3349
|
textOutputTokens?: number | undefined;
|
|
3065
3350
|
reasoningOutputTokens?: number | undefined;
|
|
3066
3351
|
} | undefined;
|
|
3352
|
+
cost?: {
|
|
3353
|
+
amounts: {
|
|
3354
|
+
currency: string;
|
|
3355
|
+
amountNanos: string;
|
|
3356
|
+
}[];
|
|
3357
|
+
ratedCallCount: number;
|
|
3358
|
+
unpriceableCallCount: number;
|
|
3359
|
+
unvaluedCallCount: number;
|
|
3360
|
+
} | undefined;
|
|
3361
|
+
requestedBy?: {
|
|
3362
|
+
id: string;
|
|
3363
|
+
type: "user" | "serviceAccount";
|
|
3364
|
+
} | undefined;
|
|
3365
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3067
3366
|
diagnostics?: {
|
|
3068
3367
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3069
3368
|
message: string;
|
|
@@ -3076,24 +3375,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3076
3375
|
total: z.ZodNumber;
|
|
3077
3376
|
}, "strip", z.ZodTypeAny, {
|
|
3078
3377
|
runs: {
|
|
3378
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3079
3379
|
projectId: string;
|
|
3080
3380
|
id: string;
|
|
3081
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3082
3381
|
agentId: string;
|
|
3382
|
+
attempt: number;
|
|
3083
3383
|
threadId: string;
|
|
3084
3384
|
createdAt: string;
|
|
3085
3385
|
triggerMessageId: string;
|
|
3086
|
-
attempt: number;
|
|
3087
3386
|
streamId: string;
|
|
3088
3387
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3089
3388
|
startedAt?: string | undefined;
|
|
3090
3389
|
completedAt?: string | undefined;
|
|
3091
3390
|
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
3391
|
usage?: {
|
|
3098
3392
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3099
3393
|
inputTokens?: number | undefined;
|
|
@@ -3105,6 +3399,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3105
3399
|
textOutputTokens?: number | undefined;
|
|
3106
3400
|
reasoningOutputTokens?: number | undefined;
|
|
3107
3401
|
} | undefined;
|
|
3402
|
+
cost?: {
|
|
3403
|
+
amounts: {
|
|
3404
|
+
currency: string;
|
|
3405
|
+
amountNanos: string;
|
|
3406
|
+
}[];
|
|
3407
|
+
ratedCallCount: number;
|
|
3408
|
+
unpriceableCallCount: number;
|
|
3409
|
+
unvaluedCallCount: number;
|
|
3410
|
+
} | undefined;
|
|
3411
|
+
requestedBy?: {
|
|
3412
|
+
id: string;
|
|
3413
|
+
type: "user" | "serviceAccount";
|
|
3414
|
+
} | undefined;
|
|
3415
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3108
3416
|
diagnostics?: {
|
|
3109
3417
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3110
3418
|
message: string;
|
|
@@ -3117,24 +3425,19 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3117
3425
|
total: number;
|
|
3118
3426
|
}, {
|
|
3119
3427
|
runs: {
|
|
3428
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3120
3429
|
projectId: string;
|
|
3121
3430
|
id: string;
|
|
3122
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3123
3431
|
agentId: string;
|
|
3432
|
+
attempt: number;
|
|
3124
3433
|
threadId: string;
|
|
3125
3434
|
createdAt: string;
|
|
3126
3435
|
triggerMessageId: string;
|
|
3127
|
-
attempt: number;
|
|
3128
3436
|
streamId: string;
|
|
3129
3437
|
error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
3130
3438
|
startedAt?: string | undefined;
|
|
3131
3439
|
completedAt?: string | undefined;
|
|
3132
3440
|
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
3441
|
usage?: {
|
|
3139
3442
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
3140
3443
|
inputTokens?: number | undefined;
|
|
@@ -3146,6 +3449,20 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3146
3449
|
textOutputTokens?: number | undefined;
|
|
3147
3450
|
reasoningOutputTokens?: number | undefined;
|
|
3148
3451
|
} | undefined;
|
|
3452
|
+
cost?: {
|
|
3453
|
+
amounts: {
|
|
3454
|
+
currency: string;
|
|
3455
|
+
amountNanos: string;
|
|
3456
|
+
}[];
|
|
3457
|
+
ratedCallCount: number;
|
|
3458
|
+
unpriceableCallCount: number;
|
|
3459
|
+
unvaluedCallCount: number;
|
|
3460
|
+
} | undefined;
|
|
3461
|
+
requestedBy?: {
|
|
3462
|
+
id: string;
|
|
3463
|
+
type: "user" | "serviceAccount";
|
|
3464
|
+
} | undefined;
|
|
3465
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3149
3466
|
diagnostics?: {
|
|
3150
3467
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3151
3468
|
message: string;
|