@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
package/dist/contracts/sse.d.cts
CHANGED
|
@@ -16,9 +16,9 @@ declare const BaseSSEEvent: z.ZodObject<{
|
|
|
16
16
|
child: "child";
|
|
17
17
|
}>>;
|
|
18
18
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
19
|
-
none: "none";
|
|
20
19
|
conversation: "conversation";
|
|
21
20
|
"parent-trace": "parent-trace";
|
|
21
|
+
none: "none";
|
|
22
22
|
}>>;
|
|
23
23
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -37,7 +37,11 @@ declare const SSEExecutionScope: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
type SSEExecutionScope = z.infer<typeof SSEExecutionScope>;
|
|
39
39
|
declare function parseSSEExecutionScope(event: Pick<BaseSSEEvent, 'run_id' | 'execution_id'>): SSEExecutionScope;
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* 运行中途送达的用户输入(插话)。运行起点的用户输入由客户端自己先显示,不经 SSE 回传;
|
|
42
|
+
* 插话由 Host 在一批工具结算后写入,客户端只能从这里得知它送达的位置。
|
|
43
|
+
*/
|
|
44
|
+
declare const SSEUserInputEvent: z.ZodObject<{
|
|
41
45
|
id: z.ZodString;
|
|
42
46
|
timestamp: z.ZodNumber;
|
|
43
47
|
conversation_id: z.ZodString;
|
|
@@ -50,9 +54,33 @@ declare const SSEThoughtEvent: z.ZodObject<{
|
|
|
50
54
|
child: "child";
|
|
51
55
|
}>>;
|
|
52
56
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
conversation: "conversation";
|
|
58
|
+
"parent-trace": "parent-trace";
|
|
53
59
|
none: "none";
|
|
60
|
+
}>>;
|
|
61
|
+
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
63
|
+
type: z.ZodLiteral<"user_input">;
|
|
64
|
+
content: z.ZodString;
|
|
65
|
+
delivery: z.ZodLiteral<"mid_run">;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
type SSEUserInputEvent = z.infer<typeof SSEUserInputEvent>;
|
|
68
|
+
declare const SSEThoughtEvent: z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
timestamp: z.ZodNumber;
|
|
71
|
+
conversation_id: z.ZodString;
|
|
72
|
+
turn_id: z.ZodString;
|
|
73
|
+
run_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RunId", "out">>;
|
|
74
|
+
execution_id: z.ZodOptional<z.ZodString>;
|
|
75
|
+
lane: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
foreground: "foreground";
|
|
77
|
+
auxiliary: "auxiliary";
|
|
78
|
+
child: "child";
|
|
79
|
+
}>>;
|
|
80
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
54
81
|
conversation: "conversation";
|
|
55
82
|
"parent-trace": "parent-trace";
|
|
83
|
+
none: "none";
|
|
56
84
|
}>>;
|
|
57
85
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
58
86
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -76,9 +104,9 @@ declare const SSEFinalAnswerChunkEvent: z.ZodObject<{
|
|
|
76
104
|
child: "child";
|
|
77
105
|
}>>;
|
|
78
106
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
79
|
-
none: "none";
|
|
80
107
|
conversation: "conversation";
|
|
81
108
|
"parent-trace": "parent-trace";
|
|
109
|
+
none: "none";
|
|
82
110
|
}>>;
|
|
83
111
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
84
112
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -102,9 +130,9 @@ declare const SSEFinalAnswerResetEvent: z.ZodObject<{
|
|
|
102
130
|
child: "child";
|
|
103
131
|
}>>;
|
|
104
132
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
105
|
-
none: "none";
|
|
106
133
|
conversation: "conversation";
|
|
107
134
|
"parent-trace": "parent-trace";
|
|
135
|
+
none: "none";
|
|
108
136
|
}>>;
|
|
109
137
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
110
138
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -126,9 +154,9 @@ declare const SSEFinalAnswerEvent: z.ZodObject<{
|
|
|
126
154
|
child: "child";
|
|
127
155
|
}>>;
|
|
128
156
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
129
|
-
none: "none";
|
|
130
157
|
conversation: "conversation";
|
|
131
158
|
"parent-trace": "parent-trace";
|
|
159
|
+
none: "none";
|
|
132
160
|
}>>;
|
|
133
161
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
134
162
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -156,16 +184,16 @@ declare const SSEMarkdownChunkEvent: z.ZodObject<{
|
|
|
156
184
|
child: "child";
|
|
157
185
|
}>>;
|
|
158
186
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
159
|
-
none: "none";
|
|
160
187
|
conversation: "conversation";
|
|
161
188
|
"parent-trace": "parent-trace";
|
|
189
|
+
none: "none";
|
|
162
190
|
}>>;
|
|
163
191
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
164
192
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
165
193
|
type: z.ZodLiteral<"markdown_chunk">;
|
|
166
194
|
content_type: z.ZodDefault<z.ZodEnum<{
|
|
167
|
-
text: "text";
|
|
168
195
|
image: "image";
|
|
196
|
+
text: "text";
|
|
169
197
|
code: "code";
|
|
170
198
|
table: "table";
|
|
171
199
|
}>>;
|
|
@@ -186,9 +214,9 @@ declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
|
186
214
|
child: "child";
|
|
187
215
|
}>>;
|
|
188
216
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
189
|
-
none: "none";
|
|
190
217
|
conversation: "conversation";
|
|
191
218
|
"parent-trace": "parent-trace";
|
|
219
|
+
none: "none";
|
|
192
220
|
}>>;
|
|
193
221
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
194
222
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -224,9 +252,9 @@ declare const SSEToolProcessEvent: z.ZodObject<{
|
|
|
224
252
|
child: "child";
|
|
225
253
|
}>>;
|
|
226
254
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
227
|
-
none: "none";
|
|
228
255
|
conversation: "conversation";
|
|
229
256
|
"parent-trace": "parent-trace";
|
|
257
|
+
none: "none";
|
|
230
258
|
}>>;
|
|
231
259
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
232
260
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -262,9 +290,9 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
262
290
|
child: "child";
|
|
263
291
|
}>>;
|
|
264
292
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
265
|
-
none: "none";
|
|
266
293
|
conversation: "conversation";
|
|
267
294
|
"parent-trace": "parent-trace";
|
|
295
|
+
none: "none";
|
|
268
296
|
}>>;
|
|
269
297
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
270
298
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -311,9 +339,9 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
311
339
|
child: "child";
|
|
312
340
|
}>>;
|
|
313
341
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
314
|
-
none: "none";
|
|
315
342
|
conversation: "conversation";
|
|
316
343
|
"parent-trace": "parent-trace";
|
|
344
|
+
none: "none";
|
|
317
345
|
}>>;
|
|
318
346
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
319
347
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -323,25 +351,25 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
323
351
|
source_event_id: z.ZodString;
|
|
324
352
|
kind: z.ZodEnum<{
|
|
325
353
|
error: "error";
|
|
326
|
-
history_summary: "history_summary";
|
|
327
|
-
final_answer: "final_answer";
|
|
328
|
-
tool_output: "tool_output";
|
|
329
354
|
tool_call_decision: "tool_call_decision";
|
|
330
355
|
tool_process: "tool_process";
|
|
356
|
+
tool_output: "tool_output";
|
|
331
357
|
thought_delta: "thought_delta";
|
|
332
358
|
thought_complete: "thought_complete";
|
|
333
359
|
final_answer_chunk: "final_answer_chunk";
|
|
360
|
+
final_answer: "final_answer";
|
|
361
|
+
history_summary: "history_summary";
|
|
334
362
|
llm_retry: "llm_retry";
|
|
335
363
|
}>;
|
|
336
364
|
retry: z.ZodOptional<z.ZodObject<{
|
|
337
365
|
retry_id: z.ZodString;
|
|
338
366
|
status: z.ZodEnum<{
|
|
339
|
-
failed: "failed";
|
|
340
|
-
cancelled: "cancelled";
|
|
341
367
|
waiting: "waiting";
|
|
342
368
|
retrying: "retrying";
|
|
343
369
|
succeeded: "succeeded";
|
|
344
370
|
exhausted: "exhausted";
|
|
371
|
+
failed: "failed";
|
|
372
|
+
cancelled: "cancelled";
|
|
345
373
|
}>;
|
|
346
374
|
category: z.ZodEnum<{
|
|
347
375
|
output: "output";
|
|
@@ -432,9 +460,9 @@ declare const SSERequiresUserInteractionEvent: z.ZodObject<{
|
|
|
432
460
|
child: "child";
|
|
433
461
|
}>>;
|
|
434
462
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
435
|
-
none: "none";
|
|
436
463
|
conversation: "conversation";
|
|
437
464
|
"parent-trace": "parent-trace";
|
|
465
|
+
none: "none";
|
|
438
466
|
}>>;
|
|
439
467
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
440
468
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -463,20 +491,20 @@ declare const SSELlmRetryEvent: z.ZodObject<{
|
|
|
463
491
|
child: "child";
|
|
464
492
|
}>>;
|
|
465
493
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
466
|
-
none: "none";
|
|
467
494
|
conversation: "conversation";
|
|
468
495
|
"parent-trace": "parent-trace";
|
|
496
|
+
none: "none";
|
|
469
497
|
}>>;
|
|
470
498
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
471
499
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
472
500
|
retry_id: z.ZodString;
|
|
473
501
|
status: z.ZodEnum<{
|
|
474
|
-
failed: "failed";
|
|
475
|
-
cancelled: "cancelled";
|
|
476
502
|
waiting: "waiting";
|
|
477
503
|
retrying: "retrying";
|
|
478
504
|
succeeded: "succeeded";
|
|
479
505
|
exhausted: "exhausted";
|
|
506
|
+
failed: "failed";
|
|
507
|
+
cancelled: "cancelled";
|
|
480
508
|
}>;
|
|
481
509
|
category: z.ZodEnum<{
|
|
482
510
|
output: "output";
|
|
@@ -508,9 +536,9 @@ declare const SSEErrorEvent: z.ZodObject<{
|
|
|
508
536
|
child: "child";
|
|
509
537
|
}>>;
|
|
510
538
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
511
|
-
none: "none";
|
|
512
539
|
conversation: "conversation";
|
|
513
540
|
"parent-trace": "parent-trace";
|
|
541
|
+
none: "none";
|
|
514
542
|
}>>;
|
|
515
543
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
516
544
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -539,9 +567,9 @@ declare const SSETransportErrorEvent: z.ZodObject<{
|
|
|
539
567
|
child: "child";
|
|
540
568
|
}>>;
|
|
541
569
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
542
|
-
none: "none";
|
|
543
570
|
conversation: "conversation";
|
|
544
571
|
"parent-trace": "parent-trace";
|
|
572
|
+
none: "none";
|
|
545
573
|
}>>;
|
|
546
574
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
547
575
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -566,9 +594,9 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
566
594
|
child: "child";
|
|
567
595
|
}>>;
|
|
568
596
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
569
|
-
none: "none";
|
|
570
597
|
conversation: "conversation";
|
|
571
598
|
"parent-trace": "parent-trace";
|
|
599
|
+
none: "none";
|
|
572
600
|
}>>;
|
|
573
601
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
574
602
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -616,18 +644,18 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
616
644
|
child: "child";
|
|
617
645
|
}>>;
|
|
618
646
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
619
|
-
none: "none";
|
|
620
647
|
conversation: "conversation";
|
|
621
648
|
"parent-trace": "parent-trace";
|
|
649
|
+
none: "none";
|
|
622
650
|
}>>;
|
|
623
651
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
624
652
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
625
653
|
type: z.ZodLiteral<"run_execution_metrics">;
|
|
626
654
|
execution_id: z.ZodString;
|
|
627
655
|
outcome: z.ZodEnum<{
|
|
628
|
-
completed: "completed";
|
|
629
656
|
failed: "failed";
|
|
630
657
|
cancelled: "cancelled";
|
|
658
|
+
completed: "completed";
|
|
631
659
|
awaiting_user: "awaiting_user";
|
|
632
660
|
}>;
|
|
633
661
|
duration_ms: z.ZodNumber;
|
|
@@ -673,9 +701,9 @@ declare const SSERunStatusEvent: z.ZodObject<{
|
|
|
673
701
|
child: "child";
|
|
674
702
|
}>>;
|
|
675
703
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
676
|
-
none: "none";
|
|
677
704
|
conversation: "conversation";
|
|
678
705
|
"parent-trace": "parent-trace";
|
|
706
|
+
none: "none";
|
|
679
707
|
}>>;
|
|
680
708
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
681
709
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -683,13 +711,13 @@ declare const SSERunStatusEvent: z.ZodObject<{
|
|
|
683
711
|
run_id: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
684
712
|
execution_id: z.ZodString;
|
|
685
713
|
status: z.ZodEnum<{
|
|
686
|
-
completed: "completed";
|
|
687
714
|
failed: "failed";
|
|
688
715
|
cancelled: "cancelled";
|
|
689
|
-
paused: "paused";
|
|
690
716
|
pending: "pending";
|
|
691
|
-
|
|
717
|
+
paused: "paused";
|
|
718
|
+
completed: "completed";
|
|
692
719
|
awaiting_user: "awaiting_user";
|
|
720
|
+
running: "running";
|
|
693
721
|
}>;
|
|
694
722
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
695
723
|
}, z.core.$strip>;
|
|
@@ -706,9 +734,9 @@ declare const SSETransportEndEvent: z.ZodObject<{
|
|
|
706
734
|
child: "child";
|
|
707
735
|
}>>;
|
|
708
736
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
709
|
-
none: "none";
|
|
710
737
|
conversation: "conversation";
|
|
711
738
|
"parent-trace": "parent-trace";
|
|
739
|
+
none: "none";
|
|
712
740
|
}>>;
|
|
713
741
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
714
742
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -716,8 +744,8 @@ declare const SSETransportEndEvent: z.ZodObject<{
|
|
|
716
744
|
execution_id: z.ZodString;
|
|
717
745
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
718
746
|
error: "error";
|
|
719
|
-
interrupted: "interrupted";
|
|
720
747
|
complete: "complete";
|
|
748
|
+
interrupted: "interrupted";
|
|
721
749
|
timeout: "timeout";
|
|
722
750
|
}>>;
|
|
723
751
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
@@ -736,9 +764,9 @@ declare const SSEHistorySummaryEvent: z.ZodObject<{
|
|
|
736
764
|
child: "child";
|
|
737
765
|
}>>;
|
|
738
766
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
739
|
-
none: "none";
|
|
740
767
|
conversation: "conversation";
|
|
741
768
|
"parent-trace": "parent-trace";
|
|
769
|
+
none: "none";
|
|
742
770
|
}>>;
|
|
743
771
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
744
772
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -763,9 +791,9 @@ declare const SSESummarizationStartEvent: z.ZodObject<{
|
|
|
763
791
|
child: "child";
|
|
764
792
|
}>>;
|
|
765
793
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
766
|
-
none: "none";
|
|
767
794
|
conversation: "conversation";
|
|
768
795
|
"parent-trace": "parent-trace";
|
|
796
|
+
none: "none";
|
|
769
797
|
}>>;
|
|
770
798
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
771
799
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -786,9 +814,9 @@ declare const SSESummarizationEndEvent: z.ZodObject<{
|
|
|
786
814
|
child: "child";
|
|
787
815
|
}>>;
|
|
788
816
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
789
|
-
none: "none";
|
|
790
817
|
conversation: "conversation";
|
|
791
818
|
"parent-trace": "parent-trace";
|
|
819
|
+
none: "none";
|
|
792
820
|
}>>;
|
|
793
821
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
794
822
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -813,9 +841,9 @@ declare const SSESummarizationErrorEvent: z.ZodObject<{
|
|
|
813
841
|
child: "child";
|
|
814
842
|
}>>;
|
|
815
843
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
816
|
-
none: "none";
|
|
817
844
|
conversation: "conversation";
|
|
818
845
|
"parent-trace": "parent-trace";
|
|
846
|
+
none: "none";
|
|
819
847
|
}>>;
|
|
820
848
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
821
849
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -839,9 +867,31 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
839
867
|
child: "child";
|
|
840
868
|
}>>;
|
|
841
869
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
870
|
+
conversation: "conversation";
|
|
871
|
+
"parent-trace": "parent-trace";
|
|
842
872
|
none: "none";
|
|
873
|
+
}>>;
|
|
874
|
+
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
875
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
876
|
+
type: z.ZodLiteral<"user_input">;
|
|
877
|
+
content: z.ZodString;
|
|
878
|
+
delivery: z.ZodLiteral<"mid_run">;
|
|
879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
+
id: z.ZodString;
|
|
881
|
+
timestamp: z.ZodNumber;
|
|
882
|
+
conversation_id: z.ZodString;
|
|
883
|
+
turn_id: z.ZodString;
|
|
884
|
+
run_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RunId", "out">>;
|
|
885
|
+
execution_id: z.ZodOptional<z.ZodString>;
|
|
886
|
+
lane: z.ZodOptional<z.ZodEnum<{
|
|
887
|
+
foreground: "foreground";
|
|
888
|
+
auxiliary: "auxiliary";
|
|
889
|
+
child: "child";
|
|
890
|
+
}>>;
|
|
891
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
843
892
|
conversation: "conversation";
|
|
844
893
|
"parent-trace": "parent-trace";
|
|
894
|
+
none: "none";
|
|
845
895
|
}>>;
|
|
846
896
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
847
897
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -863,9 +913,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
863
913
|
child: "child";
|
|
864
914
|
}>>;
|
|
865
915
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
866
|
-
none: "none";
|
|
867
916
|
conversation: "conversation";
|
|
868
917
|
"parent-trace": "parent-trace";
|
|
918
|
+
none: "none";
|
|
869
919
|
}>>;
|
|
870
920
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
871
921
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -887,9 +937,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
887
937
|
child: "child";
|
|
888
938
|
}>>;
|
|
889
939
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
890
|
-
none: "none";
|
|
891
940
|
conversation: "conversation";
|
|
892
941
|
"parent-trace": "parent-trace";
|
|
942
|
+
none: "none";
|
|
893
943
|
}>>;
|
|
894
944
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
895
945
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -909,9 +959,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
909
959
|
child: "child";
|
|
910
960
|
}>>;
|
|
911
961
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
912
|
-
none: "none";
|
|
913
962
|
conversation: "conversation";
|
|
914
963
|
"parent-trace": "parent-trace";
|
|
964
|
+
none: "none";
|
|
915
965
|
}>>;
|
|
916
966
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
917
967
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -937,16 +987,16 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
937
987
|
child: "child";
|
|
938
988
|
}>>;
|
|
939
989
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
940
|
-
none: "none";
|
|
941
990
|
conversation: "conversation";
|
|
942
991
|
"parent-trace": "parent-trace";
|
|
992
|
+
none: "none";
|
|
943
993
|
}>>;
|
|
944
994
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
945
995
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
946
996
|
type: z.ZodLiteral<"markdown_chunk">;
|
|
947
997
|
content_type: z.ZodDefault<z.ZodEnum<{
|
|
948
|
-
text: "text";
|
|
949
998
|
image: "image";
|
|
999
|
+
text: "text";
|
|
950
1000
|
code: "code";
|
|
951
1001
|
table: "table";
|
|
952
1002
|
}>>;
|
|
@@ -965,9 +1015,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
965
1015
|
child: "child";
|
|
966
1016
|
}>>;
|
|
967
1017
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
968
|
-
none: "none";
|
|
969
1018
|
conversation: "conversation";
|
|
970
1019
|
"parent-trace": "parent-trace";
|
|
1020
|
+
none: "none";
|
|
971
1021
|
}>>;
|
|
972
1022
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
973
1023
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1001,9 +1051,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1001
1051
|
child: "child";
|
|
1002
1052
|
}>>;
|
|
1003
1053
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1004
|
-
none: "none";
|
|
1005
1054
|
conversation: "conversation";
|
|
1006
1055
|
"parent-trace": "parent-trace";
|
|
1056
|
+
none: "none";
|
|
1007
1057
|
}>>;
|
|
1008
1058
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1009
1059
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1037,9 +1087,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1037
1087
|
child: "child";
|
|
1038
1088
|
}>>;
|
|
1039
1089
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1040
|
-
none: "none";
|
|
1041
1090
|
conversation: "conversation";
|
|
1042
1091
|
"parent-trace": "parent-trace";
|
|
1092
|
+
none: "none";
|
|
1043
1093
|
}>>;
|
|
1044
1094
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1045
1095
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1084,9 +1134,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1084
1134
|
child: "child";
|
|
1085
1135
|
}>>;
|
|
1086
1136
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1087
|
-
none: "none";
|
|
1088
1137
|
conversation: "conversation";
|
|
1089
1138
|
"parent-trace": "parent-trace";
|
|
1139
|
+
none: "none";
|
|
1090
1140
|
}>>;
|
|
1091
1141
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1092
1142
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1096,25 +1146,25 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1096
1146
|
source_event_id: z.ZodString;
|
|
1097
1147
|
kind: z.ZodEnum<{
|
|
1098
1148
|
error: "error";
|
|
1099
|
-
history_summary: "history_summary";
|
|
1100
|
-
final_answer: "final_answer";
|
|
1101
|
-
tool_output: "tool_output";
|
|
1102
1149
|
tool_call_decision: "tool_call_decision";
|
|
1103
1150
|
tool_process: "tool_process";
|
|
1151
|
+
tool_output: "tool_output";
|
|
1104
1152
|
thought_delta: "thought_delta";
|
|
1105
1153
|
thought_complete: "thought_complete";
|
|
1106
1154
|
final_answer_chunk: "final_answer_chunk";
|
|
1155
|
+
final_answer: "final_answer";
|
|
1156
|
+
history_summary: "history_summary";
|
|
1107
1157
|
llm_retry: "llm_retry";
|
|
1108
1158
|
}>;
|
|
1109
1159
|
retry: z.ZodOptional<z.ZodObject<{
|
|
1110
1160
|
retry_id: z.ZodString;
|
|
1111
1161
|
status: z.ZodEnum<{
|
|
1112
|
-
failed: "failed";
|
|
1113
|
-
cancelled: "cancelled";
|
|
1114
1162
|
waiting: "waiting";
|
|
1115
1163
|
retrying: "retrying";
|
|
1116
1164
|
succeeded: "succeeded";
|
|
1117
1165
|
exhausted: "exhausted";
|
|
1166
|
+
failed: "failed";
|
|
1167
|
+
cancelled: "cancelled";
|
|
1118
1168
|
}>;
|
|
1119
1169
|
category: z.ZodEnum<{
|
|
1120
1170
|
output: "output";
|
|
@@ -1203,9 +1253,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1203
1253
|
child: "child";
|
|
1204
1254
|
}>>;
|
|
1205
1255
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1206
|
-
none: "none";
|
|
1207
1256
|
conversation: "conversation";
|
|
1208
1257
|
"parent-trace": "parent-trace";
|
|
1258
|
+
none: "none";
|
|
1209
1259
|
}>>;
|
|
1210
1260
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1211
1261
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1232,20 +1282,20 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1232
1282
|
child: "child";
|
|
1233
1283
|
}>>;
|
|
1234
1284
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1235
|
-
none: "none";
|
|
1236
1285
|
conversation: "conversation";
|
|
1237
1286
|
"parent-trace": "parent-trace";
|
|
1287
|
+
none: "none";
|
|
1238
1288
|
}>>;
|
|
1239
1289
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1240
1290
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
1241
1291
|
retry_id: z.ZodString;
|
|
1242
1292
|
status: z.ZodEnum<{
|
|
1243
|
-
failed: "failed";
|
|
1244
|
-
cancelled: "cancelled";
|
|
1245
1293
|
waiting: "waiting";
|
|
1246
1294
|
retrying: "retrying";
|
|
1247
1295
|
succeeded: "succeeded";
|
|
1248
1296
|
exhausted: "exhausted";
|
|
1297
|
+
failed: "failed";
|
|
1298
|
+
cancelled: "cancelled";
|
|
1249
1299
|
}>;
|
|
1250
1300
|
category: z.ZodEnum<{
|
|
1251
1301
|
output: "output";
|
|
@@ -1275,9 +1325,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1275
1325
|
child: "child";
|
|
1276
1326
|
}>>;
|
|
1277
1327
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1278
|
-
none: "none";
|
|
1279
1328
|
conversation: "conversation";
|
|
1280
1329
|
"parent-trace": "parent-trace";
|
|
1330
|
+
none: "none";
|
|
1281
1331
|
}>>;
|
|
1282
1332
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1283
1333
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1299,9 +1349,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1299
1349
|
child: "child";
|
|
1300
1350
|
}>>;
|
|
1301
1351
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1302
|
-
none: "none";
|
|
1303
1352
|
conversation: "conversation";
|
|
1304
1353
|
"parent-trace": "parent-trace";
|
|
1354
|
+
none: "none";
|
|
1305
1355
|
}>>;
|
|
1306
1356
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1307
1357
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1324,9 +1374,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1324
1374
|
child: "child";
|
|
1325
1375
|
}>>;
|
|
1326
1376
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1327
|
-
none: "none";
|
|
1328
1377
|
conversation: "conversation";
|
|
1329
1378
|
"parent-trace": "parent-trace";
|
|
1379
|
+
none: "none";
|
|
1330
1380
|
}>>;
|
|
1331
1381
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1332
1382
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1372,18 +1422,18 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1372
1422
|
child: "child";
|
|
1373
1423
|
}>>;
|
|
1374
1424
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1375
|
-
none: "none";
|
|
1376
1425
|
conversation: "conversation";
|
|
1377
1426
|
"parent-trace": "parent-trace";
|
|
1427
|
+
none: "none";
|
|
1378
1428
|
}>>;
|
|
1379
1429
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1380
1430
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
1381
1431
|
type: z.ZodLiteral<"run_execution_metrics">;
|
|
1382
1432
|
execution_id: z.ZodString;
|
|
1383
1433
|
outcome: z.ZodEnum<{
|
|
1384
|
-
completed: "completed";
|
|
1385
1434
|
failed: "failed";
|
|
1386
1435
|
cancelled: "cancelled";
|
|
1436
|
+
completed: "completed";
|
|
1387
1437
|
awaiting_user: "awaiting_user";
|
|
1388
1438
|
}>;
|
|
1389
1439
|
duration_ms: z.ZodNumber;
|
|
@@ -1427,9 +1477,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1427
1477
|
child: "child";
|
|
1428
1478
|
}>>;
|
|
1429
1479
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1430
|
-
none: "none";
|
|
1431
1480
|
conversation: "conversation";
|
|
1432
1481
|
"parent-trace": "parent-trace";
|
|
1482
|
+
none: "none";
|
|
1433
1483
|
}>>;
|
|
1434
1484
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1435
1485
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1437,13 +1487,13 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1437
1487
|
run_id: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
1438
1488
|
execution_id: z.ZodString;
|
|
1439
1489
|
status: z.ZodEnum<{
|
|
1440
|
-
completed: "completed";
|
|
1441
1490
|
failed: "failed";
|
|
1442
1491
|
cancelled: "cancelled";
|
|
1443
|
-
paused: "paused";
|
|
1444
1492
|
pending: "pending";
|
|
1445
|
-
|
|
1493
|
+
paused: "paused";
|
|
1494
|
+
completed: "completed";
|
|
1446
1495
|
awaiting_user: "awaiting_user";
|
|
1496
|
+
running: "running";
|
|
1447
1497
|
}>;
|
|
1448
1498
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
1449
1499
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1458,9 +1508,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1458
1508
|
child: "child";
|
|
1459
1509
|
}>>;
|
|
1460
1510
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1461
|
-
none: "none";
|
|
1462
1511
|
conversation: "conversation";
|
|
1463
1512
|
"parent-trace": "parent-trace";
|
|
1513
|
+
none: "none";
|
|
1464
1514
|
}>>;
|
|
1465
1515
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1466
1516
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1468,8 +1518,8 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1468
1518
|
execution_id: z.ZodString;
|
|
1469
1519
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
1470
1520
|
error: "error";
|
|
1471
|
-
interrupted: "interrupted";
|
|
1472
1521
|
complete: "complete";
|
|
1522
|
+
interrupted: "interrupted";
|
|
1473
1523
|
timeout: "timeout";
|
|
1474
1524
|
}>>;
|
|
1475
1525
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
@@ -1486,9 +1536,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1486
1536
|
child: "child";
|
|
1487
1537
|
}>>;
|
|
1488
1538
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1489
|
-
none: "none";
|
|
1490
1539
|
conversation: "conversation";
|
|
1491
1540
|
"parent-trace": "parent-trace";
|
|
1541
|
+
none: "none";
|
|
1492
1542
|
}>>;
|
|
1493
1543
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1494
1544
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1511,9 +1561,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1511
1561
|
child: "child";
|
|
1512
1562
|
}>>;
|
|
1513
1563
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1514
|
-
none: "none";
|
|
1515
1564
|
conversation: "conversation";
|
|
1516
1565
|
"parent-trace": "parent-trace";
|
|
1566
|
+
none: "none";
|
|
1517
1567
|
}>>;
|
|
1518
1568
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1519
1569
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1532,9 +1582,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1532
1582
|
child: "child";
|
|
1533
1583
|
}>>;
|
|
1534
1584
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1535
|
-
none: "none";
|
|
1536
1585
|
conversation: "conversation";
|
|
1537
1586
|
"parent-trace": "parent-trace";
|
|
1587
|
+
none: "none";
|
|
1538
1588
|
}>>;
|
|
1539
1589
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1540
1590
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1557,9 +1607,9 @@ declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1557
1607
|
child: "child";
|
|
1558
1608
|
}>>;
|
|
1559
1609
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
1560
|
-
none: "none";
|
|
1561
1610
|
conversation: "conversation";
|
|
1562
1611
|
"parent-trace": "parent-trace";
|
|
1612
|
+
none: "none";
|
|
1563
1613
|
}>>;
|
|
1564
1614
|
execution_seq: z.ZodOptional<z.ZodNumber>;
|
|
1565
1615
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
|
|
@@ -1573,6 +1623,20 @@ type SSEEvent = z.infer<typeof SSEEvent>;
|
|
|
1573
1623
|
/** Renderer/transport admission 前的 wire 输入;strict parse 后才可作为 SSEEvent 使用。 */
|
|
1574
1624
|
type SSEEventInput = z.input<typeof SSEEvent>;
|
|
1575
1625
|
declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
1626
|
+
id: string;
|
|
1627
|
+
timestamp: number;
|
|
1628
|
+
conversation_id: string;
|
|
1629
|
+
turn_id: string;
|
|
1630
|
+
type: "user_input";
|
|
1631
|
+
content: string;
|
|
1632
|
+
delivery: "mid_run";
|
|
1633
|
+
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1634
|
+
execution_id?: string | undefined;
|
|
1635
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1636
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1637
|
+
execution_seq?: number | undefined;
|
|
1638
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1639
|
+
} | {
|
|
1576
1640
|
id: string;
|
|
1577
1641
|
timestamp: number;
|
|
1578
1642
|
conversation_id: string;
|
|
@@ -1582,7 +1646,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1582
1646
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1583
1647
|
execution_id?: string | undefined;
|
|
1584
1648
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1585
|
-
visibility?: "
|
|
1649
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1586
1650
|
execution_seq?: number | undefined;
|
|
1587
1651
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1588
1652
|
thought_message_id?: string | undefined;
|
|
@@ -1600,7 +1664,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1600
1664
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1601
1665
|
execution_id?: string | undefined;
|
|
1602
1666
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1603
|
-
visibility?: "
|
|
1667
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1604
1668
|
execution_seq?: number | undefined;
|
|
1605
1669
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1606
1670
|
is_last?: boolean | undefined;
|
|
@@ -1613,7 +1677,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1613
1677
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1614
1678
|
execution_id?: string | undefined;
|
|
1615
1679
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1616
|
-
visibility?: "
|
|
1680
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1617
1681
|
execution_seq?: number | undefined;
|
|
1618
1682
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1619
1683
|
answer_id?: string | undefined;
|
|
@@ -1630,7 +1694,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1630
1694
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1631
1695
|
execution_id?: string | undefined;
|
|
1632
1696
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1633
|
-
visibility?: "
|
|
1697
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1634
1698
|
execution_seq?: number | undefined;
|
|
1635
1699
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1636
1700
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
@@ -1640,12 +1704,12 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1640
1704
|
conversation_id: string;
|
|
1641
1705
|
turn_id: string;
|
|
1642
1706
|
type: "markdown_chunk";
|
|
1643
|
-
content_type: "
|
|
1707
|
+
content_type: "image" | "text" | "code" | "table";
|
|
1644
1708
|
text: string;
|
|
1645
1709
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1646
1710
|
execution_id?: string | undefined;
|
|
1647
1711
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1648
|
-
visibility?: "
|
|
1712
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1649
1713
|
execution_seq?: number | undefined;
|
|
1650
1714
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1651
1715
|
seq?: number | undefined;
|
|
@@ -1662,7 +1726,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1662
1726
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1663
1727
|
execution_id?: string | undefined;
|
|
1664
1728
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1665
|
-
visibility?: "
|
|
1729
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1666
1730
|
execution_seq?: number | undefined;
|
|
1667
1731
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1668
1732
|
args?: SerializableJsonValue | undefined;
|
|
@@ -1681,7 +1745,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1681
1745
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1682
1746
|
execution_id?: string | undefined;
|
|
1683
1747
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1684
|
-
visibility?: "
|
|
1748
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1685
1749
|
execution_seq?: number | undefined;
|
|
1686
1750
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1687
1751
|
args?: SerializableJsonValue | undefined;
|
|
@@ -1700,7 +1764,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1700
1764
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1701
1765
|
execution_id?: string | undefined;
|
|
1702
1766
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1703
|
-
visibility?: "
|
|
1767
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1704
1768
|
execution_seq?: number | undefined;
|
|
1705
1769
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1706
1770
|
data?: SerializableJsonValue | undefined;
|
|
@@ -1727,18 +1791,18 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1727
1791
|
parent_tool_call_id: string & z.core.$brand<"ToolCallId">;
|
|
1728
1792
|
subrun_id: string;
|
|
1729
1793
|
source_event_id: string;
|
|
1730
|
-
kind: "error" | "
|
|
1794
|
+
kind: "error" | "tool_call_decision" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
1731
1795
|
type: "subrun_trace";
|
|
1732
1796
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1733
1797
|
execution_id?: string | undefined;
|
|
1734
1798
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1735
|
-
visibility?: "
|
|
1799
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1736
1800
|
execution_seq?: number | undefined;
|
|
1737
1801
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1738
1802
|
subrun_parent_id?: string | undefined;
|
|
1739
1803
|
retry?: {
|
|
1740
1804
|
retry_id: string;
|
|
1741
|
-
status: "
|
|
1805
|
+
status: "waiting" | "retrying" | "succeeded" | "exhausted" | "failed" | "cancelled";
|
|
1742
1806
|
category: "output" | "transport" | "rate_limit" | "other";
|
|
1743
1807
|
attempt: number;
|
|
1744
1808
|
max_retries: number;
|
|
@@ -1805,7 +1869,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1805
1869
|
interaction_status: "pending";
|
|
1806
1870
|
execution_id?: string | undefined;
|
|
1807
1871
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1808
|
-
visibility?: "
|
|
1872
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1809
1873
|
execution_seq?: number | undefined;
|
|
1810
1874
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1811
1875
|
form?: SerializableJsonValue | undefined;
|
|
@@ -1817,7 +1881,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1817
1881
|
conversation_id: string;
|
|
1818
1882
|
turn_id: string;
|
|
1819
1883
|
retry_id: string;
|
|
1820
|
-
status: "
|
|
1884
|
+
status: "waiting" | "retrying" | "succeeded" | "exhausted" | "failed" | "cancelled";
|
|
1821
1885
|
category: "output" | "transport" | "rate_limit" | "other";
|
|
1822
1886
|
attempt: number;
|
|
1823
1887
|
max_retries: number;
|
|
@@ -1830,7 +1894,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1830
1894
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1831
1895
|
execution_id?: string | undefined;
|
|
1832
1896
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1833
|
-
visibility?: "
|
|
1897
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1834
1898
|
execution_seq?: number | undefined;
|
|
1835
1899
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1836
1900
|
next_retry_at?: number | undefined;
|
|
@@ -1844,7 +1908,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1844
1908
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1845
1909
|
execution_id?: string | undefined;
|
|
1846
1910
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1847
|
-
visibility?: "
|
|
1911
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1848
1912
|
execution_seq?: number | undefined;
|
|
1849
1913
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1850
1914
|
error_code?: string | undefined;
|
|
@@ -1861,7 +1925,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1861
1925
|
error: string;
|
|
1862
1926
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1863
1927
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1864
|
-
visibility?: "
|
|
1928
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1865
1929
|
execution_seq?: number | undefined;
|
|
1866
1930
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1867
1931
|
details?: SerializableJsonValue | undefined;
|
|
@@ -1894,7 +1958,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1894
1958
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1895
1959
|
execution_id?: string | undefined;
|
|
1896
1960
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1897
|
-
visibility?: "
|
|
1961
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1898
1962
|
execution_seq?: number | undefined;
|
|
1899
1963
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1900
1964
|
user_message_id?: string | undefined;
|
|
@@ -1905,11 +1969,11 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1905
1969
|
turn_id: string;
|
|
1906
1970
|
type: "run_execution_metrics";
|
|
1907
1971
|
execution_id: string;
|
|
1908
|
-
outcome: "
|
|
1972
|
+
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
1909
1973
|
duration_ms: number;
|
|
1910
1974
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1911
1975
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1912
|
-
visibility?: "
|
|
1976
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1913
1977
|
execution_seq?: number | undefined;
|
|
1914
1978
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1915
1979
|
user_message_id?: string | undefined;
|
|
@@ -1939,9 +2003,9 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1939
2003
|
type: "run_status";
|
|
1940
2004
|
run_id: string & z.core.$brand<"RunId">;
|
|
1941
2005
|
execution_id: string;
|
|
1942
|
-
status: "
|
|
2006
|
+
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
1943
2007
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1944
|
-
visibility?: "
|
|
2008
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1945
2009
|
execution_seq?: number | undefined;
|
|
1946
2010
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1947
2011
|
reason_message?: string | undefined;
|
|
@@ -1954,10 +2018,10 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1954
2018
|
execution_id: string;
|
|
1955
2019
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1956
2020
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1957
|
-
visibility?: "
|
|
2021
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1958
2022
|
execution_seq?: number | undefined;
|
|
1959
2023
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1960
|
-
reason?: "error" | "
|
|
2024
|
+
reason?: "error" | "complete" | "interrupted" | "timeout" | undefined;
|
|
1961
2025
|
reason_message?: string | undefined;
|
|
1962
2026
|
} | {
|
|
1963
2027
|
id: string;
|
|
@@ -1973,7 +2037,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1973
2037
|
run_id?: (string & z.core.$brand<"RunId">) | undefined;
|
|
1974
2038
|
execution_id?: string | undefined;
|
|
1975
2039
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1976
|
-
visibility?: "
|
|
2040
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1977
2041
|
execution_seq?: number | undefined;
|
|
1978
2042
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1979
2043
|
compression_ratio?: number | undefined;
|
|
@@ -1988,7 +2052,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
1988
2052
|
execution_id: string;
|
|
1989
2053
|
summarization_id: string;
|
|
1990
2054
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1991
|
-
visibility?: "
|
|
2055
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
1992
2056
|
execution_seq?: number | undefined;
|
|
1993
2057
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1994
2058
|
} | {
|
|
@@ -2004,7 +2068,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2004
2068
|
original_message_count: number;
|
|
2005
2069
|
compressed_message_count: number;
|
|
2006
2070
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2007
|
-
visibility?: "
|
|
2071
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2008
2072
|
execution_seq?: number | undefined;
|
|
2009
2073
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2010
2074
|
compression_ratio?: number | undefined;
|
|
@@ -2019,7 +2083,7 @@ declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
|
|
|
2019
2083
|
summarization_id: string;
|
|
2020
2084
|
error: string;
|
|
2021
2085
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2022
|
-
visibility?: "
|
|
2086
|
+
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2023
2087
|
execution_seq?: number | undefined;
|
|
2024
2088
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2025
2089
|
}>;
|
|
@@ -2057,5 +2121,5 @@ declare const createSSERunStatusEvent: (id: string, conversationId: string, turn
|
|
|
2057
2121
|
declare const createSSETransportEndEvent: (id: string, conversationId: string, turnId: string, options: SSEEventCreatorOptions<SSETransportEndEvent> & Pick<SSETransportEndEvent, "execution_id">) => SSETransportEndEvent;
|
|
2058
2122
|
declare const createSSEHistorySummaryEvent: (id: string, conversationId: string, turnId: string, content: string, replacedMessageIds: readonly string[], originalMessageCount: number, summarySeq: number, options?: SSEEventCreatorOptions<SSEHistorySummaryEvent, "summary_id" | "content" | "replaced_message_ids" | "original_message_count" | "summary_seq">) => SSEHistorySummaryEvent;
|
|
2059
2123
|
|
|
2060
|
-
export { BaseSSEEvent, SSEContextUsageSnapshotEvent, SSEErrorEvent, SSEEvent, SSEExecutionScope, SSEFinalAnswerChunkEvent, SSEFinalAnswerEvent, SSEFinalAnswerResetEvent, SSEHistorySummaryEvent, SSELlmRetryEvent, SSEMarkdownChunkEvent, SSERequiresUserInteractionEvent, SSERunExecutionMetricsEvent, SSERunStatusEvent, SSESubRunTraceEvent, SSESummarizationEndEvent, SSESummarizationErrorEvent, SSESummarizationStartEvent, SSEThoughtEvent, SSEToolCallDecisionEvent, SSEToolOutputEvent, SSEToolProcessEvent, SSETransportEndEvent, SSETransportErrorEvent, createSSEErrorEvent, createSSEFinalAnswerChunkEvent, createSSEFinalAnswerEvent, createSSEHistorySummaryEvent, createSSEMarkdownChunkEvent, createSSERequiresUserInteractionEvent, createSSERunStatusEvent, createSSESubRunTraceEvent, createSSEThoughtEvent, createSSEToolCallDecisionEvent, createSSEToolOutputEvent, createSSEToolProcessEvent, createSSETransportEndEvent, createSSETransportErrorEvent, parseSSEExecutionScope, runtimeEventToSSEEvent, validateSSEEvent };
|
|
2124
|
+
export { BaseSSEEvent, SSEContextUsageSnapshotEvent, SSEErrorEvent, SSEEvent, SSEExecutionScope, SSEFinalAnswerChunkEvent, SSEFinalAnswerEvent, SSEFinalAnswerResetEvent, SSEHistorySummaryEvent, SSELlmRetryEvent, SSEMarkdownChunkEvent, SSERequiresUserInteractionEvent, SSERunExecutionMetricsEvent, SSERunStatusEvent, SSESubRunTraceEvent, SSESummarizationEndEvent, SSESummarizationErrorEvent, SSESummarizationStartEvent, SSEThoughtEvent, SSEToolCallDecisionEvent, SSEToolOutputEvent, SSEToolProcessEvent, SSETransportEndEvent, SSETransportErrorEvent, SSEUserInputEvent, createSSEErrorEvent, createSSEFinalAnswerChunkEvent, createSSEFinalAnswerEvent, createSSEHistorySummaryEvent, createSSEMarkdownChunkEvent, createSSERequiresUserInteractionEvent, createSSERunStatusEvent, createSSESubRunTraceEvent, createSSEThoughtEvent, createSSEToolCallDecisionEvent, createSSEToolOutputEvent, createSSEToolProcessEvent, createSSETransportEndEvent, createSSETransportErrorEvent, parseSSEExecutionScope, runtimeEventToSSEEvent, validateSSEEvent };
|
|
2061
2125
|
export type { SSEEventInput };
|