@linnlabs/linnkit 0.43.0 → 0.45.0
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 +61 -0
- package/dist/cli.cjs +152 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +152 -6
- package/dist/cli.js.map +1 -1
- package/dist/context-manager/profiles/agent/context/config.d.cts +1 -1
- package/dist/context-manager/profiles/agent/context/config.d.ts +1 -1
- package/dist/context-manager.cjs +37 -4
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +37 -4
- package/dist/context-manager.js.map +1 -1
- package/dist/contracts/agentSpec.d.cts +5 -5
- package/dist/contracts/agentSpec.d.ts +5 -5
- package/dist/contracts/audit.d.cts +10 -10
- package/dist/contracts/audit.d.ts +10 -10
- package/dist/contracts/contextPolicy.d.cts +14 -14
- package/dist/contracts/contextPolicy.d.ts +14 -14
- package/dist/contracts/events.d.cts +121 -117
- package/dist/contracts/events.d.ts +121 -117
- package/dist/contracts/execution.d.cts +2 -2
- package/dist/contracts/execution.d.ts +2 -2
- package/dist/contracts/llm-retry.d.cts +2 -2
- package/dist/contracts/llm-retry.d.ts +2 -2
- package/dist/contracts/messages.d.cts +256 -32
- package/dist/contracts/messages.d.ts +256 -32
- package/dist/contracts/sse.d.cts +161 -97
- package/dist/contracts/sse.d.ts +161 -97
- package/dist/contracts/sub-run-trace-payload.d.cts +8 -8
- package/dist/contracts/sub-run-trace-payload.d.ts +8 -8
- package/dist/contracts/token-accounting.d.cts +12 -12
- package/dist/contracts/token-accounting.d.ts +12 -12
- package/dist/contracts.cjs +19 -2
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +1 -1
- package/dist/contracts.d.ts +1 -1
- package/dist/contracts.js +19 -3
- package/dist/contracts.js.map +1 -1
- package/dist/index.cjs +154 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +154 -6
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +152 -6
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +152 -6
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/events/agentEvents.d.cts +2 -2
- package/dist/runtime-kernel/events/agentEvents.d.ts +2 -2
- package/dist/runtime-kernel/events.cjs +29 -2
- package/dist/runtime-kernel/events.cjs.map +1 -1
- package/dist/runtime-kernel/events.js +29 -2
- package/dist/runtime-kernel/events.js.map +1 -1
- package/dist/runtime-kernel/graph-engine/definitions/pendingUserInput.d.cts +27 -0
- package/dist/runtime-kernel/graph-engine/definitions/pendingUserInput.d.ts +27 -0
- package/dist/runtime-kernel/graph-engine/engine.d.cts +1 -1
- package/dist/runtime-kernel/graph-engine/engine.d.ts +1 -1
- package/dist/runtime-kernel/graph-engine/index.d.cts +1 -0
- package/dist/runtime-kernel/graph-engine/index.d.ts +1 -0
- package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.cts +3 -0
- package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.ts +3 -0
- package/dist/runtime-kernel/graph-engine/types.d.cts +3 -0
- package/dist/runtime-kernel/graph-engine/types.d.ts +3 -0
- package/dist/runtime-kernel.cjs +152 -6
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +1 -0
- package/dist/runtime-kernel.d.ts +1 -0
- package/dist/runtime-kernel.js +152 -6
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit/agent-harness/scriptedInferenceHarness.d.cts +24 -6
- package/dist/testkit/agent-harness/scriptedInferenceHarness.d.ts +24 -6
- package/dist/testkit/scenario/graphScenario.d.cts +89 -0
- package/dist/testkit/scenario/graphScenario.d.ts +89 -0
- package/dist/testkit/scenario/pendingUserInputQueue.d.cts +26 -0
- package/dist/testkit/scenario/pendingUserInputQueue.d.ts +26 -0
- package/dist/testkit/scenario/runtimeEventRecorder.d.cts +36 -0
- package/dist/testkit/scenario/runtimeEventRecorder.d.ts +36 -0
- package/dist/testkit/scenario/scriptedToolRuntime.d.cts +51 -0
- package/dist/testkit/scenario/scriptedToolRuntime.d.ts +51 -0
- package/dist/testkit/scenario/steeringInvariants.d.cts +33 -0
- package/dist/testkit/scenario/steeringInvariants.d.ts +33 -0
- package/dist/testkit/scenario/timeline.d.cts +27 -0
- package/dist/testkit/scenario/timeline.d.ts +27 -0
- package/dist/testkit.cjs +722 -19
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.d.cts +7 -1
- package/dist/testkit.d.ts +7 -1
- package/dist/testkit.js +714 -20
- package/dist/testkit.js.map +1 -1
- package/docs/integration/README.md +1 -0
- package/docs/integration/mid-run-user-input.md +73 -0
- package/docs/integration/realtime.md +4 -0
- package/docs/integration/run-supervisor.md +1 -0
- package/docs/integration/testing.md +40 -4
- package/package.json +2 -2
|
@@ -8,25 +8,25 @@ declare const RuntimeRunLane: z.ZodEnum<{
|
|
|
8
8
|
}>;
|
|
9
9
|
type RuntimeRunLane = z.infer<typeof RuntimeRunLane>;
|
|
10
10
|
declare const RuntimeEventVisibility: z.ZodEnum<{
|
|
11
|
-
none: "none";
|
|
12
11
|
conversation: "conversation";
|
|
13
12
|
"parent-trace": "parent-trace";
|
|
13
|
+
none: "none";
|
|
14
14
|
}>;
|
|
15
15
|
type RuntimeEventVisibility = z.infer<typeof RuntimeEventVisibility>;
|
|
16
16
|
declare const RuntimeRunStatus: z.ZodEnum<{
|
|
17
|
-
completed: "completed";
|
|
18
17
|
failed: "failed";
|
|
19
18
|
cancelled: "cancelled";
|
|
20
|
-
paused: "paused";
|
|
21
19
|
pending: "pending";
|
|
22
|
-
|
|
20
|
+
paused: "paused";
|
|
21
|
+
completed: "completed";
|
|
23
22
|
awaiting_user: "awaiting_user";
|
|
23
|
+
running: "running";
|
|
24
24
|
}>;
|
|
25
25
|
type RuntimeRunStatus = z.infer<typeof RuntimeRunStatus>;
|
|
26
26
|
declare const RunExecutionOutcome: z.ZodEnum<{
|
|
27
|
-
completed: "completed";
|
|
28
27
|
failed: "failed";
|
|
29
28
|
cancelled: "cancelled";
|
|
29
|
+
completed: "completed";
|
|
30
30
|
awaiting_user: "awaiting_user";
|
|
31
31
|
}>;
|
|
32
32
|
type RunExecutionOutcome = z.infer<typeof RunExecutionOutcome>;
|
|
@@ -44,9 +44,9 @@ declare const RuntimeEventRoutingIdentity: z.ZodObject<{
|
|
|
44
44
|
child: "child";
|
|
45
45
|
}>;
|
|
46
46
|
visibility: z.ZodEnum<{
|
|
47
|
-
none: "none";
|
|
48
47
|
conversation: "conversation";
|
|
49
48
|
"parent-trace": "parent-trace";
|
|
49
|
+
none: "none";
|
|
50
50
|
}>;
|
|
51
51
|
}, z.core.$strict>;
|
|
52
52
|
type RuntimeEventRoutingIdentity = z.infer<typeof RuntimeEventRoutingIdentity>;
|
|
@@ -66,9 +66,9 @@ declare const BaseEvent: z.ZodObject<{
|
|
|
66
66
|
child: "child";
|
|
67
67
|
}>>;
|
|
68
68
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
none: "none";
|
|
70
69
|
conversation: "conversation";
|
|
71
70
|
"parent-trace": "parent-trace";
|
|
71
|
+
none: "none";
|
|
72
72
|
}>>;
|
|
73
73
|
}, z.core.$strip>;
|
|
74
74
|
|
|
@@ -151,17 +151,17 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
151
151
|
child: "child";
|
|
152
152
|
}>>;
|
|
153
153
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
154
|
-
none: "none";
|
|
155
154
|
conversation: "conversation";
|
|
156
155
|
"parent-trace": "parent-trace";
|
|
156
|
+
none: "none";
|
|
157
157
|
}>>;
|
|
158
158
|
type: z.ZodLiteral<"user_input">;
|
|
159
159
|
content: z.ZodString;
|
|
160
160
|
raw_content: z.ZodOptional<z.ZodString>;
|
|
161
161
|
source: z.ZodDefault<z.ZodEnum<{
|
|
162
|
-
system: "system";
|
|
163
162
|
user: "user";
|
|
164
163
|
editor: "editor";
|
|
164
|
+
system: "system";
|
|
165
165
|
}>>;
|
|
166
166
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
167
167
|
id: z.ZodString;
|
|
@@ -179,6 +179,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
179
179
|
fileName: z.ZodOptional<z.ZodString>;
|
|
180
180
|
label: z.ZodOptional<z.ZodString>;
|
|
181
181
|
}, z.core.$strict>>>;
|
|
182
|
+
delivery: z.ZodOptional<z.ZodLiteral<"mid_run">>;
|
|
182
183
|
}, z.core.$strip>, z.ZodObject<{
|
|
183
184
|
id: z.ZodString;
|
|
184
185
|
conversation_id: z.ZodString;
|
|
@@ -195,9 +196,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
195
196
|
child: "child";
|
|
196
197
|
}>>;
|
|
197
198
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
198
|
-
none: "none";
|
|
199
199
|
conversation: "conversation";
|
|
200
200
|
"parent-trace": "parent-trace";
|
|
201
|
+
none: "none";
|
|
201
202
|
}>>;
|
|
202
203
|
type: z.ZodLiteral<"thought">;
|
|
203
204
|
content: z.ZodString;
|
|
@@ -220,9 +221,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
220
221
|
child: "child";
|
|
221
222
|
}>>;
|
|
222
223
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
223
|
-
none: "none";
|
|
224
224
|
conversation: "conversation";
|
|
225
225
|
"parent-trace": "parent-trace";
|
|
226
|
+
none: "none";
|
|
226
227
|
}>>;
|
|
227
228
|
type: z.ZodLiteral<"tool_call_decision">;
|
|
228
229
|
tool_name: z.ZodString;
|
|
@@ -319,9 +320,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
319
320
|
child: "child";
|
|
320
321
|
}>>;
|
|
321
322
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
322
|
-
none: "none";
|
|
323
323
|
conversation: "conversation";
|
|
324
324
|
"parent-trace": "parent-trace";
|
|
325
|
+
none: "none";
|
|
325
326
|
}>>;
|
|
326
327
|
type: z.ZodLiteral<"tool_process">;
|
|
327
328
|
tool_name: z.ZodString;
|
|
@@ -357,9 +358,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
357
358
|
child: "child";
|
|
358
359
|
}>>;
|
|
359
360
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
360
|
-
none: "none";
|
|
361
361
|
conversation: "conversation";
|
|
362
362
|
"parent-trace": "parent-trace";
|
|
363
|
+
none: "none";
|
|
363
364
|
}>>;
|
|
364
365
|
type: z.ZodLiteral<"tool_output">;
|
|
365
366
|
tool_name: z.ZodString;
|
|
@@ -404,9 +405,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
404
405
|
child: "child";
|
|
405
406
|
}>>;
|
|
406
407
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
407
|
-
none: "none";
|
|
408
408
|
conversation: "conversation";
|
|
409
409
|
"parent-trace": "parent-trace";
|
|
410
|
+
none: "none";
|
|
410
411
|
}>>;
|
|
411
412
|
parent_tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
412
413
|
subrun_id: z.ZodString;
|
|
@@ -414,25 +415,25 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
414
415
|
source_event_id: z.ZodString;
|
|
415
416
|
kind: z.ZodEnum<{
|
|
416
417
|
error: "error";
|
|
417
|
-
history_summary: "history_summary";
|
|
418
|
-
final_answer: "final_answer";
|
|
419
|
-
tool_output: "tool_output";
|
|
420
418
|
tool_call_decision: "tool_call_decision";
|
|
421
419
|
tool_process: "tool_process";
|
|
420
|
+
tool_output: "tool_output";
|
|
422
421
|
thought_delta: "thought_delta";
|
|
423
422
|
thought_complete: "thought_complete";
|
|
424
423
|
final_answer_chunk: "final_answer_chunk";
|
|
424
|
+
final_answer: "final_answer";
|
|
425
|
+
history_summary: "history_summary";
|
|
425
426
|
llm_retry: "llm_retry";
|
|
426
427
|
}>;
|
|
427
428
|
retry: z.ZodOptional<z.ZodObject<{
|
|
428
429
|
retry_id: z.ZodString;
|
|
429
430
|
status: z.ZodEnum<{
|
|
430
|
-
failed: "failed";
|
|
431
|
-
cancelled: "cancelled";
|
|
432
431
|
waiting: "waiting";
|
|
433
432
|
retrying: "retrying";
|
|
434
433
|
succeeded: "succeeded";
|
|
435
434
|
exhausted: "exhausted";
|
|
435
|
+
failed: "failed";
|
|
436
|
+
cancelled: "cancelled";
|
|
436
437
|
}>;
|
|
437
438
|
category: z.ZodEnum<{
|
|
438
439
|
output: "output";
|
|
@@ -525,9 +526,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
525
526
|
child: "child";
|
|
526
527
|
}>>;
|
|
527
528
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
528
|
-
none: "none";
|
|
529
529
|
conversation: "conversation";
|
|
530
530
|
"parent-trace": "parent-trace";
|
|
531
|
+
none: "none";
|
|
531
532
|
}>>;
|
|
532
533
|
type: z.ZodLiteral<"requires_user_interaction">;
|
|
533
534
|
form: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
|
|
@@ -555,9 +556,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
555
556
|
child: "child";
|
|
556
557
|
}>>;
|
|
557
558
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
558
|
-
none: "none";
|
|
559
559
|
conversation: "conversation";
|
|
560
560
|
"parent-trace": "parent-trace";
|
|
561
|
+
none: "none";
|
|
561
562
|
}>>;
|
|
562
563
|
type: z.ZodLiteral<"audit_envelope">;
|
|
563
564
|
envelope: z.ZodObject<{
|
|
@@ -567,12 +568,12 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
567
568
|
ts: z.ZodNumber;
|
|
568
569
|
actor: z.ZodObject<{
|
|
569
570
|
kind: z.ZodEnum<{
|
|
570
|
-
system: "system";
|
|
571
571
|
user: "user";
|
|
572
|
-
|
|
572
|
+
system: "system";
|
|
573
573
|
host: "host";
|
|
574
574
|
agent: "agent";
|
|
575
575
|
model: "model";
|
|
576
|
+
tool: "tool";
|
|
576
577
|
}>;
|
|
577
578
|
id: z.ZodOptional<z.ZodString>;
|
|
578
579
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -580,14 +581,14 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
580
581
|
action: z.ZodString;
|
|
581
582
|
decision: z.ZodOptional<z.ZodObject<{
|
|
582
583
|
outcome: z.ZodEnum<{
|
|
583
|
-
|
|
584
|
+
cancelled: "cancelled";
|
|
585
|
+
retry: "retry";
|
|
584
586
|
allowed: "allowed";
|
|
585
587
|
denied: "denied";
|
|
586
588
|
fallback: "fallback";
|
|
587
|
-
retry: "retry";
|
|
588
|
-
cancelled: "cancelled";
|
|
589
589
|
paused: "paused";
|
|
590
590
|
resumed: "resumed";
|
|
591
|
+
requested: "requested";
|
|
591
592
|
recorded: "recorded";
|
|
592
593
|
}>;
|
|
593
594
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -636,9 +637,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
636
637
|
child: "child";
|
|
637
638
|
}>>;
|
|
638
639
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
639
|
-
none: "none";
|
|
640
640
|
conversation: "conversation";
|
|
641
641
|
"parent-trace": "parent-trace";
|
|
642
|
+
none: "none";
|
|
642
643
|
}>>;
|
|
643
644
|
type: z.ZodLiteral<"final_answer">;
|
|
644
645
|
answer_id: z.ZodString;
|
|
@@ -724,9 +725,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
724
725
|
child: "child";
|
|
725
726
|
}>>;
|
|
726
727
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
727
|
-
none: "none";
|
|
728
728
|
conversation: "conversation";
|
|
729
729
|
"parent-trace": "parent-trace";
|
|
730
|
+
none: "none";
|
|
730
731
|
}>>;
|
|
731
732
|
type: z.ZodLiteral<"final_answer_chunk">;
|
|
732
733
|
answer_id: z.ZodString;
|
|
@@ -749,9 +750,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
749
750
|
child: "child";
|
|
750
751
|
}>>;
|
|
751
752
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
752
|
-
none: "none";
|
|
753
753
|
conversation: "conversation";
|
|
754
754
|
"parent-trace": "parent-trace";
|
|
755
|
+
none: "none";
|
|
755
756
|
}>>;
|
|
756
757
|
type: z.ZodLiteral<"final_answer_reset">;
|
|
757
758
|
answer_id: z.ZodOptional<z.ZodString>;
|
|
@@ -772,9 +773,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
772
773
|
child: "child";
|
|
773
774
|
}>>;
|
|
774
775
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
775
|
-
none: "none";
|
|
776
776
|
conversation: "conversation";
|
|
777
777
|
"parent-trace": "parent-trace";
|
|
778
|
+
none: "none";
|
|
778
779
|
}>>;
|
|
779
780
|
type: z.ZodLiteral<"history_summary">;
|
|
780
781
|
content: z.ZodString;
|
|
@@ -799,18 +800,18 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
799
800
|
child: "child";
|
|
800
801
|
}>>;
|
|
801
802
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
802
|
-
none: "none";
|
|
803
803
|
conversation: "conversation";
|
|
804
804
|
"parent-trace": "parent-trace";
|
|
805
|
+
none: "none";
|
|
805
806
|
}>>;
|
|
806
807
|
retry_id: z.ZodString;
|
|
807
808
|
status: z.ZodEnum<{
|
|
808
|
-
failed: "failed";
|
|
809
|
-
cancelled: "cancelled";
|
|
810
809
|
waiting: "waiting";
|
|
811
810
|
retrying: "retrying";
|
|
812
811
|
succeeded: "succeeded";
|
|
813
812
|
exhausted: "exhausted";
|
|
813
|
+
failed: "failed";
|
|
814
|
+
cancelled: "cancelled";
|
|
814
815
|
}>;
|
|
815
816
|
category: z.ZodEnum<{
|
|
816
817
|
output: "output";
|
|
@@ -843,9 +844,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
843
844
|
child: "child";
|
|
844
845
|
}>>;
|
|
845
846
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
846
|
-
none: "none";
|
|
847
847
|
conversation: "conversation";
|
|
848
848
|
"parent-trace": "parent-trace";
|
|
849
|
+
none: "none";
|
|
849
850
|
}>>;
|
|
850
851
|
error: z.ZodString;
|
|
851
852
|
error_code: z.ZodOptional<z.ZodString>;
|
|
@@ -869,9 +870,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
869
870
|
child: "child";
|
|
870
871
|
}>>;
|
|
871
872
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
872
|
-
none: "none";
|
|
873
873
|
conversation: "conversation";
|
|
874
874
|
"parent-trace": "parent-trace";
|
|
875
|
+
none: "none";
|
|
875
876
|
}>>;
|
|
876
877
|
type: z.ZodLiteral<"control">;
|
|
877
878
|
op: z.ZodEnum<{
|
|
@@ -898,9 +899,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
898
899
|
child: "child";
|
|
899
900
|
}>>;
|
|
900
901
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
901
|
-
none: "none";
|
|
902
902
|
conversation: "conversation";
|
|
903
903
|
"parent-trace": "parent-trace";
|
|
904
|
+
none: "none";
|
|
904
905
|
}>>;
|
|
905
906
|
type: z.ZodLiteral<"context_usage_snapshot">;
|
|
906
907
|
ephemeral: z.ZodLiteral<true>;
|
|
@@ -949,16 +950,16 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
949
950
|
child: "child";
|
|
950
951
|
}>>;
|
|
951
952
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
952
|
-
none: "none";
|
|
953
953
|
conversation: "conversation";
|
|
954
954
|
"parent-trace": "parent-trace";
|
|
955
|
+
none: "none";
|
|
955
956
|
}>>;
|
|
956
957
|
type: z.ZodLiteral<"run_execution_metrics">;
|
|
957
958
|
execution_id: z.ZodString;
|
|
958
959
|
outcome: z.ZodEnum<{
|
|
959
|
-
completed: "completed";
|
|
960
960
|
failed: "failed";
|
|
961
961
|
cancelled: "cancelled";
|
|
962
|
+
completed: "completed";
|
|
962
963
|
awaiting_user: "awaiting_user";
|
|
963
964
|
}>;
|
|
964
965
|
duration_ms: z.ZodNumber;
|
|
@@ -1008,17 +1009,17 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1008
1009
|
child: "child";
|
|
1009
1010
|
}>>;
|
|
1010
1011
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1011
|
-
none: "none";
|
|
1012
1012
|
conversation: "conversation";
|
|
1013
1013
|
"parent-trace": "parent-trace";
|
|
1014
|
+
none: "none";
|
|
1014
1015
|
}>>;
|
|
1015
1016
|
type: z.ZodLiteral<"user_input">;
|
|
1016
1017
|
content: z.ZodString;
|
|
1017
1018
|
raw_content: z.ZodOptional<z.ZodString>;
|
|
1018
1019
|
source: z.ZodDefault<z.ZodEnum<{
|
|
1019
|
-
system: "system";
|
|
1020
1020
|
user: "user";
|
|
1021
1021
|
editor: "editor";
|
|
1022
|
+
system: "system";
|
|
1022
1023
|
}>>;
|
|
1023
1024
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1024
1025
|
id: z.ZodString;
|
|
@@ -1036,6 +1037,7 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1036
1037
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1037
1038
|
label: z.ZodOptional<z.ZodString>;
|
|
1038
1039
|
}, z.core.$strict>>>;
|
|
1040
|
+
delivery: z.ZodOptional<z.ZodLiteral<"mid_run">>;
|
|
1039
1041
|
}, z.core.$strip>, z.ZodObject<{
|
|
1040
1042
|
id: z.ZodString;
|
|
1041
1043
|
conversation_id: z.ZodString;
|
|
@@ -1052,9 +1054,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1052
1054
|
child: "child";
|
|
1053
1055
|
}>>;
|
|
1054
1056
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1055
|
-
none: "none";
|
|
1056
1057
|
conversation: "conversation";
|
|
1057
1058
|
"parent-trace": "parent-trace";
|
|
1059
|
+
none: "none";
|
|
1058
1060
|
}>>;
|
|
1059
1061
|
type: z.ZodLiteral<"thought">;
|
|
1060
1062
|
content: z.ZodString;
|
|
@@ -1077,9 +1079,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1077
1079
|
child: "child";
|
|
1078
1080
|
}>>;
|
|
1079
1081
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1080
|
-
none: "none";
|
|
1081
1082
|
conversation: "conversation";
|
|
1082
1083
|
"parent-trace": "parent-trace";
|
|
1084
|
+
none: "none";
|
|
1083
1085
|
}>>;
|
|
1084
1086
|
type: z.ZodLiteral<"tool_call_decision">;
|
|
1085
1087
|
tool_name: z.ZodString;
|
|
@@ -1176,9 +1178,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1176
1178
|
child: "child";
|
|
1177
1179
|
}>>;
|
|
1178
1180
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1179
|
-
none: "none";
|
|
1180
1181
|
conversation: "conversation";
|
|
1181
1182
|
"parent-trace": "parent-trace";
|
|
1183
|
+
none: "none";
|
|
1182
1184
|
}>>;
|
|
1183
1185
|
type: z.ZodLiteral<"tool_process">;
|
|
1184
1186
|
tool_name: z.ZodString;
|
|
@@ -1214,9 +1216,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1214
1216
|
child: "child";
|
|
1215
1217
|
}>>;
|
|
1216
1218
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1217
|
-
none: "none";
|
|
1218
1219
|
conversation: "conversation";
|
|
1219
1220
|
"parent-trace": "parent-trace";
|
|
1221
|
+
none: "none";
|
|
1220
1222
|
}>>;
|
|
1221
1223
|
type: z.ZodLiteral<"tool_output">;
|
|
1222
1224
|
tool_name: z.ZodString;
|
|
@@ -1261,9 +1263,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1261
1263
|
child: "child";
|
|
1262
1264
|
}>>;
|
|
1263
1265
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1264
|
-
none: "none";
|
|
1265
1266
|
conversation: "conversation";
|
|
1266
1267
|
"parent-trace": "parent-trace";
|
|
1268
|
+
none: "none";
|
|
1267
1269
|
}>>;
|
|
1268
1270
|
parent_tool_call_id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
|
|
1269
1271
|
subrun_id: z.ZodString;
|
|
@@ -1271,25 +1273,25 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1271
1273
|
source_event_id: z.ZodString;
|
|
1272
1274
|
kind: z.ZodEnum<{
|
|
1273
1275
|
error: "error";
|
|
1274
|
-
history_summary: "history_summary";
|
|
1275
|
-
final_answer: "final_answer";
|
|
1276
|
-
tool_output: "tool_output";
|
|
1277
1276
|
tool_call_decision: "tool_call_decision";
|
|
1278
1277
|
tool_process: "tool_process";
|
|
1278
|
+
tool_output: "tool_output";
|
|
1279
1279
|
thought_delta: "thought_delta";
|
|
1280
1280
|
thought_complete: "thought_complete";
|
|
1281
1281
|
final_answer_chunk: "final_answer_chunk";
|
|
1282
|
+
final_answer: "final_answer";
|
|
1283
|
+
history_summary: "history_summary";
|
|
1282
1284
|
llm_retry: "llm_retry";
|
|
1283
1285
|
}>;
|
|
1284
1286
|
retry: z.ZodOptional<z.ZodObject<{
|
|
1285
1287
|
retry_id: z.ZodString;
|
|
1286
1288
|
status: z.ZodEnum<{
|
|
1287
|
-
failed: "failed";
|
|
1288
|
-
cancelled: "cancelled";
|
|
1289
1289
|
waiting: "waiting";
|
|
1290
1290
|
retrying: "retrying";
|
|
1291
1291
|
succeeded: "succeeded";
|
|
1292
1292
|
exhausted: "exhausted";
|
|
1293
|
+
failed: "failed";
|
|
1294
|
+
cancelled: "cancelled";
|
|
1293
1295
|
}>;
|
|
1294
1296
|
category: z.ZodEnum<{
|
|
1295
1297
|
output: "output";
|
|
@@ -1382,9 +1384,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1382
1384
|
child: "child";
|
|
1383
1385
|
}>>;
|
|
1384
1386
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1385
|
-
none: "none";
|
|
1386
1387
|
conversation: "conversation";
|
|
1387
1388
|
"parent-trace": "parent-trace";
|
|
1389
|
+
none: "none";
|
|
1388
1390
|
}>>;
|
|
1389
1391
|
type: z.ZodLiteral<"requires_user_interaction">;
|
|
1390
1392
|
form: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
|
|
@@ -1412,9 +1414,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1412
1414
|
child: "child";
|
|
1413
1415
|
}>>;
|
|
1414
1416
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1415
|
-
none: "none";
|
|
1416
1417
|
conversation: "conversation";
|
|
1417
1418
|
"parent-trace": "parent-trace";
|
|
1419
|
+
none: "none";
|
|
1418
1420
|
}>>;
|
|
1419
1421
|
type: z.ZodLiteral<"audit_envelope">;
|
|
1420
1422
|
envelope: z.ZodObject<{
|
|
@@ -1424,12 +1426,12 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1424
1426
|
ts: z.ZodNumber;
|
|
1425
1427
|
actor: z.ZodObject<{
|
|
1426
1428
|
kind: z.ZodEnum<{
|
|
1427
|
-
system: "system";
|
|
1428
1429
|
user: "user";
|
|
1429
|
-
|
|
1430
|
+
system: "system";
|
|
1430
1431
|
host: "host";
|
|
1431
1432
|
agent: "agent";
|
|
1432
1433
|
model: "model";
|
|
1434
|
+
tool: "tool";
|
|
1433
1435
|
}>;
|
|
1434
1436
|
id: z.ZodOptional<z.ZodString>;
|
|
1435
1437
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1437,14 +1439,14 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1437
1439
|
action: z.ZodString;
|
|
1438
1440
|
decision: z.ZodOptional<z.ZodObject<{
|
|
1439
1441
|
outcome: z.ZodEnum<{
|
|
1440
|
-
|
|
1442
|
+
cancelled: "cancelled";
|
|
1443
|
+
retry: "retry";
|
|
1441
1444
|
allowed: "allowed";
|
|
1442
1445
|
denied: "denied";
|
|
1443
1446
|
fallback: "fallback";
|
|
1444
|
-
retry: "retry";
|
|
1445
|
-
cancelled: "cancelled";
|
|
1446
1447
|
paused: "paused";
|
|
1447
1448
|
resumed: "resumed";
|
|
1449
|
+
requested: "requested";
|
|
1448
1450
|
recorded: "recorded";
|
|
1449
1451
|
}>;
|
|
1450
1452
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -1493,9 +1495,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1493
1495
|
child: "child";
|
|
1494
1496
|
}>>;
|
|
1495
1497
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1496
|
-
none: "none";
|
|
1497
1498
|
conversation: "conversation";
|
|
1498
1499
|
"parent-trace": "parent-trace";
|
|
1500
|
+
none: "none";
|
|
1499
1501
|
}>>;
|
|
1500
1502
|
type: z.ZodLiteral<"final_answer">;
|
|
1501
1503
|
answer_id: z.ZodString;
|
|
@@ -1581,9 +1583,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1581
1583
|
child: "child";
|
|
1582
1584
|
}>>;
|
|
1583
1585
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1584
|
-
none: "none";
|
|
1585
1586
|
conversation: "conversation";
|
|
1586
1587
|
"parent-trace": "parent-trace";
|
|
1588
|
+
none: "none";
|
|
1587
1589
|
}>>;
|
|
1588
1590
|
type: z.ZodLiteral<"final_answer_chunk">;
|
|
1589
1591
|
answer_id: z.ZodString;
|
|
@@ -1606,9 +1608,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1606
1608
|
child: "child";
|
|
1607
1609
|
}>>;
|
|
1608
1610
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1609
|
-
none: "none";
|
|
1610
1611
|
conversation: "conversation";
|
|
1611
1612
|
"parent-trace": "parent-trace";
|
|
1613
|
+
none: "none";
|
|
1612
1614
|
}>>;
|
|
1613
1615
|
type: z.ZodLiteral<"final_answer_reset">;
|
|
1614
1616
|
answer_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1629,9 +1631,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1629
1631
|
child: "child";
|
|
1630
1632
|
}>>;
|
|
1631
1633
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1632
|
-
none: "none";
|
|
1633
1634
|
conversation: "conversation";
|
|
1634
1635
|
"parent-trace": "parent-trace";
|
|
1636
|
+
none: "none";
|
|
1635
1637
|
}>>;
|
|
1636
1638
|
type: z.ZodLiteral<"history_summary">;
|
|
1637
1639
|
content: z.ZodString;
|
|
@@ -1656,18 +1658,18 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1656
1658
|
child: "child";
|
|
1657
1659
|
}>>;
|
|
1658
1660
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1659
|
-
none: "none";
|
|
1660
1661
|
conversation: "conversation";
|
|
1661
1662
|
"parent-trace": "parent-trace";
|
|
1663
|
+
none: "none";
|
|
1662
1664
|
}>>;
|
|
1663
1665
|
retry_id: z.ZodString;
|
|
1664
1666
|
status: z.ZodEnum<{
|
|
1665
|
-
failed: "failed";
|
|
1666
|
-
cancelled: "cancelled";
|
|
1667
1667
|
waiting: "waiting";
|
|
1668
1668
|
retrying: "retrying";
|
|
1669
1669
|
succeeded: "succeeded";
|
|
1670
1670
|
exhausted: "exhausted";
|
|
1671
|
+
failed: "failed";
|
|
1672
|
+
cancelled: "cancelled";
|
|
1671
1673
|
}>;
|
|
1672
1674
|
category: z.ZodEnum<{
|
|
1673
1675
|
output: "output";
|
|
@@ -1700,9 +1702,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1700
1702
|
child: "child";
|
|
1701
1703
|
}>>;
|
|
1702
1704
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1703
|
-
none: "none";
|
|
1704
1705
|
conversation: "conversation";
|
|
1705
1706
|
"parent-trace": "parent-trace";
|
|
1707
|
+
none: "none";
|
|
1706
1708
|
}>>;
|
|
1707
1709
|
error: z.ZodString;
|
|
1708
1710
|
error_code: z.ZodOptional<z.ZodString>;
|
|
@@ -1726,9 +1728,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1726
1728
|
child: "child";
|
|
1727
1729
|
}>>;
|
|
1728
1730
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1729
|
-
none: "none";
|
|
1730
1731
|
conversation: "conversation";
|
|
1731
1732
|
"parent-trace": "parent-trace";
|
|
1733
|
+
none: "none";
|
|
1732
1734
|
}>>;
|
|
1733
1735
|
type: z.ZodLiteral<"control">;
|
|
1734
1736
|
op: z.ZodEnum<{
|
|
@@ -1755,9 +1757,9 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1755
1757
|
child: "child";
|
|
1756
1758
|
}>>;
|
|
1757
1759
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1758
|
-
none: "none";
|
|
1759
1760
|
conversation: "conversation";
|
|
1760
1761
|
"parent-trace": "parent-trace";
|
|
1762
|
+
none: "none";
|
|
1761
1763
|
}>>;
|
|
1762
1764
|
type: z.ZodLiteral<"context_usage_snapshot">;
|
|
1763
1765
|
ephemeral: z.ZodLiteral<true>;
|
|
@@ -1806,16 +1808,16 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
|
|
|
1806
1808
|
child: "child";
|
|
1807
1809
|
}>>;
|
|
1808
1810
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1809
|
-
none: "none";
|
|
1810
1811
|
conversation: "conversation";
|
|
1811
1812
|
"parent-trace": "parent-trace";
|
|
1813
|
+
none: "none";
|
|
1812
1814
|
}>>;
|
|
1813
1815
|
type: z.ZodLiteral<"run_execution_metrics">;
|
|
1814
1816
|
execution_id: z.ZodString;
|
|
1815
1817
|
outcome: z.ZodEnum<{
|
|
1816
|
-
completed: "completed";
|
|
1817
1818
|
failed: "failed";
|
|
1818
1819
|
cancelled: "cancelled";
|
|
1820
|
+
completed: "completed";
|
|
1819
1821
|
awaiting_user: "awaiting_user";
|
|
1820
1822
|
}>;
|
|
1821
1823
|
duration_ms: z.ZodNumber;
|
|
@@ -1923,13 +1925,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1923
1925
|
turn_id: string;
|
|
1924
1926
|
type: "user_input";
|
|
1925
1927
|
content: string;
|
|
1926
|
-
source: "
|
|
1928
|
+
source: "user" | "editor" | "system";
|
|
1927
1929
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1928
1930
|
ephemeral?: boolean | undefined;
|
|
1929
1931
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1930
1932
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1931
1933
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1932
|
-
visibility?: "
|
|
1934
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1933
1935
|
raw_content?: string | undefined;
|
|
1934
1936
|
attachments?: {
|
|
1935
1937
|
id: string;
|
|
@@ -1943,6 +1945,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1943
1945
|
fileName?: string | undefined;
|
|
1944
1946
|
label?: string | undefined;
|
|
1945
1947
|
}[] | undefined;
|
|
1948
|
+
delivery?: "mid_run" | undefined;
|
|
1946
1949
|
} | {
|
|
1947
1950
|
id: string;
|
|
1948
1951
|
conversation_id: string;
|
|
@@ -1957,7 +1960,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1957
1960
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1958
1961
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1959
1962
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1960
|
-
visibility?: "
|
|
1963
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1961
1964
|
thought_message_id?: string | undefined;
|
|
1962
1965
|
delta?: string | undefined;
|
|
1963
1966
|
} | {
|
|
@@ -1976,7 +1979,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1976
1979
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1977
1980
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1978
1981
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1979
|
-
visibility?: "
|
|
1982
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1980
1983
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
1981
1984
|
payload?: {
|
|
1982
1985
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -2058,7 +2061,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2058
2061
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2059
2062
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2060
2063
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2061
|
-
visibility?: "
|
|
2064
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2062
2065
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2063
2066
|
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
2064
2067
|
parent_tool_call_id?: (string & z.core.$brand<"ToolCallId">) | undefined;
|
|
@@ -2079,7 +2082,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2079
2082
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2080
2083
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2081
2084
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2082
|
-
visibility?: "
|
|
2085
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2083
2086
|
data?: SerializableJsonValue | undefined;
|
|
2084
2087
|
error?: string | undefined;
|
|
2085
2088
|
error_code?: string | undefined;
|
|
@@ -2105,18 +2108,18 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2105
2108
|
parent_tool_call_id: string & z.core.$brand<"ToolCallId">;
|
|
2106
2109
|
subrun_id: string;
|
|
2107
2110
|
source_event_id: string;
|
|
2108
|
-
kind: "error" | "
|
|
2111
|
+
kind: "error" | "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
2109
2112
|
type: "subrun_trace";
|
|
2110
2113
|
ephemeral: true;
|
|
2111
2114
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2112
2115
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2113
2116
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2114
2117
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2115
|
-
visibility?: "
|
|
2118
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2116
2119
|
subrun_parent_id?: string | undefined;
|
|
2117
2120
|
retry?: {
|
|
2118
2121
|
retry_id: string;
|
|
2119
|
-
status: "
|
|
2122
|
+
status: "waiting" | "retrying" | "succeeded" | "exhausted" | "failed" | "cancelled";
|
|
2120
2123
|
category: "output" | "transport" | "rate_limit" | "other";
|
|
2121
2124
|
attempt: number;
|
|
2122
2125
|
max_retries: number;
|
|
@@ -2186,7 +2189,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2186
2189
|
ephemeral?: boolean | undefined;
|
|
2187
2190
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2188
2191
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2189
|
-
visibility?: "
|
|
2192
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2190
2193
|
form?: SerializableJsonValue | undefined;
|
|
2191
2194
|
interaction_type?: string | undefined;
|
|
2192
2195
|
prompt?: string | undefined;
|
|
@@ -2202,14 +2205,14 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2202
2205
|
runId: string & z.core.$brand<"RunId">;
|
|
2203
2206
|
ts: number;
|
|
2204
2207
|
actor: {
|
|
2205
|
-
kind: "
|
|
2208
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
2206
2209
|
id?: string | undefined;
|
|
2207
2210
|
name?: string | undefined;
|
|
2208
2211
|
};
|
|
2209
2212
|
action: string;
|
|
2210
2213
|
parentRunId?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2211
2214
|
decision?: {
|
|
2212
|
-
outcome: "
|
|
2215
|
+
outcome: "cancelled" | "retry" | "allowed" | "denied" | "fallback" | "paused" | "resumed" | "requested" | "recorded";
|
|
2213
2216
|
reason?: string | undefined;
|
|
2214
2217
|
policy?: string | undefined;
|
|
2215
2218
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -2245,7 +2248,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2245
2248
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2246
2249
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2247
2250
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2248
|
-
visibility?: "
|
|
2251
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2249
2252
|
} | {
|
|
2250
2253
|
id: string;
|
|
2251
2254
|
conversation_id: string;
|
|
@@ -2262,7 +2265,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2262
2265
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2263
2266
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2264
2267
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2265
|
-
visibility?: "
|
|
2268
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2266
2269
|
provider_continuations?: {
|
|
2267
2270
|
schema_version: 2;
|
|
2268
2271
|
producer: {
|
|
@@ -2337,7 +2340,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2337
2340
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2338
2341
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2339
2342
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2340
|
-
visibility?: "
|
|
2343
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2341
2344
|
is_last?: boolean | undefined;
|
|
2342
2345
|
} | {
|
|
2343
2346
|
id: string;
|
|
@@ -2351,7 +2354,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2351
2354
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2352
2355
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2353
2356
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2354
|
-
visibility?: "
|
|
2357
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2355
2358
|
answer_id?: string | undefined;
|
|
2356
2359
|
thought_message_ids?: string[] | undefined;
|
|
2357
2360
|
} | {
|
|
@@ -2370,7 +2373,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2370
2373
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2371
2374
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2372
2375
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2373
|
-
visibility?: "
|
|
2376
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2374
2377
|
compression_ratio?: number | undefined;
|
|
2375
2378
|
included_old_summary?: boolean | undefined;
|
|
2376
2379
|
} | {
|
|
@@ -2380,7 +2383,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2380
2383
|
version: 1;
|
|
2381
2384
|
turn_id: string;
|
|
2382
2385
|
retry_id: string;
|
|
2383
|
-
status: "
|
|
2386
|
+
status: "waiting" | "retrying" | "succeeded" | "exhausted" | "failed" | "cancelled";
|
|
2384
2387
|
category: "output" | "transport" | "rate_limit" | "other";
|
|
2385
2388
|
attempt: number;
|
|
2386
2389
|
max_retries: number;
|
|
@@ -2395,7 +2398,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2395
2398
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2396
2399
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2397
2400
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2398
|
-
visibility?: "
|
|
2401
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2399
2402
|
next_retry_at?: number | undefined;
|
|
2400
2403
|
} | {
|
|
2401
2404
|
id: string;
|
|
@@ -2410,7 +2413,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2410
2413
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2411
2414
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2412
2415
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2413
|
-
visibility?: "
|
|
2416
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2414
2417
|
error_code?: string | undefined;
|
|
2415
2418
|
retryable?: boolean | undefined;
|
|
2416
2419
|
retry_id?: string | undefined;
|
|
@@ -2428,7 +2431,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2428
2431
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2429
2432
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2430
2433
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2431
|
-
visibility?: "
|
|
2434
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2432
2435
|
target_id?: string | undefined;
|
|
2433
2436
|
reason?: string | undefined;
|
|
2434
2437
|
meta?: SerializableJsonValue | undefined;
|
|
@@ -2462,7 +2465,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2462
2465
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2463
2466
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2464
2467
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2465
|
-
visibility?: "
|
|
2468
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2466
2469
|
user_message_id?: string | undefined;
|
|
2467
2470
|
} | {
|
|
2468
2471
|
id: string;
|
|
@@ -2472,14 +2475,14 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2472
2475
|
turn_id: string;
|
|
2473
2476
|
type: "run_execution_metrics";
|
|
2474
2477
|
execution_id: string;
|
|
2475
|
-
outcome: "
|
|
2478
|
+
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
2476
2479
|
duration_ms: number;
|
|
2477
2480
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2478
2481
|
ephemeral?: boolean | undefined;
|
|
2479
2482
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2480
2483
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2481
2484
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2482
|
-
visibility?: "
|
|
2485
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2483
2486
|
user_message_id?: string | undefined;
|
|
2484
2487
|
context_usage?: {
|
|
2485
2488
|
basis: "last_completed_llm_prompt";
|
|
@@ -2508,13 +2511,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2508
2511
|
turn_id: string;
|
|
2509
2512
|
type: "user_input";
|
|
2510
2513
|
content: string;
|
|
2511
|
-
source: "
|
|
2514
|
+
source: "user" | "editor" | "system";
|
|
2512
2515
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2513
2516
|
ephemeral?: boolean | undefined;
|
|
2514
2517
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2515
2518
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2516
2519
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2517
|
-
visibility?: "
|
|
2520
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2518
2521
|
raw_content?: string | undefined;
|
|
2519
2522
|
attachments?: {
|
|
2520
2523
|
id: string;
|
|
@@ -2528,6 +2531,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2528
2531
|
fileName?: string | undefined;
|
|
2529
2532
|
label?: string | undefined;
|
|
2530
2533
|
}[] | undefined;
|
|
2534
|
+
delivery?: "mid_run" | undefined;
|
|
2531
2535
|
} | {
|
|
2532
2536
|
id: string;
|
|
2533
2537
|
conversation_id: string;
|
|
@@ -2542,7 +2546,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2542
2546
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2543
2547
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2544
2548
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2545
|
-
visibility?: "
|
|
2549
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2546
2550
|
thought_message_id?: string | undefined;
|
|
2547
2551
|
delta?: string | undefined;
|
|
2548
2552
|
} | {
|
|
@@ -2561,7 +2565,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2561
2565
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2562
2566
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2563
2567
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2564
|
-
visibility?: "
|
|
2568
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2565
2569
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2566
2570
|
payload?: {
|
|
2567
2571
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -2643,7 +2647,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2643
2647
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2644
2648
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2645
2649
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2646
|
-
visibility?: "
|
|
2650
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2647
2651
|
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2648
2652
|
payload?: Record<string, SerializableJsonValue> | undefined;
|
|
2649
2653
|
parent_tool_call_id?: (string & z.core.$brand<"ToolCallId">) | undefined;
|
|
@@ -2664,7 +2668,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2664
2668
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2665
2669
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2666
2670
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2667
|
-
visibility?: "
|
|
2671
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2668
2672
|
data?: SerializableJsonValue | undefined;
|
|
2669
2673
|
error?: string | undefined;
|
|
2670
2674
|
error_code?: string | undefined;
|
|
@@ -2690,18 +2694,18 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2690
2694
|
parent_tool_call_id: string & z.core.$brand<"ToolCallId">;
|
|
2691
2695
|
subrun_id: string;
|
|
2692
2696
|
source_event_id: string;
|
|
2693
|
-
kind: "error" | "
|
|
2697
|
+
kind: "error" | "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
2694
2698
|
type: "subrun_trace";
|
|
2695
2699
|
ephemeral: true;
|
|
2696
2700
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2697
2701
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2698
2702
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2699
2703
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2700
|
-
visibility?: "
|
|
2704
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2701
2705
|
subrun_parent_id?: string | undefined;
|
|
2702
2706
|
retry?: {
|
|
2703
2707
|
retry_id: string;
|
|
2704
|
-
status: "
|
|
2708
|
+
status: "waiting" | "retrying" | "succeeded" | "exhausted" | "failed" | "cancelled";
|
|
2705
2709
|
category: "output" | "transport" | "rate_limit" | "other";
|
|
2706
2710
|
attempt: number;
|
|
2707
2711
|
max_retries: number;
|
|
@@ -2771,7 +2775,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2771
2775
|
ephemeral?: boolean | undefined;
|
|
2772
2776
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2773
2777
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2774
|
-
visibility?: "
|
|
2778
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2775
2779
|
form?: SerializableJsonValue | undefined;
|
|
2776
2780
|
interaction_type?: string | undefined;
|
|
2777
2781
|
prompt?: string | undefined;
|
|
@@ -2787,14 +2791,14 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2787
2791
|
runId: string & z.core.$brand<"RunId">;
|
|
2788
2792
|
ts: number;
|
|
2789
2793
|
actor: {
|
|
2790
|
-
kind: "
|
|
2794
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
2791
2795
|
id?: string | undefined;
|
|
2792
2796
|
name?: string | undefined;
|
|
2793
2797
|
};
|
|
2794
2798
|
action: string;
|
|
2795
2799
|
parentRunId?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2796
2800
|
decision?: {
|
|
2797
|
-
outcome: "
|
|
2801
|
+
outcome: "cancelled" | "retry" | "allowed" | "denied" | "fallback" | "paused" | "resumed" | "requested" | "recorded";
|
|
2798
2802
|
reason?: string | undefined;
|
|
2799
2803
|
policy?: string | undefined;
|
|
2800
2804
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -2830,7 +2834,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2830
2834
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2831
2835
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2832
2836
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2833
|
-
visibility?: "
|
|
2837
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2834
2838
|
} | {
|
|
2835
2839
|
id: string;
|
|
2836
2840
|
conversation_id: string;
|
|
@@ -2847,7 +2851,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2847
2851
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2848
2852
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2849
2853
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2850
|
-
visibility?: "
|
|
2854
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2851
2855
|
provider_continuations?: {
|
|
2852
2856
|
schema_version: 2;
|
|
2853
2857
|
producer: {
|
|
@@ -2922,7 +2926,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2922
2926
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2923
2927
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2924
2928
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2925
|
-
visibility?: "
|
|
2929
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2926
2930
|
is_last?: boolean | undefined;
|
|
2927
2931
|
} | {
|
|
2928
2932
|
id: string;
|
|
@@ -2936,7 +2940,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2936
2940
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2937
2941
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2938
2942
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2939
|
-
visibility?: "
|
|
2943
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2940
2944
|
answer_id?: string | undefined;
|
|
2941
2945
|
thought_message_ids?: string[] | undefined;
|
|
2942
2946
|
} | {
|
|
@@ -2955,7 +2959,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2955
2959
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2956
2960
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2957
2961
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2958
|
-
visibility?: "
|
|
2962
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2959
2963
|
compression_ratio?: number | undefined;
|
|
2960
2964
|
included_old_summary?: boolean | undefined;
|
|
2961
2965
|
} | {
|
|
@@ -2965,7 +2969,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2965
2969
|
version: 1;
|
|
2966
2970
|
turn_id: string;
|
|
2967
2971
|
retry_id: string;
|
|
2968
|
-
status: "
|
|
2972
|
+
status: "waiting" | "retrying" | "succeeded" | "exhausted" | "failed" | "cancelled";
|
|
2969
2973
|
category: "output" | "transport" | "rate_limit" | "other";
|
|
2970
2974
|
attempt: number;
|
|
2971
2975
|
max_retries: number;
|
|
@@ -2980,7 +2984,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2980
2984
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2981
2985
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2982
2986
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2983
|
-
visibility?: "
|
|
2987
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2984
2988
|
next_retry_at?: number | undefined;
|
|
2985
2989
|
} | {
|
|
2986
2990
|
id: string;
|
|
@@ -2995,7 +2999,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
2995
2999
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2996
3000
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
2997
3001
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2998
|
-
visibility?: "
|
|
3002
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2999
3003
|
error_code?: string | undefined;
|
|
3000
3004
|
retryable?: boolean | undefined;
|
|
3001
3005
|
retry_id?: string | undefined;
|
|
@@ -3013,7 +3017,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
3013
3017
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
3014
3018
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
3015
3019
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3016
|
-
visibility?: "
|
|
3020
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3017
3021
|
target_id?: string | undefined;
|
|
3018
3022
|
reason?: string | undefined;
|
|
3019
3023
|
meta?: SerializableJsonValue | undefined;
|
|
@@ -3047,7 +3051,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
3047
3051
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
3048
3052
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
3049
3053
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3050
|
-
visibility?: "
|
|
3054
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3051
3055
|
user_message_id?: string | undefined;
|
|
3052
3056
|
} | {
|
|
3053
3057
|
id: string;
|
|
@@ -3057,14 +3061,14 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
|
|
|
3057
3061
|
turn_id: string;
|
|
3058
3062
|
type: "run_execution_metrics";
|
|
3059
3063
|
execution_id: string;
|
|
3060
|
-
outcome: "
|
|
3064
|
+
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
3061
3065
|
duration_ms: number;
|
|
3062
3066
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3063
3067
|
ephemeral?: boolean | undefined;
|
|
3064
3068
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
3065
3069
|
parent_run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
3066
3070
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3067
|
-
visibility?: "
|
|
3071
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3068
3072
|
user_message_id?: string | undefined;
|
|
3069
3073
|
context_usage?: {
|
|
3070
3074
|
basis: "last_completed_llm_prompt";
|