@sixb/server 0.1.17 → 0.1.18
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 +5 -1
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/files/content.d.ts +0 -1
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +204 -136
- package/dist/index.js.map +24 -24
- package/dist/routes/agents.d.ts +48 -28
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +3 -2
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +4 -1
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/models.d.ts +1 -0
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +21 -4
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -0
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +3 -0
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/subscription-hub.d.ts +5 -0
- package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +222 -123
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +10 -10
- package/dist/schemas/auth.d.ts +7 -0
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +8 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +18 -3
- package/dist/schemas/datasets.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +39 -0
- package/dist/schemas/event-payloads.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +1 -1
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +10 -0
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +32 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/project.d.ts +8 -0
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +17 -0
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/auth/experience.ts +20 -2
- package/src/files/content.ts +43 -88
- package/src/routes/agents.ts +29 -9
- package/src/routes/auth.ts +84 -19
- package/src/routes/datasets.ts +12 -43
- package/src/routes/files.ts +3 -1
- package/src/routes/models.ts +3 -0
- package/src/routes/objects.ts +12 -2
- package/src/routes/project.ts +2 -1
- package/src/routes/workflows.ts +5 -0
- package/src/routes/ws/events.ts +5 -3
- package/src/routes/ws/subscription-hub.ts +20 -5
- package/src/schemas/agents.ts +28 -3
- package/src/schemas/auth.ts +5 -0
- package/src/schemas/common.ts +3 -0
- package/src/schemas/datasets.ts +23 -1
- package/src/schemas/event-payloads.ts +3 -1
- package/src/schemas/files.ts +7 -1
- package/src/schemas/models.ts +2 -0
- package/src/schemas/objects.ts +13 -0
- package/src/schemas/project.ts +4 -0
- package/src/server.ts +2 -1
package/dist/schemas/agents.d.ts
CHANGED
|
@@ -58,18 +58,21 @@ export declare const AgentObjectContextSchema: z.ZodObject<{
|
|
|
58
58
|
objectTypeId: string;
|
|
59
59
|
primaryId: string;
|
|
60
60
|
}>;
|
|
61
|
+
label: z.ZodOptional<z.ZodString>;
|
|
61
62
|
}, "strip", z.ZodTypeAny, {
|
|
62
63
|
kind: "object";
|
|
63
64
|
ref: {
|
|
64
65
|
objectTypeId: string;
|
|
65
66
|
primaryId: string;
|
|
66
67
|
};
|
|
68
|
+
label?: string | undefined;
|
|
67
69
|
}, {
|
|
68
70
|
kind: "object";
|
|
69
71
|
ref: {
|
|
70
72
|
objectTypeId: string;
|
|
71
73
|
primaryId: string;
|
|
72
74
|
};
|
|
75
|
+
label?: string | undefined;
|
|
73
76
|
}>;
|
|
74
77
|
export declare const AgentAppStateContextSchema: z.ZodObject<{
|
|
75
78
|
kind: z.ZodLiteral<"app-state">;
|
|
@@ -102,18 +105,21 @@ export declare const AgentContextInputSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
102
105
|
objectTypeId: string;
|
|
103
106
|
primaryId: string;
|
|
104
107
|
}>;
|
|
108
|
+
label: z.ZodOptional<z.ZodString>;
|
|
105
109
|
}, "strip", z.ZodTypeAny, {
|
|
106
110
|
kind: "object";
|
|
107
111
|
ref: {
|
|
108
112
|
objectTypeId: string;
|
|
109
113
|
primaryId: string;
|
|
110
114
|
};
|
|
115
|
+
label?: string | undefined;
|
|
111
116
|
}, {
|
|
112
117
|
kind: "object";
|
|
113
118
|
ref: {
|
|
114
119
|
objectTypeId: string;
|
|
115
120
|
primaryId: string;
|
|
116
121
|
};
|
|
122
|
+
label?: string | undefined;
|
|
117
123
|
}>, z.ZodObject<{
|
|
118
124
|
kind: z.ZodLiteral<"app-state">;
|
|
119
125
|
id: z.ZodString;
|
|
@@ -147,18 +153,21 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
|
|
|
147
153
|
objectTypeId: string;
|
|
148
154
|
primaryId: string;
|
|
149
155
|
}>;
|
|
156
|
+
label: z.ZodOptional<z.ZodString>;
|
|
150
157
|
}, "strip", z.ZodTypeAny, {
|
|
151
158
|
kind: "object";
|
|
152
159
|
ref: {
|
|
153
160
|
objectTypeId: string;
|
|
154
161
|
primaryId: string;
|
|
155
162
|
};
|
|
163
|
+
label?: string | undefined;
|
|
156
164
|
}, {
|
|
157
165
|
kind: "object";
|
|
158
166
|
ref: {
|
|
159
167
|
objectTypeId: string;
|
|
160
168
|
primaryId: string;
|
|
161
169
|
};
|
|
170
|
+
label?: string | undefined;
|
|
162
171
|
}>, z.ZodObject<{
|
|
163
172
|
kind: z.ZodLiteral<"app-state">;
|
|
164
173
|
id: z.ZodString;
|
|
@@ -187,6 +196,7 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
|
|
|
187
196
|
objectTypeId: string;
|
|
188
197
|
primaryId: string;
|
|
189
198
|
};
|
|
199
|
+
label?: string | undefined;
|
|
190
200
|
} | {
|
|
191
201
|
id: string;
|
|
192
202
|
kind: "app-state";
|
|
@@ -202,6 +212,7 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
|
|
|
202
212
|
objectTypeId: string;
|
|
203
213
|
primaryId: string;
|
|
204
214
|
};
|
|
215
|
+
label?: string | undefined;
|
|
205
216
|
} | {
|
|
206
217
|
id: string;
|
|
207
218
|
kind: "app-state";
|
|
@@ -223,18 +234,21 @@ export declare const AgentContextPartSchema: z.ZodObject<{
|
|
|
223
234
|
objectTypeId: string;
|
|
224
235
|
primaryId: string;
|
|
225
236
|
}>;
|
|
237
|
+
label: z.ZodOptional<z.ZodString>;
|
|
226
238
|
}, "strip", z.ZodTypeAny, {
|
|
227
239
|
kind: "object";
|
|
228
240
|
ref: {
|
|
229
241
|
objectTypeId: string;
|
|
230
242
|
primaryId: string;
|
|
231
243
|
};
|
|
244
|
+
label?: string | undefined;
|
|
232
245
|
}, {
|
|
233
246
|
kind: "object";
|
|
234
247
|
ref: {
|
|
235
248
|
objectTypeId: string;
|
|
236
249
|
primaryId: string;
|
|
237
250
|
};
|
|
251
|
+
label?: string | undefined;
|
|
238
252
|
}>, z.ZodObject<{
|
|
239
253
|
kind: z.ZodLiteral<"app-state">;
|
|
240
254
|
id: z.ZodString;
|
|
@@ -265,6 +279,7 @@ export declare const AgentContextPartSchema: z.ZodObject<{
|
|
|
265
279
|
objectTypeId: string;
|
|
266
280
|
primaryId: string;
|
|
267
281
|
};
|
|
282
|
+
label?: string | undefined;
|
|
268
283
|
} | {
|
|
269
284
|
id: string;
|
|
270
285
|
kind: "app-state";
|
|
@@ -281,6 +296,7 @@ export declare const AgentContextPartSchema: z.ZodObject<{
|
|
|
281
296
|
objectTypeId: string;
|
|
282
297
|
primaryId: string;
|
|
283
298
|
};
|
|
299
|
+
label?: string | undefined;
|
|
284
300
|
} | {
|
|
285
301
|
id: string;
|
|
286
302
|
kind: "app-state";
|
|
@@ -681,6 +697,12 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
681
697
|
type: "text";
|
|
682
698
|
text: string;
|
|
683
699
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
700
|
+
}>, z.ZodObject<{
|
|
701
|
+
type: z.ZodLiteral<"continuation">;
|
|
702
|
+
}, "strip", z.ZodTypeAny, {
|
|
703
|
+
type: "continuation";
|
|
704
|
+
}, {
|
|
705
|
+
type: "continuation";
|
|
684
706
|
}>, z.ZodObject<{
|
|
685
707
|
type: z.ZodLiteral<"reasoning">;
|
|
686
708
|
text: z.ZodString;
|
|
@@ -771,18 +793,21 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
771
793
|
objectTypeId: string;
|
|
772
794
|
primaryId: string;
|
|
773
795
|
}>;
|
|
796
|
+
label: z.ZodOptional<z.ZodString>;
|
|
774
797
|
}, "strip", z.ZodTypeAny, {
|
|
775
798
|
kind: "object";
|
|
776
799
|
ref: {
|
|
777
800
|
objectTypeId: string;
|
|
778
801
|
primaryId: string;
|
|
779
802
|
};
|
|
803
|
+
label?: string | undefined;
|
|
780
804
|
}, {
|
|
781
805
|
kind: "object";
|
|
782
806
|
ref: {
|
|
783
807
|
objectTypeId: string;
|
|
784
808
|
primaryId: string;
|
|
785
809
|
};
|
|
810
|
+
label?: string | undefined;
|
|
786
811
|
}>, z.ZodObject<{
|
|
787
812
|
kind: z.ZodLiteral<"app-state">;
|
|
788
813
|
id: z.ZodString;
|
|
@@ -813,6 +838,7 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
813
838
|
objectTypeId: string;
|
|
814
839
|
primaryId: string;
|
|
815
840
|
};
|
|
841
|
+
label?: string | undefined;
|
|
816
842
|
} | {
|
|
817
843
|
id: string;
|
|
818
844
|
kind: "app-state";
|
|
@@ -829,6 +855,7 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
829
855
|
objectTypeId: string;
|
|
830
856
|
primaryId: string;
|
|
831
857
|
};
|
|
858
|
+
label?: string | undefined;
|
|
832
859
|
} | {
|
|
833
860
|
id: string;
|
|
834
861
|
kind: "app-state";
|
|
@@ -901,22 +928,22 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
901
928
|
providerExecuted?: boolean | undefined;
|
|
902
929
|
}>]>;
|
|
903
930
|
export declare const AgentRunDiagnosticSchema: z.ZodObject<{
|
|
904
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
931
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
905
932
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
906
|
-
scope: z.
|
|
933
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
907
934
|
path: z.ZodOptional<z.ZodString>;
|
|
908
935
|
message: z.ZodString;
|
|
909
936
|
}, "strip", z.ZodTypeAny, {
|
|
910
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
937
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
911
938
|
message: string;
|
|
912
939
|
severity: "error" | "warning";
|
|
913
|
-
scope: "output";
|
|
940
|
+
scope: "output" | "run";
|
|
914
941
|
path?: string | undefined;
|
|
915
942
|
}, {
|
|
916
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
943
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
917
944
|
message: string;
|
|
918
945
|
severity: "error" | "warning";
|
|
919
|
-
scope: "output";
|
|
946
|
+
scope: "output" | "run";
|
|
920
947
|
path?: string | undefined;
|
|
921
948
|
}>;
|
|
922
949
|
export declare const AgentMessageCompactionSchema: z.ZodObject<{
|
|
@@ -961,6 +988,12 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
961
988
|
type: "text";
|
|
962
989
|
text: string;
|
|
963
990
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
991
|
+
}>, z.ZodObject<{
|
|
992
|
+
type: z.ZodLiteral<"continuation">;
|
|
993
|
+
}, "strip", z.ZodTypeAny, {
|
|
994
|
+
type: "continuation";
|
|
995
|
+
}, {
|
|
996
|
+
type: "continuation";
|
|
964
997
|
}>, z.ZodObject<{
|
|
965
998
|
type: z.ZodLiteral<"reasoning">;
|
|
966
999
|
text: z.ZodString;
|
|
@@ -1051,18 +1084,21 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1051
1084
|
objectTypeId: string;
|
|
1052
1085
|
primaryId: string;
|
|
1053
1086
|
}>;
|
|
1087
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1054
1088
|
}, "strip", z.ZodTypeAny, {
|
|
1055
1089
|
kind: "object";
|
|
1056
1090
|
ref: {
|
|
1057
1091
|
objectTypeId: string;
|
|
1058
1092
|
primaryId: string;
|
|
1059
1093
|
};
|
|
1094
|
+
label?: string | undefined;
|
|
1060
1095
|
}, {
|
|
1061
1096
|
kind: "object";
|
|
1062
1097
|
ref: {
|
|
1063
1098
|
objectTypeId: string;
|
|
1064
1099
|
primaryId: string;
|
|
1065
1100
|
};
|
|
1101
|
+
label?: string | undefined;
|
|
1066
1102
|
}>, z.ZodObject<{
|
|
1067
1103
|
kind: z.ZodLiteral<"app-state">;
|
|
1068
1104
|
id: z.ZodString;
|
|
@@ -1093,6 +1129,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1093
1129
|
objectTypeId: string;
|
|
1094
1130
|
primaryId: string;
|
|
1095
1131
|
};
|
|
1132
|
+
label?: string | undefined;
|
|
1096
1133
|
} | {
|
|
1097
1134
|
id: string;
|
|
1098
1135
|
kind: "app-state";
|
|
@@ -1109,6 +1146,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1109
1146
|
objectTypeId: string;
|
|
1110
1147
|
primaryId: string;
|
|
1111
1148
|
};
|
|
1149
|
+
label?: string | undefined;
|
|
1112
1150
|
} | {
|
|
1113
1151
|
id: string;
|
|
1114
1152
|
kind: "app-state";
|
|
@@ -1182,22 +1220,22 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1182
1220
|
}>]>, "many">;
|
|
1183
1221
|
/** Platform-authored annotations associated with this message's run. */
|
|
1184
1222
|
annotations: z.ZodArray<z.ZodObject<{
|
|
1185
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
1223
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
1186
1224
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
1187
|
-
scope: z.
|
|
1225
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
1188
1226
|
path: z.ZodOptional<z.ZodString>;
|
|
1189
1227
|
message: z.ZodString;
|
|
1190
1228
|
}, "strip", z.ZodTypeAny, {
|
|
1191
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1229
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1192
1230
|
message: string;
|
|
1193
1231
|
severity: "error" | "warning";
|
|
1194
|
-
scope: "output";
|
|
1232
|
+
scope: "output" | "run";
|
|
1195
1233
|
path?: string | undefined;
|
|
1196
1234
|
}, {
|
|
1197
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1235
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1198
1236
|
message: string;
|
|
1199
1237
|
severity: "error" | "warning";
|
|
1200
|
-
scope: "output";
|
|
1238
|
+
scope: "output" | "run";
|
|
1201
1239
|
path?: string | undefined;
|
|
1202
1240
|
}>, "many">;
|
|
1203
1241
|
/** A durable context summary created before this response's model call. */
|
|
@@ -1230,6 +1268,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1230
1268
|
objectTypeId: string;
|
|
1231
1269
|
primaryId: string;
|
|
1232
1270
|
};
|
|
1271
|
+
label?: string | undefined;
|
|
1233
1272
|
} | {
|
|
1234
1273
|
id: string;
|
|
1235
1274
|
kind: "app-state";
|
|
@@ -1283,16 +1322,18 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1283
1322
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
1284
1323
|
dynamic?: boolean | undefined;
|
|
1285
1324
|
providerExecuted?: boolean | undefined;
|
|
1325
|
+
} | {
|
|
1326
|
+
type: "continuation";
|
|
1286
1327
|
})[];
|
|
1287
1328
|
threadId: string;
|
|
1288
1329
|
createdAt: string;
|
|
1289
1330
|
role: "user" | "system" | "assistant";
|
|
1290
1331
|
seq: number;
|
|
1291
1332
|
annotations: {
|
|
1292
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1333
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1293
1334
|
message: string;
|
|
1294
1335
|
severity: "error" | "warning";
|
|
1295
|
-
scope: "output";
|
|
1336
|
+
scope: "output" | "run";
|
|
1296
1337
|
path?: string | undefined;
|
|
1297
1338
|
}[];
|
|
1298
1339
|
contentVersion: number;
|
|
@@ -1319,6 +1360,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1319
1360
|
objectTypeId: string;
|
|
1320
1361
|
primaryId: string;
|
|
1321
1362
|
};
|
|
1363
|
+
label?: string | undefined;
|
|
1322
1364
|
} | {
|
|
1323
1365
|
id: string;
|
|
1324
1366
|
kind: "app-state";
|
|
@@ -1372,16 +1414,18 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
1372
1414
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
1373
1415
|
dynamic?: boolean | undefined;
|
|
1374
1416
|
providerExecuted?: boolean | undefined;
|
|
1417
|
+
} | {
|
|
1418
|
+
type: "continuation";
|
|
1375
1419
|
})[];
|
|
1376
1420
|
threadId: string;
|
|
1377
1421
|
createdAt: string;
|
|
1378
1422
|
role: "user" | "system" | "assistant";
|
|
1379
1423
|
seq: number;
|
|
1380
1424
|
annotations: {
|
|
1381
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1425
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1382
1426
|
message: string;
|
|
1383
1427
|
severity: "error" | "warning";
|
|
1384
|
-
scope: "output";
|
|
1428
|
+
scope: "output" | "run";
|
|
1385
1429
|
path?: string | undefined;
|
|
1386
1430
|
}[];
|
|
1387
1431
|
contentVersion: number;
|
|
@@ -1443,6 +1487,12 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1443
1487
|
type: "text";
|
|
1444
1488
|
text: string;
|
|
1445
1489
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
1490
|
+
}>, z.ZodObject<{
|
|
1491
|
+
type: z.ZodLiteral<"continuation">;
|
|
1492
|
+
}, "strip", z.ZodTypeAny, {
|
|
1493
|
+
type: "continuation";
|
|
1494
|
+
}, {
|
|
1495
|
+
type: "continuation";
|
|
1446
1496
|
}>, z.ZodObject<{
|
|
1447
1497
|
type: z.ZodLiteral<"reasoning">;
|
|
1448
1498
|
text: z.ZodString;
|
|
@@ -1533,18 +1583,21 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1533
1583
|
objectTypeId: string;
|
|
1534
1584
|
primaryId: string;
|
|
1535
1585
|
}>;
|
|
1586
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1536
1587
|
}, "strip", z.ZodTypeAny, {
|
|
1537
1588
|
kind: "object";
|
|
1538
1589
|
ref: {
|
|
1539
1590
|
objectTypeId: string;
|
|
1540
1591
|
primaryId: string;
|
|
1541
1592
|
};
|
|
1593
|
+
label?: string | undefined;
|
|
1542
1594
|
}, {
|
|
1543
1595
|
kind: "object";
|
|
1544
1596
|
ref: {
|
|
1545
1597
|
objectTypeId: string;
|
|
1546
1598
|
primaryId: string;
|
|
1547
1599
|
};
|
|
1600
|
+
label?: string | undefined;
|
|
1548
1601
|
}>, z.ZodObject<{
|
|
1549
1602
|
kind: z.ZodLiteral<"app-state">;
|
|
1550
1603
|
id: z.ZodString;
|
|
@@ -1575,6 +1628,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1575
1628
|
objectTypeId: string;
|
|
1576
1629
|
primaryId: string;
|
|
1577
1630
|
};
|
|
1631
|
+
label?: string | undefined;
|
|
1578
1632
|
} | {
|
|
1579
1633
|
id: string;
|
|
1580
1634
|
kind: "app-state";
|
|
@@ -1591,6 +1645,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1591
1645
|
objectTypeId: string;
|
|
1592
1646
|
primaryId: string;
|
|
1593
1647
|
};
|
|
1648
|
+
label?: string | undefined;
|
|
1594
1649
|
} | {
|
|
1595
1650
|
id: string;
|
|
1596
1651
|
kind: "app-state";
|
|
@@ -1664,22 +1719,22 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1664
1719
|
}>]>, "many">;
|
|
1665
1720
|
/** Platform-authored annotations associated with this message's run. */
|
|
1666
1721
|
annotations: z.ZodArray<z.ZodObject<{
|
|
1667
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
1722
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
1668
1723
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
1669
|
-
scope: z.
|
|
1724
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
1670
1725
|
path: z.ZodOptional<z.ZodString>;
|
|
1671
1726
|
message: z.ZodString;
|
|
1672
1727
|
}, "strip", z.ZodTypeAny, {
|
|
1673
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1728
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1674
1729
|
message: string;
|
|
1675
1730
|
severity: "error" | "warning";
|
|
1676
|
-
scope: "output";
|
|
1731
|
+
scope: "output" | "run";
|
|
1677
1732
|
path?: string | undefined;
|
|
1678
1733
|
}, {
|
|
1679
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1734
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1680
1735
|
message: string;
|
|
1681
1736
|
severity: "error" | "warning";
|
|
1682
|
-
scope: "output";
|
|
1737
|
+
scope: "output" | "run";
|
|
1683
1738
|
path?: string | undefined;
|
|
1684
1739
|
}>, "many">;
|
|
1685
1740
|
/** A durable context summary created before this response's model call. */
|
|
@@ -1712,6 +1767,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1712
1767
|
objectTypeId: string;
|
|
1713
1768
|
primaryId: string;
|
|
1714
1769
|
};
|
|
1770
|
+
label?: string | undefined;
|
|
1715
1771
|
} | {
|
|
1716
1772
|
id: string;
|
|
1717
1773
|
kind: "app-state";
|
|
@@ -1765,16 +1821,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1765
1821
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
1766
1822
|
dynamic?: boolean | undefined;
|
|
1767
1823
|
providerExecuted?: boolean | undefined;
|
|
1824
|
+
} | {
|
|
1825
|
+
type: "continuation";
|
|
1768
1826
|
})[];
|
|
1769
1827
|
threadId: string;
|
|
1770
1828
|
createdAt: string;
|
|
1771
1829
|
role: "user" | "system" | "assistant";
|
|
1772
1830
|
seq: number;
|
|
1773
1831
|
annotations: {
|
|
1774
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1832
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1775
1833
|
message: string;
|
|
1776
1834
|
severity: "error" | "warning";
|
|
1777
|
-
scope: "output";
|
|
1835
|
+
scope: "output" | "run";
|
|
1778
1836
|
path?: string | undefined;
|
|
1779
1837
|
}[];
|
|
1780
1838
|
contentVersion: number;
|
|
@@ -1801,6 +1859,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1801
1859
|
objectTypeId: string;
|
|
1802
1860
|
primaryId: string;
|
|
1803
1861
|
};
|
|
1862
|
+
label?: string | undefined;
|
|
1804
1863
|
} | {
|
|
1805
1864
|
id: string;
|
|
1806
1865
|
kind: "app-state";
|
|
@@ -1854,16 +1913,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1854
1913
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
1855
1914
|
dynamic?: boolean | undefined;
|
|
1856
1915
|
providerExecuted?: boolean | undefined;
|
|
1916
|
+
} | {
|
|
1917
|
+
type: "continuation";
|
|
1857
1918
|
})[];
|
|
1858
1919
|
threadId: string;
|
|
1859
1920
|
createdAt: string;
|
|
1860
1921
|
role: "user" | "system" | "assistant";
|
|
1861
1922
|
seq: number;
|
|
1862
1923
|
annotations: {
|
|
1863
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
1924
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1864
1925
|
message: string;
|
|
1865
1926
|
severity: "error" | "warning";
|
|
1866
|
-
scope: "output";
|
|
1927
|
+
scope: "output" | "run";
|
|
1867
1928
|
path?: string | undefined;
|
|
1868
1929
|
}[];
|
|
1869
1930
|
contentVersion: number;
|
|
@@ -1896,6 +1957,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1896
1957
|
objectTypeId: string;
|
|
1897
1958
|
primaryId: string;
|
|
1898
1959
|
};
|
|
1960
|
+
label?: string | undefined;
|
|
1899
1961
|
} | {
|
|
1900
1962
|
id: string;
|
|
1901
1963
|
kind: "app-state";
|
|
@@ -1949,16 +2011,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1949
2011
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
1950
2012
|
dynamic?: boolean | undefined;
|
|
1951
2013
|
providerExecuted?: boolean | undefined;
|
|
2014
|
+
} | {
|
|
2015
|
+
type: "continuation";
|
|
1952
2016
|
})[];
|
|
1953
2017
|
threadId: string;
|
|
1954
2018
|
createdAt: string;
|
|
1955
2019
|
role: "user" | "system" | "assistant";
|
|
1956
2020
|
seq: number;
|
|
1957
2021
|
annotations: {
|
|
1958
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2022
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
1959
2023
|
message: string;
|
|
1960
2024
|
severity: "error" | "warning";
|
|
1961
|
-
scope: "output";
|
|
2025
|
+
scope: "output" | "run";
|
|
1962
2026
|
path?: string | undefined;
|
|
1963
2027
|
}[];
|
|
1964
2028
|
contentVersion: number;
|
|
@@ -1989,6 +2053,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
1989
2053
|
objectTypeId: string;
|
|
1990
2054
|
primaryId: string;
|
|
1991
2055
|
};
|
|
2056
|
+
label?: string | undefined;
|
|
1992
2057
|
} | {
|
|
1993
2058
|
id: string;
|
|
1994
2059
|
kind: "app-state";
|
|
@@ -2042,16 +2107,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
2042
2107
|
providerMetadata?: import("./common").JsonValue | undefined;
|
|
2043
2108
|
dynamic?: boolean | undefined;
|
|
2044
2109
|
providerExecuted?: boolean | undefined;
|
|
2110
|
+
} | {
|
|
2111
|
+
type: "continuation";
|
|
2045
2112
|
})[];
|
|
2046
2113
|
threadId: string;
|
|
2047
2114
|
createdAt: string;
|
|
2048
2115
|
role: "user" | "system" | "assistant";
|
|
2049
2116
|
seq: number;
|
|
2050
2117
|
annotations: {
|
|
2051
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2118
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2052
2119
|
message: string;
|
|
2053
2120
|
severity: "error" | "warning";
|
|
2054
|
-
scope: "output";
|
|
2121
|
+
scope: "output" | "run";
|
|
2055
2122
|
path?: string | undefined;
|
|
2056
2123
|
}[];
|
|
2057
2124
|
contentVersion: number;
|
|
@@ -2069,7 +2136,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
2069
2136
|
}[];
|
|
2070
2137
|
}>;
|
|
2071
2138
|
export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
2072
|
-
|
|
2139
|
+
/** Required unless `continue` is set. */
|
|
2140
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
/** Continue the previous answer after it reached the turn limit, without text of its own. */
|
|
2142
|
+
continue: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2073
2143
|
model: z.ZodOptional<z.ZodObject<{
|
|
2074
2144
|
provider: z.ZodString;
|
|
2075
2145
|
modelId: z.ZodString;
|
|
@@ -2087,6 +2157,10 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2087
2157
|
}, {
|
|
2088
2158
|
budgetTokens: number;
|
|
2089
2159
|
}>]>>;
|
|
2160
|
+
/** IANA time zone of the person asking. The Agent presents dates and times in it. */
|
|
2161
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
/** BCP 47 language of the person asking. */
|
|
2163
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
2090
2164
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2091
2165
|
blobId: z.ZodString;
|
|
2092
2166
|
digest: z.ZodString;
|
|
@@ -2122,18 +2196,21 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2122
2196
|
objectTypeId: string;
|
|
2123
2197
|
primaryId: string;
|
|
2124
2198
|
}>;
|
|
2199
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2125
2200
|
}, "strip", z.ZodTypeAny, {
|
|
2126
2201
|
kind: "object";
|
|
2127
2202
|
ref: {
|
|
2128
2203
|
objectTypeId: string;
|
|
2129
2204
|
primaryId: string;
|
|
2130
2205
|
};
|
|
2206
|
+
label?: string | undefined;
|
|
2131
2207
|
}, {
|
|
2132
2208
|
kind: "object";
|
|
2133
2209
|
ref: {
|
|
2134
2210
|
objectTypeId: string;
|
|
2135
2211
|
primaryId: string;
|
|
2136
2212
|
};
|
|
2213
|
+
label?: string | undefined;
|
|
2137
2214
|
}>, z.ZodObject<{
|
|
2138
2215
|
kind: z.ZodLiteral<"app-state">;
|
|
2139
2216
|
id: z.ZodString;
|
|
@@ -2162,6 +2239,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2162
2239
|
objectTypeId: string;
|
|
2163
2240
|
primaryId: string;
|
|
2164
2241
|
};
|
|
2242
|
+
label?: string | undefined;
|
|
2165
2243
|
} | {
|
|
2166
2244
|
id: string;
|
|
2167
2245
|
kind: "app-state";
|
|
@@ -2177,6 +2255,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2177
2255
|
objectTypeId: string;
|
|
2178
2256
|
primaryId: string;
|
|
2179
2257
|
};
|
|
2258
|
+
label?: string | undefined;
|
|
2180
2259
|
} | {
|
|
2181
2260
|
id: string;
|
|
2182
2261
|
kind: "app-state";
|
|
@@ -2187,7 +2266,8 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2187
2266
|
}>, "many">>;
|
|
2188
2267
|
messageId: z.ZodOptional<z.ZodString>;
|
|
2189
2268
|
}, "strict", z.ZodTypeAny, {
|
|
2190
|
-
|
|
2269
|
+
locale?: string | undefined;
|
|
2270
|
+
timeZone?: string | undefined;
|
|
2191
2271
|
context?: {
|
|
2192
2272
|
origin: "ambient" | "explicit";
|
|
2193
2273
|
context: {
|
|
@@ -2196,6 +2276,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2196
2276
|
objectTypeId: string;
|
|
2197
2277
|
primaryId: string;
|
|
2198
2278
|
};
|
|
2279
|
+
label?: string | undefined;
|
|
2199
2280
|
} | {
|
|
2200
2281
|
id: string;
|
|
2201
2282
|
kind: "app-state";
|
|
@@ -2204,6 +2285,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2204
2285
|
label: string;
|
|
2205
2286
|
};
|
|
2206
2287
|
}[] | undefined;
|
|
2288
|
+
text?: string | undefined;
|
|
2207
2289
|
model?: {
|
|
2208
2290
|
modelId: string;
|
|
2209
2291
|
provider: string;
|
|
@@ -2220,8 +2302,10 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2220
2302
|
budgetTokens: number;
|
|
2221
2303
|
} | undefined;
|
|
2222
2304
|
messageId?: string | undefined;
|
|
2305
|
+
continue?: true | undefined;
|
|
2223
2306
|
}, {
|
|
2224
|
-
|
|
2307
|
+
locale?: string | undefined;
|
|
2308
|
+
timeZone?: string | undefined;
|
|
2225
2309
|
context?: {
|
|
2226
2310
|
origin: "ambient" | "explicit";
|
|
2227
2311
|
context: {
|
|
@@ -2230,6 +2314,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2230
2314
|
objectTypeId: string;
|
|
2231
2315
|
primaryId: string;
|
|
2232
2316
|
};
|
|
2317
|
+
label?: string | undefined;
|
|
2233
2318
|
} | {
|
|
2234
2319
|
id: string;
|
|
2235
2320
|
kind: "app-state";
|
|
@@ -2238,6 +2323,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2238
2323
|
label: string;
|
|
2239
2324
|
};
|
|
2240
2325
|
}[] | undefined;
|
|
2326
|
+
text?: string | undefined;
|
|
2241
2327
|
model?: {
|
|
2242
2328
|
modelId: string;
|
|
2243
2329
|
provider: string;
|
|
@@ -2254,6 +2340,19 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
|
2254
2340
|
budgetTokens: number;
|
|
2255
2341
|
} | undefined;
|
|
2256
2342
|
messageId?: string | undefined;
|
|
2343
|
+
continue?: true | undefined;
|
|
2344
|
+
}>;
|
|
2345
|
+
/** A refused message request, with the stable code of the reason, such as `invalid_locale`. */
|
|
2346
|
+
export declare const AgentRequestErrorResponseSchema: z.ZodObject<{
|
|
2347
|
+
error: z.ZodString;
|
|
2348
|
+
} & {
|
|
2349
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2350
|
+
}, "strip", z.ZodTypeAny, {
|
|
2351
|
+
error: string;
|
|
2352
|
+
code?: string | undefined;
|
|
2353
|
+
}, {
|
|
2354
|
+
error: string;
|
|
2355
|
+
code?: string | undefined;
|
|
2257
2356
|
}>;
|
|
2258
2357
|
export declare const CancelAgentRunBodySchema: z.ZodObject<{
|
|
2259
2358
|
runId: z.ZodString;
|
|
@@ -2263,7 +2362,7 @@ export declare const CancelAgentRunBodySchema: z.ZodObject<{
|
|
|
2263
2362
|
runId: string;
|
|
2264
2363
|
}>;
|
|
2265
2364
|
export declare const AgentRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
2266
|
-
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>;
|
|
2365
|
+
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>;
|
|
2267
2366
|
export declare const AgentRunSchema: z.ZodObject<{
|
|
2268
2367
|
id: z.ZodString;
|
|
2269
2368
|
projectId: z.ZodString;
|
|
@@ -2298,7 +2397,7 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2298
2397
|
budgetTokens: number;
|
|
2299
2398
|
}>]>>;
|
|
2300
2399
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2301
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2400
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
|
|
2302
2401
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2303
2402
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2304
2403
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2365,22 +2464,22 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2365
2464
|
unvaluedCallCount: number;
|
|
2366
2465
|
}>>;
|
|
2367
2466
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2368
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2467
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
2369
2468
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
2370
|
-
scope: z.
|
|
2469
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
2371
2470
|
path: z.ZodOptional<z.ZodString>;
|
|
2372
2471
|
message: z.ZodString;
|
|
2373
2472
|
}, "strip", z.ZodTypeAny, {
|
|
2374
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2473
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2375
2474
|
message: string;
|
|
2376
2475
|
severity: "error" | "warning";
|
|
2377
|
-
scope: "output";
|
|
2476
|
+
scope: "output" | "run";
|
|
2378
2477
|
path?: string | undefined;
|
|
2379
2478
|
}, {
|
|
2380
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2479
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2381
2480
|
message: string;
|
|
2382
2481
|
severity: "error" | "warning";
|
|
2383
|
-
scope: "output";
|
|
2482
|
+
scope: "output" | "run";
|
|
2384
2483
|
path?: string | undefined;
|
|
2385
2484
|
}>, "many">>;
|
|
2386
2485
|
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
@@ -2434,12 +2533,12 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2434
2533
|
id: string;
|
|
2435
2534
|
type: "user" | "serviceAccount";
|
|
2436
2535
|
} | undefined;
|
|
2437
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2536
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
2438
2537
|
diagnostics?: {
|
|
2439
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2538
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2440
2539
|
message: string;
|
|
2441
2540
|
severity: "error" | "warning";
|
|
2442
|
-
scope: "output";
|
|
2541
|
+
scope: "output" | "run";
|
|
2443
2542
|
path?: string | undefined;
|
|
2444
2543
|
}[] | undefined;
|
|
2445
2544
|
}, {
|
|
@@ -2487,12 +2586,12 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
2487
2586
|
id: string;
|
|
2488
2587
|
type: "user" | "serviceAccount";
|
|
2489
2588
|
} | undefined;
|
|
2490
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2589
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
2491
2590
|
diagnostics?: {
|
|
2492
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2591
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2493
2592
|
message: string;
|
|
2494
2593
|
severity: "error" | "warning";
|
|
2495
|
-
scope: "output";
|
|
2594
|
+
scope: "output" | "run";
|
|
2496
2595
|
path?: string | undefined;
|
|
2497
2596
|
}[] | undefined;
|
|
2498
2597
|
}>;
|
|
@@ -2531,7 +2630,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2531
2630
|
budgetTokens: number;
|
|
2532
2631
|
}>]>>;
|
|
2533
2632
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2534
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2633
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
|
|
2535
2634
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2536
2635
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2537
2636
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2598,22 +2697,22 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2598
2697
|
unvaluedCallCount: number;
|
|
2599
2698
|
}>>;
|
|
2600
2699
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2601
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
2700
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
2602
2701
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
2603
|
-
scope: z.
|
|
2702
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
2604
2703
|
path: z.ZodOptional<z.ZodString>;
|
|
2605
2704
|
message: z.ZodString;
|
|
2606
2705
|
}, "strip", z.ZodTypeAny, {
|
|
2607
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2706
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2608
2707
|
message: string;
|
|
2609
2708
|
severity: "error" | "warning";
|
|
2610
|
-
scope: "output";
|
|
2709
|
+
scope: "output" | "run";
|
|
2611
2710
|
path?: string | undefined;
|
|
2612
2711
|
}, {
|
|
2613
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2712
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2614
2713
|
message: string;
|
|
2615
2714
|
severity: "error" | "warning";
|
|
2616
|
-
scope: "output";
|
|
2715
|
+
scope: "output" | "run";
|
|
2617
2716
|
path?: string | undefined;
|
|
2618
2717
|
}>, "many">>;
|
|
2619
2718
|
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
@@ -2667,12 +2766,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2667
2766
|
id: string;
|
|
2668
2767
|
type: "user" | "serviceAccount";
|
|
2669
2768
|
} | undefined;
|
|
2670
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2769
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
2671
2770
|
diagnostics?: {
|
|
2672
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2771
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2673
2772
|
message: string;
|
|
2674
2773
|
severity: "error" | "warning";
|
|
2675
|
-
scope: "output";
|
|
2774
|
+
scope: "output" | "run";
|
|
2676
2775
|
path?: string | undefined;
|
|
2677
2776
|
}[] | undefined;
|
|
2678
2777
|
}, {
|
|
@@ -2720,12 +2819,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2720
2819
|
id: string;
|
|
2721
2820
|
type: "user" | "serviceAccount";
|
|
2722
2821
|
} | undefined;
|
|
2723
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2822
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
2724
2823
|
diagnostics?: {
|
|
2725
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2824
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2726
2825
|
message: string;
|
|
2727
2826
|
severity: "error" | "warning";
|
|
2728
|
-
scope: "output";
|
|
2827
|
+
scope: "output" | "run";
|
|
2729
2828
|
path?: string | undefined;
|
|
2730
2829
|
}[] | undefined;
|
|
2731
2830
|
}>;
|
|
@@ -2775,12 +2874,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2775
2874
|
id: string;
|
|
2776
2875
|
type: "user" | "serviceAccount";
|
|
2777
2876
|
} | undefined;
|
|
2778
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2877
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
2779
2878
|
diagnostics?: {
|
|
2780
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2879
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2781
2880
|
message: string;
|
|
2782
2881
|
severity: "error" | "warning";
|
|
2783
|
-
scope: "output";
|
|
2882
|
+
scope: "output" | "run";
|
|
2784
2883
|
path?: string | undefined;
|
|
2785
2884
|
}[] | undefined;
|
|
2786
2885
|
};
|
|
@@ -2830,12 +2929,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
2830
2929
|
id: string;
|
|
2831
2930
|
type: "user" | "serviceAccount";
|
|
2832
2931
|
} | undefined;
|
|
2833
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
2932
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
2834
2933
|
diagnostics?: {
|
|
2835
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
2934
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2836
2935
|
message: string;
|
|
2837
2936
|
severity: "error" | "warning";
|
|
2838
|
-
scope: "output";
|
|
2937
|
+
scope: "output" | "run";
|
|
2839
2938
|
path?: string | undefined;
|
|
2840
2939
|
}[] | undefined;
|
|
2841
2940
|
};
|
|
@@ -2875,7 +2974,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2875
2974
|
budgetTokens: number;
|
|
2876
2975
|
}>]>>;
|
|
2877
2976
|
modelId: z.ZodOptional<z.ZodString>;
|
|
2878
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
2977
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
|
|
2879
2978
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2880
2979
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2881
2980
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2942,22 +3041,22 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
2942
3041
|
unvaluedCallCount: number;
|
|
2943
3042
|
}>>;
|
|
2944
3043
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2945
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
3044
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
2946
3045
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
2947
|
-
scope: z.
|
|
3046
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
2948
3047
|
path: z.ZodOptional<z.ZodString>;
|
|
2949
3048
|
message: z.ZodString;
|
|
2950
3049
|
}, "strip", z.ZodTypeAny, {
|
|
2951
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3050
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2952
3051
|
message: string;
|
|
2953
3052
|
severity: "error" | "warning";
|
|
2954
|
-
scope: "output";
|
|
3053
|
+
scope: "output" | "run";
|
|
2955
3054
|
path?: string | undefined;
|
|
2956
3055
|
}, {
|
|
2957
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3056
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
2958
3057
|
message: string;
|
|
2959
3058
|
severity: "error" | "warning";
|
|
2960
|
-
scope: "output";
|
|
3059
|
+
scope: "output" | "run";
|
|
2961
3060
|
path?: string | undefined;
|
|
2962
3061
|
}>, "many">>;
|
|
2963
3062
|
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
@@ -3011,12 +3110,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3011
3110
|
id: string;
|
|
3012
3111
|
type: "user" | "serviceAccount";
|
|
3013
3112
|
} | undefined;
|
|
3014
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3113
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3015
3114
|
diagnostics?: {
|
|
3016
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3115
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3017
3116
|
message: string;
|
|
3018
3117
|
severity: "error" | "warning";
|
|
3019
|
-
scope: "output";
|
|
3118
|
+
scope: "output" | "run";
|
|
3020
3119
|
path?: string | undefined;
|
|
3021
3120
|
}[] | undefined;
|
|
3022
3121
|
}, {
|
|
@@ -3064,12 +3163,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3064
3163
|
id: string;
|
|
3065
3164
|
type: "user" | "serviceAccount";
|
|
3066
3165
|
} | undefined;
|
|
3067
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3166
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3068
3167
|
diagnostics?: {
|
|
3069
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3168
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3070
3169
|
message: string;
|
|
3071
3170
|
severity: "error" | "warning";
|
|
3072
|
-
scope: "output";
|
|
3171
|
+
scope: "output" | "run";
|
|
3073
3172
|
path?: string | undefined;
|
|
3074
3173
|
}[] | undefined;
|
|
3075
3174
|
}>;
|
|
@@ -3119,12 +3218,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3119
3218
|
id: string;
|
|
3120
3219
|
type: "user" | "serviceAccount";
|
|
3121
3220
|
} | undefined;
|
|
3122
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3221
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3123
3222
|
diagnostics?: {
|
|
3124
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3223
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3125
3224
|
message: string;
|
|
3126
3225
|
severity: "error" | "warning";
|
|
3127
|
-
scope: "output";
|
|
3226
|
+
scope: "output" | "run";
|
|
3128
3227
|
path?: string | undefined;
|
|
3129
3228
|
}[] | undefined;
|
|
3130
3229
|
};
|
|
@@ -3174,12 +3273,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
3174
3273
|
id: string;
|
|
3175
3274
|
type: "user" | "serviceAccount";
|
|
3176
3275
|
} | undefined;
|
|
3177
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3276
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3178
3277
|
diagnostics?: {
|
|
3179
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3278
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3180
3279
|
message: string;
|
|
3181
3280
|
severity: "error" | "warning";
|
|
3182
|
-
scope: "output";
|
|
3281
|
+
scope: "output" | "run";
|
|
3183
3282
|
path?: string | undefined;
|
|
3184
3283
|
}[] | undefined;
|
|
3185
3284
|
};
|
|
@@ -3219,7 +3318,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3219
3318
|
budgetTokens: number;
|
|
3220
3319
|
}>]>>;
|
|
3221
3320
|
modelId: z.ZodOptional<z.ZodString>;
|
|
3222
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
3321
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
|
|
3223
3322
|
usage: z.ZodOptional<z.ZodObject<{
|
|
3224
3323
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3225
3324
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3286,22 +3385,22 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3286
3385
|
unvaluedCallCount: number;
|
|
3287
3386
|
}>>;
|
|
3288
3387
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3289
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
3388
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
3290
3389
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
3291
|
-
scope: z.
|
|
3390
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
3292
3391
|
path: z.ZodOptional<z.ZodString>;
|
|
3293
3392
|
message: z.ZodString;
|
|
3294
3393
|
}, "strip", z.ZodTypeAny, {
|
|
3295
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3394
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3296
3395
|
message: string;
|
|
3297
3396
|
severity: "error" | "warning";
|
|
3298
|
-
scope: "output";
|
|
3397
|
+
scope: "output" | "run";
|
|
3299
3398
|
path?: string | undefined;
|
|
3300
3399
|
}, {
|
|
3301
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3400
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3302
3401
|
message: string;
|
|
3303
3402
|
severity: "error" | "warning";
|
|
3304
|
-
scope: "output";
|
|
3403
|
+
scope: "output" | "run";
|
|
3305
3404
|
path?: string | undefined;
|
|
3306
3405
|
}>, "many">>;
|
|
3307
3406
|
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
@@ -3355,12 +3454,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3355
3454
|
id: string;
|
|
3356
3455
|
type: "user" | "serviceAccount";
|
|
3357
3456
|
} | undefined;
|
|
3358
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3457
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3359
3458
|
diagnostics?: {
|
|
3360
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3459
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3361
3460
|
message: string;
|
|
3362
3461
|
severity: "error" | "warning";
|
|
3363
|
-
scope: "output";
|
|
3462
|
+
scope: "output" | "run";
|
|
3364
3463
|
path?: string | undefined;
|
|
3365
3464
|
}[] | undefined;
|
|
3366
3465
|
}, {
|
|
@@ -3408,12 +3507,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3408
3507
|
id: string;
|
|
3409
3508
|
type: "user" | "serviceAccount";
|
|
3410
3509
|
} | undefined;
|
|
3411
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3510
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3412
3511
|
diagnostics?: {
|
|
3413
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3512
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3414
3513
|
message: string;
|
|
3415
3514
|
severity: "error" | "warning";
|
|
3416
|
-
scope: "output";
|
|
3515
|
+
scope: "output" | "run";
|
|
3417
3516
|
path?: string | undefined;
|
|
3418
3517
|
}[] | undefined;
|
|
3419
3518
|
}>;
|
|
@@ -3463,12 +3562,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3463
3562
|
id: string;
|
|
3464
3563
|
type: "user" | "serviceAccount";
|
|
3465
3564
|
} | undefined;
|
|
3466
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3565
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3467
3566
|
diagnostics?: {
|
|
3468
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3567
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3469
3568
|
message: string;
|
|
3470
3569
|
severity: "error" | "warning";
|
|
3471
|
-
scope: "output";
|
|
3570
|
+
scope: "output" | "run";
|
|
3472
3571
|
path?: string | undefined;
|
|
3473
3572
|
}[] | undefined;
|
|
3474
3573
|
};
|
|
@@ -3518,12 +3617,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
3518
3617
|
id: string;
|
|
3519
3618
|
type: "user" | "serviceAccount";
|
|
3520
3619
|
} | undefined;
|
|
3521
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3620
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3522
3621
|
diagnostics?: {
|
|
3523
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3622
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3524
3623
|
message: string;
|
|
3525
3624
|
severity: "error" | "warning";
|
|
3526
|
-
scope: "output";
|
|
3625
|
+
scope: "output" | "run";
|
|
3527
3626
|
path?: string | undefined;
|
|
3528
3627
|
}[] | undefined;
|
|
3529
3628
|
};
|
|
@@ -3579,7 +3678,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3579
3678
|
budgetTokens: number;
|
|
3580
3679
|
}>]>>;
|
|
3581
3680
|
modelId: z.ZodOptional<z.ZodString>;
|
|
3582
|
-
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
|
|
3681
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
|
|
3583
3682
|
usage: z.ZodOptional<z.ZodObject<{
|
|
3584
3683
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3585
3684
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3646,22 +3745,22 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3646
3745
|
unvaluedCallCount: number;
|
|
3647
3746
|
}>>;
|
|
3648
3747
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3649
|
-
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
|
|
3748
|
+
code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
|
|
3650
3749
|
severity: z.ZodEnum<["warning", "error"]>;
|
|
3651
|
-
scope: z.
|
|
3750
|
+
scope: z.ZodEnum<["output", "run"]>;
|
|
3652
3751
|
path: z.ZodOptional<z.ZodString>;
|
|
3653
3752
|
message: z.ZodString;
|
|
3654
3753
|
}, "strip", z.ZodTypeAny, {
|
|
3655
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3754
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3656
3755
|
message: string;
|
|
3657
3756
|
severity: "error" | "warning";
|
|
3658
|
-
scope: "output";
|
|
3757
|
+
scope: "output" | "run";
|
|
3659
3758
|
path?: string | undefined;
|
|
3660
3759
|
}, {
|
|
3661
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3760
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3662
3761
|
message: string;
|
|
3663
3762
|
severity: "error" | "warning";
|
|
3664
|
-
scope: "output";
|
|
3763
|
+
scope: "output" | "run";
|
|
3665
3764
|
path?: string | undefined;
|
|
3666
3765
|
}>, "many">>;
|
|
3667
3766
|
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
@@ -3715,12 +3814,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3715
3814
|
id: string;
|
|
3716
3815
|
type: "user" | "serviceAccount";
|
|
3717
3816
|
} | undefined;
|
|
3718
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3817
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3719
3818
|
diagnostics?: {
|
|
3720
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3819
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3721
3820
|
message: string;
|
|
3722
3821
|
severity: "error" | "warning";
|
|
3723
|
-
scope: "output";
|
|
3822
|
+
scope: "output" | "run";
|
|
3724
3823
|
path?: string | undefined;
|
|
3725
3824
|
}[] | undefined;
|
|
3726
3825
|
}, {
|
|
@@ -3768,12 +3867,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3768
3867
|
id: string;
|
|
3769
3868
|
type: "user" | "serviceAccount";
|
|
3770
3869
|
} | undefined;
|
|
3771
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3870
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3772
3871
|
diagnostics?: {
|
|
3773
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3872
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3774
3873
|
message: string;
|
|
3775
3874
|
severity: "error" | "warning";
|
|
3776
|
-
scope: "output";
|
|
3875
|
+
scope: "output" | "run";
|
|
3777
3876
|
path?: string | undefined;
|
|
3778
3877
|
}[] | undefined;
|
|
3779
3878
|
}>, "many">;
|
|
@@ -3825,12 +3924,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3825
3924
|
id: string;
|
|
3826
3925
|
type: "user" | "serviceAccount";
|
|
3827
3926
|
} | undefined;
|
|
3828
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3927
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3829
3928
|
diagnostics?: {
|
|
3830
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3929
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3831
3930
|
message: string;
|
|
3832
3931
|
severity: "error" | "warning";
|
|
3833
|
-
scope: "output";
|
|
3932
|
+
scope: "output" | "run";
|
|
3834
3933
|
path?: string | undefined;
|
|
3835
3934
|
}[] | undefined;
|
|
3836
3935
|
}[];
|
|
@@ -3882,12 +3981,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
3882
3981
|
id: string;
|
|
3883
3982
|
type: "user" | "serviceAccount";
|
|
3884
3983
|
} | undefined;
|
|
3885
|
-
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
|
|
3984
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
3886
3985
|
diagnostics?: {
|
|
3887
|
-
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
3986
|
+
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
|
|
3888
3987
|
message: string;
|
|
3889
3988
|
severity: "error" | "warning";
|
|
3890
|
-
scope: "output";
|
|
3989
|
+
scope: "output" | "run";
|
|
3891
3990
|
path?: string | undefined;
|
|
3892
3991
|
}[] | undefined;
|
|
3893
3992
|
}[];
|