@linnlabs/linnkit 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cli.cjs +35 -14
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +35 -14
- package/dist/cli.js.map +1 -1
- package/dist/contracts/agentSpec.d.cts +30 -30
- package/dist/contracts/agentSpec.d.ts +30 -30
- package/dist/contracts/audit.d.cts +32 -32
- package/dist/contracts/audit.d.ts +32 -32
- package/dist/contracts/contextPolicy.d.cts +36 -36
- package/dist/contracts/contextPolicy.d.ts +36 -36
- package/dist/contracts/events.d.cts +963 -963
- package/dist/contracts/events.d.ts +963 -963
- package/dist/contracts/execution.d.cts +8 -8
- package/dist/contracts/execution.d.ts +8 -8
- package/dist/contracts/messages.d.cts +204 -204
- package/dist/contracts/messages.d.ts +204 -204
- package/dist/contracts/sse.d.cts +889 -889
- package/dist/contracts/sse.d.ts +889 -889
- package/dist/contracts/sub-run-trace-payload.d.cts +26 -26
- package/dist/contracts/sub-run-trace-payload.d.ts +26 -26
- package/dist/contracts/token-accounting.d.cts +28 -28
- package/dist/contracts/token-accounting.d.ts +28 -28
- package/dist/index.cjs +35 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +35 -14
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +35 -14
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +35 -14
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/events/agentEvents.d.cts +98 -98
- package/dist/runtime-kernel/events/agentEvents.d.ts +98 -98
- package/dist/runtime-kernel.cjs +35 -14
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +35 -14
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +35 -14
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +35 -14
- package/dist/testkit.js.map +1 -1
- package/package.json +2 -2
|
@@ -22,12 +22,12 @@ declare const RuntimeEventRoutingIdentity: z.ZodObject<{
|
|
|
22
22
|
}, "strict", z.ZodTypeAny, {
|
|
23
23
|
run_id: string & z.BRAND<"RunId">;
|
|
24
24
|
lane: "foreground" | "auxiliary" | "child";
|
|
25
|
-
visibility: "
|
|
25
|
+
visibility: "none" | "conversation" | "parent-trace";
|
|
26
26
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
run_id: string;
|
|
29
29
|
lane: "foreground" | "auxiliary" | "child";
|
|
30
|
-
visibility: "
|
|
30
|
+
visibility: "none" | "conversation" | "parent-trace";
|
|
31
31
|
parent_run_id?: string | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
type RuntimeEventRoutingIdentity = z.infer<typeof RuntimeEventRoutingIdentity>;
|
|
@@ -45,28 +45,28 @@ declare const BaseEvent: z.ZodObject<{
|
|
|
45
45
|
visibility: z.ZodOptional<z.ZodEnum<["conversation", "parent-trace", "none"]>>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
id: string;
|
|
48
|
-
conversation_id: string;
|
|
49
48
|
timestamp: number;
|
|
50
49
|
version: 1;
|
|
50
|
+
conversation_id: string;
|
|
51
51
|
turn_id: string;
|
|
52
52
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
53
|
-
ephemeral?: boolean | undefined;
|
|
54
53
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
55
54
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
56
55
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
57
|
-
visibility?: "
|
|
56
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
57
|
+
ephemeral?: boolean | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
id: string;
|
|
60
|
-
conversation_id: string;
|
|
61
60
|
timestamp: number;
|
|
61
|
+
conversation_id: string;
|
|
62
62
|
turn_id: string;
|
|
63
63
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
64
64
|
version?: 1 | undefined;
|
|
65
|
-
ephemeral?: boolean | undefined;
|
|
66
65
|
run_id?: string | undefined;
|
|
67
66
|
parent_run_id?: string | undefined;
|
|
68
67
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
69
|
-
visibility?: "
|
|
68
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
69
|
+
ephemeral?: boolean | undefined;
|
|
70
70
|
}>;
|
|
71
71
|
|
|
72
72
|
declare const ToolCallDecisionPayload: z.ZodObject<{
|
|
@@ -362,7 +362,6 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
|
|
|
362
362
|
}[] | undefined;
|
|
363
363
|
}>]>, "many">>;
|
|
364
364
|
}, "strict", z.ZodTypeAny, {
|
|
365
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
366
365
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
367
366
|
provider_continuations?: {
|
|
368
367
|
kind: string;
|
|
@@ -422,8 +421,8 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
|
|
|
422
421
|
payload: SerializableJsonValue;
|
|
423
422
|
}[] | undefined;
|
|
424
423
|
})[] | undefined;
|
|
425
|
-
}, {
|
|
426
424
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
425
|
+
}, {
|
|
427
426
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
428
427
|
provider_continuations?: {
|
|
429
428
|
kind: string;
|
|
@@ -483,6 +482,7 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
|
|
|
483
482
|
payload: SerializableJsonValue;
|
|
484
483
|
}[] | undefined;
|
|
485
484
|
})[] | undefined;
|
|
485
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
486
486
|
}>;
|
|
487
487
|
type ToolCallDecisionPayload = z.infer<typeof ToolCallDecisionPayload>;
|
|
488
488
|
declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -537,21 +537,15 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
537
537
|
label?: string | undefined;
|
|
538
538
|
}>, "many">>;
|
|
539
539
|
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
type: "user_input";
|
|
541
540
|
id: string;
|
|
542
|
-
|
|
541
|
+
type: "user_input";
|
|
542
|
+
content: string;
|
|
543
543
|
timestamp: number;
|
|
544
544
|
version: 1;
|
|
545
|
+
conversation_id: string;
|
|
545
546
|
turn_id: string;
|
|
546
|
-
|
|
547
|
-
source: "user" | "editor" | "system";
|
|
547
|
+
source: "system" | "user" | "editor";
|
|
548
548
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
549
|
-
ephemeral?: boolean | undefined;
|
|
550
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
551
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
552
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
553
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
554
|
-
raw_content?: string | undefined;
|
|
555
549
|
attachments?: {
|
|
556
550
|
id: string;
|
|
557
551
|
kind: "image";
|
|
@@ -564,22 +558,20 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
564
558
|
fileName?: string | undefined;
|
|
565
559
|
label?: string | undefined;
|
|
566
560
|
}[] | undefined;
|
|
561
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
562
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
563
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
564
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
565
|
+
ephemeral?: boolean | undefined;
|
|
566
|
+
raw_content?: string | undefined;
|
|
567
567
|
}, {
|
|
568
|
-
type: "user_input";
|
|
569
568
|
id: string;
|
|
570
|
-
|
|
569
|
+
type: "user_input";
|
|
570
|
+
content: string;
|
|
571
571
|
timestamp: number;
|
|
572
|
+
conversation_id: string;
|
|
572
573
|
turn_id: string;
|
|
573
|
-
content: string;
|
|
574
574
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
575
|
-
version?: 1 | undefined;
|
|
576
|
-
ephemeral?: boolean | undefined;
|
|
577
|
-
run_id?: string | undefined;
|
|
578
|
-
parent_run_id?: string | undefined;
|
|
579
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
580
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
581
|
-
raw_content?: string | undefined;
|
|
582
|
-
source?: "user" | "editor" | "system" | undefined;
|
|
583
575
|
attachments?: {
|
|
584
576
|
id: string;
|
|
585
577
|
kind: "image";
|
|
@@ -592,6 +584,14 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
592
584
|
fileName?: string | undefined;
|
|
593
585
|
label?: string | undefined;
|
|
594
586
|
}[] | undefined;
|
|
587
|
+
version?: 1 | undefined;
|
|
588
|
+
run_id?: string | undefined;
|
|
589
|
+
parent_run_id?: string | undefined;
|
|
590
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
591
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
592
|
+
ephemeral?: boolean | undefined;
|
|
593
|
+
raw_content?: string | undefined;
|
|
594
|
+
source?: "system" | "user" | "editor" | undefined;
|
|
595
595
|
}>, z.ZodObject<{
|
|
596
596
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
597
597
|
conversation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -611,36 +611,36 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
611
611
|
delta: z.ZodOptional<z.ZodString>;
|
|
612
612
|
is_complete: z.ZodDefault<z.ZodBoolean>;
|
|
613
613
|
}, "strip", z.ZodTypeAny, {
|
|
614
|
-
type: "thought";
|
|
615
614
|
id: string;
|
|
616
|
-
|
|
615
|
+
type: "thought";
|
|
616
|
+
content: string;
|
|
617
617
|
timestamp: number;
|
|
618
618
|
version: 1;
|
|
619
|
+
conversation_id: string;
|
|
619
620
|
turn_id: string;
|
|
620
|
-
content: string;
|
|
621
621
|
is_complete: boolean;
|
|
622
622
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
623
|
-
ephemeral?: boolean | undefined;
|
|
624
623
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
625
624
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
626
625
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
627
|
-
visibility?: "
|
|
626
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
627
|
+
ephemeral?: boolean | undefined;
|
|
628
628
|
thought_message_id?: string | undefined;
|
|
629
629
|
delta?: string | undefined;
|
|
630
630
|
}, {
|
|
631
|
-
type: "thought";
|
|
632
631
|
id: string;
|
|
633
|
-
|
|
632
|
+
type: "thought";
|
|
633
|
+
content: string;
|
|
634
634
|
timestamp: number;
|
|
635
|
+
conversation_id: string;
|
|
635
636
|
turn_id: string;
|
|
636
|
-
content: string;
|
|
637
637
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
638
638
|
version?: 1 | undefined;
|
|
639
|
-
ephemeral?: boolean | undefined;
|
|
640
639
|
run_id?: string | undefined;
|
|
641
640
|
parent_run_id?: string | undefined;
|
|
642
641
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
643
|
-
visibility?: "
|
|
642
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
643
|
+
ephemeral?: boolean | undefined;
|
|
644
644
|
thought_message_id?: string | undefined;
|
|
645
645
|
delta?: string | undefined;
|
|
646
646
|
is_complete?: boolean | undefined;
|
|
@@ -956,7 +956,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
956
956
|
}[] | undefined;
|
|
957
957
|
}>]>, "many">>;
|
|
958
958
|
}, "strict", z.ZodTypeAny, {
|
|
959
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
960
959
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
961
960
|
provider_continuations?: {
|
|
962
961
|
kind: string;
|
|
@@ -1016,8 +1015,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1016
1015
|
payload: SerializableJsonValue;
|
|
1017
1016
|
}[] | undefined;
|
|
1018
1017
|
})[] | undefined;
|
|
1019
|
-
}, {
|
|
1020
1018
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1019
|
+
}, {
|
|
1021
1020
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
1022
1021
|
provider_continuations?: {
|
|
1023
1022
|
kind: string;
|
|
@@ -1077,29 +1076,22 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1077
1076
|
payload: SerializableJsonValue;
|
|
1078
1077
|
}[] | undefined;
|
|
1079
1078
|
})[] | undefined;
|
|
1079
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1080
1080
|
}>>;
|
|
1081
1081
|
parent_tool_call_id: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">>;
|
|
1082
1082
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
1083
1083
|
}, "strip", z.ZodTypeAny, {
|
|
1084
|
-
type: "tool_call_decision";
|
|
1085
1084
|
id: string;
|
|
1086
|
-
conversation_id: string;
|
|
1087
|
-
timestamp: number;
|
|
1088
1085
|
status: "error" | "loading" | "success";
|
|
1086
|
+
type: "tool_call_decision";
|
|
1087
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1088
|
+
tool_name: string;
|
|
1089
|
+
timestamp: number;
|
|
1089
1090
|
version: 1;
|
|
1091
|
+
conversation_id: string;
|
|
1090
1092
|
turn_id: string;
|
|
1091
|
-
|
|
1092
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1093
|
-
phase: "start" | "update" | "complete" | "error";
|
|
1094
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1095
|
-
ephemeral?: boolean | undefined;
|
|
1096
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1097
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1098
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1099
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1100
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1093
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1101
1094
|
payload?: {
|
|
1102
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1103
1095
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
1104
1096
|
provider_continuations?: {
|
|
1105
1097
|
kind: string;
|
|
@@ -1159,29 +1151,28 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1159
1151
|
payload: SerializableJsonValue;
|
|
1160
1152
|
}[] | undefined;
|
|
1161
1153
|
})[] | undefined;
|
|
1154
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1162
1155
|
} | undefined;
|
|
1156
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1157
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1158
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1159
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1160
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1161
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1162
|
+
ephemeral?: boolean | undefined;
|
|
1163
1163
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
1164
1164
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1165
1165
|
}, {
|
|
1166
|
-
type: "tool_call_decision";
|
|
1167
1166
|
id: string;
|
|
1168
|
-
conversation_id: string;
|
|
1169
|
-
timestamp: number;
|
|
1170
1167
|
status: "error" | "loading" | "success";
|
|
1171
|
-
|
|
1172
|
-
tool_name: string;
|
|
1168
|
+
type: "tool_call_decision";
|
|
1173
1169
|
tool_call_id: string;
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
parent_run_id?: string | undefined;
|
|
1180
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1181
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1182
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1170
|
+
tool_name: string;
|
|
1171
|
+
timestamp: number;
|
|
1172
|
+
conversation_id: string;
|
|
1173
|
+
turn_id: string;
|
|
1174
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1183
1175
|
payload?: {
|
|
1184
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1185
1176
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
1186
1177
|
provider_continuations?: {
|
|
1187
1178
|
kind: string;
|
|
@@ -1241,7 +1232,16 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1241
1232
|
payload: SerializableJsonValue;
|
|
1242
1233
|
}[] | undefined;
|
|
1243
1234
|
})[] | undefined;
|
|
1235
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1244
1236
|
} | undefined;
|
|
1237
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1238
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1239
|
+
version?: 1 | undefined;
|
|
1240
|
+
run_id?: string | undefined;
|
|
1241
|
+
parent_run_id?: string | undefined;
|
|
1242
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1243
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1244
|
+
ephemeral?: boolean | undefined;
|
|
1245
1245
|
parent_tool_call_id?: string | undefined;
|
|
1246
1246
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1247
1247
|
}>, z.ZodObject<{
|
|
@@ -1267,45 +1267,45 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1267
1267
|
parent_tool_call_id: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">>;
|
|
1268
1268
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
1269
1269
|
}, "strip", z.ZodTypeAny, {
|
|
1270
|
-
type: "tool_process";
|
|
1271
1270
|
id: string;
|
|
1272
|
-
conversation_id: string;
|
|
1273
|
-
timestamp: number;
|
|
1274
1271
|
status: "error" | "loading" | "success";
|
|
1272
|
+
type: "tool_process";
|
|
1273
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1274
|
+
tool_name: string;
|
|
1275
|
+
timestamp: number;
|
|
1275
1276
|
version: 1;
|
|
1277
|
+
conversation_id: string;
|
|
1276
1278
|
turn_id: string;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1279
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1280
|
+
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
1281
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1280
1282
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1281
|
-
ephemeral?: boolean | undefined;
|
|
1282
1283
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1283
1284
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1284
1285
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1285
|
-
visibility?: "
|
|
1286
|
-
|
|
1287
|
-
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
1286
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1287
|
+
ephemeral?: boolean | undefined;
|
|
1288
1288
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
1289
1289
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1290
1290
|
}, {
|
|
1291
|
-
type: "tool_process";
|
|
1292
1291
|
id: string;
|
|
1293
|
-
conversation_id: string;
|
|
1294
|
-
timestamp: number;
|
|
1295
1292
|
status: "error" | "loading" | "success";
|
|
1296
|
-
|
|
1297
|
-
tool_name: string;
|
|
1293
|
+
type: "tool_process";
|
|
1298
1294
|
tool_call_id: string;
|
|
1299
|
-
|
|
1295
|
+
tool_name: string;
|
|
1296
|
+
timestamp: number;
|
|
1297
|
+
conversation_id: string;
|
|
1298
|
+
turn_id: string;
|
|
1299
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1300
|
+
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
1301
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1300
1302
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1301
1303
|
version?: 1 | undefined;
|
|
1302
|
-
ephemeral?: boolean | undefined;
|
|
1303
1304
|
run_id?: string | undefined;
|
|
1304
1305
|
parent_run_id?: string | undefined;
|
|
1305
1306
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1306
|
-
visibility?: "
|
|
1307
|
-
|
|
1308
|
-
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
1307
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1308
|
+
ephemeral?: boolean | undefined;
|
|
1309
1309
|
parent_tool_call_id?: string | undefined;
|
|
1310
1310
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1311
1311
|
}>, z.ZodObject<{
|
|
@@ -1365,22 +1365,19 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1365
1365
|
label?: string | undefined;
|
|
1366
1366
|
}>, "many">>;
|
|
1367
1367
|
}, "strip", z.ZodTypeAny, {
|
|
1368
|
-
type: "tool_output";
|
|
1369
1368
|
id: string;
|
|
1370
|
-
conversation_id: string;
|
|
1371
|
-
timestamp: number;
|
|
1372
1369
|
status: "error" | "success";
|
|
1370
|
+
type: "tool_output";
|
|
1371
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1372
|
+
tool_name: string;
|
|
1373
|
+
timestamp: number;
|
|
1373
1374
|
version: 1;
|
|
1375
|
+
conversation_id: string;
|
|
1374
1376
|
turn_id: string;
|
|
1375
|
-
tool_name: string;
|
|
1376
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1377
1377
|
observation: string;
|
|
1378
|
+
data?: SerializableJsonValue | undefined;
|
|
1379
|
+
error?: string | undefined;
|
|
1378
1380
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1379
|
-
ephemeral?: boolean | undefined;
|
|
1380
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1381
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1382
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1383
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1384
1381
|
attachments?: {
|
|
1385
1382
|
id: string;
|
|
1386
1383
|
kind: "image";
|
|
@@ -1393,27 +1390,26 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1393
1390
|
fileName?: string | undefined;
|
|
1394
1391
|
label?: string | undefined;
|
|
1395
1392
|
}[] | undefined;
|
|
1396
|
-
|
|
1397
|
-
|
|
1393
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1394
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1395
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1396
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1397
|
+
ephemeral?: boolean | undefined;
|
|
1398
1398
|
error_code?: string | undefined;
|
|
1399
1399
|
duration_ms?: number | undefined;
|
|
1400
1400
|
}, {
|
|
1401
|
-
type: "tool_output";
|
|
1402
1401
|
id: string;
|
|
1403
|
-
conversation_id: string;
|
|
1404
|
-
timestamp: number;
|
|
1405
1402
|
status: "error" | "success";
|
|
1406
|
-
|
|
1407
|
-
tool_name: string;
|
|
1403
|
+
type: "tool_output";
|
|
1408
1404
|
tool_call_id: string;
|
|
1405
|
+
tool_name: string;
|
|
1406
|
+
timestamp: number;
|
|
1407
|
+
conversation_id: string;
|
|
1408
|
+
turn_id: string;
|
|
1409
1409
|
observation: string;
|
|
1410
|
+
data?: SerializableJsonValue | undefined;
|
|
1411
|
+
error?: string | undefined;
|
|
1410
1412
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1411
|
-
version?: 1 | undefined;
|
|
1412
|
-
ephemeral?: boolean | undefined;
|
|
1413
|
-
run_id?: string | undefined;
|
|
1414
|
-
parent_run_id?: string | undefined;
|
|
1415
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1416
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1417
1413
|
attachments?: {
|
|
1418
1414
|
id: string;
|
|
1419
1415
|
kind: "image";
|
|
@@ -1426,8 +1422,12 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1426
1422
|
fileName?: string | undefined;
|
|
1427
1423
|
label?: string | undefined;
|
|
1428
1424
|
}[] | undefined;
|
|
1429
|
-
|
|
1430
|
-
|
|
1425
|
+
version?: 1 | undefined;
|
|
1426
|
+
run_id?: string | undefined;
|
|
1427
|
+
parent_run_id?: string | undefined;
|
|
1428
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1429
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1430
|
+
ephemeral?: boolean | undefined;
|
|
1431
1431
|
error_code?: string | undefined;
|
|
1432
1432
|
duration_ms?: number | undefined;
|
|
1433
1433
|
}>, z.ZodObject<{
|
|
@@ -1463,12 +1463,12 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1463
1463
|
tool_name: z.ZodString;
|
|
1464
1464
|
args: z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
1465
1465
|
}, "strict", z.ZodTypeAny, {
|
|
1466
|
-
tool_name: string;
|
|
1467
1466
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1467
|
+
tool_name: string;
|
|
1468
1468
|
args: Record<string, SerializableJsonValue>;
|
|
1469
1469
|
}, {
|
|
1470
|
-
tool_name: string;
|
|
1471
1470
|
tool_call_id: string;
|
|
1471
|
+
tool_name: string;
|
|
1472
1472
|
args: Record<string, SerializableJsonValue>;
|
|
1473
1473
|
}>, "many">>;
|
|
1474
1474
|
output: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
@@ -1515,24 +1515,29 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1515
1515
|
type: z.ZodLiteral<"subrun_trace">;
|
|
1516
1516
|
ephemeral: z.ZodLiteral<true>;
|
|
1517
1517
|
}, "strip", z.ZodTypeAny, {
|
|
1518
|
-
type: "subrun_trace";
|
|
1519
1518
|
id: string;
|
|
1520
|
-
|
|
1519
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
1520
|
+
type: "subrun_trace";
|
|
1521
1521
|
timestamp: number;
|
|
1522
1522
|
version: 1;
|
|
1523
|
+
conversation_id: string;
|
|
1523
1524
|
turn_id: string;
|
|
1524
1525
|
ephemeral: true;
|
|
1525
|
-
kind: "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary";
|
|
1526
1526
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1527
1527
|
subrun_id: string;
|
|
1528
1528
|
source_event_id: string;
|
|
1529
1529
|
status?: "error" | "loading" | "success" | undefined;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1530
|
+
tool_calls?: {
|
|
1531
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1532
|
+
tool_name: string;
|
|
1533
|
+
args: Record<string, SerializableJsonValue>;
|
|
1534
|
+
}[] | undefined;
|
|
1535
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
1536
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
1537
|
+
tool_name?: string | undefined;
|
|
1538
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1535
1539
|
content?: string | undefined;
|
|
1540
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1536
1541
|
attachments?: {
|
|
1537
1542
|
id: string;
|
|
1538
1543
|
kind: "image";
|
|
@@ -1545,47 +1550,46 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1545
1550
|
fileName?: string | undefined;
|
|
1546
1551
|
label?: string | undefined;
|
|
1547
1552
|
}[] | undefined;
|
|
1553
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1554
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1555
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1556
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1548
1557
|
delta?: string | undefined;
|
|
1549
|
-
|
|
1550
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
1551
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
1552
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1553
|
-
tool_calls?: {
|
|
1554
|
-
tool_name: string;
|
|
1555
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1556
|
-
args: Record<string, SerializableJsonValue>;
|
|
1557
|
-
}[] | undefined;
|
|
1558
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
1558
1559
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1559
1560
|
duration_ms?: number | undefined;
|
|
1560
1561
|
subrun_parent_id?: string | undefined;
|
|
1561
1562
|
answer_id?: string | undefined;
|
|
1562
1563
|
seq?: number | undefined;
|
|
1563
1564
|
is_last?: boolean | undefined;
|
|
1564
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
1565
1565
|
output?: SerializableJsonValue | undefined;
|
|
1566
1566
|
original_message_count?: number | undefined;
|
|
1567
1567
|
compression_ratio?: number | undefined;
|
|
1568
1568
|
included_old_summary?: boolean | undefined;
|
|
1569
1569
|
replaced_message_ids?: string[] | undefined;
|
|
1570
1570
|
}, {
|
|
1571
|
-
type: "subrun_trace";
|
|
1572
1571
|
id: string;
|
|
1573
|
-
|
|
1572
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
1573
|
+
type: "subrun_trace";
|
|
1574
1574
|
timestamp: number;
|
|
1575
|
+
conversation_id: string;
|
|
1575
1576
|
turn_id: string;
|
|
1576
1577
|
ephemeral: true;
|
|
1577
|
-
kind: "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary";
|
|
1578
1578
|
parent_tool_call_id: string;
|
|
1579
1579
|
subrun_id: string;
|
|
1580
1580
|
source_event_id: string;
|
|
1581
1581
|
status?: "error" | "loading" | "success" | undefined;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1582
|
+
tool_calls?: {
|
|
1583
|
+
tool_call_id: string;
|
|
1584
|
+
tool_name: string;
|
|
1585
|
+
args: Record<string, SerializableJsonValue>;
|
|
1586
|
+
}[] | undefined;
|
|
1587
|
+
tool_call_id?: string | undefined;
|
|
1588
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
1589
|
+
tool_name?: string | undefined;
|
|
1590
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1588
1591
|
content?: string | undefined;
|
|
1592
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1589
1593
|
attachments?: {
|
|
1590
1594
|
id: string;
|
|
1591
1595
|
kind: "image";
|
|
@@ -1598,23 +1602,19 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1598
1602
|
fileName?: string | undefined;
|
|
1599
1603
|
label?: string | undefined;
|
|
1600
1604
|
}[] | undefined;
|
|
1605
|
+
version?: 1 | undefined;
|
|
1606
|
+
run_id?: string | undefined;
|
|
1607
|
+
parent_run_id?: string | undefined;
|
|
1608
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1609
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1601
1610
|
delta?: string | undefined;
|
|
1602
|
-
|
|
1603
|
-
tool_call_id?: string | undefined;
|
|
1604
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
1605
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1606
|
-
tool_calls?: {
|
|
1607
|
-
tool_name: string;
|
|
1608
|
-
tool_call_id: string;
|
|
1609
|
-
args: Record<string, SerializableJsonValue>;
|
|
1610
|
-
}[] | undefined;
|
|
1611
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
1611
1612
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1612
1613
|
duration_ms?: number | undefined;
|
|
1613
1614
|
subrun_parent_id?: string | undefined;
|
|
1614
1615
|
answer_id?: string | undefined;
|
|
1615
1616
|
seq?: number | undefined;
|
|
1616
1617
|
is_last?: boolean | undefined;
|
|
1617
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
1618
1618
|
output?: SerializableJsonValue | undefined;
|
|
1619
1619
|
original_message_count?: number | undefined;
|
|
1620
1620
|
compression_ratio?: number | undefined;
|
|
@@ -1643,44 +1643,44 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1643
1643
|
resume_token: z.ZodEffects<z.ZodString, string, string>;
|
|
1644
1644
|
interaction_status: z.ZodLiteral<"pending">;
|
|
1645
1645
|
}, "strip", z.ZodTypeAny, {
|
|
1646
|
-
type: "requires_user_interaction";
|
|
1647
1646
|
id: string;
|
|
1648
|
-
|
|
1647
|
+
type: "requires_user_interaction";
|
|
1648
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1649
1649
|
timestamp: number;
|
|
1650
1650
|
version: 1;
|
|
1651
|
-
turn_id: string;
|
|
1652
1651
|
run_id: string & z.BRAND<"RunId">;
|
|
1653
|
-
|
|
1652
|
+
conversation_id: string;
|
|
1653
|
+
turn_id: string;
|
|
1654
1654
|
interaction_id: string;
|
|
1655
1655
|
checkpoint_revision: number;
|
|
1656
1656
|
resume_token: string;
|
|
1657
1657
|
interaction_status: "pending";
|
|
1658
1658
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1659
|
-
ephemeral?: boolean | undefined;
|
|
1660
1659
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1661
1660
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1662
|
-
visibility?: "
|
|
1661
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1662
|
+
ephemeral?: boolean | undefined;
|
|
1663
1663
|
form?: SerializableJsonValue | undefined;
|
|
1664
1664
|
interaction_type?: string | undefined;
|
|
1665
1665
|
prompt?: string | undefined;
|
|
1666
1666
|
}, {
|
|
1667
|
-
type: "requires_user_interaction";
|
|
1668
1667
|
id: string;
|
|
1669
|
-
|
|
1668
|
+
type: "requires_user_interaction";
|
|
1669
|
+
tool_call_id: string;
|
|
1670
1670
|
timestamp: number;
|
|
1671
|
-
turn_id: string;
|
|
1672
1671
|
run_id: string;
|
|
1673
|
-
|
|
1672
|
+
conversation_id: string;
|
|
1673
|
+
turn_id: string;
|
|
1674
1674
|
interaction_id: string;
|
|
1675
1675
|
checkpoint_revision: number;
|
|
1676
1676
|
resume_token: string;
|
|
1677
1677
|
interaction_status: "pending";
|
|
1678
1678
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1679
1679
|
version?: 1 | undefined;
|
|
1680
|
-
ephemeral?: boolean | undefined;
|
|
1681
1680
|
parent_run_id?: string | undefined;
|
|
1682
1681
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1683
|
-
visibility?: "
|
|
1682
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1683
|
+
ephemeral?: boolean | undefined;
|
|
1684
1684
|
form?: SerializableJsonValue | undefined;
|
|
1685
1685
|
interaction_type?: string | undefined;
|
|
1686
1686
|
prompt?: string | undefined;
|
|
@@ -1708,11 +1708,11 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1708
1708
|
id: z.ZodOptional<z.ZodString>;
|
|
1709
1709
|
name: z.ZodOptional<z.ZodString>;
|
|
1710
1710
|
}, "strip", z.ZodTypeAny, {
|
|
1711
|
-
kind: "
|
|
1711
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
1712
1712
|
id?: string | undefined;
|
|
1713
1713
|
name?: string | undefined;
|
|
1714
1714
|
}, {
|
|
1715
|
-
kind: "
|
|
1715
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
1716
1716
|
id?: string | undefined;
|
|
1717
1717
|
name?: string | undefined;
|
|
1718
1718
|
}>;
|
|
@@ -1723,12 +1723,12 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1723
1723
|
policy: z.ZodOptional<z.ZodString>;
|
|
1724
1724
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1725
1725
|
}, "strip", z.ZodTypeAny, {
|
|
1726
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
1726
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
1727
1727
|
metadata?: Record<string, unknown> | undefined;
|
|
1728
1728
|
reason?: string | undefined;
|
|
1729
1729
|
policy?: string | undefined;
|
|
1730
1730
|
}, {
|
|
1731
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
1731
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
1732
1732
|
metadata?: Record<string, unknown> | undefined;
|
|
1733
1733
|
reason?: string | undefined;
|
|
1734
1734
|
policy?: string | undefined;
|
|
@@ -1740,14 +1740,14 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1740
1740
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1741
1741
|
}, "strip", z.ZodTypeAny, {
|
|
1742
1742
|
kind: string;
|
|
1743
|
+
summary?: string | undefined;
|
|
1743
1744
|
metadata?: Record<string, unknown> | undefined;
|
|
1744
1745
|
ref?: string | undefined;
|
|
1745
|
-
summary?: string | undefined;
|
|
1746
1746
|
}, {
|
|
1747
1747
|
kind: string;
|
|
1748
|
+
summary?: string | undefined;
|
|
1748
1749
|
metadata?: Record<string, unknown> | undefined;
|
|
1749
1750
|
ref?: string | undefined;
|
|
1750
|
-
summary?: string | undefined;
|
|
1751
1751
|
}>, "many">>;
|
|
1752
1752
|
costDelta: z.ZodOptional<z.ZodObject<{
|
|
1753
1753
|
tokensInput: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1779,51 +1779,51 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1779
1779
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1780
1780
|
}, "strip", z.ZodTypeAny, {
|
|
1781
1781
|
metadata?: Record<string, unknown> | undefined;
|
|
1782
|
+
toolName?: string | undefined;
|
|
1783
|
+
conversationId?: string | undefined;
|
|
1782
1784
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1783
1785
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1784
|
-
conversationId?: string | undefined;
|
|
1785
1786
|
turnId?: string | undefined;
|
|
1786
1787
|
traceId?: string | undefined;
|
|
1787
1788
|
agentSpecId?: string | undefined;
|
|
1788
1789
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
1789
|
-
toolName?: string | undefined;
|
|
1790
1790
|
modelId?: string | undefined;
|
|
1791
1791
|
nodeId?: string | undefined;
|
|
1792
1792
|
}, {
|
|
1793
1793
|
metadata?: Record<string, unknown> | undefined;
|
|
1794
|
+
toolName?: string | undefined;
|
|
1795
|
+
conversationId?: string | undefined;
|
|
1794
1796
|
runId?: string | undefined;
|
|
1795
1797
|
parentRunId?: string | undefined;
|
|
1796
|
-
conversationId?: string | undefined;
|
|
1797
1798
|
turnId?: string | undefined;
|
|
1798
1799
|
traceId?: string | undefined;
|
|
1799
1800
|
agentSpecId?: string | undefined;
|
|
1800
1801
|
toolCallId?: string | undefined;
|
|
1801
|
-
toolName?: string | undefined;
|
|
1802
1802
|
modelId?: string | undefined;
|
|
1803
1803
|
nodeId?: string | undefined;
|
|
1804
1804
|
}>>;
|
|
1805
1805
|
}, "strip", z.ZodTypeAny, {
|
|
1806
|
-
envelopeId: string;
|
|
1807
1806
|
runId: string & z.BRAND<"RunId">;
|
|
1807
|
+
envelopeId: string;
|
|
1808
1808
|
ts: number;
|
|
1809
1809
|
actor: {
|
|
1810
|
-
kind: "
|
|
1810
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
1811
1811
|
id?: string | undefined;
|
|
1812
1812
|
name?: string | undefined;
|
|
1813
1813
|
};
|
|
1814
1814
|
action: string;
|
|
1815
1815
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1816
1816
|
decision?: {
|
|
1817
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
1817
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
1818
1818
|
metadata?: Record<string, unknown> | undefined;
|
|
1819
1819
|
reason?: string | undefined;
|
|
1820
1820
|
policy?: string | undefined;
|
|
1821
1821
|
} | undefined;
|
|
1822
1822
|
evidence?: {
|
|
1823
1823
|
kind: string;
|
|
1824
|
+
summary?: string | undefined;
|
|
1824
1825
|
metadata?: Record<string, unknown> | undefined;
|
|
1825
1826
|
ref?: string | undefined;
|
|
1826
|
-
summary?: string | undefined;
|
|
1827
1827
|
}[] | undefined;
|
|
1828
1828
|
costDelta?: {
|
|
1829
1829
|
tokensInput?: number | undefined;
|
|
@@ -1833,39 +1833,39 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1833
1833
|
} | undefined;
|
|
1834
1834
|
scope?: {
|
|
1835
1835
|
metadata?: Record<string, unknown> | undefined;
|
|
1836
|
+
toolName?: string | undefined;
|
|
1837
|
+
conversationId?: string | undefined;
|
|
1836
1838
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1837
1839
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1838
|
-
conversationId?: string | undefined;
|
|
1839
1840
|
turnId?: string | undefined;
|
|
1840
1841
|
traceId?: string | undefined;
|
|
1841
1842
|
agentSpecId?: string | undefined;
|
|
1842
1843
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
1843
|
-
toolName?: string | undefined;
|
|
1844
1844
|
modelId?: string | undefined;
|
|
1845
1845
|
nodeId?: string | undefined;
|
|
1846
1846
|
} | undefined;
|
|
1847
1847
|
}, {
|
|
1848
|
-
envelopeId: string;
|
|
1849
1848
|
runId: string;
|
|
1849
|
+
envelopeId: string;
|
|
1850
1850
|
ts: number;
|
|
1851
1851
|
actor: {
|
|
1852
|
-
kind: "
|
|
1852
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
1853
1853
|
id?: string | undefined;
|
|
1854
1854
|
name?: string | undefined;
|
|
1855
1855
|
};
|
|
1856
1856
|
action: string;
|
|
1857
1857
|
parentRunId?: string | undefined;
|
|
1858
1858
|
decision?: {
|
|
1859
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
1859
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
1860
1860
|
metadata?: Record<string, unknown> | undefined;
|
|
1861
1861
|
reason?: string | undefined;
|
|
1862
1862
|
policy?: string | undefined;
|
|
1863
1863
|
} | undefined;
|
|
1864
1864
|
evidence?: {
|
|
1865
1865
|
kind: string;
|
|
1866
|
+
summary?: string | undefined;
|
|
1866
1867
|
metadata?: Record<string, unknown> | undefined;
|
|
1867
1868
|
ref?: string | undefined;
|
|
1868
|
-
summary?: string | undefined;
|
|
1869
1869
|
}[] | undefined;
|
|
1870
1870
|
costDelta?: {
|
|
1871
1871
|
tokensInput?: number | undefined;
|
|
@@ -1875,47 +1875,47 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1875
1875
|
} | undefined;
|
|
1876
1876
|
scope?: {
|
|
1877
1877
|
metadata?: Record<string, unknown> | undefined;
|
|
1878
|
+
toolName?: string | undefined;
|
|
1879
|
+
conversationId?: string | undefined;
|
|
1878
1880
|
runId?: string | undefined;
|
|
1879
1881
|
parentRunId?: string | undefined;
|
|
1880
|
-
conversationId?: string | undefined;
|
|
1881
1882
|
turnId?: string | undefined;
|
|
1882
1883
|
traceId?: string | undefined;
|
|
1883
1884
|
agentSpecId?: string | undefined;
|
|
1884
1885
|
toolCallId?: string | undefined;
|
|
1885
|
-
toolName?: string | undefined;
|
|
1886
1886
|
modelId?: string | undefined;
|
|
1887
1887
|
nodeId?: string | undefined;
|
|
1888
1888
|
} | undefined;
|
|
1889
1889
|
}>;
|
|
1890
1890
|
}, "strip", z.ZodTypeAny, {
|
|
1891
|
-
type: "audit_envelope";
|
|
1892
1891
|
id: string;
|
|
1893
|
-
|
|
1892
|
+
type: "audit_envelope";
|
|
1894
1893
|
timestamp: number;
|
|
1895
1894
|
version: 1;
|
|
1895
|
+
conversation_id: string;
|
|
1896
1896
|
turn_id: string;
|
|
1897
1897
|
envelope: {
|
|
1898
|
-
envelopeId: string;
|
|
1899
1898
|
runId: string & z.BRAND<"RunId">;
|
|
1899
|
+
envelopeId: string;
|
|
1900
1900
|
ts: number;
|
|
1901
1901
|
actor: {
|
|
1902
|
-
kind: "
|
|
1902
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
1903
1903
|
id?: string | undefined;
|
|
1904
1904
|
name?: string | undefined;
|
|
1905
1905
|
};
|
|
1906
1906
|
action: string;
|
|
1907
1907
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1908
1908
|
decision?: {
|
|
1909
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
1909
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
1910
1910
|
metadata?: Record<string, unknown> | undefined;
|
|
1911
1911
|
reason?: string | undefined;
|
|
1912
1912
|
policy?: string | undefined;
|
|
1913
1913
|
} | undefined;
|
|
1914
1914
|
evidence?: {
|
|
1915
1915
|
kind: string;
|
|
1916
|
+
summary?: string | undefined;
|
|
1916
1917
|
metadata?: Record<string, unknown> | undefined;
|
|
1917
1918
|
ref?: string | undefined;
|
|
1918
|
-
summary?: string | undefined;
|
|
1919
1919
|
}[] | undefined;
|
|
1920
1920
|
costDelta?: {
|
|
1921
1921
|
tokensInput?: number | undefined;
|
|
@@ -1925,52 +1925,52 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1925
1925
|
} | undefined;
|
|
1926
1926
|
scope?: {
|
|
1927
1927
|
metadata?: Record<string, unknown> | undefined;
|
|
1928
|
+
toolName?: string | undefined;
|
|
1929
|
+
conversationId?: string | undefined;
|
|
1928
1930
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1929
1931
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
1930
|
-
conversationId?: string | undefined;
|
|
1931
1932
|
turnId?: string | undefined;
|
|
1932
1933
|
traceId?: string | undefined;
|
|
1933
1934
|
agentSpecId?: string | undefined;
|
|
1934
1935
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
1935
|
-
toolName?: string | undefined;
|
|
1936
1936
|
modelId?: string | undefined;
|
|
1937
1937
|
nodeId?: string | undefined;
|
|
1938
1938
|
} | undefined;
|
|
1939
1939
|
};
|
|
1940
1940
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1941
|
-
ephemeral?: boolean | undefined;
|
|
1942
1941
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1943
1942
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1944
1943
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1945
|
-
visibility?: "
|
|
1944
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1945
|
+
ephemeral?: boolean | undefined;
|
|
1946
1946
|
}, {
|
|
1947
|
-
type: "audit_envelope";
|
|
1948
1947
|
id: string;
|
|
1949
|
-
|
|
1948
|
+
type: "audit_envelope";
|
|
1950
1949
|
timestamp: number;
|
|
1950
|
+
conversation_id: string;
|
|
1951
1951
|
turn_id: string;
|
|
1952
1952
|
envelope: {
|
|
1953
|
-
envelopeId: string;
|
|
1954
1953
|
runId: string;
|
|
1954
|
+
envelopeId: string;
|
|
1955
1955
|
ts: number;
|
|
1956
1956
|
actor: {
|
|
1957
|
-
kind: "
|
|
1957
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
1958
1958
|
id?: string | undefined;
|
|
1959
1959
|
name?: string | undefined;
|
|
1960
1960
|
};
|
|
1961
1961
|
action: string;
|
|
1962
1962
|
parentRunId?: string | undefined;
|
|
1963
1963
|
decision?: {
|
|
1964
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
1964
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
1965
1965
|
metadata?: Record<string, unknown> | undefined;
|
|
1966
1966
|
reason?: string | undefined;
|
|
1967
1967
|
policy?: string | undefined;
|
|
1968
1968
|
} | undefined;
|
|
1969
1969
|
evidence?: {
|
|
1970
1970
|
kind: string;
|
|
1971
|
+
summary?: string | undefined;
|
|
1971
1972
|
metadata?: Record<string, unknown> | undefined;
|
|
1972
1973
|
ref?: string | undefined;
|
|
1973
|
-
summary?: string | undefined;
|
|
1974
1974
|
}[] | undefined;
|
|
1975
1975
|
costDelta?: {
|
|
1976
1976
|
tokensInput?: number | undefined;
|
|
@@ -1980,25 +1980,25 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1980
1980
|
} | undefined;
|
|
1981
1981
|
scope?: {
|
|
1982
1982
|
metadata?: Record<string, unknown> | undefined;
|
|
1983
|
+
toolName?: string | undefined;
|
|
1984
|
+
conversationId?: string | undefined;
|
|
1983
1985
|
runId?: string | undefined;
|
|
1984
1986
|
parentRunId?: string | undefined;
|
|
1985
|
-
conversationId?: string | undefined;
|
|
1986
1987
|
turnId?: string | undefined;
|
|
1987
1988
|
traceId?: string | undefined;
|
|
1988
1989
|
agentSpecId?: string | undefined;
|
|
1989
1990
|
toolCallId?: string | undefined;
|
|
1990
|
-
toolName?: string | undefined;
|
|
1991
1991
|
modelId?: string | undefined;
|
|
1992
1992
|
nodeId?: string | undefined;
|
|
1993
1993
|
} | undefined;
|
|
1994
1994
|
};
|
|
1995
1995
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1996
1996
|
version?: 1 | undefined;
|
|
1997
|
-
ephemeral?: boolean | undefined;
|
|
1998
1997
|
run_id?: string | undefined;
|
|
1999
1998
|
parent_run_id?: string | undefined;
|
|
2000
1999
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2001
|
-
visibility?: "
|
|
2000
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2001
|
+
ephemeral?: boolean | undefined;
|
|
2002
2002
|
}>, z.ZodObject<{
|
|
2003
2003
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
2004
2004
|
conversation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -2304,22 +2304,16 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2304
2304
|
}>]>, "many">>;
|
|
2305
2305
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
2306
2306
|
}, "strip", z.ZodTypeAny, {
|
|
2307
|
-
type: "final_answer";
|
|
2308
2307
|
id: string;
|
|
2309
|
-
|
|
2308
|
+
type: "final_answer";
|
|
2309
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
2310
|
+
content: string;
|
|
2310
2311
|
timestamp: number;
|
|
2311
2312
|
version: 1;
|
|
2313
|
+
conversation_id: string;
|
|
2312
2314
|
turn_id: string;
|
|
2313
|
-
content: string;
|
|
2314
2315
|
is_complete: boolean;
|
|
2315
2316
|
answer_id: string;
|
|
2316
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
2317
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2318
|
-
ephemeral?: boolean | undefined;
|
|
2319
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2320
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2321
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2322
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2323
2317
|
provider_continuations?: {
|
|
2324
2318
|
kind: string;
|
|
2325
2319
|
schema_version: 2;
|
|
@@ -2378,24 +2372,22 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2378
2372
|
payload: SerializableJsonValue;
|
|
2379
2373
|
}[] | undefined;
|
|
2380
2374
|
})[] | undefined;
|
|
2375
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2376
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2377
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2378
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2379
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2380
|
+
ephemeral?: boolean | undefined;
|
|
2381
2381
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2382
2382
|
}, {
|
|
2383
|
-
type: "final_answer";
|
|
2384
2383
|
id: string;
|
|
2385
|
-
|
|
2384
|
+
type: "final_answer";
|
|
2385
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
2386
|
+
content: string;
|
|
2386
2387
|
timestamp: number;
|
|
2388
|
+
conversation_id: string;
|
|
2387
2389
|
turn_id: string;
|
|
2388
|
-
content: string;
|
|
2389
2390
|
answer_id: string;
|
|
2390
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
2391
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2392
|
-
version?: 1 | undefined;
|
|
2393
|
-
ephemeral?: boolean | undefined;
|
|
2394
|
-
run_id?: string | undefined;
|
|
2395
|
-
parent_run_id?: string | undefined;
|
|
2396
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2397
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2398
|
-
is_complete?: boolean | undefined;
|
|
2399
2391
|
provider_continuations?: {
|
|
2400
2392
|
kind: string;
|
|
2401
2393
|
schema_version: 2;
|
|
@@ -2454,6 +2446,14 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2454
2446
|
payload: SerializableJsonValue;
|
|
2455
2447
|
}[] | undefined;
|
|
2456
2448
|
})[] | undefined;
|
|
2449
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2450
|
+
version?: 1 | undefined;
|
|
2451
|
+
run_id?: string | undefined;
|
|
2452
|
+
parent_run_id?: string | undefined;
|
|
2453
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2454
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2455
|
+
ephemeral?: boolean | undefined;
|
|
2456
|
+
is_complete?: boolean | undefined;
|
|
2457
2457
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2458
2458
|
}>, z.ZodObject<{
|
|
2459
2459
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -2474,38 +2474,38 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2474
2474
|
content: z.ZodString;
|
|
2475
2475
|
is_last: z.ZodOptional<z.ZodBoolean>;
|
|
2476
2476
|
}, "strip", z.ZodTypeAny, {
|
|
2477
|
-
type: "final_answer_chunk";
|
|
2478
2477
|
id: string;
|
|
2479
|
-
|
|
2478
|
+
type: "final_answer_chunk";
|
|
2479
|
+
content: string;
|
|
2480
2480
|
timestamp: number;
|
|
2481
2481
|
version: 1;
|
|
2482
|
+
conversation_id: string;
|
|
2482
2483
|
turn_id: string;
|
|
2483
|
-
content: string;
|
|
2484
2484
|
answer_id: string;
|
|
2485
2485
|
seq: number;
|
|
2486
2486
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2487
|
-
ephemeral?: boolean | undefined;
|
|
2488
2487
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2489
2488
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2490
2489
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2491
|
-
visibility?: "
|
|
2490
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2491
|
+
ephemeral?: boolean | undefined;
|
|
2492
2492
|
is_last?: boolean | undefined;
|
|
2493
2493
|
}, {
|
|
2494
|
-
type: "final_answer_chunk";
|
|
2495
2494
|
id: string;
|
|
2496
|
-
|
|
2495
|
+
type: "final_answer_chunk";
|
|
2496
|
+
content: string;
|
|
2497
2497
|
timestamp: number;
|
|
2498
|
+
conversation_id: string;
|
|
2498
2499
|
turn_id: string;
|
|
2499
|
-
content: string;
|
|
2500
2500
|
answer_id: string;
|
|
2501
2501
|
seq: number;
|
|
2502
2502
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2503
2503
|
version?: 1 | undefined;
|
|
2504
|
-
ephemeral?: boolean | undefined;
|
|
2505
2504
|
run_id?: string | undefined;
|
|
2506
2505
|
parent_run_id?: string | undefined;
|
|
2507
2506
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2508
|
-
visibility?: "
|
|
2507
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2508
|
+
ephemeral?: boolean | undefined;
|
|
2509
2509
|
is_last?: boolean | undefined;
|
|
2510
2510
|
}>, z.ZodObject<{
|
|
2511
2511
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -2524,33 +2524,33 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2524
2524
|
answer_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2525
2525
|
thought_message_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
2526
2526
|
}, "strip", z.ZodTypeAny, {
|
|
2527
|
-
type: "final_answer_reset";
|
|
2528
2527
|
id: string;
|
|
2529
|
-
|
|
2528
|
+
type: "final_answer_reset";
|
|
2530
2529
|
timestamp: number;
|
|
2531
2530
|
version: 1;
|
|
2531
|
+
conversation_id: string;
|
|
2532
2532
|
turn_id: string;
|
|
2533
2533
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2534
|
-
ephemeral?: boolean | undefined;
|
|
2535
2534
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2536
2535
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2537
2536
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2538
|
-
visibility?: "
|
|
2537
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2538
|
+
ephemeral?: boolean | undefined;
|
|
2539
2539
|
answer_id?: string | undefined;
|
|
2540
2540
|
thought_message_ids?: string[] | undefined;
|
|
2541
2541
|
}, {
|
|
2542
|
-
type: "final_answer_reset";
|
|
2543
2542
|
id: string;
|
|
2544
|
-
|
|
2543
|
+
type: "final_answer_reset";
|
|
2545
2544
|
timestamp: number;
|
|
2545
|
+
conversation_id: string;
|
|
2546
2546
|
turn_id: string;
|
|
2547
2547
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2548
2548
|
version?: 1 | undefined;
|
|
2549
|
-
ephemeral?: boolean | undefined;
|
|
2550
2549
|
run_id?: string | undefined;
|
|
2551
2550
|
parent_run_id?: string | undefined;
|
|
2552
2551
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2553
|
-
visibility?: "
|
|
2552
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2553
|
+
ephemeral?: boolean | undefined;
|
|
2554
2554
|
answer_id?: string | undefined;
|
|
2555
2555
|
thought_message_ids?: string[] | undefined;
|
|
2556
2556
|
}>, z.ZodObject<{
|
|
@@ -2574,41 +2574,41 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2574
2574
|
compression_ratio: z.ZodOptional<z.ZodNumber>;
|
|
2575
2575
|
included_old_summary: z.ZodOptional<z.ZodBoolean>;
|
|
2576
2576
|
}, "strip", z.ZodTypeAny, {
|
|
2577
|
-
type: "history_summary";
|
|
2578
2577
|
id: string;
|
|
2579
|
-
|
|
2578
|
+
type: "history_summary";
|
|
2579
|
+
content: string;
|
|
2580
2580
|
timestamp: number;
|
|
2581
2581
|
version: 1;
|
|
2582
|
+
conversation_id: string;
|
|
2582
2583
|
turn_id: string;
|
|
2583
|
-
content: string;
|
|
2584
2584
|
original_message_count: number;
|
|
2585
2585
|
replaced_message_ids: string[];
|
|
2586
2586
|
summary_seq: number;
|
|
2587
2587
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2588
|
-
ephemeral?: boolean | undefined;
|
|
2589
2588
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2590
2589
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2591
2590
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2592
|
-
visibility?: "
|
|
2591
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2592
|
+
ephemeral?: boolean | undefined;
|
|
2593
2593
|
compression_ratio?: number | undefined;
|
|
2594
2594
|
included_old_summary?: boolean | undefined;
|
|
2595
2595
|
}, {
|
|
2596
|
-
type: "history_summary";
|
|
2597
2596
|
id: string;
|
|
2598
|
-
|
|
2597
|
+
type: "history_summary";
|
|
2598
|
+
content: string;
|
|
2599
2599
|
timestamp: number;
|
|
2600
|
+
conversation_id: string;
|
|
2600
2601
|
turn_id: string;
|
|
2601
|
-
content: string;
|
|
2602
2602
|
original_message_count: number;
|
|
2603
2603
|
replaced_message_ids: string[];
|
|
2604
2604
|
summary_seq: number;
|
|
2605
2605
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2606
2606
|
version?: 1 | undefined;
|
|
2607
|
-
ephemeral?: boolean | undefined;
|
|
2608
2607
|
run_id?: string | undefined;
|
|
2609
2608
|
parent_run_id?: string | undefined;
|
|
2610
2609
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2611
|
-
visibility?: "
|
|
2610
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2611
|
+
ephemeral?: boolean | undefined;
|
|
2612
2612
|
compression_ratio?: number | undefined;
|
|
2613
2613
|
included_old_summary?: boolean | undefined;
|
|
2614
2614
|
}>, z.ZodObject<{
|
|
@@ -2630,36 +2630,36 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2630
2630
|
error_code: z.ZodOptional<z.ZodString>;
|
|
2631
2631
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2632
2632
|
}, "strip", z.ZodTypeAny, {
|
|
2633
|
-
type: "error";
|
|
2634
2633
|
id: string;
|
|
2635
|
-
|
|
2634
|
+
type: "error";
|
|
2635
|
+
error: string;
|
|
2636
2636
|
timestamp: number;
|
|
2637
2637
|
version: 1;
|
|
2638
|
+
conversation_id: string;
|
|
2638
2639
|
turn_id: string;
|
|
2639
|
-
error: string;
|
|
2640
2640
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2641
|
-
ephemeral?: boolean | undefined;
|
|
2642
2641
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2643
2642
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2644
2643
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2645
|
-
visibility?: "
|
|
2644
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2645
|
+
ephemeral?: boolean | undefined;
|
|
2646
2646
|
error_code?: string | undefined;
|
|
2647
2647
|
details?: SerializableJsonValue | undefined;
|
|
2648
2648
|
retryable?: boolean | undefined;
|
|
2649
2649
|
}, {
|
|
2650
|
-
type: "error";
|
|
2651
2650
|
id: string;
|
|
2652
|
-
|
|
2651
|
+
type: "error";
|
|
2652
|
+
error: string;
|
|
2653
2653
|
timestamp: number;
|
|
2654
|
+
conversation_id: string;
|
|
2654
2655
|
turn_id: string;
|
|
2655
|
-
error: string;
|
|
2656
2656
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2657
2657
|
version?: 1 | undefined;
|
|
2658
|
-
ephemeral?: boolean | undefined;
|
|
2659
2658
|
run_id?: string | undefined;
|
|
2660
2659
|
parent_run_id?: string | undefined;
|
|
2661
2660
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2662
|
-
visibility?: "
|
|
2661
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2662
|
+
ephemeral?: boolean | undefined;
|
|
2663
2663
|
error_code?: string | undefined;
|
|
2664
2664
|
details?: SerializableJsonValue | undefined;
|
|
2665
2665
|
retryable?: boolean | undefined;
|
|
@@ -2682,38 +2682,38 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2682
2682
|
reason: z.ZodOptional<z.ZodString>;
|
|
2683
2683
|
meta: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
2684
2684
|
}, "strip", z.ZodTypeAny, {
|
|
2685
|
-
type: "control";
|
|
2686
2685
|
id: string;
|
|
2687
|
-
|
|
2686
|
+
type: "control";
|
|
2688
2687
|
timestamp: number;
|
|
2689
2688
|
version: 1;
|
|
2689
|
+
conversation_id: string;
|
|
2690
2690
|
turn_id: string;
|
|
2691
2691
|
op: "truncate_after" | "replace" | "redo" | "branch";
|
|
2692
2692
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2693
|
-
|
|
2693
|
+
reason?: string | undefined;
|
|
2694
2694
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2695
2695
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2696
2696
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2697
|
-
visibility?: "
|
|
2697
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2698
|
+
ephemeral?: boolean | undefined;
|
|
2698
2699
|
meta?: SerializableJsonValue | undefined;
|
|
2699
|
-
reason?: string | undefined;
|
|
2700
2700
|
target_id?: string | undefined;
|
|
2701
2701
|
}, {
|
|
2702
|
-
type: "control";
|
|
2703
2702
|
id: string;
|
|
2704
|
-
|
|
2703
|
+
type: "control";
|
|
2705
2704
|
timestamp: number;
|
|
2705
|
+
conversation_id: string;
|
|
2706
2706
|
turn_id: string;
|
|
2707
2707
|
op: "truncate_after" | "replace" | "redo" | "branch";
|
|
2708
2708
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2709
2709
|
version?: 1 | undefined;
|
|
2710
|
-
|
|
2710
|
+
reason?: string | undefined;
|
|
2711
2711
|
run_id?: string | undefined;
|
|
2712
2712
|
parent_run_id?: string | undefined;
|
|
2713
2713
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2714
|
-
visibility?: "
|
|
2714
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2715
|
+
ephemeral?: boolean | undefined;
|
|
2715
2716
|
meta?: SerializableJsonValue | undefined;
|
|
2716
|
-
reason?: string | undefined;
|
|
2717
2717
|
target_id?: string | undefined;
|
|
2718
2718
|
}>, z.ZodObject<{
|
|
2719
2719
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -2825,11 +2825,11 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2825
2825
|
served_model_id?: string | undefined;
|
|
2826
2826
|
}>;
|
|
2827
2827
|
}, "strip", z.ZodTypeAny, {
|
|
2828
|
-
type: "context_usage_snapshot";
|
|
2829
2828
|
id: string;
|
|
2830
|
-
|
|
2829
|
+
type: "context_usage_snapshot";
|
|
2831
2830
|
timestamp: number;
|
|
2832
2831
|
version: 1;
|
|
2832
|
+
conversation_id: string;
|
|
2833
2833
|
turn_id: string;
|
|
2834
2834
|
ephemeral: true;
|
|
2835
2835
|
context_usage: {
|
|
@@ -2854,13 +2854,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2854
2854
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2855
2855
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2856
2856
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2857
|
-
visibility?: "
|
|
2857
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2858
2858
|
user_message_id?: string | undefined;
|
|
2859
2859
|
}, {
|
|
2860
|
-
type: "context_usage_snapshot";
|
|
2861
2860
|
id: string;
|
|
2862
|
-
|
|
2861
|
+
type: "context_usage_snapshot";
|
|
2863
2862
|
timestamp: number;
|
|
2863
|
+
conversation_id: string;
|
|
2864
2864
|
turn_id: string;
|
|
2865
2865
|
ephemeral: true;
|
|
2866
2866
|
context_usage: {
|
|
@@ -2886,7 +2886,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2886
2886
|
run_id?: string | undefined;
|
|
2887
2887
|
parent_run_id?: string | undefined;
|
|
2888
2888
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2889
|
-
visibility?: "
|
|
2889
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2890
2890
|
user_message_id?: string | undefined;
|
|
2891
2891
|
}>, z.ZodObject<{
|
|
2892
2892
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -3001,21 +3001,21 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3001
3001
|
served_model_id?: string | undefined;
|
|
3002
3002
|
}>>;
|
|
3003
3003
|
}, "strip", z.ZodTypeAny, {
|
|
3004
|
-
type: "run_execution_metrics";
|
|
3005
3004
|
id: string;
|
|
3006
|
-
|
|
3005
|
+
type: "run_execution_metrics";
|
|
3007
3006
|
timestamp: number;
|
|
3008
3007
|
version: 1;
|
|
3008
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3009
|
+
conversation_id: string;
|
|
3009
3010
|
turn_id: string;
|
|
3010
3011
|
duration_ms: number;
|
|
3011
|
-
outcome: "cancelled" | "completed" | "awaiting_user" | "failed";
|
|
3012
3012
|
execution_id: string;
|
|
3013
3013
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3014
|
-
ephemeral?: boolean | undefined;
|
|
3015
3014
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3016
3015
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3017
3016
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3018
|
-
visibility?: "
|
|
3017
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3018
|
+
ephemeral?: boolean | undefined;
|
|
3019
3019
|
user_message_id?: string | undefined;
|
|
3020
3020
|
context_usage?: {
|
|
3021
3021
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -3036,21 +3036,21 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3036
3036
|
served_model_id?: string | undefined;
|
|
3037
3037
|
} | undefined;
|
|
3038
3038
|
}, {
|
|
3039
|
-
type: "run_execution_metrics";
|
|
3040
3039
|
id: string;
|
|
3041
|
-
|
|
3040
|
+
type: "run_execution_metrics";
|
|
3042
3041
|
timestamp: number;
|
|
3042
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3043
|
+
conversation_id: string;
|
|
3043
3044
|
turn_id: string;
|
|
3044
3045
|
duration_ms: number;
|
|
3045
|
-
outcome: "cancelled" | "completed" | "awaiting_user" | "failed";
|
|
3046
3046
|
execution_id: string;
|
|
3047
3047
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3048
3048
|
version?: 1 | undefined;
|
|
3049
|
-
ephemeral?: boolean | undefined;
|
|
3050
3049
|
run_id?: string | undefined;
|
|
3051
3050
|
parent_run_id?: string | undefined;
|
|
3052
3051
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3053
|
-
visibility?: "
|
|
3052
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3053
|
+
ephemeral?: boolean | undefined;
|
|
3054
3054
|
user_message_id?: string | undefined;
|
|
3055
3055
|
context_usage?: {
|
|
3056
3056
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -3123,21 +3123,15 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3123
3123
|
label?: string | undefined;
|
|
3124
3124
|
}>, "many">>;
|
|
3125
3125
|
}, "strip", z.ZodTypeAny, {
|
|
3126
|
-
type: "user_input";
|
|
3127
3126
|
id: string;
|
|
3128
|
-
|
|
3127
|
+
type: "user_input";
|
|
3128
|
+
content: string;
|
|
3129
3129
|
timestamp: number;
|
|
3130
3130
|
version: 1;
|
|
3131
|
+
conversation_id: string;
|
|
3131
3132
|
turn_id: string;
|
|
3132
|
-
|
|
3133
|
-
source: "user" | "editor" | "system";
|
|
3133
|
+
source: "system" | "user" | "editor";
|
|
3134
3134
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3135
|
-
ephemeral?: boolean | undefined;
|
|
3136
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3137
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3138
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3139
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3140
|
-
raw_content?: string | undefined;
|
|
3141
3135
|
attachments?: {
|
|
3142
3136
|
id: string;
|
|
3143
3137
|
kind: "image";
|
|
@@ -3150,22 +3144,20 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3150
3144
|
fileName?: string | undefined;
|
|
3151
3145
|
label?: string | undefined;
|
|
3152
3146
|
}[] | undefined;
|
|
3147
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3148
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3149
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3150
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3151
|
+
ephemeral?: boolean | undefined;
|
|
3152
|
+
raw_content?: string | undefined;
|
|
3153
3153
|
}, {
|
|
3154
|
-
type: "user_input";
|
|
3155
3154
|
id: string;
|
|
3156
|
-
|
|
3155
|
+
type: "user_input";
|
|
3156
|
+
content: string;
|
|
3157
3157
|
timestamp: number;
|
|
3158
|
+
conversation_id: string;
|
|
3158
3159
|
turn_id: string;
|
|
3159
|
-
content: string;
|
|
3160
3160
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3161
|
-
version?: 1 | undefined;
|
|
3162
|
-
ephemeral?: boolean | undefined;
|
|
3163
|
-
run_id?: string | undefined;
|
|
3164
|
-
parent_run_id?: string | undefined;
|
|
3165
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3166
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3167
|
-
raw_content?: string | undefined;
|
|
3168
|
-
source?: "user" | "editor" | "system" | undefined;
|
|
3169
3161
|
attachments?: {
|
|
3170
3162
|
id: string;
|
|
3171
3163
|
kind: "image";
|
|
@@ -3178,6 +3170,14 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3178
3170
|
fileName?: string | undefined;
|
|
3179
3171
|
label?: string | undefined;
|
|
3180
3172
|
}[] | undefined;
|
|
3173
|
+
version?: 1 | undefined;
|
|
3174
|
+
run_id?: string | undefined;
|
|
3175
|
+
parent_run_id?: string | undefined;
|
|
3176
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3177
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3178
|
+
ephemeral?: boolean | undefined;
|
|
3179
|
+
raw_content?: string | undefined;
|
|
3180
|
+
source?: "system" | "user" | "editor" | undefined;
|
|
3181
3181
|
}>, z.ZodObject<{
|
|
3182
3182
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
3183
3183
|
conversation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -3197,36 +3197,36 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3197
3197
|
delta: z.ZodOptional<z.ZodString>;
|
|
3198
3198
|
is_complete: z.ZodDefault<z.ZodBoolean>;
|
|
3199
3199
|
}, "strip", z.ZodTypeAny, {
|
|
3200
|
-
type: "thought";
|
|
3201
3200
|
id: string;
|
|
3202
|
-
|
|
3201
|
+
type: "thought";
|
|
3202
|
+
content: string;
|
|
3203
3203
|
timestamp: number;
|
|
3204
3204
|
version: 1;
|
|
3205
|
+
conversation_id: string;
|
|
3205
3206
|
turn_id: string;
|
|
3206
|
-
content: string;
|
|
3207
3207
|
is_complete: boolean;
|
|
3208
3208
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3209
|
-
ephemeral?: boolean | undefined;
|
|
3210
3209
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3211
3210
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3212
3211
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3213
|
-
visibility?: "
|
|
3212
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3213
|
+
ephemeral?: boolean | undefined;
|
|
3214
3214
|
thought_message_id?: string | undefined;
|
|
3215
3215
|
delta?: string | undefined;
|
|
3216
3216
|
}, {
|
|
3217
|
-
type: "thought";
|
|
3218
3217
|
id: string;
|
|
3219
|
-
|
|
3218
|
+
type: "thought";
|
|
3219
|
+
content: string;
|
|
3220
3220
|
timestamp: number;
|
|
3221
|
+
conversation_id: string;
|
|
3221
3222
|
turn_id: string;
|
|
3222
|
-
content: string;
|
|
3223
3223
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3224
3224
|
version?: 1 | undefined;
|
|
3225
|
-
ephemeral?: boolean | undefined;
|
|
3226
3225
|
run_id?: string | undefined;
|
|
3227
3226
|
parent_run_id?: string | undefined;
|
|
3228
3227
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3229
|
-
visibility?: "
|
|
3228
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3229
|
+
ephemeral?: boolean | undefined;
|
|
3230
3230
|
thought_message_id?: string | undefined;
|
|
3231
3231
|
delta?: string | undefined;
|
|
3232
3232
|
is_complete?: boolean | undefined;
|
|
@@ -3542,7 +3542,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3542
3542
|
}[] | undefined;
|
|
3543
3543
|
}>]>, "many">>;
|
|
3544
3544
|
}, "strict", z.ZodTypeAny, {
|
|
3545
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3546
3545
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
3547
3546
|
provider_continuations?: {
|
|
3548
3547
|
kind: string;
|
|
@@ -3602,8 +3601,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3602
3601
|
payload: SerializableJsonValue;
|
|
3603
3602
|
}[] | undefined;
|
|
3604
3603
|
})[] | undefined;
|
|
3605
|
-
}, {
|
|
3606
3604
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3605
|
+
}, {
|
|
3607
3606
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
3608
3607
|
provider_continuations?: {
|
|
3609
3608
|
kind: string;
|
|
@@ -3663,29 +3662,22 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3663
3662
|
payload: SerializableJsonValue;
|
|
3664
3663
|
}[] | undefined;
|
|
3665
3664
|
})[] | undefined;
|
|
3665
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3666
3666
|
}>>;
|
|
3667
3667
|
parent_tool_call_id: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">>;
|
|
3668
3668
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
3669
3669
|
}, "strip", z.ZodTypeAny, {
|
|
3670
|
-
type: "tool_call_decision";
|
|
3671
3670
|
id: string;
|
|
3672
|
-
conversation_id: string;
|
|
3673
|
-
timestamp: number;
|
|
3674
3671
|
status: "error" | "loading" | "success";
|
|
3672
|
+
type: "tool_call_decision";
|
|
3673
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3674
|
+
tool_name: string;
|
|
3675
|
+
timestamp: number;
|
|
3675
3676
|
version: 1;
|
|
3677
|
+
conversation_id: string;
|
|
3676
3678
|
turn_id: string;
|
|
3677
|
-
|
|
3678
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3679
|
-
phase: "start" | "update" | "complete" | "error";
|
|
3680
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3681
|
-
ephemeral?: boolean | undefined;
|
|
3682
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3683
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3684
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3685
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3686
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3679
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3687
3680
|
payload?: {
|
|
3688
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3689
3681
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
3690
3682
|
provider_continuations?: {
|
|
3691
3683
|
kind: string;
|
|
@@ -3745,29 +3737,28 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3745
3737
|
payload: SerializableJsonValue;
|
|
3746
3738
|
}[] | undefined;
|
|
3747
3739
|
})[] | undefined;
|
|
3740
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3748
3741
|
} | undefined;
|
|
3742
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3743
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3744
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3745
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3746
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3747
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3748
|
+
ephemeral?: boolean | undefined;
|
|
3749
3749
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
3750
3750
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3751
3751
|
}, {
|
|
3752
|
-
type: "tool_call_decision";
|
|
3753
3752
|
id: string;
|
|
3754
|
-
conversation_id: string;
|
|
3755
|
-
timestamp: number;
|
|
3756
3753
|
status: "error" | "loading" | "success";
|
|
3757
|
-
|
|
3758
|
-
tool_name: string;
|
|
3754
|
+
type: "tool_call_decision";
|
|
3759
3755
|
tool_call_id: string;
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
parent_run_id?: string | undefined;
|
|
3766
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3767
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3768
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3756
|
+
tool_name: string;
|
|
3757
|
+
timestamp: number;
|
|
3758
|
+
conversation_id: string;
|
|
3759
|
+
turn_id: string;
|
|
3760
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3769
3761
|
payload?: {
|
|
3770
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3771
3762
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
3772
3763
|
provider_continuations?: {
|
|
3773
3764
|
kind: string;
|
|
@@ -3827,7 +3818,16 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3827
3818
|
payload: SerializableJsonValue;
|
|
3828
3819
|
}[] | undefined;
|
|
3829
3820
|
})[] | undefined;
|
|
3821
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3830
3822
|
} | undefined;
|
|
3823
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3824
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3825
|
+
version?: 1 | undefined;
|
|
3826
|
+
run_id?: string | undefined;
|
|
3827
|
+
parent_run_id?: string | undefined;
|
|
3828
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3829
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3830
|
+
ephemeral?: boolean | undefined;
|
|
3831
3831
|
parent_tool_call_id?: string | undefined;
|
|
3832
3832
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3833
3833
|
}>, z.ZodObject<{
|
|
@@ -3853,45 +3853,45 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3853
3853
|
parent_tool_call_id: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodString, string, string>, "ToolCallId">>;
|
|
3854
3854
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
3855
3855
|
}, "strip", z.ZodTypeAny, {
|
|
3856
|
-
type: "tool_process";
|
|
3857
3856
|
id: string;
|
|
3858
|
-
conversation_id: string;
|
|
3859
|
-
timestamp: number;
|
|
3860
3857
|
status: "error" | "loading" | "success";
|
|
3858
|
+
type: "tool_process";
|
|
3859
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3860
|
+
tool_name: string;
|
|
3861
|
+
timestamp: number;
|
|
3861
3862
|
version: 1;
|
|
3863
|
+
conversation_id: string;
|
|
3862
3864
|
turn_id: string;
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3865
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3866
|
+
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
3867
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3866
3868
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3867
|
-
ephemeral?: boolean | undefined;
|
|
3868
3869
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3869
3870
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3870
3871
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3871
|
-
visibility?: "
|
|
3872
|
-
|
|
3873
|
-
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
3872
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3873
|
+
ephemeral?: boolean | undefined;
|
|
3874
3874
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
3875
3875
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3876
3876
|
}, {
|
|
3877
|
-
type: "tool_process";
|
|
3878
3877
|
id: string;
|
|
3879
|
-
conversation_id: string;
|
|
3880
|
-
timestamp: number;
|
|
3881
3878
|
status: "error" | "loading" | "success";
|
|
3882
|
-
|
|
3883
|
-
tool_name: string;
|
|
3879
|
+
type: "tool_process";
|
|
3884
3880
|
tool_call_id: string;
|
|
3885
|
-
|
|
3881
|
+
tool_name: string;
|
|
3882
|
+
timestamp: number;
|
|
3883
|
+
conversation_id: string;
|
|
3884
|
+
turn_id: string;
|
|
3885
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3886
|
+
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
3887
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3886
3888
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3887
3889
|
version?: 1 | undefined;
|
|
3888
|
-
ephemeral?: boolean | undefined;
|
|
3889
3890
|
run_id?: string | undefined;
|
|
3890
3891
|
parent_run_id?: string | undefined;
|
|
3891
3892
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3892
|
-
visibility?: "
|
|
3893
|
-
|
|
3894
|
-
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
3893
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3894
|
+
ephemeral?: boolean | undefined;
|
|
3895
3895
|
parent_tool_call_id?: string | undefined;
|
|
3896
3896
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3897
3897
|
}>, z.ZodObject<{
|
|
@@ -3951,22 +3951,19 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3951
3951
|
label?: string | undefined;
|
|
3952
3952
|
}>, "many">>;
|
|
3953
3953
|
}, "strip", z.ZodTypeAny, {
|
|
3954
|
-
type: "tool_output";
|
|
3955
3954
|
id: string;
|
|
3956
|
-
conversation_id: string;
|
|
3957
|
-
timestamp: number;
|
|
3958
3955
|
status: "error" | "success";
|
|
3956
|
+
type: "tool_output";
|
|
3957
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3958
|
+
tool_name: string;
|
|
3959
|
+
timestamp: number;
|
|
3959
3960
|
version: 1;
|
|
3961
|
+
conversation_id: string;
|
|
3960
3962
|
turn_id: string;
|
|
3961
|
-
tool_name: string;
|
|
3962
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3963
3963
|
observation: string;
|
|
3964
|
+
data?: SerializableJsonValue | undefined;
|
|
3965
|
+
error?: string | undefined;
|
|
3964
3966
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3965
|
-
ephemeral?: boolean | undefined;
|
|
3966
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3967
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3968
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3969
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3970
3967
|
attachments?: {
|
|
3971
3968
|
id: string;
|
|
3972
3969
|
kind: "image";
|
|
@@ -3979,27 +3976,26 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
3979
3976
|
fileName?: string | undefined;
|
|
3980
3977
|
label?: string | undefined;
|
|
3981
3978
|
}[] | undefined;
|
|
3982
|
-
|
|
3983
|
-
|
|
3979
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3980
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3981
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3982
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3983
|
+
ephemeral?: boolean | undefined;
|
|
3984
3984
|
error_code?: string | undefined;
|
|
3985
3985
|
duration_ms?: number | undefined;
|
|
3986
3986
|
}, {
|
|
3987
|
-
type: "tool_output";
|
|
3988
3987
|
id: string;
|
|
3989
|
-
conversation_id: string;
|
|
3990
|
-
timestamp: number;
|
|
3991
3988
|
status: "error" | "success";
|
|
3992
|
-
|
|
3993
|
-
tool_name: string;
|
|
3989
|
+
type: "tool_output";
|
|
3994
3990
|
tool_call_id: string;
|
|
3991
|
+
tool_name: string;
|
|
3992
|
+
timestamp: number;
|
|
3993
|
+
conversation_id: string;
|
|
3994
|
+
turn_id: string;
|
|
3995
3995
|
observation: string;
|
|
3996
|
+
data?: SerializableJsonValue | undefined;
|
|
3997
|
+
error?: string | undefined;
|
|
3996
3998
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3997
|
-
version?: 1 | undefined;
|
|
3998
|
-
ephemeral?: boolean | undefined;
|
|
3999
|
-
run_id?: string | undefined;
|
|
4000
|
-
parent_run_id?: string | undefined;
|
|
4001
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4002
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
4003
3999
|
attachments?: {
|
|
4004
4000
|
id: string;
|
|
4005
4001
|
kind: "image";
|
|
@@ -4012,8 +4008,12 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4012
4008
|
fileName?: string | undefined;
|
|
4013
4009
|
label?: string | undefined;
|
|
4014
4010
|
}[] | undefined;
|
|
4015
|
-
|
|
4016
|
-
|
|
4011
|
+
version?: 1 | undefined;
|
|
4012
|
+
run_id?: string | undefined;
|
|
4013
|
+
parent_run_id?: string | undefined;
|
|
4014
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4015
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4016
|
+
ephemeral?: boolean | undefined;
|
|
4017
4017
|
error_code?: string | undefined;
|
|
4018
4018
|
duration_ms?: number | undefined;
|
|
4019
4019
|
}>, z.ZodObject<{
|
|
@@ -4049,12 +4049,12 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4049
4049
|
tool_name: z.ZodString;
|
|
4050
4050
|
args: z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
4051
4051
|
}, "strict", z.ZodTypeAny, {
|
|
4052
|
-
tool_name: string;
|
|
4053
4052
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4053
|
+
tool_name: string;
|
|
4054
4054
|
args: Record<string, SerializableJsonValue>;
|
|
4055
4055
|
}, {
|
|
4056
|
-
tool_name: string;
|
|
4057
4056
|
tool_call_id: string;
|
|
4057
|
+
tool_name: string;
|
|
4058
4058
|
args: Record<string, SerializableJsonValue>;
|
|
4059
4059
|
}>, "many">>;
|
|
4060
4060
|
output: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
@@ -4101,24 +4101,29 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4101
4101
|
type: z.ZodLiteral<"subrun_trace">;
|
|
4102
4102
|
ephemeral: z.ZodLiteral<true>;
|
|
4103
4103
|
}, "strip", z.ZodTypeAny, {
|
|
4104
|
-
type: "subrun_trace";
|
|
4105
4104
|
id: string;
|
|
4106
|
-
|
|
4105
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
4106
|
+
type: "subrun_trace";
|
|
4107
4107
|
timestamp: number;
|
|
4108
4108
|
version: 1;
|
|
4109
|
+
conversation_id: string;
|
|
4109
4110
|
turn_id: string;
|
|
4110
4111
|
ephemeral: true;
|
|
4111
|
-
kind: "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary";
|
|
4112
4112
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4113
4113
|
subrun_id: string;
|
|
4114
4114
|
source_event_id: string;
|
|
4115
4115
|
status?: "error" | "loading" | "success" | undefined;
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4116
|
+
tool_calls?: {
|
|
4117
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4118
|
+
tool_name: string;
|
|
4119
|
+
args: Record<string, SerializableJsonValue>;
|
|
4120
|
+
}[] | undefined;
|
|
4121
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4122
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4123
|
+
tool_name?: string | undefined;
|
|
4124
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4121
4125
|
content?: string | undefined;
|
|
4126
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4122
4127
|
attachments?: {
|
|
4123
4128
|
id: string;
|
|
4124
4129
|
kind: "image";
|
|
@@ -4131,47 +4136,46 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4131
4136
|
fileName?: string | undefined;
|
|
4132
4137
|
label?: string | undefined;
|
|
4133
4138
|
}[] | undefined;
|
|
4139
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4140
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4141
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4142
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4134
4143
|
delta?: string | undefined;
|
|
4135
|
-
|
|
4136
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4137
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
4138
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4139
|
-
tool_calls?: {
|
|
4140
|
-
tool_name: string;
|
|
4141
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4142
|
-
args: Record<string, SerializableJsonValue>;
|
|
4143
|
-
}[] | undefined;
|
|
4144
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
4144
4145
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4145
4146
|
duration_ms?: number | undefined;
|
|
4146
4147
|
subrun_parent_id?: string | undefined;
|
|
4147
4148
|
answer_id?: string | undefined;
|
|
4148
4149
|
seq?: number | undefined;
|
|
4149
4150
|
is_last?: boolean | undefined;
|
|
4150
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4151
4151
|
output?: SerializableJsonValue | undefined;
|
|
4152
4152
|
original_message_count?: number | undefined;
|
|
4153
4153
|
compression_ratio?: number | undefined;
|
|
4154
4154
|
included_old_summary?: boolean | undefined;
|
|
4155
4155
|
replaced_message_ids?: string[] | undefined;
|
|
4156
4156
|
}, {
|
|
4157
|
-
type: "subrun_trace";
|
|
4158
4157
|
id: string;
|
|
4159
|
-
|
|
4158
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
4159
|
+
type: "subrun_trace";
|
|
4160
4160
|
timestamp: number;
|
|
4161
|
+
conversation_id: string;
|
|
4161
4162
|
turn_id: string;
|
|
4162
4163
|
ephemeral: true;
|
|
4163
|
-
kind: "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary";
|
|
4164
4164
|
parent_tool_call_id: string;
|
|
4165
4165
|
subrun_id: string;
|
|
4166
4166
|
source_event_id: string;
|
|
4167
4167
|
status?: "error" | "loading" | "success" | undefined;
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4168
|
+
tool_calls?: {
|
|
4169
|
+
tool_call_id: string;
|
|
4170
|
+
tool_name: string;
|
|
4171
|
+
args: Record<string, SerializableJsonValue>;
|
|
4172
|
+
}[] | undefined;
|
|
4173
|
+
tool_call_id?: string | undefined;
|
|
4174
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4175
|
+
tool_name?: string | undefined;
|
|
4176
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4174
4177
|
content?: string | undefined;
|
|
4178
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4175
4179
|
attachments?: {
|
|
4176
4180
|
id: string;
|
|
4177
4181
|
kind: "image";
|
|
@@ -4184,23 +4188,19 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4184
4188
|
fileName?: string | undefined;
|
|
4185
4189
|
label?: string | undefined;
|
|
4186
4190
|
}[] | undefined;
|
|
4191
|
+
version?: 1 | undefined;
|
|
4192
|
+
run_id?: string | undefined;
|
|
4193
|
+
parent_run_id?: string | undefined;
|
|
4194
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4195
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4187
4196
|
delta?: string | undefined;
|
|
4188
|
-
|
|
4189
|
-
tool_call_id?: string | undefined;
|
|
4190
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
4191
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4192
|
-
tool_calls?: {
|
|
4193
|
-
tool_name: string;
|
|
4194
|
-
tool_call_id: string;
|
|
4195
|
-
args: Record<string, SerializableJsonValue>;
|
|
4196
|
-
}[] | undefined;
|
|
4197
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
4197
4198
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4198
4199
|
duration_ms?: number | undefined;
|
|
4199
4200
|
subrun_parent_id?: string | undefined;
|
|
4200
4201
|
answer_id?: string | undefined;
|
|
4201
4202
|
seq?: number | undefined;
|
|
4202
4203
|
is_last?: boolean | undefined;
|
|
4203
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4204
4204
|
output?: SerializableJsonValue | undefined;
|
|
4205
4205
|
original_message_count?: number | undefined;
|
|
4206
4206
|
compression_ratio?: number | undefined;
|
|
@@ -4229,44 +4229,44 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4229
4229
|
resume_token: z.ZodEffects<z.ZodString, string, string>;
|
|
4230
4230
|
interaction_status: z.ZodLiteral<"pending">;
|
|
4231
4231
|
}, "strip", z.ZodTypeAny, {
|
|
4232
|
-
type: "requires_user_interaction";
|
|
4233
4232
|
id: string;
|
|
4234
|
-
|
|
4233
|
+
type: "requires_user_interaction";
|
|
4234
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4235
4235
|
timestamp: number;
|
|
4236
4236
|
version: 1;
|
|
4237
|
-
turn_id: string;
|
|
4238
4237
|
run_id: string & z.BRAND<"RunId">;
|
|
4239
|
-
|
|
4238
|
+
conversation_id: string;
|
|
4239
|
+
turn_id: string;
|
|
4240
4240
|
interaction_id: string;
|
|
4241
4241
|
checkpoint_revision: number;
|
|
4242
4242
|
resume_token: string;
|
|
4243
4243
|
interaction_status: "pending";
|
|
4244
4244
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4245
|
-
ephemeral?: boolean | undefined;
|
|
4246
4245
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4247
4246
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4248
|
-
visibility?: "
|
|
4247
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4248
|
+
ephemeral?: boolean | undefined;
|
|
4249
4249
|
form?: SerializableJsonValue | undefined;
|
|
4250
4250
|
interaction_type?: string | undefined;
|
|
4251
4251
|
prompt?: string | undefined;
|
|
4252
4252
|
}, {
|
|
4253
|
-
type: "requires_user_interaction";
|
|
4254
4253
|
id: string;
|
|
4255
|
-
|
|
4254
|
+
type: "requires_user_interaction";
|
|
4255
|
+
tool_call_id: string;
|
|
4256
4256
|
timestamp: number;
|
|
4257
|
-
turn_id: string;
|
|
4258
4257
|
run_id: string;
|
|
4259
|
-
|
|
4258
|
+
conversation_id: string;
|
|
4259
|
+
turn_id: string;
|
|
4260
4260
|
interaction_id: string;
|
|
4261
4261
|
checkpoint_revision: number;
|
|
4262
4262
|
resume_token: string;
|
|
4263
4263
|
interaction_status: "pending";
|
|
4264
4264
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4265
4265
|
version?: 1 | undefined;
|
|
4266
|
-
ephemeral?: boolean | undefined;
|
|
4267
4266
|
parent_run_id?: string | undefined;
|
|
4268
4267
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4269
|
-
visibility?: "
|
|
4268
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4269
|
+
ephemeral?: boolean | undefined;
|
|
4270
4270
|
form?: SerializableJsonValue | undefined;
|
|
4271
4271
|
interaction_type?: string | undefined;
|
|
4272
4272
|
prompt?: string | undefined;
|
|
@@ -4294,11 +4294,11 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4294
4294
|
id: z.ZodOptional<z.ZodString>;
|
|
4295
4295
|
name: z.ZodOptional<z.ZodString>;
|
|
4296
4296
|
}, "strip", z.ZodTypeAny, {
|
|
4297
|
-
kind: "
|
|
4297
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
4298
4298
|
id?: string | undefined;
|
|
4299
4299
|
name?: string | undefined;
|
|
4300
4300
|
}, {
|
|
4301
|
-
kind: "
|
|
4301
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
4302
4302
|
id?: string | undefined;
|
|
4303
4303
|
name?: string | undefined;
|
|
4304
4304
|
}>;
|
|
@@ -4309,12 +4309,12 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4309
4309
|
policy: z.ZodOptional<z.ZodString>;
|
|
4310
4310
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4311
4311
|
}, "strip", z.ZodTypeAny, {
|
|
4312
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
4312
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
4313
4313
|
metadata?: Record<string, unknown> | undefined;
|
|
4314
4314
|
reason?: string | undefined;
|
|
4315
4315
|
policy?: string | undefined;
|
|
4316
4316
|
}, {
|
|
4317
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
4317
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
4318
4318
|
metadata?: Record<string, unknown> | undefined;
|
|
4319
4319
|
reason?: string | undefined;
|
|
4320
4320
|
policy?: string | undefined;
|
|
@@ -4326,14 +4326,14 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4326
4326
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4327
4327
|
}, "strip", z.ZodTypeAny, {
|
|
4328
4328
|
kind: string;
|
|
4329
|
+
summary?: string | undefined;
|
|
4329
4330
|
metadata?: Record<string, unknown> | undefined;
|
|
4330
4331
|
ref?: string | undefined;
|
|
4331
|
-
summary?: string | undefined;
|
|
4332
4332
|
}, {
|
|
4333
4333
|
kind: string;
|
|
4334
|
+
summary?: string | undefined;
|
|
4334
4335
|
metadata?: Record<string, unknown> | undefined;
|
|
4335
4336
|
ref?: string | undefined;
|
|
4336
|
-
summary?: string | undefined;
|
|
4337
4337
|
}>, "many">>;
|
|
4338
4338
|
costDelta: z.ZodOptional<z.ZodObject<{
|
|
4339
4339
|
tokensInput: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4365,51 +4365,51 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4365
4365
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4366
4366
|
}, "strip", z.ZodTypeAny, {
|
|
4367
4367
|
metadata?: Record<string, unknown> | undefined;
|
|
4368
|
+
toolName?: string | undefined;
|
|
4369
|
+
conversationId?: string | undefined;
|
|
4368
4370
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4369
4371
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4370
|
-
conversationId?: string | undefined;
|
|
4371
4372
|
turnId?: string | undefined;
|
|
4372
4373
|
traceId?: string | undefined;
|
|
4373
4374
|
agentSpecId?: string | undefined;
|
|
4374
4375
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4375
|
-
toolName?: string | undefined;
|
|
4376
4376
|
modelId?: string | undefined;
|
|
4377
4377
|
nodeId?: string | undefined;
|
|
4378
4378
|
}, {
|
|
4379
4379
|
metadata?: Record<string, unknown> | undefined;
|
|
4380
|
+
toolName?: string | undefined;
|
|
4381
|
+
conversationId?: string | undefined;
|
|
4380
4382
|
runId?: string | undefined;
|
|
4381
4383
|
parentRunId?: string | undefined;
|
|
4382
|
-
conversationId?: string | undefined;
|
|
4383
4384
|
turnId?: string | undefined;
|
|
4384
4385
|
traceId?: string | undefined;
|
|
4385
4386
|
agentSpecId?: string | undefined;
|
|
4386
4387
|
toolCallId?: string | undefined;
|
|
4387
|
-
toolName?: string | undefined;
|
|
4388
4388
|
modelId?: string | undefined;
|
|
4389
4389
|
nodeId?: string | undefined;
|
|
4390
4390
|
}>>;
|
|
4391
4391
|
}, "strip", z.ZodTypeAny, {
|
|
4392
|
-
envelopeId: string;
|
|
4393
4392
|
runId: string & z.BRAND<"RunId">;
|
|
4393
|
+
envelopeId: string;
|
|
4394
4394
|
ts: number;
|
|
4395
4395
|
actor: {
|
|
4396
|
-
kind: "
|
|
4396
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
4397
4397
|
id?: string | undefined;
|
|
4398
4398
|
name?: string | undefined;
|
|
4399
4399
|
};
|
|
4400
4400
|
action: string;
|
|
4401
4401
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4402
4402
|
decision?: {
|
|
4403
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
4403
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
4404
4404
|
metadata?: Record<string, unknown> | undefined;
|
|
4405
4405
|
reason?: string | undefined;
|
|
4406
4406
|
policy?: string | undefined;
|
|
4407
4407
|
} | undefined;
|
|
4408
4408
|
evidence?: {
|
|
4409
4409
|
kind: string;
|
|
4410
|
+
summary?: string | undefined;
|
|
4410
4411
|
metadata?: Record<string, unknown> | undefined;
|
|
4411
4412
|
ref?: string | undefined;
|
|
4412
|
-
summary?: string | undefined;
|
|
4413
4413
|
}[] | undefined;
|
|
4414
4414
|
costDelta?: {
|
|
4415
4415
|
tokensInput?: number | undefined;
|
|
@@ -4419,39 +4419,39 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4419
4419
|
} | undefined;
|
|
4420
4420
|
scope?: {
|
|
4421
4421
|
metadata?: Record<string, unknown> | undefined;
|
|
4422
|
+
toolName?: string | undefined;
|
|
4423
|
+
conversationId?: string | undefined;
|
|
4422
4424
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4423
4425
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4424
|
-
conversationId?: string | undefined;
|
|
4425
4426
|
turnId?: string | undefined;
|
|
4426
4427
|
traceId?: string | undefined;
|
|
4427
4428
|
agentSpecId?: string | undefined;
|
|
4428
4429
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4429
|
-
toolName?: string | undefined;
|
|
4430
4430
|
modelId?: string | undefined;
|
|
4431
4431
|
nodeId?: string | undefined;
|
|
4432
4432
|
} | undefined;
|
|
4433
4433
|
}, {
|
|
4434
|
-
envelopeId: string;
|
|
4435
4434
|
runId: string;
|
|
4435
|
+
envelopeId: string;
|
|
4436
4436
|
ts: number;
|
|
4437
4437
|
actor: {
|
|
4438
|
-
kind: "
|
|
4438
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
4439
4439
|
id?: string | undefined;
|
|
4440
4440
|
name?: string | undefined;
|
|
4441
4441
|
};
|
|
4442
4442
|
action: string;
|
|
4443
4443
|
parentRunId?: string | undefined;
|
|
4444
4444
|
decision?: {
|
|
4445
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
4445
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
4446
4446
|
metadata?: Record<string, unknown> | undefined;
|
|
4447
4447
|
reason?: string | undefined;
|
|
4448
4448
|
policy?: string | undefined;
|
|
4449
4449
|
} | undefined;
|
|
4450
4450
|
evidence?: {
|
|
4451
4451
|
kind: string;
|
|
4452
|
+
summary?: string | undefined;
|
|
4452
4453
|
metadata?: Record<string, unknown> | undefined;
|
|
4453
4454
|
ref?: string | undefined;
|
|
4454
|
-
summary?: string | undefined;
|
|
4455
4455
|
}[] | undefined;
|
|
4456
4456
|
costDelta?: {
|
|
4457
4457
|
tokensInput?: number | undefined;
|
|
@@ -4461,47 +4461,47 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4461
4461
|
} | undefined;
|
|
4462
4462
|
scope?: {
|
|
4463
4463
|
metadata?: Record<string, unknown> | undefined;
|
|
4464
|
+
toolName?: string | undefined;
|
|
4465
|
+
conversationId?: string | undefined;
|
|
4464
4466
|
runId?: string | undefined;
|
|
4465
4467
|
parentRunId?: string | undefined;
|
|
4466
|
-
conversationId?: string | undefined;
|
|
4467
4468
|
turnId?: string | undefined;
|
|
4468
4469
|
traceId?: string | undefined;
|
|
4469
4470
|
agentSpecId?: string | undefined;
|
|
4470
4471
|
toolCallId?: string | undefined;
|
|
4471
|
-
toolName?: string | undefined;
|
|
4472
4472
|
modelId?: string | undefined;
|
|
4473
4473
|
nodeId?: string | undefined;
|
|
4474
4474
|
} | undefined;
|
|
4475
4475
|
}>;
|
|
4476
4476
|
}, "strip", z.ZodTypeAny, {
|
|
4477
|
-
type: "audit_envelope";
|
|
4478
4477
|
id: string;
|
|
4479
|
-
|
|
4478
|
+
type: "audit_envelope";
|
|
4480
4479
|
timestamp: number;
|
|
4481
4480
|
version: 1;
|
|
4481
|
+
conversation_id: string;
|
|
4482
4482
|
turn_id: string;
|
|
4483
4483
|
envelope: {
|
|
4484
|
-
envelopeId: string;
|
|
4485
4484
|
runId: string & z.BRAND<"RunId">;
|
|
4485
|
+
envelopeId: string;
|
|
4486
4486
|
ts: number;
|
|
4487
4487
|
actor: {
|
|
4488
|
-
kind: "
|
|
4488
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
4489
4489
|
id?: string | undefined;
|
|
4490
4490
|
name?: string | undefined;
|
|
4491
4491
|
};
|
|
4492
4492
|
action: string;
|
|
4493
4493
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4494
4494
|
decision?: {
|
|
4495
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
4495
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
4496
4496
|
metadata?: Record<string, unknown> | undefined;
|
|
4497
4497
|
reason?: string | undefined;
|
|
4498
4498
|
policy?: string | undefined;
|
|
4499
4499
|
} | undefined;
|
|
4500
4500
|
evidence?: {
|
|
4501
4501
|
kind: string;
|
|
4502
|
+
summary?: string | undefined;
|
|
4502
4503
|
metadata?: Record<string, unknown> | undefined;
|
|
4503
4504
|
ref?: string | undefined;
|
|
4504
|
-
summary?: string | undefined;
|
|
4505
4505
|
}[] | undefined;
|
|
4506
4506
|
costDelta?: {
|
|
4507
4507
|
tokensInput?: number | undefined;
|
|
@@ -4511,52 +4511,52 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4511
4511
|
} | undefined;
|
|
4512
4512
|
scope?: {
|
|
4513
4513
|
metadata?: Record<string, unknown> | undefined;
|
|
4514
|
+
toolName?: string | undefined;
|
|
4515
|
+
conversationId?: string | undefined;
|
|
4514
4516
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4515
4517
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
4516
|
-
conversationId?: string | undefined;
|
|
4517
4518
|
turnId?: string | undefined;
|
|
4518
4519
|
traceId?: string | undefined;
|
|
4519
4520
|
agentSpecId?: string | undefined;
|
|
4520
4521
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4521
|
-
toolName?: string | undefined;
|
|
4522
4522
|
modelId?: string | undefined;
|
|
4523
4523
|
nodeId?: string | undefined;
|
|
4524
4524
|
} | undefined;
|
|
4525
4525
|
};
|
|
4526
4526
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4527
|
-
ephemeral?: boolean | undefined;
|
|
4528
4527
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4529
4528
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4530
4529
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4531
|
-
visibility?: "
|
|
4530
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4531
|
+
ephemeral?: boolean | undefined;
|
|
4532
4532
|
}, {
|
|
4533
|
-
type: "audit_envelope";
|
|
4534
4533
|
id: string;
|
|
4535
|
-
|
|
4534
|
+
type: "audit_envelope";
|
|
4536
4535
|
timestamp: number;
|
|
4536
|
+
conversation_id: string;
|
|
4537
4537
|
turn_id: string;
|
|
4538
4538
|
envelope: {
|
|
4539
|
-
envelopeId: string;
|
|
4540
4539
|
runId: string;
|
|
4540
|
+
envelopeId: string;
|
|
4541
4541
|
ts: number;
|
|
4542
4542
|
actor: {
|
|
4543
|
-
kind: "
|
|
4543
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
4544
4544
|
id?: string | undefined;
|
|
4545
4545
|
name?: string | undefined;
|
|
4546
4546
|
};
|
|
4547
4547
|
action: string;
|
|
4548
4548
|
parentRunId?: string | undefined;
|
|
4549
4549
|
decision?: {
|
|
4550
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
4550
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
4551
4551
|
metadata?: Record<string, unknown> | undefined;
|
|
4552
4552
|
reason?: string | undefined;
|
|
4553
4553
|
policy?: string | undefined;
|
|
4554
4554
|
} | undefined;
|
|
4555
4555
|
evidence?: {
|
|
4556
4556
|
kind: string;
|
|
4557
|
+
summary?: string | undefined;
|
|
4557
4558
|
metadata?: Record<string, unknown> | undefined;
|
|
4558
4559
|
ref?: string | undefined;
|
|
4559
|
-
summary?: string | undefined;
|
|
4560
4560
|
}[] | undefined;
|
|
4561
4561
|
costDelta?: {
|
|
4562
4562
|
tokensInput?: number | undefined;
|
|
@@ -4566,25 +4566,25 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4566
4566
|
} | undefined;
|
|
4567
4567
|
scope?: {
|
|
4568
4568
|
metadata?: Record<string, unknown> | undefined;
|
|
4569
|
+
toolName?: string | undefined;
|
|
4570
|
+
conversationId?: string | undefined;
|
|
4569
4571
|
runId?: string | undefined;
|
|
4570
4572
|
parentRunId?: string | undefined;
|
|
4571
|
-
conversationId?: string | undefined;
|
|
4572
4573
|
turnId?: string | undefined;
|
|
4573
4574
|
traceId?: string | undefined;
|
|
4574
4575
|
agentSpecId?: string | undefined;
|
|
4575
4576
|
toolCallId?: string | undefined;
|
|
4576
|
-
toolName?: string | undefined;
|
|
4577
4577
|
modelId?: string | undefined;
|
|
4578
4578
|
nodeId?: string | undefined;
|
|
4579
4579
|
} | undefined;
|
|
4580
4580
|
};
|
|
4581
4581
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4582
4582
|
version?: 1 | undefined;
|
|
4583
|
-
ephemeral?: boolean | undefined;
|
|
4584
4583
|
run_id?: string | undefined;
|
|
4585
4584
|
parent_run_id?: string | undefined;
|
|
4586
4585
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4587
|
-
visibility?: "
|
|
4586
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4587
|
+
ephemeral?: boolean | undefined;
|
|
4588
4588
|
}>, z.ZodObject<{
|
|
4589
4589
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
4590
4590
|
conversation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -4890,22 +4890,16 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4890
4890
|
}>]>, "many">>;
|
|
4891
4891
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
4892
4892
|
}, "strip", z.ZodTypeAny, {
|
|
4893
|
-
type: "final_answer";
|
|
4894
4893
|
id: string;
|
|
4895
|
-
|
|
4894
|
+
type: "final_answer";
|
|
4895
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4896
|
+
content: string;
|
|
4896
4897
|
timestamp: number;
|
|
4897
4898
|
version: 1;
|
|
4899
|
+
conversation_id: string;
|
|
4898
4900
|
turn_id: string;
|
|
4899
|
-
content: string;
|
|
4900
4901
|
is_complete: boolean;
|
|
4901
4902
|
answer_id: string;
|
|
4902
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4903
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4904
|
-
ephemeral?: boolean | undefined;
|
|
4905
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4906
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4907
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4908
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
4909
4903
|
provider_continuations?: {
|
|
4910
4904
|
kind: string;
|
|
4911
4905
|
schema_version: 2;
|
|
@@ -4964,24 +4958,22 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
4964
4958
|
payload: SerializableJsonValue;
|
|
4965
4959
|
}[] | undefined;
|
|
4966
4960
|
})[] | undefined;
|
|
4961
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4962
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4963
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4964
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4965
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4966
|
+
ephemeral?: boolean | undefined;
|
|
4967
4967
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4968
4968
|
}, {
|
|
4969
|
-
type: "final_answer";
|
|
4970
4969
|
id: string;
|
|
4971
|
-
|
|
4970
|
+
type: "final_answer";
|
|
4971
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4972
|
+
content: string;
|
|
4972
4973
|
timestamp: number;
|
|
4974
|
+
conversation_id: string;
|
|
4973
4975
|
turn_id: string;
|
|
4974
|
-
content: string;
|
|
4975
4976
|
answer_id: string;
|
|
4976
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4977
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4978
|
-
version?: 1 | undefined;
|
|
4979
|
-
ephemeral?: boolean | undefined;
|
|
4980
|
-
run_id?: string | undefined;
|
|
4981
|
-
parent_run_id?: string | undefined;
|
|
4982
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4983
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
4984
|
-
is_complete?: boolean | undefined;
|
|
4985
4977
|
provider_continuations?: {
|
|
4986
4978
|
kind: string;
|
|
4987
4979
|
schema_version: 2;
|
|
@@ -5040,6 +5032,14 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5040
5032
|
payload: SerializableJsonValue;
|
|
5041
5033
|
}[] | undefined;
|
|
5042
5034
|
})[] | undefined;
|
|
5035
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5036
|
+
version?: 1 | undefined;
|
|
5037
|
+
run_id?: string | undefined;
|
|
5038
|
+
parent_run_id?: string | undefined;
|
|
5039
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5040
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5041
|
+
ephemeral?: boolean | undefined;
|
|
5042
|
+
is_complete?: boolean | undefined;
|
|
5043
5043
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
5044
5044
|
}>, z.ZodObject<{
|
|
5045
5045
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -5060,38 +5060,38 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5060
5060
|
content: z.ZodString;
|
|
5061
5061
|
is_last: z.ZodOptional<z.ZodBoolean>;
|
|
5062
5062
|
}, "strip", z.ZodTypeAny, {
|
|
5063
|
-
type: "final_answer_chunk";
|
|
5064
5063
|
id: string;
|
|
5065
|
-
|
|
5064
|
+
type: "final_answer_chunk";
|
|
5065
|
+
content: string;
|
|
5066
5066
|
timestamp: number;
|
|
5067
5067
|
version: 1;
|
|
5068
|
+
conversation_id: string;
|
|
5068
5069
|
turn_id: string;
|
|
5069
|
-
content: string;
|
|
5070
5070
|
answer_id: string;
|
|
5071
5071
|
seq: number;
|
|
5072
5072
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5073
|
-
ephemeral?: boolean | undefined;
|
|
5074
5073
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5075
5074
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5076
5075
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5077
|
-
visibility?: "
|
|
5076
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5077
|
+
ephemeral?: boolean | undefined;
|
|
5078
5078
|
is_last?: boolean | undefined;
|
|
5079
5079
|
}, {
|
|
5080
|
-
type: "final_answer_chunk";
|
|
5081
5080
|
id: string;
|
|
5082
|
-
|
|
5081
|
+
type: "final_answer_chunk";
|
|
5082
|
+
content: string;
|
|
5083
5083
|
timestamp: number;
|
|
5084
|
+
conversation_id: string;
|
|
5084
5085
|
turn_id: string;
|
|
5085
|
-
content: string;
|
|
5086
5086
|
answer_id: string;
|
|
5087
5087
|
seq: number;
|
|
5088
5088
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5089
5089
|
version?: 1 | undefined;
|
|
5090
|
-
ephemeral?: boolean | undefined;
|
|
5091
5090
|
run_id?: string | undefined;
|
|
5092
5091
|
parent_run_id?: string | undefined;
|
|
5093
5092
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5094
|
-
visibility?: "
|
|
5093
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5094
|
+
ephemeral?: boolean | undefined;
|
|
5095
5095
|
is_last?: boolean | undefined;
|
|
5096
5096
|
}>, z.ZodObject<{
|
|
5097
5097
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -5110,33 +5110,33 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5110
5110
|
answer_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5111
5111
|
thought_message_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
5112
5112
|
}, "strip", z.ZodTypeAny, {
|
|
5113
|
-
type: "final_answer_reset";
|
|
5114
5113
|
id: string;
|
|
5115
|
-
|
|
5114
|
+
type: "final_answer_reset";
|
|
5116
5115
|
timestamp: number;
|
|
5117
5116
|
version: 1;
|
|
5117
|
+
conversation_id: string;
|
|
5118
5118
|
turn_id: string;
|
|
5119
5119
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5120
|
-
ephemeral?: boolean | undefined;
|
|
5121
5120
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5122
5121
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5123
5122
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5124
|
-
visibility?: "
|
|
5123
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5124
|
+
ephemeral?: boolean | undefined;
|
|
5125
5125
|
answer_id?: string | undefined;
|
|
5126
5126
|
thought_message_ids?: string[] | undefined;
|
|
5127
5127
|
}, {
|
|
5128
|
-
type: "final_answer_reset";
|
|
5129
5128
|
id: string;
|
|
5130
|
-
|
|
5129
|
+
type: "final_answer_reset";
|
|
5131
5130
|
timestamp: number;
|
|
5131
|
+
conversation_id: string;
|
|
5132
5132
|
turn_id: string;
|
|
5133
5133
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5134
5134
|
version?: 1 | undefined;
|
|
5135
|
-
ephemeral?: boolean | undefined;
|
|
5136
5135
|
run_id?: string | undefined;
|
|
5137
5136
|
parent_run_id?: string | undefined;
|
|
5138
5137
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5139
|
-
visibility?: "
|
|
5138
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5139
|
+
ephemeral?: boolean | undefined;
|
|
5140
5140
|
answer_id?: string | undefined;
|
|
5141
5141
|
thought_message_ids?: string[] | undefined;
|
|
5142
5142
|
}>, z.ZodObject<{
|
|
@@ -5160,41 +5160,41 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5160
5160
|
compression_ratio: z.ZodOptional<z.ZodNumber>;
|
|
5161
5161
|
included_old_summary: z.ZodOptional<z.ZodBoolean>;
|
|
5162
5162
|
}, "strip", z.ZodTypeAny, {
|
|
5163
|
-
type: "history_summary";
|
|
5164
5163
|
id: string;
|
|
5165
|
-
|
|
5164
|
+
type: "history_summary";
|
|
5165
|
+
content: string;
|
|
5166
5166
|
timestamp: number;
|
|
5167
5167
|
version: 1;
|
|
5168
|
+
conversation_id: string;
|
|
5168
5169
|
turn_id: string;
|
|
5169
|
-
content: string;
|
|
5170
5170
|
original_message_count: number;
|
|
5171
5171
|
replaced_message_ids: string[];
|
|
5172
5172
|
summary_seq: number;
|
|
5173
5173
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5174
|
-
ephemeral?: boolean | undefined;
|
|
5175
5174
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5176
5175
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5177
5176
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5178
|
-
visibility?: "
|
|
5177
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5178
|
+
ephemeral?: boolean | undefined;
|
|
5179
5179
|
compression_ratio?: number | undefined;
|
|
5180
5180
|
included_old_summary?: boolean | undefined;
|
|
5181
5181
|
}, {
|
|
5182
|
-
type: "history_summary";
|
|
5183
5182
|
id: string;
|
|
5184
|
-
|
|
5183
|
+
type: "history_summary";
|
|
5184
|
+
content: string;
|
|
5185
5185
|
timestamp: number;
|
|
5186
|
+
conversation_id: string;
|
|
5186
5187
|
turn_id: string;
|
|
5187
|
-
content: string;
|
|
5188
5188
|
original_message_count: number;
|
|
5189
5189
|
replaced_message_ids: string[];
|
|
5190
5190
|
summary_seq: number;
|
|
5191
5191
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5192
5192
|
version?: 1 | undefined;
|
|
5193
|
-
ephemeral?: boolean | undefined;
|
|
5194
5193
|
run_id?: string | undefined;
|
|
5195
5194
|
parent_run_id?: string | undefined;
|
|
5196
5195
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5197
|
-
visibility?: "
|
|
5196
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5197
|
+
ephemeral?: boolean | undefined;
|
|
5198
5198
|
compression_ratio?: number | undefined;
|
|
5199
5199
|
included_old_summary?: boolean | undefined;
|
|
5200
5200
|
}>, z.ZodObject<{
|
|
@@ -5216,36 +5216,36 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5216
5216
|
error_code: z.ZodOptional<z.ZodString>;
|
|
5217
5217
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
5218
5218
|
}, "strip", z.ZodTypeAny, {
|
|
5219
|
-
type: "error";
|
|
5220
5219
|
id: string;
|
|
5221
|
-
|
|
5220
|
+
type: "error";
|
|
5221
|
+
error: string;
|
|
5222
5222
|
timestamp: number;
|
|
5223
5223
|
version: 1;
|
|
5224
|
+
conversation_id: string;
|
|
5224
5225
|
turn_id: string;
|
|
5225
|
-
error: string;
|
|
5226
5226
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5227
|
-
ephemeral?: boolean | undefined;
|
|
5228
5227
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5229
5228
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5230
5229
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5231
|
-
visibility?: "
|
|
5230
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5231
|
+
ephemeral?: boolean | undefined;
|
|
5232
5232
|
error_code?: string | undefined;
|
|
5233
5233
|
details?: SerializableJsonValue | undefined;
|
|
5234
5234
|
retryable?: boolean | undefined;
|
|
5235
5235
|
}, {
|
|
5236
|
-
type: "error";
|
|
5237
5236
|
id: string;
|
|
5238
|
-
|
|
5237
|
+
type: "error";
|
|
5238
|
+
error: string;
|
|
5239
5239
|
timestamp: number;
|
|
5240
|
+
conversation_id: string;
|
|
5240
5241
|
turn_id: string;
|
|
5241
|
-
error: string;
|
|
5242
5242
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5243
5243
|
version?: 1 | undefined;
|
|
5244
|
-
ephemeral?: boolean | undefined;
|
|
5245
5244
|
run_id?: string | undefined;
|
|
5246
5245
|
parent_run_id?: string | undefined;
|
|
5247
5246
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5248
|
-
visibility?: "
|
|
5247
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5248
|
+
ephemeral?: boolean | undefined;
|
|
5249
5249
|
error_code?: string | undefined;
|
|
5250
5250
|
details?: SerializableJsonValue | undefined;
|
|
5251
5251
|
retryable?: boolean | undefined;
|
|
@@ -5268,38 +5268,38 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5268
5268
|
reason: z.ZodOptional<z.ZodString>;
|
|
5269
5269
|
meta: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
5270
5270
|
}, "strip", z.ZodTypeAny, {
|
|
5271
|
-
type: "control";
|
|
5272
5271
|
id: string;
|
|
5273
|
-
|
|
5272
|
+
type: "control";
|
|
5274
5273
|
timestamp: number;
|
|
5275
5274
|
version: 1;
|
|
5275
|
+
conversation_id: string;
|
|
5276
5276
|
turn_id: string;
|
|
5277
5277
|
op: "truncate_after" | "replace" | "redo" | "branch";
|
|
5278
5278
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5279
|
-
|
|
5279
|
+
reason?: string | undefined;
|
|
5280
5280
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5281
5281
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5282
5282
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5283
|
-
visibility?: "
|
|
5283
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5284
|
+
ephemeral?: boolean | undefined;
|
|
5284
5285
|
meta?: SerializableJsonValue | undefined;
|
|
5285
|
-
reason?: string | undefined;
|
|
5286
5286
|
target_id?: string | undefined;
|
|
5287
5287
|
}, {
|
|
5288
|
-
type: "control";
|
|
5289
5288
|
id: string;
|
|
5290
|
-
|
|
5289
|
+
type: "control";
|
|
5291
5290
|
timestamp: number;
|
|
5291
|
+
conversation_id: string;
|
|
5292
5292
|
turn_id: string;
|
|
5293
5293
|
op: "truncate_after" | "replace" | "redo" | "branch";
|
|
5294
5294
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5295
5295
|
version?: 1 | undefined;
|
|
5296
|
-
|
|
5296
|
+
reason?: string | undefined;
|
|
5297
5297
|
run_id?: string | undefined;
|
|
5298
5298
|
parent_run_id?: string | undefined;
|
|
5299
5299
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5300
|
-
visibility?: "
|
|
5300
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5301
|
+
ephemeral?: boolean | undefined;
|
|
5301
5302
|
meta?: SerializableJsonValue | undefined;
|
|
5302
|
-
reason?: string | undefined;
|
|
5303
5303
|
target_id?: string | undefined;
|
|
5304
5304
|
}>, z.ZodObject<{
|
|
5305
5305
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -5411,11 +5411,11 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5411
5411
|
served_model_id?: string | undefined;
|
|
5412
5412
|
}>;
|
|
5413
5413
|
}, "strip", z.ZodTypeAny, {
|
|
5414
|
-
type: "context_usage_snapshot";
|
|
5415
5414
|
id: string;
|
|
5416
|
-
|
|
5415
|
+
type: "context_usage_snapshot";
|
|
5417
5416
|
timestamp: number;
|
|
5418
5417
|
version: 1;
|
|
5418
|
+
conversation_id: string;
|
|
5419
5419
|
turn_id: string;
|
|
5420
5420
|
ephemeral: true;
|
|
5421
5421
|
context_usage: {
|
|
@@ -5440,13 +5440,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5440
5440
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5441
5441
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5442
5442
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5443
|
-
visibility?: "
|
|
5443
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5444
5444
|
user_message_id?: string | undefined;
|
|
5445
5445
|
}, {
|
|
5446
|
-
type: "context_usage_snapshot";
|
|
5447
5446
|
id: string;
|
|
5448
|
-
|
|
5447
|
+
type: "context_usage_snapshot";
|
|
5449
5448
|
timestamp: number;
|
|
5449
|
+
conversation_id: string;
|
|
5450
5450
|
turn_id: string;
|
|
5451
5451
|
ephemeral: true;
|
|
5452
5452
|
context_usage: {
|
|
@@ -5472,7 +5472,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5472
5472
|
run_id?: string | undefined;
|
|
5473
5473
|
parent_run_id?: string | undefined;
|
|
5474
5474
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5475
|
-
visibility?: "
|
|
5475
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5476
5476
|
user_message_id?: string | undefined;
|
|
5477
5477
|
}>, z.ZodObject<{
|
|
5478
5478
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -5587,21 +5587,21 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5587
5587
|
served_model_id?: string | undefined;
|
|
5588
5588
|
}>>;
|
|
5589
5589
|
}, "strip", z.ZodTypeAny, {
|
|
5590
|
-
type: "run_execution_metrics";
|
|
5591
5590
|
id: string;
|
|
5592
|
-
|
|
5591
|
+
type: "run_execution_metrics";
|
|
5593
5592
|
timestamp: number;
|
|
5594
5593
|
version: 1;
|
|
5594
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
5595
|
+
conversation_id: string;
|
|
5595
5596
|
turn_id: string;
|
|
5596
5597
|
duration_ms: number;
|
|
5597
|
-
outcome: "cancelled" | "completed" | "awaiting_user" | "failed";
|
|
5598
5598
|
execution_id: string;
|
|
5599
5599
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5600
|
-
ephemeral?: boolean | undefined;
|
|
5601
5600
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5602
5601
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5603
5602
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5604
|
-
visibility?: "
|
|
5603
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5604
|
+
ephemeral?: boolean | undefined;
|
|
5605
5605
|
user_message_id?: string | undefined;
|
|
5606
5606
|
context_usage?: {
|
|
5607
5607
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -5622,21 +5622,21 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5622
5622
|
served_model_id?: string | undefined;
|
|
5623
5623
|
} | undefined;
|
|
5624
5624
|
}, {
|
|
5625
|
-
type: "run_execution_metrics";
|
|
5626
5625
|
id: string;
|
|
5627
|
-
|
|
5626
|
+
type: "run_execution_metrics";
|
|
5628
5627
|
timestamp: number;
|
|
5628
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
5629
|
+
conversation_id: string;
|
|
5629
5630
|
turn_id: string;
|
|
5630
5631
|
duration_ms: number;
|
|
5631
|
-
outcome: "cancelled" | "completed" | "awaiting_user" | "failed";
|
|
5632
5632
|
execution_id: string;
|
|
5633
5633
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5634
5634
|
version?: 1 | undefined;
|
|
5635
|
-
ephemeral?: boolean | undefined;
|
|
5636
5635
|
run_id?: string | undefined;
|
|
5637
5636
|
parent_run_id?: string | undefined;
|
|
5638
5637
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5639
|
-
visibility?: "
|
|
5638
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5639
|
+
ephemeral?: boolean | undefined;
|
|
5640
5640
|
user_message_id?: string | undefined;
|
|
5641
5641
|
context_usage?: {
|
|
5642
5642
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -5657,21 +5657,15 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5657
5657
|
served_model_id?: string | undefined;
|
|
5658
5658
|
} | undefined;
|
|
5659
5659
|
}>]>>, {
|
|
5660
|
-
type: "user_input";
|
|
5661
5660
|
id: string;
|
|
5662
|
-
|
|
5661
|
+
type: "user_input";
|
|
5662
|
+
content: string;
|
|
5663
5663
|
timestamp: number;
|
|
5664
5664
|
version: 1;
|
|
5665
|
+
conversation_id: string;
|
|
5665
5666
|
turn_id: string;
|
|
5666
|
-
|
|
5667
|
-
source: "user" | "editor" | "system";
|
|
5667
|
+
source: "system" | "user" | "editor";
|
|
5668
5668
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5669
|
-
ephemeral?: boolean | undefined;
|
|
5670
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5671
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5672
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5673
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
5674
|
-
raw_content?: string | undefined;
|
|
5675
5669
|
attachments?: {
|
|
5676
5670
|
id: string;
|
|
5677
5671
|
kind: "image";
|
|
@@ -5684,43 +5678,41 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5684
5678
|
fileName?: string | undefined;
|
|
5685
5679
|
label?: string | undefined;
|
|
5686
5680
|
}[] | undefined;
|
|
5681
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5682
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5683
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5684
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5685
|
+
ephemeral?: boolean | undefined;
|
|
5686
|
+
raw_content?: string | undefined;
|
|
5687
5687
|
} | {
|
|
5688
|
-
type: "thought";
|
|
5689
5688
|
id: string;
|
|
5690
|
-
|
|
5689
|
+
type: "thought";
|
|
5690
|
+
content: string;
|
|
5691
5691
|
timestamp: number;
|
|
5692
5692
|
version: 1;
|
|
5693
|
+
conversation_id: string;
|
|
5693
5694
|
turn_id: string;
|
|
5694
|
-
content: string;
|
|
5695
5695
|
is_complete: boolean;
|
|
5696
5696
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5697
|
-
ephemeral?: boolean | undefined;
|
|
5698
5697
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5699
5698
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5700
5699
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5701
|
-
visibility?: "
|
|
5700
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5701
|
+
ephemeral?: boolean | undefined;
|
|
5702
5702
|
thought_message_id?: string | undefined;
|
|
5703
5703
|
delta?: string | undefined;
|
|
5704
5704
|
} | {
|
|
5705
|
-
type: "tool_call_decision";
|
|
5706
5705
|
id: string;
|
|
5707
|
-
conversation_id: string;
|
|
5708
|
-
timestamp: number;
|
|
5709
5706
|
status: "error" | "loading" | "success";
|
|
5707
|
+
type: "tool_call_decision";
|
|
5708
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5709
|
+
tool_name: string;
|
|
5710
|
+
timestamp: number;
|
|
5710
5711
|
version: 1;
|
|
5712
|
+
conversation_id: string;
|
|
5711
5713
|
turn_id: string;
|
|
5712
|
-
|
|
5713
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5714
|
-
phase: "start" | "update" | "complete" | "error";
|
|
5715
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5716
|
-
ephemeral?: boolean | undefined;
|
|
5717
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5718
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5719
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5720
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
5721
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
5714
|
+
phase: "error" | "start" | "update" | "complete";
|
|
5722
5715
|
payload?: {
|
|
5723
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
5724
5716
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
5725
5717
|
provider_continuations?: {
|
|
5726
5718
|
kind: string;
|
|
@@ -5780,47 +5772,52 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5780
5772
|
payload: SerializableJsonValue;
|
|
5781
5773
|
}[] | undefined;
|
|
5782
5774
|
})[] | undefined;
|
|
5775
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
5783
5776
|
} | undefined;
|
|
5777
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
5778
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5779
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5780
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5781
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5782
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5783
|
+
ephemeral?: boolean | undefined;
|
|
5784
5784
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
5785
5785
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
5786
5786
|
} | {
|
|
5787
|
-
type: "tool_process";
|
|
5788
5787
|
id: string;
|
|
5789
|
-
conversation_id: string;
|
|
5790
|
-
timestamp: number;
|
|
5791
5788
|
status: "error" | "loading" | "success";
|
|
5789
|
+
type: "tool_process";
|
|
5790
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5791
|
+
tool_name: string;
|
|
5792
|
+
timestamp: number;
|
|
5792
5793
|
version: 1;
|
|
5794
|
+
conversation_id: string;
|
|
5793
5795
|
turn_id: string;
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5796
|
+
phase: "error" | "start" | "update" | "complete";
|
|
5797
|
+
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
5798
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
5797
5799
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5798
|
-
ephemeral?: boolean | undefined;
|
|
5799
5800
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5800
5801
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5801
5802
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5802
|
-
visibility?: "
|
|
5803
|
-
|
|
5804
|
-
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
5803
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5804
|
+
ephemeral?: boolean | undefined;
|
|
5805
5805
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
5806
5806
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
5807
5807
|
} | {
|
|
5808
|
-
type: "tool_output";
|
|
5809
5808
|
id: string;
|
|
5810
|
-
conversation_id: string;
|
|
5811
|
-
timestamp: number;
|
|
5812
5809
|
status: "error" | "success";
|
|
5810
|
+
type: "tool_output";
|
|
5811
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5812
|
+
tool_name: string;
|
|
5813
|
+
timestamp: number;
|
|
5813
5814
|
version: 1;
|
|
5815
|
+
conversation_id: string;
|
|
5814
5816
|
turn_id: string;
|
|
5815
|
-
tool_name: string;
|
|
5816
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5817
5817
|
observation: string;
|
|
5818
|
+
data?: SerializableJsonValue | undefined;
|
|
5819
|
+
error?: string | undefined;
|
|
5818
5820
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5819
|
-
ephemeral?: boolean | undefined;
|
|
5820
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5821
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5822
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5823
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
5824
5821
|
attachments?: {
|
|
5825
5822
|
id: string;
|
|
5826
5823
|
kind: "image";
|
|
@@ -5833,29 +5830,37 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5833
5830
|
fileName?: string | undefined;
|
|
5834
5831
|
label?: string | undefined;
|
|
5835
5832
|
}[] | undefined;
|
|
5836
|
-
|
|
5837
|
-
|
|
5833
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5834
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5835
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5836
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5837
|
+
ephemeral?: boolean | undefined;
|
|
5838
5838
|
error_code?: string | undefined;
|
|
5839
5839
|
duration_ms?: number | undefined;
|
|
5840
5840
|
} | {
|
|
5841
|
-
type: "subrun_trace";
|
|
5842
5841
|
id: string;
|
|
5843
|
-
|
|
5842
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
5843
|
+
type: "subrun_trace";
|
|
5844
5844
|
timestamp: number;
|
|
5845
5845
|
version: 1;
|
|
5846
|
+
conversation_id: string;
|
|
5846
5847
|
turn_id: string;
|
|
5847
5848
|
ephemeral: true;
|
|
5848
|
-
kind: "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary";
|
|
5849
5849
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5850
5850
|
subrun_id: string;
|
|
5851
5851
|
source_event_id: string;
|
|
5852
5852
|
status?: "error" | "loading" | "success" | undefined;
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5853
|
+
tool_calls?: {
|
|
5854
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5855
|
+
tool_name: string;
|
|
5856
|
+
args: Record<string, SerializableJsonValue>;
|
|
5857
|
+
}[] | undefined;
|
|
5858
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
5859
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
5860
|
+
tool_name?: string | undefined;
|
|
5861
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
5858
5862
|
content?: string | undefined;
|
|
5863
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5859
5864
|
attachments?: {
|
|
5860
5865
|
id: string;
|
|
5861
5866
|
kind: "image";
|
|
@@ -5868,78 +5873,73 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5868
5873
|
fileName?: string | undefined;
|
|
5869
5874
|
label?: string | undefined;
|
|
5870
5875
|
}[] | undefined;
|
|
5876
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5877
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5878
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5879
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5871
5880
|
delta?: string | undefined;
|
|
5872
|
-
|
|
5873
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
5874
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
5875
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
5876
|
-
tool_calls?: {
|
|
5877
|
-
tool_name: string;
|
|
5878
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5879
|
-
args: Record<string, SerializableJsonValue>;
|
|
5880
|
-
}[] | undefined;
|
|
5881
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
5881
5882
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
5882
5883
|
duration_ms?: number | undefined;
|
|
5883
5884
|
subrun_parent_id?: string | undefined;
|
|
5884
5885
|
answer_id?: string | undefined;
|
|
5885
5886
|
seq?: number | undefined;
|
|
5886
5887
|
is_last?: boolean | undefined;
|
|
5887
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
5888
5888
|
output?: SerializableJsonValue | undefined;
|
|
5889
5889
|
original_message_count?: number | undefined;
|
|
5890
5890
|
compression_ratio?: number | undefined;
|
|
5891
5891
|
included_old_summary?: boolean | undefined;
|
|
5892
5892
|
replaced_message_ids?: string[] | undefined;
|
|
5893
5893
|
} | {
|
|
5894
|
-
type: "requires_user_interaction";
|
|
5895
5894
|
id: string;
|
|
5896
|
-
|
|
5895
|
+
type: "requires_user_interaction";
|
|
5896
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
5897
5897
|
timestamp: number;
|
|
5898
5898
|
version: 1;
|
|
5899
|
-
turn_id: string;
|
|
5900
5899
|
run_id: string & z.BRAND<"RunId">;
|
|
5901
|
-
|
|
5900
|
+
conversation_id: string;
|
|
5901
|
+
turn_id: string;
|
|
5902
5902
|
interaction_id: string;
|
|
5903
5903
|
checkpoint_revision: number;
|
|
5904
5904
|
resume_token: string;
|
|
5905
5905
|
interaction_status: "pending";
|
|
5906
5906
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5907
|
-
ephemeral?: boolean | undefined;
|
|
5908
5907
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5909
5908
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5910
|
-
visibility?: "
|
|
5909
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5910
|
+
ephemeral?: boolean | undefined;
|
|
5911
5911
|
form?: SerializableJsonValue | undefined;
|
|
5912
5912
|
interaction_type?: string | undefined;
|
|
5913
5913
|
prompt?: string | undefined;
|
|
5914
5914
|
} | {
|
|
5915
|
-
type: "audit_envelope";
|
|
5916
5915
|
id: string;
|
|
5917
|
-
|
|
5916
|
+
type: "audit_envelope";
|
|
5918
5917
|
timestamp: number;
|
|
5919
5918
|
version: 1;
|
|
5919
|
+
conversation_id: string;
|
|
5920
5920
|
turn_id: string;
|
|
5921
5921
|
envelope: {
|
|
5922
|
-
envelopeId: string;
|
|
5923
5922
|
runId: string & z.BRAND<"RunId">;
|
|
5923
|
+
envelopeId: string;
|
|
5924
5924
|
ts: number;
|
|
5925
5925
|
actor: {
|
|
5926
|
-
kind: "
|
|
5926
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
5927
5927
|
id?: string | undefined;
|
|
5928
5928
|
name?: string | undefined;
|
|
5929
5929
|
};
|
|
5930
5930
|
action: string;
|
|
5931
5931
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
5932
5932
|
decision?: {
|
|
5933
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
5933
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
5934
5934
|
metadata?: Record<string, unknown> | undefined;
|
|
5935
5935
|
reason?: string | undefined;
|
|
5936
5936
|
policy?: string | undefined;
|
|
5937
5937
|
} | undefined;
|
|
5938
5938
|
evidence?: {
|
|
5939
5939
|
kind: string;
|
|
5940
|
+
summary?: string | undefined;
|
|
5940
5941
|
metadata?: Record<string, unknown> | undefined;
|
|
5941
5942
|
ref?: string | undefined;
|
|
5942
|
-
summary?: string | undefined;
|
|
5943
5943
|
}[] | undefined;
|
|
5944
5944
|
costDelta?: {
|
|
5945
5945
|
tokensInput?: number | undefined;
|
|
@@ -5949,41 +5949,35 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
5949
5949
|
} | undefined;
|
|
5950
5950
|
scope?: {
|
|
5951
5951
|
metadata?: Record<string, unknown> | undefined;
|
|
5952
|
+
toolName?: string | undefined;
|
|
5953
|
+
conversationId?: string | undefined;
|
|
5952
5954
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
5953
5955
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
5954
|
-
conversationId?: string | undefined;
|
|
5955
5956
|
turnId?: string | undefined;
|
|
5956
5957
|
traceId?: string | undefined;
|
|
5957
5958
|
agentSpecId?: string | undefined;
|
|
5958
5959
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
5959
|
-
toolName?: string | undefined;
|
|
5960
5960
|
modelId?: string | undefined;
|
|
5961
5961
|
nodeId?: string | undefined;
|
|
5962
5962
|
} | undefined;
|
|
5963
5963
|
};
|
|
5964
5964
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5965
|
-
ephemeral?: boolean | undefined;
|
|
5966
5965
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5967
5966
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5968
5967
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5969
|
-
visibility?: "
|
|
5968
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5969
|
+
ephemeral?: boolean | undefined;
|
|
5970
5970
|
} | {
|
|
5971
|
-
type: "final_answer";
|
|
5972
5971
|
id: string;
|
|
5973
|
-
|
|
5972
|
+
type: "final_answer";
|
|
5973
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
5974
|
+
content: string;
|
|
5974
5975
|
timestamp: number;
|
|
5975
5976
|
version: 1;
|
|
5977
|
+
conversation_id: string;
|
|
5976
5978
|
turn_id: string;
|
|
5977
|
-
content: string;
|
|
5978
5979
|
is_complete: boolean;
|
|
5979
5980
|
answer_id: string;
|
|
5980
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
5981
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5982
|
-
ephemeral?: boolean | undefined;
|
|
5983
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5984
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5985
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5986
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
5987
5981
|
provider_continuations?: {
|
|
5988
5982
|
kind: string;
|
|
5989
5983
|
schema_version: 2;
|
|
@@ -6042,98 +6036,104 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
6042
6036
|
payload: SerializableJsonValue;
|
|
6043
6037
|
}[] | undefined;
|
|
6044
6038
|
})[] | undefined;
|
|
6039
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6040
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6041
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6042
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6043
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6044
|
+
ephemeral?: boolean | undefined;
|
|
6045
6045
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
6046
6046
|
} | {
|
|
6047
|
-
type: "final_answer_chunk";
|
|
6048
6047
|
id: string;
|
|
6049
|
-
|
|
6048
|
+
type: "final_answer_chunk";
|
|
6049
|
+
content: string;
|
|
6050
6050
|
timestamp: number;
|
|
6051
6051
|
version: 1;
|
|
6052
|
+
conversation_id: string;
|
|
6052
6053
|
turn_id: string;
|
|
6053
|
-
content: string;
|
|
6054
6054
|
answer_id: string;
|
|
6055
6055
|
seq: number;
|
|
6056
6056
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6057
|
-
ephemeral?: boolean | undefined;
|
|
6058
6057
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6059
6058
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6060
6059
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6061
|
-
visibility?: "
|
|
6060
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6061
|
+
ephemeral?: boolean | undefined;
|
|
6062
6062
|
is_last?: boolean | undefined;
|
|
6063
6063
|
} | {
|
|
6064
|
-
type: "final_answer_reset";
|
|
6065
6064
|
id: string;
|
|
6066
|
-
|
|
6065
|
+
type: "final_answer_reset";
|
|
6067
6066
|
timestamp: number;
|
|
6068
6067
|
version: 1;
|
|
6068
|
+
conversation_id: string;
|
|
6069
6069
|
turn_id: string;
|
|
6070
6070
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6071
|
-
ephemeral?: boolean | undefined;
|
|
6072
6071
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6073
6072
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6074
6073
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6075
|
-
visibility?: "
|
|
6074
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6075
|
+
ephemeral?: boolean | undefined;
|
|
6076
6076
|
answer_id?: string | undefined;
|
|
6077
6077
|
thought_message_ids?: string[] | undefined;
|
|
6078
6078
|
} | {
|
|
6079
|
-
type: "history_summary";
|
|
6080
6079
|
id: string;
|
|
6081
|
-
|
|
6080
|
+
type: "history_summary";
|
|
6081
|
+
content: string;
|
|
6082
6082
|
timestamp: number;
|
|
6083
6083
|
version: 1;
|
|
6084
|
+
conversation_id: string;
|
|
6084
6085
|
turn_id: string;
|
|
6085
|
-
content: string;
|
|
6086
6086
|
original_message_count: number;
|
|
6087
6087
|
replaced_message_ids: string[];
|
|
6088
6088
|
summary_seq: number;
|
|
6089
6089
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6090
|
-
ephemeral?: boolean | undefined;
|
|
6091
6090
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6092
6091
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6093
6092
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6094
|
-
visibility?: "
|
|
6093
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6094
|
+
ephemeral?: boolean | undefined;
|
|
6095
6095
|
compression_ratio?: number | undefined;
|
|
6096
6096
|
included_old_summary?: boolean | undefined;
|
|
6097
6097
|
} | {
|
|
6098
|
-
type: "error";
|
|
6099
6098
|
id: string;
|
|
6100
|
-
|
|
6099
|
+
type: "error";
|
|
6100
|
+
error: string;
|
|
6101
6101
|
timestamp: number;
|
|
6102
6102
|
version: 1;
|
|
6103
|
+
conversation_id: string;
|
|
6103
6104
|
turn_id: string;
|
|
6104
|
-
error: string;
|
|
6105
6105
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6106
|
-
ephemeral?: boolean | undefined;
|
|
6107
6106
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6108
6107
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6109
6108
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6110
|
-
visibility?: "
|
|
6109
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6110
|
+
ephemeral?: boolean | undefined;
|
|
6111
6111
|
error_code?: string | undefined;
|
|
6112
6112
|
details?: SerializableJsonValue | undefined;
|
|
6113
6113
|
retryable?: boolean | undefined;
|
|
6114
6114
|
} | {
|
|
6115
|
-
type: "control";
|
|
6116
6115
|
id: string;
|
|
6117
|
-
|
|
6116
|
+
type: "control";
|
|
6118
6117
|
timestamp: number;
|
|
6119
6118
|
version: 1;
|
|
6119
|
+
conversation_id: string;
|
|
6120
6120
|
turn_id: string;
|
|
6121
6121
|
op: "truncate_after" | "replace" | "redo" | "branch";
|
|
6122
6122
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6123
|
-
|
|
6123
|
+
reason?: string | undefined;
|
|
6124
6124
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6125
6125
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6126
6126
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6127
|
-
visibility?: "
|
|
6127
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6128
|
+
ephemeral?: boolean | undefined;
|
|
6128
6129
|
meta?: SerializableJsonValue | undefined;
|
|
6129
|
-
reason?: string | undefined;
|
|
6130
6130
|
target_id?: string | undefined;
|
|
6131
6131
|
} | {
|
|
6132
|
-
type: "context_usage_snapshot";
|
|
6133
6132
|
id: string;
|
|
6134
|
-
|
|
6133
|
+
type: "context_usage_snapshot";
|
|
6135
6134
|
timestamp: number;
|
|
6136
6135
|
version: 1;
|
|
6136
|
+
conversation_id: string;
|
|
6137
6137
|
turn_id: string;
|
|
6138
6138
|
ephemeral: true;
|
|
6139
6139
|
context_usage: {
|
|
@@ -6158,24 +6158,24 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
|
|
|
6158
6158
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6159
6159
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6160
6160
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6161
|
-
visibility?: "
|
|
6161
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6162
6162
|
user_message_id?: string | undefined;
|
|
6163
6163
|
} | {
|
|
6164
|
-
type: "run_execution_metrics";
|
|
6165
6164
|
id: string;
|
|
6166
|
-
|
|
6165
|
+
type: "run_execution_metrics";
|
|
6167
6166
|
timestamp: number;
|
|
6168
6167
|
version: 1;
|
|
6168
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
6169
|
+
conversation_id: string;
|
|
6169
6170
|
turn_id: string;
|
|
6170
6171
|
duration_ms: number;
|
|
6171
|
-
outcome: "cancelled" | "completed" | "awaiting_user" | "failed";
|
|
6172
6172
|
execution_id: string;
|
|
6173
6173
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6174
|
-
ephemeral?: boolean | undefined;
|
|
6175
6174
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6176
6175
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6177
6176
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6178
|
-
visibility?: "
|
|
6177
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6178
|
+
ephemeral?: boolean | undefined;
|
|
6179
6179
|
user_message_id?: string | undefined;
|
|
6180
6180
|
context_usage?: {
|
|
6181
6181
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -6260,21 +6260,15 @@ type RunExecutionMetricsEvent = Extract<RuntimeEvent, {
|
|
|
6260
6260
|
type: 'run_execution_metrics';
|
|
6261
6261
|
}>;
|
|
6262
6262
|
declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<unknown, {
|
|
6263
|
-
type: "user_input";
|
|
6264
6263
|
id: string;
|
|
6265
|
-
|
|
6264
|
+
type: "user_input";
|
|
6265
|
+
content: string;
|
|
6266
6266
|
timestamp: number;
|
|
6267
6267
|
version: 1;
|
|
6268
|
+
conversation_id: string;
|
|
6268
6269
|
turn_id: string;
|
|
6269
|
-
|
|
6270
|
-
source: "user" | "editor" | "system";
|
|
6270
|
+
source: "system" | "user" | "editor";
|
|
6271
6271
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6272
|
-
ephemeral?: boolean | undefined;
|
|
6273
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6274
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6275
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6276
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
6277
|
-
raw_content?: string | undefined;
|
|
6278
6272
|
attachments?: {
|
|
6279
6273
|
id: string;
|
|
6280
6274
|
kind: "image";
|
|
@@ -6287,43 +6281,41 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6287
6281
|
fileName?: string | undefined;
|
|
6288
6282
|
label?: string | undefined;
|
|
6289
6283
|
}[] | undefined;
|
|
6284
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6285
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6286
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6287
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6288
|
+
ephemeral?: boolean | undefined;
|
|
6289
|
+
raw_content?: string | undefined;
|
|
6290
6290
|
} | {
|
|
6291
|
-
type: "thought";
|
|
6292
6291
|
id: string;
|
|
6293
|
-
|
|
6292
|
+
type: "thought";
|
|
6293
|
+
content: string;
|
|
6294
6294
|
timestamp: number;
|
|
6295
6295
|
version: 1;
|
|
6296
|
+
conversation_id: string;
|
|
6296
6297
|
turn_id: string;
|
|
6297
|
-
content: string;
|
|
6298
6298
|
is_complete: boolean;
|
|
6299
6299
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6300
|
-
ephemeral?: boolean | undefined;
|
|
6301
6300
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6302
6301
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6303
6302
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6304
|
-
visibility?: "
|
|
6303
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6304
|
+
ephemeral?: boolean | undefined;
|
|
6305
6305
|
thought_message_id?: string | undefined;
|
|
6306
6306
|
delta?: string | undefined;
|
|
6307
6307
|
} | {
|
|
6308
|
-
type: "tool_call_decision";
|
|
6309
6308
|
id: string;
|
|
6310
|
-
conversation_id: string;
|
|
6311
|
-
timestamp: number;
|
|
6312
6309
|
status: "error" | "loading" | "success";
|
|
6310
|
+
type: "tool_call_decision";
|
|
6311
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6312
|
+
tool_name: string;
|
|
6313
|
+
timestamp: number;
|
|
6313
6314
|
version: 1;
|
|
6315
|
+
conversation_id: string;
|
|
6314
6316
|
turn_id: string;
|
|
6315
|
-
|
|
6316
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6317
|
-
phase: "start" | "update" | "complete" | "error";
|
|
6318
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6319
|
-
ephemeral?: boolean | undefined;
|
|
6320
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6321
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6322
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6323
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
6324
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6317
|
+
phase: "error" | "start" | "update" | "complete";
|
|
6325
6318
|
payload?: {
|
|
6326
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6327
6319
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
6328
6320
|
provider_continuations?: {
|
|
6329
6321
|
kind: string;
|
|
@@ -6383,47 +6375,52 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6383
6375
|
payload: SerializableJsonValue;
|
|
6384
6376
|
}[] | undefined;
|
|
6385
6377
|
})[] | undefined;
|
|
6378
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6386
6379
|
} | undefined;
|
|
6380
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6381
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6382
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6383
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6384
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6385
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6386
|
+
ephemeral?: boolean | undefined;
|
|
6387
6387
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
6388
6388
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
6389
6389
|
} | {
|
|
6390
|
-
type: "tool_process";
|
|
6391
6390
|
id: string;
|
|
6392
|
-
conversation_id: string;
|
|
6393
|
-
timestamp: number;
|
|
6394
6391
|
status: "error" | "loading" | "success";
|
|
6392
|
+
type: "tool_process";
|
|
6393
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6394
|
+
tool_name: string;
|
|
6395
|
+
timestamp: number;
|
|
6395
6396
|
version: 1;
|
|
6397
|
+
conversation_id: string;
|
|
6396
6398
|
turn_id: string;
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6399
|
+
phase: "error" | "start" | "update" | "complete";
|
|
6400
|
+
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
6401
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6400
6402
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6401
|
-
ephemeral?: boolean | undefined;
|
|
6402
6403
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6403
6404
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6404
6405
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6405
|
-
visibility?: "
|
|
6406
|
-
|
|
6407
|
-
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
6406
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6407
|
+
ephemeral?: boolean | undefined;
|
|
6408
6408
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
6409
6409
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
6410
6410
|
} | {
|
|
6411
|
-
type: "tool_output";
|
|
6412
6411
|
id: string;
|
|
6413
|
-
conversation_id: string;
|
|
6414
|
-
timestamp: number;
|
|
6415
6412
|
status: "error" | "success";
|
|
6413
|
+
type: "tool_output";
|
|
6414
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6415
|
+
tool_name: string;
|
|
6416
|
+
timestamp: number;
|
|
6416
6417
|
version: 1;
|
|
6418
|
+
conversation_id: string;
|
|
6417
6419
|
turn_id: string;
|
|
6418
|
-
tool_name: string;
|
|
6419
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6420
6420
|
observation: string;
|
|
6421
|
+
data?: SerializableJsonValue | undefined;
|
|
6422
|
+
error?: string | undefined;
|
|
6421
6423
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6422
|
-
ephemeral?: boolean | undefined;
|
|
6423
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6424
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6425
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6426
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
6427
6424
|
attachments?: {
|
|
6428
6425
|
id: string;
|
|
6429
6426
|
kind: "image";
|
|
@@ -6436,29 +6433,37 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6436
6433
|
fileName?: string | undefined;
|
|
6437
6434
|
label?: string | undefined;
|
|
6438
6435
|
}[] | undefined;
|
|
6439
|
-
|
|
6440
|
-
|
|
6436
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6437
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6438
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6439
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6440
|
+
ephemeral?: boolean | undefined;
|
|
6441
6441
|
error_code?: string | undefined;
|
|
6442
6442
|
duration_ms?: number | undefined;
|
|
6443
6443
|
} | {
|
|
6444
|
-
type: "subrun_trace";
|
|
6445
6444
|
id: string;
|
|
6446
|
-
|
|
6445
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
6446
|
+
type: "subrun_trace";
|
|
6447
6447
|
timestamp: number;
|
|
6448
6448
|
version: 1;
|
|
6449
|
+
conversation_id: string;
|
|
6449
6450
|
turn_id: string;
|
|
6450
6451
|
ephemeral: true;
|
|
6451
|
-
kind: "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary";
|
|
6452
6452
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6453
6453
|
subrun_id: string;
|
|
6454
6454
|
source_event_id: string;
|
|
6455
6455
|
status?: "error" | "loading" | "success" | undefined;
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6456
|
+
tool_calls?: {
|
|
6457
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6458
|
+
tool_name: string;
|
|
6459
|
+
args: Record<string, SerializableJsonValue>;
|
|
6460
|
+
}[] | undefined;
|
|
6461
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
6462
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
6463
|
+
tool_name?: string | undefined;
|
|
6464
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6461
6465
|
content?: string | undefined;
|
|
6466
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6462
6467
|
attachments?: {
|
|
6463
6468
|
id: string;
|
|
6464
6469
|
kind: "image";
|
|
@@ -6471,78 +6476,73 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6471
6476
|
fileName?: string | undefined;
|
|
6472
6477
|
label?: string | undefined;
|
|
6473
6478
|
}[] | undefined;
|
|
6479
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6480
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6481
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6482
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6474
6483
|
delta?: string | undefined;
|
|
6475
|
-
|
|
6476
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
6477
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
6478
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6479
|
-
tool_calls?: {
|
|
6480
|
-
tool_name: string;
|
|
6481
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6482
|
-
args: Record<string, SerializableJsonValue>;
|
|
6483
|
-
}[] | undefined;
|
|
6484
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
6484
6485
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
6485
6486
|
duration_ms?: number | undefined;
|
|
6486
6487
|
subrun_parent_id?: string | undefined;
|
|
6487
6488
|
answer_id?: string | undefined;
|
|
6488
6489
|
seq?: number | undefined;
|
|
6489
6490
|
is_last?: boolean | undefined;
|
|
6490
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
6491
6491
|
output?: SerializableJsonValue | undefined;
|
|
6492
6492
|
original_message_count?: number | undefined;
|
|
6493
6493
|
compression_ratio?: number | undefined;
|
|
6494
6494
|
included_old_summary?: boolean | undefined;
|
|
6495
6495
|
replaced_message_ids?: string[] | undefined;
|
|
6496
6496
|
} | {
|
|
6497
|
-
type: "requires_user_interaction";
|
|
6498
6497
|
id: string;
|
|
6499
|
-
|
|
6498
|
+
type: "requires_user_interaction";
|
|
6499
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6500
6500
|
timestamp: number;
|
|
6501
6501
|
version: 1;
|
|
6502
|
-
turn_id: string;
|
|
6503
6502
|
run_id: string & z.BRAND<"RunId">;
|
|
6504
|
-
|
|
6503
|
+
conversation_id: string;
|
|
6504
|
+
turn_id: string;
|
|
6505
6505
|
interaction_id: string;
|
|
6506
6506
|
checkpoint_revision: number;
|
|
6507
6507
|
resume_token: string;
|
|
6508
6508
|
interaction_status: "pending";
|
|
6509
6509
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6510
|
-
ephemeral?: boolean | undefined;
|
|
6511
6510
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6512
6511
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6513
|
-
visibility?: "
|
|
6512
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6513
|
+
ephemeral?: boolean | undefined;
|
|
6514
6514
|
form?: SerializableJsonValue | undefined;
|
|
6515
6515
|
interaction_type?: string | undefined;
|
|
6516
6516
|
prompt?: string | undefined;
|
|
6517
6517
|
} | {
|
|
6518
|
-
type: "audit_envelope";
|
|
6519
6518
|
id: string;
|
|
6520
|
-
|
|
6519
|
+
type: "audit_envelope";
|
|
6521
6520
|
timestamp: number;
|
|
6522
6521
|
version: 1;
|
|
6522
|
+
conversation_id: string;
|
|
6523
6523
|
turn_id: string;
|
|
6524
6524
|
envelope: {
|
|
6525
|
-
envelopeId: string;
|
|
6526
6525
|
runId: string & z.BRAND<"RunId">;
|
|
6526
|
+
envelopeId: string;
|
|
6527
6527
|
ts: number;
|
|
6528
6528
|
actor: {
|
|
6529
|
-
kind: "
|
|
6529
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
6530
6530
|
id?: string | undefined;
|
|
6531
6531
|
name?: string | undefined;
|
|
6532
6532
|
};
|
|
6533
6533
|
action: string;
|
|
6534
6534
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
6535
6535
|
decision?: {
|
|
6536
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
6536
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
6537
6537
|
metadata?: Record<string, unknown> | undefined;
|
|
6538
6538
|
reason?: string | undefined;
|
|
6539
6539
|
policy?: string | undefined;
|
|
6540
6540
|
} | undefined;
|
|
6541
6541
|
evidence?: {
|
|
6542
6542
|
kind: string;
|
|
6543
|
+
summary?: string | undefined;
|
|
6543
6544
|
metadata?: Record<string, unknown> | undefined;
|
|
6544
6545
|
ref?: string | undefined;
|
|
6545
|
-
summary?: string | undefined;
|
|
6546
6546
|
}[] | undefined;
|
|
6547
6547
|
costDelta?: {
|
|
6548
6548
|
tokensInput?: number | undefined;
|
|
@@ -6552,41 +6552,35 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6552
6552
|
} | undefined;
|
|
6553
6553
|
scope?: {
|
|
6554
6554
|
metadata?: Record<string, unknown> | undefined;
|
|
6555
|
+
toolName?: string | undefined;
|
|
6556
|
+
conversationId?: string | undefined;
|
|
6555
6557
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
6556
6558
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
6557
|
-
conversationId?: string | undefined;
|
|
6558
6559
|
turnId?: string | undefined;
|
|
6559
6560
|
traceId?: string | undefined;
|
|
6560
6561
|
agentSpecId?: string | undefined;
|
|
6561
6562
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
6562
|
-
toolName?: string | undefined;
|
|
6563
6563
|
modelId?: string | undefined;
|
|
6564
6564
|
nodeId?: string | undefined;
|
|
6565
6565
|
} | undefined;
|
|
6566
6566
|
};
|
|
6567
6567
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6568
|
-
ephemeral?: boolean | undefined;
|
|
6569
6568
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6570
6569
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6571
6570
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6572
|
-
visibility?: "
|
|
6571
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6572
|
+
ephemeral?: boolean | undefined;
|
|
6573
6573
|
} | {
|
|
6574
|
-
type: "final_answer";
|
|
6575
6574
|
id: string;
|
|
6576
|
-
|
|
6575
|
+
type: "final_answer";
|
|
6576
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
6577
|
+
content: string;
|
|
6577
6578
|
timestamp: number;
|
|
6578
6579
|
version: 1;
|
|
6580
|
+
conversation_id: string;
|
|
6579
6581
|
turn_id: string;
|
|
6580
|
-
content: string;
|
|
6581
6582
|
is_complete: boolean;
|
|
6582
6583
|
answer_id: string;
|
|
6583
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
6584
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6585
|
-
ephemeral?: boolean | undefined;
|
|
6586
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6587
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6588
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6589
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
6590
6584
|
provider_continuations?: {
|
|
6591
6585
|
kind: string;
|
|
6592
6586
|
schema_version: 2;
|
|
@@ -6645,98 +6639,104 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6645
6639
|
payload: SerializableJsonValue;
|
|
6646
6640
|
}[] | undefined;
|
|
6647
6641
|
})[] | undefined;
|
|
6642
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6643
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6644
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6645
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6646
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6647
|
+
ephemeral?: boolean | undefined;
|
|
6648
6648
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
6649
6649
|
} | {
|
|
6650
|
-
type: "final_answer_chunk";
|
|
6651
6650
|
id: string;
|
|
6652
|
-
|
|
6651
|
+
type: "final_answer_chunk";
|
|
6652
|
+
content: string;
|
|
6653
6653
|
timestamp: number;
|
|
6654
6654
|
version: 1;
|
|
6655
|
+
conversation_id: string;
|
|
6655
6656
|
turn_id: string;
|
|
6656
|
-
content: string;
|
|
6657
6657
|
answer_id: string;
|
|
6658
6658
|
seq: number;
|
|
6659
6659
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6660
|
-
ephemeral?: boolean | undefined;
|
|
6661
6660
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6662
6661
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6663
6662
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6664
|
-
visibility?: "
|
|
6663
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6664
|
+
ephemeral?: boolean | undefined;
|
|
6665
6665
|
is_last?: boolean | undefined;
|
|
6666
6666
|
} | {
|
|
6667
|
-
type: "final_answer_reset";
|
|
6668
6667
|
id: string;
|
|
6669
|
-
|
|
6668
|
+
type: "final_answer_reset";
|
|
6670
6669
|
timestamp: number;
|
|
6671
6670
|
version: 1;
|
|
6671
|
+
conversation_id: string;
|
|
6672
6672
|
turn_id: string;
|
|
6673
6673
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6674
|
-
ephemeral?: boolean | undefined;
|
|
6675
6674
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6676
6675
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6677
6676
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6678
|
-
visibility?: "
|
|
6677
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6678
|
+
ephemeral?: boolean | undefined;
|
|
6679
6679
|
answer_id?: string | undefined;
|
|
6680
6680
|
thought_message_ids?: string[] | undefined;
|
|
6681
6681
|
} | {
|
|
6682
|
-
type: "history_summary";
|
|
6683
6682
|
id: string;
|
|
6684
|
-
|
|
6683
|
+
type: "history_summary";
|
|
6684
|
+
content: string;
|
|
6685
6685
|
timestamp: number;
|
|
6686
6686
|
version: 1;
|
|
6687
|
+
conversation_id: string;
|
|
6687
6688
|
turn_id: string;
|
|
6688
|
-
content: string;
|
|
6689
6689
|
original_message_count: number;
|
|
6690
6690
|
replaced_message_ids: string[];
|
|
6691
6691
|
summary_seq: number;
|
|
6692
6692
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6693
|
-
ephemeral?: boolean | undefined;
|
|
6694
6693
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6695
6694
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6696
6695
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6697
|
-
visibility?: "
|
|
6696
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6697
|
+
ephemeral?: boolean | undefined;
|
|
6698
6698
|
compression_ratio?: number | undefined;
|
|
6699
6699
|
included_old_summary?: boolean | undefined;
|
|
6700
6700
|
} | {
|
|
6701
|
-
type: "error";
|
|
6702
6701
|
id: string;
|
|
6703
|
-
|
|
6702
|
+
type: "error";
|
|
6703
|
+
error: string;
|
|
6704
6704
|
timestamp: number;
|
|
6705
6705
|
version: 1;
|
|
6706
|
+
conversation_id: string;
|
|
6706
6707
|
turn_id: string;
|
|
6707
|
-
error: string;
|
|
6708
6708
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6709
|
-
ephemeral?: boolean | undefined;
|
|
6710
6709
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6711
6710
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6712
6711
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6713
|
-
visibility?: "
|
|
6712
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6713
|
+
ephemeral?: boolean | undefined;
|
|
6714
6714
|
error_code?: string | undefined;
|
|
6715
6715
|
details?: SerializableJsonValue | undefined;
|
|
6716
6716
|
retryable?: boolean | undefined;
|
|
6717
6717
|
} | {
|
|
6718
|
-
type: "control";
|
|
6719
6718
|
id: string;
|
|
6720
|
-
|
|
6719
|
+
type: "control";
|
|
6721
6720
|
timestamp: number;
|
|
6722
6721
|
version: 1;
|
|
6722
|
+
conversation_id: string;
|
|
6723
6723
|
turn_id: string;
|
|
6724
6724
|
op: "truncate_after" | "replace" | "redo" | "branch";
|
|
6725
6725
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6726
|
-
|
|
6726
|
+
reason?: string | undefined;
|
|
6727
6727
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6728
6728
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6729
6729
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6730
|
-
visibility?: "
|
|
6730
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6731
|
+
ephemeral?: boolean | undefined;
|
|
6731
6732
|
meta?: SerializableJsonValue | undefined;
|
|
6732
|
-
reason?: string | undefined;
|
|
6733
6733
|
target_id?: string | undefined;
|
|
6734
6734
|
} | {
|
|
6735
|
-
type: "context_usage_snapshot";
|
|
6736
6735
|
id: string;
|
|
6737
|
-
|
|
6736
|
+
type: "context_usage_snapshot";
|
|
6738
6737
|
timestamp: number;
|
|
6739
6738
|
version: 1;
|
|
6739
|
+
conversation_id: string;
|
|
6740
6740
|
turn_id: string;
|
|
6741
6741
|
ephemeral: true;
|
|
6742
6742
|
context_usage: {
|
|
@@ -6761,24 +6761,24 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6761
6761
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6762
6762
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6763
6763
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6764
|
-
visibility?: "
|
|
6764
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6765
6765
|
user_message_id?: string | undefined;
|
|
6766
6766
|
} | {
|
|
6767
|
-
type: "run_execution_metrics";
|
|
6768
6767
|
id: string;
|
|
6769
|
-
|
|
6768
|
+
type: "run_execution_metrics";
|
|
6770
6769
|
timestamp: number;
|
|
6771
6770
|
version: 1;
|
|
6771
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
6772
|
+
conversation_id: string;
|
|
6772
6773
|
turn_id: string;
|
|
6773
6774
|
duration_ms: number;
|
|
6774
|
-
outcome: "cancelled" | "completed" | "awaiting_user" | "failed";
|
|
6775
6775
|
execution_id: string;
|
|
6776
6776
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6777
|
-
ephemeral?: boolean | undefined;
|
|
6778
6777
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6779
6778
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6780
6779
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6781
|
-
visibility?: "
|
|
6780
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6781
|
+
ephemeral?: boolean | undefined;
|
|
6782
6782
|
user_message_id?: string | undefined;
|
|
6783
6783
|
context_usage?: {
|
|
6784
6784
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -6800,21 +6800,15 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
|
|
|
6800
6800
|
} | undefined;
|
|
6801
6801
|
}>;
|
|
6802
6802
|
declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnType<unknown[], ({
|
|
6803
|
-
type: "user_input";
|
|
6804
6803
|
id: string;
|
|
6805
|
-
|
|
6804
|
+
type: "user_input";
|
|
6805
|
+
content: string;
|
|
6806
6806
|
timestamp: number;
|
|
6807
6807
|
version: 1;
|
|
6808
|
+
conversation_id: string;
|
|
6808
6809
|
turn_id: string;
|
|
6809
|
-
|
|
6810
|
-
source: "user" | "editor" | "system";
|
|
6810
|
+
source: "system" | "user" | "editor";
|
|
6811
6811
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6812
|
-
ephemeral?: boolean | undefined;
|
|
6813
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6814
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6815
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6816
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
6817
|
-
raw_content?: string | undefined;
|
|
6818
6812
|
attachments?: {
|
|
6819
6813
|
id: string;
|
|
6820
6814
|
kind: "image";
|
|
@@ -6827,43 +6821,41 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
|
|
|
6827
6821
|
fileName?: string | undefined;
|
|
6828
6822
|
label?: string | undefined;
|
|
6829
6823
|
}[] | undefined;
|
|
6824
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6825
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6826
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6827
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6828
|
+
ephemeral?: boolean | undefined;
|
|
6829
|
+
raw_content?: string | undefined;
|
|
6830
6830
|
} | {
|
|
6831
|
-
type: "thought";
|
|
6832
6831
|
id: string;
|
|
6833
|
-
|
|
6832
|
+
type: "thought";
|
|
6833
|
+
content: string;
|
|
6834
6834
|
timestamp: number;
|
|
6835
6835
|
version: 1;
|
|
6836
|
+
conversation_id: string;
|
|
6836
6837
|
turn_id: string;
|
|
6837
|
-
content: string;
|
|
6838
6838
|
is_complete: boolean;
|
|
6839
6839
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6840
|
-
ephemeral?: boolean | undefined;
|
|
6841
6840
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6842
6841
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6843
6842
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6844
|
-
visibility?: "
|
|
6843
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6844
|
+
ephemeral?: boolean | undefined;
|
|
6845
6845
|
thought_message_id?: string | undefined;
|
|
6846
6846
|
delta?: string | undefined;
|
|
6847
6847
|
} | {
|
|
6848
|
-
type: "tool_call_decision";
|
|
6849
6848
|
id: string;
|
|
6850
|
-
conversation_id: string;
|
|
6851
|
-
timestamp: number;
|
|
6852
6849
|
status: "error" | "loading" | "success";
|
|
6850
|
+
type: "tool_call_decision";
|
|
6851
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6852
|
+
tool_name: string;
|
|
6853
|
+
timestamp: number;
|
|
6853
6854
|
version: 1;
|
|
6855
|
+
conversation_id: string;
|
|
6854
6856
|
turn_id: string;
|
|
6855
|
-
|
|
6856
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6857
|
-
phase: "start" | "update" | "complete" | "error";
|
|
6858
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6859
|
-
ephemeral?: boolean | undefined;
|
|
6860
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6861
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6862
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6863
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
6864
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6857
|
+
phase: "error" | "start" | "update" | "complete";
|
|
6865
6858
|
payload?: {
|
|
6866
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6867
6859
|
tool_calls?: SerializableJsonValue[] | undefined;
|
|
6868
6860
|
provider_continuations?: {
|
|
6869
6861
|
kind: string;
|
|
@@ -6923,47 +6915,52 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
|
|
|
6923
6915
|
payload: SerializableJsonValue;
|
|
6924
6916
|
}[] | undefined;
|
|
6925
6917
|
})[] | undefined;
|
|
6918
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6926
6919
|
} | undefined;
|
|
6920
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6921
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6922
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6923
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6924
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6925
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6926
|
+
ephemeral?: boolean | undefined;
|
|
6927
6927
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
6928
6928
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
6929
6929
|
} | {
|
|
6930
|
-
type: "tool_process";
|
|
6931
6930
|
id: string;
|
|
6932
|
-
conversation_id: string;
|
|
6933
|
-
timestamp: number;
|
|
6934
6931
|
status: "error" | "loading" | "success";
|
|
6932
|
+
type: "tool_process";
|
|
6933
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6934
|
+
tool_name: string;
|
|
6935
|
+
timestamp: number;
|
|
6935
6936
|
version: 1;
|
|
6937
|
+
conversation_id: string;
|
|
6936
6938
|
turn_id: string;
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6939
|
+
phase: "error" | "start" | "update" | "complete";
|
|
6940
|
+
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
6941
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
6940
6942
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6941
|
-
ephemeral?: boolean | undefined;
|
|
6942
6943
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6943
6944
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6944
6945
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6945
|
-
visibility?: "
|
|
6946
|
-
|
|
6947
|
-
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
6946
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6947
|
+
ephemeral?: boolean | undefined;
|
|
6948
6948
|
parent_tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
6949
6949
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
6950
6950
|
} | {
|
|
6951
|
-
type: "tool_output";
|
|
6952
6951
|
id: string;
|
|
6953
|
-
conversation_id: string;
|
|
6954
|
-
timestamp: number;
|
|
6955
6952
|
status: "error" | "success";
|
|
6953
|
+
type: "tool_output";
|
|
6954
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6955
|
+
tool_name: string;
|
|
6956
|
+
timestamp: number;
|
|
6956
6957
|
version: 1;
|
|
6958
|
+
conversation_id: string;
|
|
6957
6959
|
turn_id: string;
|
|
6958
|
-
tool_name: string;
|
|
6959
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6960
6960
|
observation: string;
|
|
6961
|
+
data?: SerializableJsonValue | undefined;
|
|
6962
|
+
error?: string | undefined;
|
|
6961
6963
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
6962
|
-
ephemeral?: boolean | undefined;
|
|
6963
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6964
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6965
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6966
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
6967
6964
|
attachments?: {
|
|
6968
6965
|
id: string;
|
|
6969
6966
|
kind: "image";
|
|
@@ -6976,29 +6973,37 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
|
|
|
6976
6973
|
fileName?: string | undefined;
|
|
6977
6974
|
label?: string | undefined;
|
|
6978
6975
|
}[] | undefined;
|
|
6979
|
-
|
|
6980
|
-
|
|
6976
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6977
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
6978
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
6979
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
6980
|
+
ephemeral?: boolean | undefined;
|
|
6981
6981
|
error_code?: string | undefined;
|
|
6982
6982
|
duration_ms?: number | undefined;
|
|
6983
6983
|
} | {
|
|
6984
|
-
type: "subrun_trace";
|
|
6985
6984
|
id: string;
|
|
6986
|
-
|
|
6985
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
6986
|
+
type: "subrun_trace";
|
|
6987
6987
|
timestamp: number;
|
|
6988
6988
|
version: 1;
|
|
6989
|
+
conversation_id: string;
|
|
6989
6990
|
turn_id: string;
|
|
6990
6991
|
ephemeral: true;
|
|
6991
|
-
kind: "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary";
|
|
6992
6992
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6993
6993
|
subrun_id: string;
|
|
6994
6994
|
source_event_id: string;
|
|
6995
6995
|
status?: "error" | "loading" | "success" | undefined;
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
6996
|
+
tool_calls?: {
|
|
6997
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
6998
|
+
tool_name: string;
|
|
6999
|
+
args: Record<string, SerializableJsonValue>;
|
|
7000
|
+
}[] | undefined;
|
|
7001
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
7002
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
7003
|
+
tool_name?: string | undefined;
|
|
7004
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
7001
7005
|
content?: string | undefined;
|
|
7006
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7002
7007
|
attachments?: {
|
|
7003
7008
|
id: string;
|
|
7004
7009
|
kind: "image";
|
|
@@ -7011,78 +7016,73 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
|
|
|
7011
7016
|
fileName?: string | undefined;
|
|
7012
7017
|
label?: string | undefined;
|
|
7013
7018
|
}[] | undefined;
|
|
7019
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7020
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7021
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7022
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7014
7023
|
delta?: string | undefined;
|
|
7015
|
-
|
|
7016
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
7017
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
7018
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
7019
|
-
tool_calls?: {
|
|
7020
|
-
tool_name: string;
|
|
7021
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
7022
|
-
args: Record<string, SerializableJsonValue>;
|
|
7023
|
-
}[] | undefined;
|
|
7024
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
7024
7025
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
7025
7026
|
duration_ms?: number | undefined;
|
|
7026
7027
|
subrun_parent_id?: string | undefined;
|
|
7027
7028
|
answer_id?: string | undefined;
|
|
7028
7029
|
seq?: number | undefined;
|
|
7029
7030
|
is_last?: boolean | undefined;
|
|
7030
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
7031
7031
|
output?: SerializableJsonValue | undefined;
|
|
7032
7032
|
original_message_count?: number | undefined;
|
|
7033
7033
|
compression_ratio?: number | undefined;
|
|
7034
7034
|
included_old_summary?: boolean | undefined;
|
|
7035
7035
|
replaced_message_ids?: string[] | undefined;
|
|
7036
7036
|
} | {
|
|
7037
|
-
type: "requires_user_interaction";
|
|
7038
7037
|
id: string;
|
|
7039
|
-
|
|
7038
|
+
type: "requires_user_interaction";
|
|
7039
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
7040
7040
|
timestamp: number;
|
|
7041
7041
|
version: 1;
|
|
7042
|
-
turn_id: string;
|
|
7043
7042
|
run_id: string & z.BRAND<"RunId">;
|
|
7044
|
-
|
|
7043
|
+
conversation_id: string;
|
|
7044
|
+
turn_id: string;
|
|
7045
7045
|
interaction_id: string;
|
|
7046
7046
|
checkpoint_revision: number;
|
|
7047
7047
|
resume_token: string;
|
|
7048
7048
|
interaction_status: "pending";
|
|
7049
7049
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7050
|
-
ephemeral?: boolean | undefined;
|
|
7051
7050
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7052
7051
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7053
|
-
visibility?: "
|
|
7052
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7053
|
+
ephemeral?: boolean | undefined;
|
|
7054
7054
|
form?: SerializableJsonValue | undefined;
|
|
7055
7055
|
interaction_type?: string | undefined;
|
|
7056
7056
|
prompt?: string | undefined;
|
|
7057
7057
|
} | {
|
|
7058
|
-
type: "audit_envelope";
|
|
7059
7058
|
id: string;
|
|
7060
|
-
|
|
7059
|
+
type: "audit_envelope";
|
|
7061
7060
|
timestamp: number;
|
|
7062
7061
|
version: 1;
|
|
7062
|
+
conversation_id: string;
|
|
7063
7063
|
turn_id: string;
|
|
7064
7064
|
envelope: {
|
|
7065
|
-
envelopeId: string;
|
|
7066
7065
|
runId: string & z.BRAND<"RunId">;
|
|
7066
|
+
envelopeId: string;
|
|
7067
7067
|
ts: number;
|
|
7068
7068
|
actor: {
|
|
7069
|
-
kind: "
|
|
7069
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
7070
7070
|
id?: string | undefined;
|
|
7071
7071
|
name?: string | undefined;
|
|
7072
7072
|
};
|
|
7073
7073
|
action: string;
|
|
7074
7074
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
7075
7075
|
decision?: {
|
|
7076
|
-
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "
|
|
7076
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
|
|
7077
7077
|
metadata?: Record<string, unknown> | undefined;
|
|
7078
7078
|
reason?: string | undefined;
|
|
7079
7079
|
policy?: string | undefined;
|
|
7080
7080
|
} | undefined;
|
|
7081
7081
|
evidence?: {
|
|
7082
7082
|
kind: string;
|
|
7083
|
+
summary?: string | undefined;
|
|
7083
7084
|
metadata?: Record<string, unknown> | undefined;
|
|
7084
7085
|
ref?: string | undefined;
|
|
7085
|
-
summary?: string | undefined;
|
|
7086
7086
|
}[] | undefined;
|
|
7087
7087
|
costDelta?: {
|
|
7088
7088
|
tokensInput?: number | undefined;
|
|
@@ -7092,41 +7092,35 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
|
|
|
7092
7092
|
} | undefined;
|
|
7093
7093
|
scope?: {
|
|
7094
7094
|
metadata?: Record<string, unknown> | undefined;
|
|
7095
|
+
toolName?: string | undefined;
|
|
7096
|
+
conversationId?: string | undefined;
|
|
7095
7097
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
7096
7098
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
7097
|
-
conversationId?: string | undefined;
|
|
7098
7099
|
turnId?: string | undefined;
|
|
7099
7100
|
traceId?: string | undefined;
|
|
7100
7101
|
agentSpecId?: string | undefined;
|
|
7101
7102
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
7102
|
-
toolName?: string | undefined;
|
|
7103
7103
|
modelId?: string | undefined;
|
|
7104
7104
|
nodeId?: string | undefined;
|
|
7105
7105
|
} | undefined;
|
|
7106
7106
|
};
|
|
7107
7107
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7108
|
-
ephemeral?: boolean | undefined;
|
|
7109
7108
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7110
7109
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7111
7110
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7112
|
-
visibility?: "
|
|
7111
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7112
|
+
ephemeral?: boolean | undefined;
|
|
7113
7113
|
} | {
|
|
7114
|
-
type: "final_answer";
|
|
7115
7114
|
id: string;
|
|
7116
|
-
|
|
7115
|
+
type: "final_answer";
|
|
7116
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
7117
|
+
content: string;
|
|
7117
7118
|
timestamp: number;
|
|
7118
7119
|
version: 1;
|
|
7120
|
+
conversation_id: string;
|
|
7119
7121
|
turn_id: string;
|
|
7120
|
-
content: string;
|
|
7121
7122
|
is_complete: boolean;
|
|
7122
7123
|
answer_id: string;
|
|
7123
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
7124
|
-
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7125
|
-
ephemeral?: boolean | undefined;
|
|
7126
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7127
|
-
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7128
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7129
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
7130
7124
|
provider_continuations?: {
|
|
7131
7125
|
kind: string;
|
|
7132
7126
|
schema_version: 2;
|
|
@@ -7185,98 +7179,104 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
|
|
|
7185
7179
|
payload: SerializableJsonValue;
|
|
7186
7180
|
}[] | undefined;
|
|
7187
7181
|
})[] | undefined;
|
|
7182
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7183
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7184
|
+
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7185
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7186
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7187
|
+
ephemeral?: boolean | undefined;
|
|
7188
7188
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
7189
7189
|
} | {
|
|
7190
|
-
type: "final_answer_chunk";
|
|
7191
7190
|
id: string;
|
|
7192
|
-
|
|
7191
|
+
type: "final_answer_chunk";
|
|
7192
|
+
content: string;
|
|
7193
7193
|
timestamp: number;
|
|
7194
7194
|
version: 1;
|
|
7195
|
+
conversation_id: string;
|
|
7195
7196
|
turn_id: string;
|
|
7196
|
-
content: string;
|
|
7197
7197
|
answer_id: string;
|
|
7198
7198
|
seq: number;
|
|
7199
7199
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7200
|
-
ephemeral?: boolean | undefined;
|
|
7201
7200
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7202
7201
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7203
7202
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7204
|
-
visibility?: "
|
|
7203
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7204
|
+
ephemeral?: boolean | undefined;
|
|
7205
7205
|
is_last?: boolean | undefined;
|
|
7206
7206
|
} | {
|
|
7207
|
-
type: "final_answer_reset";
|
|
7208
7207
|
id: string;
|
|
7209
|
-
|
|
7208
|
+
type: "final_answer_reset";
|
|
7210
7209
|
timestamp: number;
|
|
7211
7210
|
version: 1;
|
|
7211
|
+
conversation_id: string;
|
|
7212
7212
|
turn_id: string;
|
|
7213
7213
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7214
|
-
ephemeral?: boolean | undefined;
|
|
7215
7214
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7216
7215
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7217
7216
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7218
|
-
visibility?: "
|
|
7217
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7218
|
+
ephemeral?: boolean | undefined;
|
|
7219
7219
|
answer_id?: string | undefined;
|
|
7220
7220
|
thought_message_ids?: string[] | undefined;
|
|
7221
7221
|
} | {
|
|
7222
|
-
type: "history_summary";
|
|
7223
7222
|
id: string;
|
|
7224
|
-
|
|
7223
|
+
type: "history_summary";
|
|
7224
|
+
content: string;
|
|
7225
7225
|
timestamp: number;
|
|
7226
7226
|
version: 1;
|
|
7227
|
+
conversation_id: string;
|
|
7227
7228
|
turn_id: string;
|
|
7228
|
-
content: string;
|
|
7229
7229
|
original_message_count: number;
|
|
7230
7230
|
replaced_message_ids: string[];
|
|
7231
7231
|
summary_seq: number;
|
|
7232
7232
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7233
|
-
ephemeral?: boolean | undefined;
|
|
7234
7233
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7235
7234
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7236
7235
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7237
|
-
visibility?: "
|
|
7236
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7237
|
+
ephemeral?: boolean | undefined;
|
|
7238
7238
|
compression_ratio?: number | undefined;
|
|
7239
7239
|
included_old_summary?: boolean | undefined;
|
|
7240
7240
|
} | {
|
|
7241
|
-
type: "error";
|
|
7242
7241
|
id: string;
|
|
7243
|
-
|
|
7242
|
+
type: "error";
|
|
7243
|
+
error: string;
|
|
7244
7244
|
timestamp: number;
|
|
7245
7245
|
version: 1;
|
|
7246
|
+
conversation_id: string;
|
|
7246
7247
|
turn_id: string;
|
|
7247
|
-
error: string;
|
|
7248
7248
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7249
|
-
ephemeral?: boolean | undefined;
|
|
7250
7249
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7251
7250
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7252
7251
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7253
|
-
visibility?: "
|
|
7252
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7253
|
+
ephemeral?: boolean | undefined;
|
|
7254
7254
|
error_code?: string | undefined;
|
|
7255
7255
|
details?: SerializableJsonValue | undefined;
|
|
7256
7256
|
retryable?: boolean | undefined;
|
|
7257
7257
|
} | {
|
|
7258
|
-
type: "control";
|
|
7259
7258
|
id: string;
|
|
7260
|
-
|
|
7259
|
+
type: "control";
|
|
7261
7260
|
timestamp: number;
|
|
7262
7261
|
version: 1;
|
|
7262
|
+
conversation_id: string;
|
|
7263
7263
|
turn_id: string;
|
|
7264
7264
|
op: "truncate_after" | "replace" | "redo" | "branch";
|
|
7265
7265
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7266
|
-
|
|
7266
|
+
reason?: string | undefined;
|
|
7267
7267
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7268
7268
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7269
7269
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7270
|
-
visibility?: "
|
|
7270
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7271
|
+
ephemeral?: boolean | undefined;
|
|
7271
7272
|
meta?: SerializableJsonValue | undefined;
|
|
7272
|
-
reason?: string | undefined;
|
|
7273
7273
|
target_id?: string | undefined;
|
|
7274
7274
|
} | {
|
|
7275
|
-
type: "context_usage_snapshot";
|
|
7276
7275
|
id: string;
|
|
7277
|
-
|
|
7276
|
+
type: "context_usage_snapshot";
|
|
7278
7277
|
timestamp: number;
|
|
7279
7278
|
version: 1;
|
|
7279
|
+
conversation_id: string;
|
|
7280
7280
|
turn_id: string;
|
|
7281
7281
|
ephemeral: true;
|
|
7282
7282
|
context_usage: {
|
|
@@ -7301,24 +7301,24 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
|
|
|
7301
7301
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7302
7302
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7303
7303
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7304
|
-
visibility?: "
|
|
7304
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7305
7305
|
user_message_id?: string | undefined;
|
|
7306
7306
|
} | {
|
|
7307
|
-
type: "run_execution_metrics";
|
|
7308
7307
|
id: string;
|
|
7309
|
-
|
|
7308
|
+
type: "run_execution_metrics";
|
|
7310
7309
|
timestamp: number;
|
|
7311
7310
|
version: 1;
|
|
7311
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
7312
|
+
conversation_id: string;
|
|
7312
7313
|
turn_id: string;
|
|
7313
7314
|
duration_ms: number;
|
|
7314
|
-
outcome: "cancelled" | "completed" | "awaiting_user" | "failed";
|
|
7315
7315
|
execution_id: string;
|
|
7316
7316
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
7317
|
-
ephemeral?: boolean | undefined;
|
|
7318
7317
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7319
7318
|
parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
7320
7319
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
7321
|
-
visibility?: "
|
|
7320
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
7321
|
+
ephemeral?: boolean | undefined;
|
|
7322
7322
|
user_message_id?: string | undefined;
|
|
7323
7323
|
context_usage?: {
|
|
7324
7324
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|