@linnlabs/linnkit 0.38.0 → 0.38.1
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 +7 -1
- package/dist/contracts/agentSpec.d.cts +30 -30
- package/dist/contracts/agentSpec.d.ts +30 -30
- package/dist/contracts/audit.d.cts +32 -32
- package/dist/contracts/audit.d.ts +32 -32
- package/dist/contracts/contextPolicy.d.cts +36 -36
- package/dist/contracts/contextPolicy.d.ts +36 -36
- package/dist/contracts/events.d.cts +1203 -1203
- package/dist/contracts/events.d.ts +1203 -1203
- package/dist/contracts/execution.d.cts +8 -8
- package/dist/contracts/execution.d.ts +8 -8
- package/dist/contracts/llm-retry.d.cts +2 -2
- package/dist/contracts/llm-retry.d.ts +2 -2
- package/dist/contracts/messages.d.cts +1178 -1178
- package/dist/contracts/messages.d.ts +1178 -1178
- package/dist/contracts/provider-continuation.d.cts +28 -28
- package/dist/contracts/provider-continuation.d.ts +28 -28
- package/dist/contracts/sse.d.cts +988 -988
- package/dist/contracts/sse.d.ts +988 -988
- package/dist/contracts/sub-run-trace-payload.d.cts +40 -40
- package/dist/contracts/sub-run-trace-payload.d.ts +40 -40
- package/dist/contracts/token-accounting.d.cts +38 -38
- package/dist/contracts/token-accounting.d.ts +38 -38
- package/dist/index.cjs +46 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +46 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime-kernel/events/agentEvents.d.cts +184 -184
- package/dist/runtime-kernel/events/agentEvents.d.ts +184 -184
- package/dist/runtime-kernel.cjs +46 -1
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +46 -1
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +46 -1
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +46 -1
- package/dist/testkit.js.map +1 -1
- package/docs/integration/tools.md +4 -0
- package/package.json +2 -2
package/dist/contracts/sse.d.ts
CHANGED
|
@@ -16,24 +16,24 @@ declare const BaseSSEEvent: z.ZodObject<{
|
|
|
16
16
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
id: string;
|
|
19
|
-
conversation_id: string;
|
|
20
19
|
timestamp: number;
|
|
20
|
+
conversation_id: string;
|
|
21
21
|
turn_id: string;
|
|
22
22
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
23
23
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
24
24
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
25
|
-
visibility?: "
|
|
25
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
26
26
|
execution_id?: string | undefined;
|
|
27
27
|
execution_seq?: number | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
id: string;
|
|
30
|
-
conversation_id: string;
|
|
31
30
|
timestamp: number;
|
|
31
|
+
conversation_id: string;
|
|
32
32
|
turn_id: string;
|
|
33
33
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
34
34
|
run_id?: string | undefined;
|
|
35
35
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
36
|
-
visibility?: "
|
|
36
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
37
37
|
execution_id?: string | undefined;
|
|
38
38
|
execution_seq?: number | undefined;
|
|
39
39
|
}>;
|
|
@@ -75,32 +75,32 @@ declare const SSEThoughtEvent: z.ZodObject<{
|
|
|
75
75
|
content: z.ZodOptional<z.ZodString>;
|
|
76
76
|
is_complete: z.ZodDefault<z.ZodBoolean>;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
type: "thought";
|
|
79
78
|
id: string;
|
|
80
|
-
|
|
79
|
+
type: "thought";
|
|
81
80
|
timestamp: number;
|
|
81
|
+
conversation_id: string;
|
|
82
82
|
turn_id: string;
|
|
83
83
|
is_complete: boolean;
|
|
84
|
+
content?: string | undefined;
|
|
84
85
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
85
86
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
86
87
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
87
|
-
visibility?: "
|
|
88
|
-
content?: string | undefined;
|
|
88
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
89
89
|
thought_message_id?: string | undefined;
|
|
90
90
|
delta?: string | undefined;
|
|
91
91
|
execution_id?: string | undefined;
|
|
92
92
|
execution_seq?: number | undefined;
|
|
93
93
|
}, {
|
|
94
|
-
type: "thought";
|
|
95
94
|
id: string;
|
|
96
|
-
|
|
95
|
+
type: "thought";
|
|
97
96
|
timestamp: number;
|
|
97
|
+
conversation_id: string;
|
|
98
98
|
turn_id: string;
|
|
99
|
+
content?: string | undefined;
|
|
99
100
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
100
101
|
run_id?: string | undefined;
|
|
101
102
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
102
|
-
visibility?: "
|
|
103
|
-
content?: string | undefined;
|
|
103
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
104
104
|
thought_message_id?: string | undefined;
|
|
105
105
|
delta?: string | undefined;
|
|
106
106
|
is_complete?: boolean | undefined;
|
|
@@ -126,10 +126,10 @@ declare const SSEFinalAnswerChunkEvent: z.ZodObject<{
|
|
|
126
126
|
chunk: z.ZodString;
|
|
127
127
|
is_last: z.ZodOptional<z.ZodBoolean>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
type: "final_answer_chunk";
|
|
130
129
|
id: string;
|
|
131
|
-
|
|
130
|
+
type: "final_answer_chunk";
|
|
132
131
|
timestamp: number;
|
|
132
|
+
conversation_id: string;
|
|
133
133
|
turn_id: string;
|
|
134
134
|
answer_id: string;
|
|
135
135
|
seq: number;
|
|
@@ -137,15 +137,15 @@ declare const SSEFinalAnswerChunkEvent: z.ZodObject<{
|
|
|
137
137
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
138
138
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
139
139
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
140
|
-
visibility?: "
|
|
140
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
141
141
|
is_last?: boolean | undefined;
|
|
142
142
|
execution_id?: string | undefined;
|
|
143
143
|
execution_seq?: number | undefined;
|
|
144
144
|
}, {
|
|
145
|
-
type: "final_answer_chunk";
|
|
146
145
|
id: string;
|
|
147
|
-
|
|
146
|
+
type: "final_answer_chunk";
|
|
148
147
|
timestamp: number;
|
|
148
|
+
conversation_id: string;
|
|
149
149
|
turn_id: string;
|
|
150
150
|
answer_id: string;
|
|
151
151
|
seq: number;
|
|
@@ -153,7 +153,7 @@ declare const SSEFinalAnswerChunkEvent: z.ZodObject<{
|
|
|
153
153
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
154
154
|
run_id?: string | undefined;
|
|
155
155
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
156
|
-
visibility?: "
|
|
156
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
157
157
|
is_last?: boolean | undefined;
|
|
158
158
|
execution_id?: string | undefined;
|
|
159
159
|
execution_seq?: number | undefined;
|
|
@@ -175,29 +175,29 @@ declare const SSEFinalAnswerResetEvent: z.ZodObject<{
|
|
|
175
175
|
answer_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
176
176
|
thought_message_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
type: "final_answer_reset";
|
|
179
178
|
id: string;
|
|
180
|
-
|
|
179
|
+
type: "final_answer_reset";
|
|
181
180
|
timestamp: number;
|
|
181
|
+
conversation_id: string;
|
|
182
182
|
turn_id: string;
|
|
183
183
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
184
184
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
185
185
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
186
|
-
visibility?: "
|
|
186
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
187
187
|
answer_id?: string | undefined;
|
|
188
188
|
thought_message_ids?: string[] | undefined;
|
|
189
189
|
execution_id?: string | undefined;
|
|
190
190
|
execution_seq?: number | undefined;
|
|
191
191
|
}, {
|
|
192
|
-
type: "final_answer_reset";
|
|
193
192
|
id: string;
|
|
194
|
-
|
|
193
|
+
type: "final_answer_reset";
|
|
195
194
|
timestamp: number;
|
|
195
|
+
conversation_id: string;
|
|
196
196
|
turn_id: string;
|
|
197
197
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
198
198
|
run_id?: string | undefined;
|
|
199
199
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
200
|
-
visibility?: "
|
|
200
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
201
201
|
answer_id?: string | undefined;
|
|
202
202
|
thought_message_ids?: string[] | undefined;
|
|
203
203
|
execution_id?: string | undefined;
|
|
@@ -222,34 +222,34 @@ declare const SSEFinalAnswerEvent: z.ZodObject<{
|
|
|
222
222
|
completion_reason: z.ZodEnum<["terminal", "tool_call", "interrupted"]>;
|
|
223
223
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
-
type: "final_answer";
|
|
226
225
|
id: string;
|
|
227
|
-
|
|
226
|
+
type: "final_answer";
|
|
227
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
228
|
+
content: string;
|
|
228
229
|
timestamp: number;
|
|
230
|
+
conversation_id: string;
|
|
229
231
|
turn_id: string;
|
|
230
|
-
content: string;
|
|
231
232
|
answer_id: string;
|
|
232
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
233
233
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
234
234
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
235
235
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
236
|
-
visibility?: "
|
|
236
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
237
237
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
238
238
|
execution_id?: string | undefined;
|
|
239
239
|
execution_seq?: number | undefined;
|
|
240
240
|
}, {
|
|
241
|
-
type: "final_answer";
|
|
242
241
|
id: string;
|
|
243
|
-
|
|
242
|
+
type: "final_answer";
|
|
243
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
244
|
+
content: string;
|
|
244
245
|
timestamp: number;
|
|
246
|
+
conversation_id: string;
|
|
245
247
|
turn_id: string;
|
|
246
|
-
content: string;
|
|
247
248
|
answer_id: string;
|
|
248
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
249
249
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
250
250
|
run_id?: string | undefined;
|
|
251
251
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
252
|
-
visibility?: "
|
|
252
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
253
253
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
254
254
|
execution_id?: string | undefined;
|
|
255
255
|
execution_seq?: number | undefined;
|
|
@@ -272,35 +272,35 @@ declare const SSEMarkdownChunkEvent: z.ZodObject<{
|
|
|
272
272
|
text: z.ZodString;
|
|
273
273
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
|
-
type: "markdown_chunk";
|
|
276
275
|
id: string;
|
|
277
|
-
|
|
276
|
+
type: "markdown_chunk";
|
|
277
|
+
text: string;
|
|
278
278
|
timestamp: number;
|
|
279
|
+
conversation_id: string;
|
|
279
280
|
turn_id: string;
|
|
280
|
-
|
|
281
|
-
content_type: "code" | "image" | "text" | "table";
|
|
281
|
+
content_type: "code" | "text" | "image" | "table";
|
|
282
282
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
283
283
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
284
284
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
285
|
-
visibility?: "
|
|
285
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
286
286
|
seq?: number | undefined;
|
|
287
287
|
execution_id?: string | undefined;
|
|
288
288
|
execution_seq?: number | undefined;
|
|
289
289
|
}, {
|
|
290
|
-
type: "markdown_chunk";
|
|
291
290
|
id: string;
|
|
292
|
-
|
|
291
|
+
type: "markdown_chunk";
|
|
292
|
+
text: string;
|
|
293
293
|
timestamp: number;
|
|
294
|
+
conversation_id: string;
|
|
294
295
|
turn_id: string;
|
|
295
|
-
text: string;
|
|
296
296
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
297
297
|
run_id?: string | undefined;
|
|
298
298
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
299
|
-
visibility?: "
|
|
299
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
300
300
|
seq?: number | undefined;
|
|
301
301
|
execution_id?: string | undefined;
|
|
302
302
|
execution_seq?: number | undefined;
|
|
303
|
-
content_type?: "code" | "
|
|
303
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
304
304
|
}>;
|
|
305
305
|
type SSEMarkdownChunkEvent = z.infer<typeof SSEMarkdownChunkEvent>;
|
|
306
306
|
declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
@@ -325,40 +325,40 @@ declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
|
325
325
|
} & {
|
|
326
326
|
type: z.ZodLiteral<"tool_call_decision">;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
type: "tool_call_decision";
|
|
329
328
|
id: string;
|
|
330
|
-
|
|
331
|
-
timestamp: number;
|
|
329
|
+
type: "tool_call_decision";
|
|
332
330
|
status: "error" | "loading" | "success";
|
|
333
|
-
turn_id: string;
|
|
334
|
-
tool_name: string;
|
|
335
331
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
336
|
-
|
|
332
|
+
tool_name: string;
|
|
333
|
+
timestamp: number;
|
|
334
|
+
conversation_id: string;
|
|
335
|
+
turn_id: string;
|
|
336
|
+
phase: "error" | "start" | "update" | "complete";
|
|
337
|
+
payload?: SerializableJsonValue | undefined;
|
|
338
|
+
args?: SerializableJsonValue | undefined;
|
|
337
339
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
338
340
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
339
341
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
340
|
-
visibility?: "
|
|
341
|
-
args?: SerializableJsonValue | undefined;
|
|
342
|
-
payload?: SerializableJsonValue | undefined;
|
|
342
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
343
343
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
344
344
|
execution_id?: string | undefined;
|
|
345
345
|
execution_seq?: number | undefined;
|
|
346
346
|
}, {
|
|
347
|
-
type: "tool_call_decision";
|
|
348
347
|
id: string;
|
|
349
|
-
|
|
350
|
-
timestamp: number;
|
|
348
|
+
type: "tool_call_decision";
|
|
351
349
|
status: "error" | "loading" | "success";
|
|
352
|
-
turn_id: string;
|
|
353
|
-
tool_name: string;
|
|
354
350
|
tool_call_id: string;
|
|
355
|
-
|
|
351
|
+
tool_name: string;
|
|
352
|
+
timestamp: number;
|
|
353
|
+
conversation_id: string;
|
|
354
|
+
turn_id: string;
|
|
355
|
+
phase: "error" | "start" | "update" | "complete";
|
|
356
|
+
payload?: SerializableJsonValue | undefined;
|
|
357
|
+
args?: SerializableJsonValue | undefined;
|
|
356
358
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
357
359
|
run_id?: string | undefined;
|
|
358
360
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
359
|
-
visibility?: "
|
|
360
|
-
args?: SerializableJsonValue | undefined;
|
|
361
|
-
payload?: SerializableJsonValue | undefined;
|
|
361
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
362
362
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
363
363
|
execution_id?: string | undefined;
|
|
364
364
|
execution_seq?: number | undefined;
|
|
@@ -386,40 +386,40 @@ declare const SSEToolProcessEvent: z.ZodObject<{
|
|
|
386
386
|
} & {
|
|
387
387
|
type: z.ZodLiteral<"tool_process">;
|
|
388
388
|
}, "strip", z.ZodTypeAny, {
|
|
389
|
-
type: "tool_process";
|
|
390
389
|
id: string;
|
|
391
|
-
|
|
392
|
-
timestamp: number;
|
|
390
|
+
type: "tool_process";
|
|
393
391
|
status: "error" | "loading" | "success";
|
|
394
|
-
turn_id: string;
|
|
395
|
-
tool_name: string;
|
|
396
392
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
397
|
-
|
|
393
|
+
tool_name: string;
|
|
394
|
+
timestamp: number;
|
|
395
|
+
conversation_id: string;
|
|
396
|
+
turn_id: string;
|
|
397
|
+
phase: "error" | "start" | "update" | "complete";
|
|
398
|
+
payload?: SerializableJsonValue | undefined;
|
|
399
|
+
args?: SerializableJsonValue | undefined;
|
|
398
400
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
399
401
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
400
402
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
401
|
-
visibility?: "
|
|
402
|
-
args?: SerializableJsonValue | undefined;
|
|
403
|
-
payload?: SerializableJsonValue | undefined;
|
|
403
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
404
404
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
405
405
|
execution_id?: string | undefined;
|
|
406
406
|
execution_seq?: number | undefined;
|
|
407
407
|
}, {
|
|
408
|
-
type: "tool_process";
|
|
409
408
|
id: string;
|
|
410
|
-
|
|
411
|
-
timestamp: number;
|
|
409
|
+
type: "tool_process";
|
|
412
410
|
status: "error" | "loading" | "success";
|
|
413
|
-
turn_id: string;
|
|
414
|
-
tool_name: string;
|
|
415
411
|
tool_call_id: string;
|
|
416
|
-
|
|
412
|
+
tool_name: string;
|
|
413
|
+
timestamp: number;
|
|
414
|
+
conversation_id: string;
|
|
415
|
+
turn_id: string;
|
|
416
|
+
phase: "error" | "start" | "update" | "complete";
|
|
417
|
+
payload?: SerializableJsonValue | undefined;
|
|
418
|
+
args?: SerializableJsonValue | undefined;
|
|
417
419
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
418
420
|
run_id?: string | undefined;
|
|
419
421
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
420
|
-
visibility?: "
|
|
421
|
-
args?: SerializableJsonValue | undefined;
|
|
422
|
-
payload?: SerializableJsonValue | undefined;
|
|
422
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
423
423
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
424
424
|
execution_id?: string | undefined;
|
|
425
425
|
execution_seq?: number | undefined;
|
|
@@ -481,19 +481,18 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
481
481
|
label?: string | undefined;
|
|
482
482
|
}>, "many">>;
|
|
483
483
|
}, "strip", z.ZodTypeAny, {
|
|
484
|
-
type: "tool_output";
|
|
485
484
|
id: string;
|
|
486
|
-
|
|
487
|
-
timestamp: number;
|
|
485
|
+
type: "tool_output";
|
|
488
486
|
status: "error" | "success";
|
|
489
|
-
turn_id: string;
|
|
490
|
-
tool_name: string;
|
|
491
487
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
488
|
+
tool_name: string;
|
|
489
|
+
timestamp: number;
|
|
490
|
+
conversation_id: string;
|
|
491
|
+
turn_id: string;
|
|
492
492
|
observation: string;
|
|
493
|
+
data?: SerializableJsonValue | undefined;
|
|
494
|
+
error?: string | undefined;
|
|
493
495
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
494
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
495
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
496
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
497
496
|
attachments?: {
|
|
498
497
|
id: string;
|
|
499
498
|
kind: "image";
|
|
@@ -506,26 +505,26 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
506
505
|
fileName?: string | undefined;
|
|
507
506
|
label?: string | undefined;
|
|
508
507
|
}[] | undefined;
|
|
509
|
-
|
|
510
|
-
|
|
508
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
509
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
510
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
511
511
|
error_code?: string | undefined;
|
|
512
512
|
duration_ms?: number | undefined;
|
|
513
513
|
execution_id?: string | undefined;
|
|
514
514
|
execution_seq?: number | undefined;
|
|
515
515
|
}, {
|
|
516
|
-
type: "tool_output";
|
|
517
516
|
id: string;
|
|
518
|
-
|
|
519
|
-
timestamp: number;
|
|
517
|
+
type: "tool_output";
|
|
520
518
|
status: "error" | "success";
|
|
521
|
-
turn_id: string;
|
|
522
|
-
tool_name: string;
|
|
523
519
|
tool_call_id: string;
|
|
520
|
+
tool_name: string;
|
|
521
|
+
timestamp: number;
|
|
522
|
+
conversation_id: string;
|
|
523
|
+
turn_id: string;
|
|
524
524
|
observation: string;
|
|
525
|
+
data?: SerializableJsonValue | undefined;
|
|
526
|
+
error?: string | undefined;
|
|
525
527
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
526
|
-
run_id?: string | undefined;
|
|
527
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
528
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
529
528
|
attachments?: {
|
|
530
529
|
id: string;
|
|
531
530
|
kind: "image";
|
|
@@ -538,8 +537,9 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
538
537
|
fileName?: string | undefined;
|
|
539
538
|
label?: string | undefined;
|
|
540
539
|
}[] | undefined;
|
|
541
|
-
|
|
542
|
-
|
|
540
|
+
run_id?: string | undefined;
|
|
541
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
542
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
543
543
|
error_code?: string | undefined;
|
|
544
544
|
duration_ms?: number | undefined;
|
|
545
545
|
execution_id?: string | undefined;
|
|
@@ -576,7 +576,7 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
576
576
|
error: z.ZodString;
|
|
577
577
|
error_code: z.ZodString;
|
|
578
578
|
}, "strict", z.ZodTypeAny, {
|
|
579
|
-
status: "
|
|
579
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
580
580
|
error: string;
|
|
581
581
|
error_code: string;
|
|
582
582
|
retry_id: string;
|
|
@@ -588,7 +588,7 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
588
588
|
delay_ms: number;
|
|
589
589
|
next_retry_at?: number | undefined;
|
|
590
590
|
}, {
|
|
591
|
-
status: "
|
|
591
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
592
592
|
error: string;
|
|
593
593
|
error_code: string;
|
|
594
594
|
retry_id: string;
|
|
@@ -635,12 +635,12 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
635
635
|
tool_name: z.ZodString;
|
|
636
636
|
args: z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
637
637
|
}, "strict", z.ZodTypeAny, {
|
|
638
|
-
tool_name: string;
|
|
639
638
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
639
|
+
tool_name: string;
|
|
640
640
|
args: Record<string, SerializableJsonValue>;
|
|
641
641
|
}, {
|
|
642
|
-
tool_name: string;
|
|
643
642
|
tool_call_id: string;
|
|
643
|
+
tool_name: string;
|
|
644
644
|
args: Record<string, SerializableJsonValue>;
|
|
645
645
|
}>, "many">>;
|
|
646
646
|
output: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
@@ -686,21 +686,27 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
686
686
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
687
687
|
type: z.ZodLiteral<"subrun_trace">;
|
|
688
688
|
}, "strip", z.ZodTypeAny, {
|
|
689
|
-
type: "subrun_trace";
|
|
690
689
|
id: string;
|
|
691
|
-
|
|
690
|
+
type: "subrun_trace";
|
|
691
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
692
692
|
timestamp: number;
|
|
693
|
+
conversation_id: string;
|
|
693
694
|
turn_id: string;
|
|
694
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
695
695
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
696
696
|
subrun_id: string;
|
|
697
697
|
source_event_id: string;
|
|
698
698
|
status?: "error" | "loading" | "success" | undefined;
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
699
|
+
tool_calls?: {
|
|
700
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
701
|
+
tool_name: string;
|
|
702
|
+
args: Record<string, SerializableJsonValue>;
|
|
703
|
+
}[] | undefined;
|
|
704
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
705
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
706
|
+
tool_name?: string | undefined;
|
|
707
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
703
708
|
content?: string | undefined;
|
|
709
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
704
710
|
attachments?: {
|
|
705
711
|
id: string;
|
|
706
712
|
kind: "image";
|
|
@@ -713,22 +719,8 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
713
719
|
fileName?: string | undefined;
|
|
714
720
|
label?: string | undefined;
|
|
715
721
|
}[] | undefined;
|
|
716
|
-
delta?: string | undefined;
|
|
717
|
-
tool_name?: string | undefined;
|
|
718
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
719
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
720
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
721
|
-
tool_calls?: {
|
|
722
|
-
tool_name: string;
|
|
723
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
724
|
-
args: Record<string, SerializableJsonValue>;
|
|
725
|
-
}[] | undefined;
|
|
726
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
727
|
-
duration_ms?: number | undefined;
|
|
728
|
-
subrun_parent_id?: string | undefined;
|
|
729
|
-
output?: SerializableJsonValue | undefined;
|
|
730
722
|
retry?: {
|
|
731
|
-
status: "
|
|
723
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
732
724
|
error: string;
|
|
733
725
|
error_code: string;
|
|
734
726
|
retry_id: string;
|
|
@@ -740,6 +732,15 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
740
732
|
delay_ms: number;
|
|
741
733
|
next_retry_at?: number | undefined;
|
|
742
734
|
} | undefined;
|
|
735
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
736
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
737
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
738
|
+
delta?: string | undefined;
|
|
739
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
740
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
741
|
+
duration_ms?: number | undefined;
|
|
742
|
+
subrun_parent_id?: string | undefined;
|
|
743
|
+
output?: SerializableJsonValue | undefined;
|
|
743
744
|
failure?: {
|
|
744
745
|
error: string;
|
|
745
746
|
error_code?: string | undefined;
|
|
@@ -750,7 +751,6 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
750
751
|
answer_id?: string | undefined;
|
|
751
752
|
seq?: number | undefined;
|
|
752
753
|
is_last?: boolean | undefined;
|
|
753
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
754
754
|
original_message_count?: number | undefined;
|
|
755
755
|
compression_ratio?: number | undefined;
|
|
756
756
|
included_old_summary?: boolean | undefined;
|
|
@@ -758,21 +758,27 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
758
758
|
execution_id?: string | undefined;
|
|
759
759
|
execution_seq?: number | undefined;
|
|
760
760
|
}, {
|
|
761
|
-
type: "subrun_trace";
|
|
762
761
|
id: string;
|
|
763
|
-
|
|
762
|
+
type: "subrun_trace";
|
|
763
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
764
764
|
timestamp: number;
|
|
765
|
+
conversation_id: string;
|
|
765
766
|
turn_id: string;
|
|
766
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
767
767
|
parent_tool_call_id: string;
|
|
768
768
|
subrun_id: string;
|
|
769
769
|
source_event_id: string;
|
|
770
770
|
status?: "error" | "loading" | "success" | undefined;
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
771
|
+
tool_calls?: {
|
|
772
|
+
tool_call_id: string;
|
|
773
|
+
tool_name: string;
|
|
774
|
+
args: Record<string, SerializableJsonValue>;
|
|
775
|
+
}[] | undefined;
|
|
776
|
+
tool_call_id?: string | undefined;
|
|
777
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
778
|
+
tool_name?: string | undefined;
|
|
779
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
775
780
|
content?: string | undefined;
|
|
781
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
776
782
|
attachments?: {
|
|
777
783
|
id: string;
|
|
778
784
|
kind: "image";
|
|
@@ -785,22 +791,8 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
785
791
|
fileName?: string | undefined;
|
|
786
792
|
label?: string | undefined;
|
|
787
793
|
}[] | undefined;
|
|
788
|
-
delta?: string | undefined;
|
|
789
|
-
tool_name?: string | undefined;
|
|
790
|
-
tool_call_id?: string | undefined;
|
|
791
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
792
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
793
|
-
tool_calls?: {
|
|
794
|
-
tool_name: string;
|
|
795
|
-
tool_call_id: string;
|
|
796
|
-
args: Record<string, SerializableJsonValue>;
|
|
797
|
-
}[] | undefined;
|
|
798
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
799
|
-
duration_ms?: number | undefined;
|
|
800
|
-
subrun_parent_id?: string | undefined;
|
|
801
|
-
output?: SerializableJsonValue | undefined;
|
|
802
794
|
retry?: {
|
|
803
|
-
status: "
|
|
795
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
804
796
|
error: string;
|
|
805
797
|
error_code: string;
|
|
806
798
|
retry_id: string;
|
|
@@ -812,6 +804,15 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
812
804
|
delay_ms: number;
|
|
813
805
|
next_retry_at?: number | undefined;
|
|
814
806
|
} | undefined;
|
|
807
|
+
run_id?: string | undefined;
|
|
808
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
809
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
810
|
+
delta?: string | undefined;
|
|
811
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
812
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
813
|
+
duration_ms?: number | undefined;
|
|
814
|
+
subrun_parent_id?: string | undefined;
|
|
815
|
+
output?: SerializableJsonValue | undefined;
|
|
815
816
|
failure?: {
|
|
816
817
|
error: string;
|
|
817
818
|
error_code?: string | undefined;
|
|
@@ -822,7 +823,6 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
822
823
|
answer_id?: string | undefined;
|
|
823
824
|
seq?: number | undefined;
|
|
824
825
|
is_last?: boolean | undefined;
|
|
825
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
826
826
|
original_message_count?: number | undefined;
|
|
827
827
|
compression_ratio?: number | undefined;
|
|
828
828
|
included_old_summary?: boolean | undefined;
|
|
@@ -853,40 +853,40 @@ declare const SSERequiresUserInteractionEvent: z.ZodObject<{
|
|
|
853
853
|
resume_token: z.ZodEffects<z.ZodString, string, string>;
|
|
854
854
|
interaction_status: z.ZodLiteral<"pending">;
|
|
855
855
|
}, "strip", z.ZodTypeAny, {
|
|
856
|
-
type: "requires_user_interaction";
|
|
857
856
|
id: string;
|
|
858
|
-
|
|
857
|
+
type: "requires_user_interaction";
|
|
858
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
859
859
|
timestamp: number;
|
|
860
|
-
turn_id: string;
|
|
861
860
|
run_id: string & z.BRAND<"RunId">;
|
|
862
|
-
|
|
861
|
+
conversation_id: string;
|
|
862
|
+
turn_id: string;
|
|
863
863
|
interaction_id: string;
|
|
864
864
|
checkpoint_revision: number;
|
|
865
865
|
resume_token: string;
|
|
866
866
|
interaction_status: "pending";
|
|
867
867
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
868
868
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
869
|
-
visibility?: "
|
|
869
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
870
870
|
form?: SerializableJsonValue | undefined;
|
|
871
871
|
interaction_type?: string | undefined;
|
|
872
872
|
prompt?: string | undefined;
|
|
873
873
|
execution_id?: string | undefined;
|
|
874
874
|
execution_seq?: number | undefined;
|
|
875
875
|
}, {
|
|
876
|
-
type: "requires_user_interaction";
|
|
877
876
|
id: string;
|
|
878
|
-
|
|
877
|
+
type: "requires_user_interaction";
|
|
878
|
+
tool_call_id: string;
|
|
879
879
|
timestamp: number;
|
|
880
|
-
turn_id: string;
|
|
881
880
|
run_id: string;
|
|
882
|
-
|
|
881
|
+
conversation_id: string;
|
|
882
|
+
turn_id: string;
|
|
883
883
|
interaction_id: string;
|
|
884
884
|
checkpoint_revision: number;
|
|
885
885
|
resume_token: string;
|
|
886
886
|
interaction_status: "pending";
|
|
887
887
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
888
888
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
889
|
-
visibility?: "
|
|
889
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
890
890
|
form?: SerializableJsonValue | undefined;
|
|
891
891
|
interaction_type?: string | undefined;
|
|
892
892
|
prompt?: string | undefined;
|
|
@@ -919,13 +919,13 @@ declare const SSELlmRetryEvent: z.ZodObject<{
|
|
|
919
919
|
error_code: z.ZodString;
|
|
920
920
|
type: z.ZodLiteral<"llm_retry">;
|
|
921
921
|
}, "strip", z.ZodTypeAny, {
|
|
922
|
-
type: "llm_retry";
|
|
923
922
|
id: string;
|
|
924
|
-
|
|
923
|
+
type: "llm_retry";
|
|
924
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
925
|
+
error: string;
|
|
925
926
|
timestamp: number;
|
|
926
|
-
|
|
927
|
+
conversation_id: string;
|
|
927
928
|
turn_id: string;
|
|
928
|
-
error: string;
|
|
929
929
|
error_code: string;
|
|
930
930
|
retry_id: string;
|
|
931
931
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -937,18 +937,18 @@ declare const SSELlmRetryEvent: z.ZodObject<{
|
|
|
937
937
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
938
938
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
939
939
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
940
|
-
visibility?: "
|
|
940
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
941
941
|
next_retry_at?: number | undefined;
|
|
942
942
|
execution_id?: string | undefined;
|
|
943
943
|
execution_seq?: number | undefined;
|
|
944
944
|
}, {
|
|
945
|
-
type: "llm_retry";
|
|
946
945
|
id: string;
|
|
947
|
-
|
|
946
|
+
type: "llm_retry";
|
|
947
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
948
|
+
error: string;
|
|
948
949
|
timestamp: number;
|
|
949
|
-
|
|
950
|
+
conversation_id: string;
|
|
950
951
|
turn_id: string;
|
|
951
|
-
error: string;
|
|
952
952
|
error_code: string;
|
|
953
953
|
retry_id: string;
|
|
954
954
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -960,7 +960,7 @@ declare const SSELlmRetryEvent: z.ZodObject<{
|
|
|
960
960
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
961
961
|
run_id?: string | undefined;
|
|
962
962
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
963
|
-
visibility?: "
|
|
963
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
964
964
|
next_retry_at?: number | undefined;
|
|
965
965
|
execution_id?: string | undefined;
|
|
966
966
|
execution_seq?: number | undefined;
|
|
@@ -985,16 +985,16 @@ declare const SSEErrorEvent: z.ZodObject<{
|
|
|
985
985
|
details: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
986
986
|
type: z.ZodLiteral<"error">;
|
|
987
987
|
}, "strip", z.ZodTypeAny, {
|
|
988
|
-
type: "error";
|
|
989
988
|
id: string;
|
|
990
|
-
|
|
989
|
+
type: "error";
|
|
990
|
+
error: string;
|
|
991
991
|
timestamp: number;
|
|
992
|
+
conversation_id: string;
|
|
992
993
|
turn_id: string;
|
|
993
|
-
error: string;
|
|
994
994
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
995
995
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
996
996
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
997
|
-
visibility?: "
|
|
997
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
998
998
|
error_code?: string | undefined;
|
|
999
999
|
retry_id?: string | undefined;
|
|
1000
1000
|
retryable?: boolean | undefined;
|
|
@@ -1002,16 +1002,16 @@ declare const SSEErrorEvent: z.ZodObject<{
|
|
|
1002
1002
|
execution_id?: string | undefined;
|
|
1003
1003
|
execution_seq?: number | undefined;
|
|
1004
1004
|
}, {
|
|
1005
|
-
type: "error";
|
|
1006
1005
|
id: string;
|
|
1007
|
-
|
|
1006
|
+
type: "error";
|
|
1007
|
+
error: string;
|
|
1008
1008
|
timestamp: number;
|
|
1009
|
+
conversation_id: string;
|
|
1009
1010
|
turn_id: string;
|
|
1010
|
-
error: string;
|
|
1011
1011
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1012
1012
|
run_id?: string | undefined;
|
|
1013
1013
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1014
|
-
visibility?: "
|
|
1014
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1015
1015
|
error_code?: string | undefined;
|
|
1016
1016
|
retry_id?: string | undefined;
|
|
1017
1017
|
retryable?: boolean | undefined;
|
|
@@ -1043,33 +1043,33 @@ declare const SSETransportErrorEvent: z.ZodObject<{
|
|
|
1043
1043
|
error_code: z.ZodOptional<z.ZodString>;
|
|
1044
1044
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1045
1045
|
}, "strip", z.ZodTypeAny, {
|
|
1046
|
-
type: "transport_error";
|
|
1047
1046
|
id: string;
|
|
1048
|
-
|
|
1047
|
+
type: "transport_error";
|
|
1048
|
+
error: string;
|
|
1049
1049
|
timestamp: number;
|
|
1050
|
+
conversation_id: string;
|
|
1050
1051
|
turn_id: string;
|
|
1051
|
-
error: string;
|
|
1052
1052
|
execution_id: string;
|
|
1053
1053
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1054
1054
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1055
1055
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1056
|
-
visibility?: "
|
|
1056
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1057
1057
|
error_code?: string | undefined;
|
|
1058
1058
|
retryable?: boolean | undefined;
|
|
1059
1059
|
details?: SerializableJsonValue | undefined;
|
|
1060
1060
|
execution_seq?: number | undefined;
|
|
1061
1061
|
}, {
|
|
1062
|
-
type: "transport_error";
|
|
1063
1062
|
id: string;
|
|
1064
|
-
|
|
1063
|
+
type: "transport_error";
|
|
1064
|
+
error: string;
|
|
1065
1065
|
timestamp: number;
|
|
1066
|
+
conversation_id: string;
|
|
1066
1067
|
turn_id: string;
|
|
1067
|
-
error: string;
|
|
1068
1068
|
execution_id: string;
|
|
1069
1069
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1070
1070
|
run_id?: string | undefined;
|
|
1071
1071
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1072
|
-
visibility?: "
|
|
1072
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1073
1073
|
error_code?: string | undefined;
|
|
1074
1074
|
retryable?: boolean | undefined;
|
|
1075
1075
|
details?: SerializableJsonValue | undefined;
|
|
@@ -1185,10 +1185,10 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1185
1185
|
served_model_id?: string | undefined;
|
|
1186
1186
|
}>;
|
|
1187
1187
|
}, "strip", z.ZodTypeAny, {
|
|
1188
|
-
type: "context_usage_snapshot";
|
|
1189
1188
|
id: string;
|
|
1190
|
-
|
|
1189
|
+
type: "context_usage_snapshot";
|
|
1191
1190
|
timestamp: number;
|
|
1191
|
+
conversation_id: string;
|
|
1192
1192
|
turn_id: string;
|
|
1193
1193
|
context_usage: {
|
|
1194
1194
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -1211,15 +1211,15 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1211
1211
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1212
1212
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1213
1213
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1214
|
-
visibility?: "
|
|
1214
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1215
1215
|
user_message_id?: string | undefined;
|
|
1216
1216
|
execution_id?: string | undefined;
|
|
1217
1217
|
execution_seq?: number | undefined;
|
|
1218
1218
|
}, {
|
|
1219
|
-
type: "context_usage_snapshot";
|
|
1220
1219
|
id: string;
|
|
1221
|
-
|
|
1220
|
+
type: "context_usage_snapshot";
|
|
1222
1221
|
timestamp: number;
|
|
1222
|
+
conversation_id: string;
|
|
1223
1223
|
turn_id: string;
|
|
1224
1224
|
context_usage: {
|
|
1225
1225
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -1242,7 +1242,7 @@ declare const SSEContextUsageSnapshotEvent: z.ZodObject<{
|
|
|
1242
1242
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1243
1243
|
run_id?: string | undefined;
|
|
1244
1244
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1245
|
-
visibility?: "
|
|
1245
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1246
1246
|
user_message_id?: string | undefined;
|
|
1247
1247
|
execution_id?: string | undefined;
|
|
1248
1248
|
execution_seq?: number | undefined;
|
|
@@ -1359,18 +1359,18 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1359
1359
|
served_model_id?: string | undefined;
|
|
1360
1360
|
}>>;
|
|
1361
1361
|
}, "strip", z.ZodTypeAny, {
|
|
1362
|
-
type: "run_execution_metrics";
|
|
1363
1362
|
id: string;
|
|
1364
|
-
|
|
1363
|
+
type: "run_execution_metrics";
|
|
1365
1364
|
timestamp: number;
|
|
1365
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
1366
|
+
conversation_id: string;
|
|
1366
1367
|
turn_id: string;
|
|
1367
1368
|
duration_ms: number;
|
|
1368
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
1369
1369
|
execution_id: string;
|
|
1370
1370
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1371
1371
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1372
1372
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1373
|
-
visibility?: "
|
|
1373
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1374
1374
|
user_message_id?: string | undefined;
|
|
1375
1375
|
context_usage?: {
|
|
1376
1376
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -1392,18 +1392,18 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1392
1392
|
} | undefined;
|
|
1393
1393
|
execution_seq?: number | undefined;
|
|
1394
1394
|
}, {
|
|
1395
|
-
type: "run_execution_metrics";
|
|
1396
1395
|
id: string;
|
|
1397
|
-
|
|
1396
|
+
type: "run_execution_metrics";
|
|
1398
1397
|
timestamp: number;
|
|
1398
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
1399
|
+
conversation_id: string;
|
|
1399
1400
|
turn_id: string;
|
|
1400
1401
|
duration_ms: number;
|
|
1401
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
1402
1402
|
execution_id: string;
|
|
1403
1403
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1404
1404
|
run_id?: string | undefined;
|
|
1405
1405
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1406
|
-
visibility?: "
|
|
1406
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1407
1407
|
user_message_id?: string | undefined;
|
|
1408
1408
|
context_usage?: {
|
|
1409
1409
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -1442,31 +1442,31 @@ declare const SSERunStatusEvent: z.ZodObject<{
|
|
|
1442
1442
|
status: z.ZodEnum<["pending", "running", "awaiting_user", "paused", "completed", "failed", "cancelled"]>;
|
|
1443
1443
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
1444
1444
|
}, "strip", z.ZodTypeAny, {
|
|
1445
|
-
type: "run_status";
|
|
1446
1445
|
id: string;
|
|
1447
|
-
|
|
1446
|
+
type: "run_status";
|
|
1447
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
1448
1448
|
timestamp: number;
|
|
1449
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
1450
|
-
turn_id: string;
|
|
1451
1449
|
run_id: string & z.BRAND<"RunId">;
|
|
1450
|
+
conversation_id: string;
|
|
1451
|
+
turn_id: string;
|
|
1452
1452
|
execution_id: string;
|
|
1453
1453
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1454
1454
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1455
|
-
visibility?: "
|
|
1455
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1456
1456
|
execution_seq?: number | undefined;
|
|
1457
1457
|
reason_message?: string | undefined;
|
|
1458
1458
|
}, {
|
|
1459
|
-
type: "run_status";
|
|
1460
1459
|
id: string;
|
|
1461
|
-
|
|
1460
|
+
type: "run_status";
|
|
1461
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
1462
1462
|
timestamp: number;
|
|
1463
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
1464
|
-
turn_id: string;
|
|
1465
1463
|
run_id: string;
|
|
1464
|
+
conversation_id: string;
|
|
1465
|
+
turn_id: string;
|
|
1466
1466
|
execution_id: string;
|
|
1467
1467
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1468
1468
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1469
|
-
visibility?: "
|
|
1469
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1470
1470
|
execution_seq?: number | undefined;
|
|
1471
1471
|
reason_message?: string | undefined;
|
|
1472
1472
|
}>;
|
|
@@ -1487,31 +1487,31 @@ declare const SSETransportEndEvent: z.ZodObject<{
|
|
|
1487
1487
|
reason: z.ZodOptional<z.ZodEnum<["complete", "error", "interrupted", "timeout"]>>;
|
|
1488
1488
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
1489
1489
|
}, "strip", z.ZodTypeAny, {
|
|
1490
|
-
type: "transport_end";
|
|
1491
1490
|
id: string;
|
|
1492
|
-
|
|
1491
|
+
type: "transport_end";
|
|
1493
1492
|
timestamp: number;
|
|
1493
|
+
conversation_id: string;
|
|
1494
1494
|
turn_id: string;
|
|
1495
1495
|
execution_id: string;
|
|
1496
1496
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1497
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1497
1498
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1498
1499
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1499
|
-
visibility?: "
|
|
1500
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
1500
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1501
1501
|
execution_seq?: number | undefined;
|
|
1502
1502
|
reason_message?: string | undefined;
|
|
1503
1503
|
}, {
|
|
1504
|
-
type: "transport_end";
|
|
1505
1504
|
id: string;
|
|
1506
|
-
|
|
1505
|
+
type: "transport_end";
|
|
1507
1506
|
timestamp: number;
|
|
1507
|
+
conversation_id: string;
|
|
1508
1508
|
turn_id: string;
|
|
1509
1509
|
execution_id: string;
|
|
1510
1510
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1511
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1511
1512
|
run_id?: string | undefined;
|
|
1512
1513
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1513
|
-
visibility?: "
|
|
1514
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
1514
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1515
1515
|
execution_seq?: number | undefined;
|
|
1516
1516
|
reason_message?: string | undefined;
|
|
1517
1517
|
}>;
|
|
@@ -1538,12 +1538,12 @@ declare const SSEHistorySummaryEvent: z.ZodObject<{
|
|
|
1538
1538
|
compression_ratio: z.ZodOptional<z.ZodNumber>;
|
|
1539
1539
|
included_old_summary: z.ZodOptional<z.ZodBoolean>;
|
|
1540
1540
|
}, "strip", z.ZodTypeAny, {
|
|
1541
|
-
type: "history_summary";
|
|
1542
1541
|
id: string;
|
|
1543
|
-
|
|
1542
|
+
type: "history_summary";
|
|
1543
|
+
content: string;
|
|
1544
1544
|
timestamp: number;
|
|
1545
|
+
conversation_id: string;
|
|
1545
1546
|
turn_id: string;
|
|
1546
|
-
content: string;
|
|
1547
1547
|
original_message_count: number;
|
|
1548
1548
|
replaced_message_ids: string[];
|
|
1549
1549
|
summary_seq: number;
|
|
@@ -1551,18 +1551,18 @@ declare const SSEHistorySummaryEvent: z.ZodObject<{
|
|
|
1551
1551
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1552
1552
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1553
1553
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1554
|
-
visibility?: "
|
|
1554
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1555
1555
|
compression_ratio?: number | undefined;
|
|
1556
1556
|
included_old_summary?: boolean | undefined;
|
|
1557
1557
|
execution_id?: string | undefined;
|
|
1558
1558
|
execution_seq?: number | undefined;
|
|
1559
1559
|
}, {
|
|
1560
|
-
type: "history_summary";
|
|
1561
1560
|
id: string;
|
|
1562
|
-
|
|
1561
|
+
type: "history_summary";
|
|
1562
|
+
content: string;
|
|
1563
1563
|
timestamp: number;
|
|
1564
|
+
conversation_id: string;
|
|
1564
1565
|
turn_id: string;
|
|
1565
|
-
content: string;
|
|
1566
1566
|
original_message_count: number;
|
|
1567
1567
|
replaced_message_ids: string[];
|
|
1568
1568
|
summary_seq: number;
|
|
@@ -1570,7 +1570,7 @@ declare const SSEHistorySummaryEvent: z.ZodObject<{
|
|
|
1570
1570
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1571
1571
|
run_id?: string | undefined;
|
|
1572
1572
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1573
|
-
visibility?: "
|
|
1573
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1574
1574
|
compression_ratio?: number | undefined;
|
|
1575
1575
|
included_old_summary?: boolean | undefined;
|
|
1576
1576
|
execution_id?: string | undefined;
|
|
@@ -1592,30 +1592,30 @@ declare const SSESummarizationStartEvent: z.ZodObject<{
|
|
|
1592
1592
|
execution_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1593
1593
|
summarization_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1594
1594
|
}, "strip", z.ZodTypeAny, {
|
|
1595
|
-
type: "summarization_start";
|
|
1596
1595
|
id: string;
|
|
1597
|
-
|
|
1596
|
+
type: "summarization_start";
|
|
1598
1597
|
timestamp: number;
|
|
1599
|
-
turn_id: string;
|
|
1600
1598
|
run_id: string & z.BRAND<"RunId">;
|
|
1599
|
+
conversation_id: string;
|
|
1600
|
+
turn_id: string;
|
|
1601
1601
|
execution_id: string;
|
|
1602
1602
|
summarization_id: string;
|
|
1603
1603
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1604
1604
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1605
|
-
visibility?: "
|
|
1605
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1606
1606
|
execution_seq?: number | undefined;
|
|
1607
1607
|
}, {
|
|
1608
|
-
type: "summarization_start";
|
|
1609
1608
|
id: string;
|
|
1610
|
-
|
|
1609
|
+
type: "summarization_start";
|
|
1611
1610
|
timestamp: number;
|
|
1612
|
-
turn_id: string;
|
|
1613
1611
|
run_id: string;
|
|
1612
|
+
conversation_id: string;
|
|
1613
|
+
turn_id: string;
|
|
1614
1614
|
execution_id: string;
|
|
1615
1615
|
summarization_id: string;
|
|
1616
1616
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1617
1617
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1618
|
-
visibility?: "
|
|
1618
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1619
1619
|
execution_seq?: number | undefined;
|
|
1620
1620
|
}>;
|
|
1621
1621
|
type SSESummarizationStartEvent = z.infer<typeof SSESummarizationStartEvent>;
|
|
@@ -1638,12 +1638,12 @@ declare const SSESummarizationEndEvent: z.ZodObject<{
|
|
|
1638
1638
|
compressed_message_count: z.ZodNumber;
|
|
1639
1639
|
compression_ratio: z.ZodOptional<z.ZodNumber>;
|
|
1640
1640
|
}, "strip", z.ZodTypeAny, {
|
|
1641
|
-
type: "summarization_end";
|
|
1642
1641
|
id: string;
|
|
1643
|
-
|
|
1642
|
+
type: "summarization_end";
|
|
1644
1643
|
timestamp: number;
|
|
1645
|
-
turn_id: string;
|
|
1646
1644
|
run_id: string & z.BRAND<"RunId">;
|
|
1645
|
+
conversation_id: string;
|
|
1646
|
+
turn_id: string;
|
|
1647
1647
|
original_message_count: number;
|
|
1648
1648
|
execution_id: string;
|
|
1649
1649
|
summary_id: string;
|
|
@@ -1651,16 +1651,16 @@ declare const SSESummarizationEndEvent: z.ZodObject<{
|
|
|
1651
1651
|
compressed_message_count: number;
|
|
1652
1652
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1653
1653
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1654
|
-
visibility?: "
|
|
1654
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1655
1655
|
compression_ratio?: number | undefined;
|
|
1656
1656
|
execution_seq?: number | undefined;
|
|
1657
1657
|
}, {
|
|
1658
|
-
type: "summarization_end";
|
|
1659
1658
|
id: string;
|
|
1660
|
-
|
|
1659
|
+
type: "summarization_end";
|
|
1661
1660
|
timestamp: number;
|
|
1662
|
-
turn_id: string;
|
|
1663
1661
|
run_id: string;
|
|
1662
|
+
conversation_id: string;
|
|
1663
|
+
turn_id: string;
|
|
1664
1664
|
original_message_count: number;
|
|
1665
1665
|
execution_id: string;
|
|
1666
1666
|
summary_id: string;
|
|
@@ -1668,7 +1668,7 @@ declare const SSESummarizationEndEvent: z.ZodObject<{
|
|
|
1668
1668
|
compressed_message_count: number;
|
|
1669
1669
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1670
1670
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1671
|
-
visibility?: "
|
|
1671
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1672
1672
|
compression_ratio?: number | undefined;
|
|
1673
1673
|
execution_seq?: number | undefined;
|
|
1674
1674
|
}>;
|
|
@@ -1689,32 +1689,32 @@ declare const SSESummarizationErrorEvent: z.ZodObject<{
|
|
|
1689
1689
|
summarization_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1690
1690
|
error: z.ZodString;
|
|
1691
1691
|
}, "strip", z.ZodTypeAny, {
|
|
1692
|
-
type: "summarization_error";
|
|
1693
1692
|
id: string;
|
|
1694
|
-
|
|
1693
|
+
type: "summarization_error";
|
|
1694
|
+
error: string;
|
|
1695
1695
|
timestamp: number;
|
|
1696
|
-
turn_id: string;
|
|
1697
1696
|
run_id: string & z.BRAND<"RunId">;
|
|
1698
|
-
|
|
1697
|
+
conversation_id: string;
|
|
1698
|
+
turn_id: string;
|
|
1699
1699
|
execution_id: string;
|
|
1700
1700
|
summarization_id: string;
|
|
1701
1701
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1702
1702
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1703
|
-
visibility?: "
|
|
1703
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1704
1704
|
execution_seq?: number | undefined;
|
|
1705
1705
|
}, {
|
|
1706
|
-
type: "summarization_error";
|
|
1707
1706
|
id: string;
|
|
1708
|
-
|
|
1707
|
+
type: "summarization_error";
|
|
1708
|
+
error: string;
|
|
1709
1709
|
timestamp: number;
|
|
1710
|
-
turn_id: string;
|
|
1711
1710
|
run_id: string;
|
|
1712
|
-
|
|
1711
|
+
conversation_id: string;
|
|
1712
|
+
turn_id: string;
|
|
1713
1713
|
execution_id: string;
|
|
1714
1714
|
summarization_id: string;
|
|
1715
1715
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1716
1716
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1717
|
-
visibility?: "
|
|
1717
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1718
1718
|
execution_seq?: number | undefined;
|
|
1719
1719
|
}>;
|
|
1720
1720
|
type SSESummarizationErrorEvent = z.infer<typeof SSESummarizationErrorEvent>;
|
|
@@ -1736,32 +1736,32 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1736
1736
|
content: z.ZodOptional<z.ZodString>;
|
|
1737
1737
|
is_complete: z.ZodDefault<z.ZodBoolean>;
|
|
1738
1738
|
}, "strip", z.ZodTypeAny, {
|
|
1739
|
-
type: "thought";
|
|
1740
1739
|
id: string;
|
|
1741
|
-
|
|
1740
|
+
type: "thought";
|
|
1742
1741
|
timestamp: number;
|
|
1742
|
+
conversation_id: string;
|
|
1743
1743
|
turn_id: string;
|
|
1744
1744
|
is_complete: boolean;
|
|
1745
|
+
content?: string | undefined;
|
|
1745
1746
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1746
1747
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1747
1748
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1748
|
-
visibility?: "
|
|
1749
|
-
content?: string | undefined;
|
|
1749
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1750
1750
|
thought_message_id?: string | undefined;
|
|
1751
1751
|
delta?: string | undefined;
|
|
1752
1752
|
execution_id?: string | undefined;
|
|
1753
1753
|
execution_seq?: number | undefined;
|
|
1754
1754
|
}, {
|
|
1755
|
-
type: "thought";
|
|
1756
1755
|
id: string;
|
|
1757
|
-
|
|
1756
|
+
type: "thought";
|
|
1758
1757
|
timestamp: number;
|
|
1758
|
+
conversation_id: string;
|
|
1759
1759
|
turn_id: string;
|
|
1760
|
+
content?: string | undefined;
|
|
1760
1761
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1761
1762
|
run_id?: string | undefined;
|
|
1762
1763
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1763
|
-
visibility?: "
|
|
1764
|
-
content?: string | undefined;
|
|
1764
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1765
1765
|
thought_message_id?: string | undefined;
|
|
1766
1766
|
delta?: string | undefined;
|
|
1767
1767
|
is_complete?: boolean | undefined;
|
|
@@ -1785,10 +1785,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1785
1785
|
chunk: z.ZodString;
|
|
1786
1786
|
is_last: z.ZodOptional<z.ZodBoolean>;
|
|
1787
1787
|
}, "strip", z.ZodTypeAny, {
|
|
1788
|
-
type: "final_answer_chunk";
|
|
1789
1788
|
id: string;
|
|
1790
|
-
|
|
1789
|
+
type: "final_answer_chunk";
|
|
1791
1790
|
timestamp: number;
|
|
1791
|
+
conversation_id: string;
|
|
1792
1792
|
turn_id: string;
|
|
1793
1793
|
answer_id: string;
|
|
1794
1794
|
seq: number;
|
|
@@ -1796,15 +1796,15 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1796
1796
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1797
1797
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1798
1798
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1799
|
-
visibility?: "
|
|
1799
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1800
1800
|
is_last?: boolean | undefined;
|
|
1801
1801
|
execution_id?: string | undefined;
|
|
1802
1802
|
execution_seq?: number | undefined;
|
|
1803
1803
|
}, {
|
|
1804
|
-
type: "final_answer_chunk";
|
|
1805
1804
|
id: string;
|
|
1806
|
-
|
|
1805
|
+
type: "final_answer_chunk";
|
|
1807
1806
|
timestamp: number;
|
|
1807
|
+
conversation_id: string;
|
|
1808
1808
|
turn_id: string;
|
|
1809
1809
|
answer_id: string;
|
|
1810
1810
|
seq: number;
|
|
@@ -1812,7 +1812,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1812
1812
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1813
1813
|
run_id?: string | undefined;
|
|
1814
1814
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1815
|
-
visibility?: "
|
|
1815
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1816
1816
|
is_last?: boolean | undefined;
|
|
1817
1817
|
execution_id?: string | undefined;
|
|
1818
1818
|
execution_seq?: number | undefined;
|
|
@@ -1832,29 +1832,29 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1832
1832
|
answer_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1833
1833
|
thought_message_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1834
1834
|
}, "strip", z.ZodTypeAny, {
|
|
1835
|
-
type: "final_answer_reset";
|
|
1836
1835
|
id: string;
|
|
1837
|
-
|
|
1836
|
+
type: "final_answer_reset";
|
|
1838
1837
|
timestamp: number;
|
|
1838
|
+
conversation_id: string;
|
|
1839
1839
|
turn_id: string;
|
|
1840
1840
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1841
1841
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1842
1842
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1843
|
-
visibility?: "
|
|
1843
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1844
1844
|
answer_id?: string | undefined;
|
|
1845
1845
|
thought_message_ids?: string[] | undefined;
|
|
1846
1846
|
execution_id?: string | undefined;
|
|
1847
1847
|
execution_seq?: number | undefined;
|
|
1848
1848
|
}, {
|
|
1849
|
-
type: "final_answer_reset";
|
|
1850
1849
|
id: string;
|
|
1851
|
-
|
|
1850
|
+
type: "final_answer_reset";
|
|
1852
1851
|
timestamp: number;
|
|
1852
|
+
conversation_id: string;
|
|
1853
1853
|
turn_id: string;
|
|
1854
1854
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1855
1855
|
run_id?: string | undefined;
|
|
1856
1856
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1857
|
-
visibility?: "
|
|
1857
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1858
1858
|
answer_id?: string | undefined;
|
|
1859
1859
|
thought_message_ids?: string[] | undefined;
|
|
1860
1860
|
execution_id?: string | undefined;
|
|
@@ -1877,34 +1877,34 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1877
1877
|
completion_reason: z.ZodEnum<["terminal", "tool_call", "interrupted"]>;
|
|
1878
1878
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
1879
1879
|
}, "strip", z.ZodTypeAny, {
|
|
1880
|
-
type: "final_answer";
|
|
1881
1880
|
id: string;
|
|
1882
|
-
|
|
1881
|
+
type: "final_answer";
|
|
1882
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1883
|
+
content: string;
|
|
1883
1884
|
timestamp: number;
|
|
1885
|
+
conversation_id: string;
|
|
1884
1886
|
turn_id: string;
|
|
1885
|
-
content: string;
|
|
1886
1887
|
answer_id: string;
|
|
1887
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1888
1888
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1889
1889
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1890
1890
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1891
|
-
visibility?: "
|
|
1891
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1892
1892
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1893
1893
|
execution_id?: string | undefined;
|
|
1894
1894
|
execution_seq?: number | undefined;
|
|
1895
1895
|
}, {
|
|
1896
|
-
type: "final_answer";
|
|
1897
1896
|
id: string;
|
|
1898
|
-
|
|
1897
|
+
type: "final_answer";
|
|
1898
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1899
|
+
content: string;
|
|
1899
1900
|
timestamp: number;
|
|
1901
|
+
conversation_id: string;
|
|
1900
1902
|
turn_id: string;
|
|
1901
|
-
content: string;
|
|
1902
1903
|
answer_id: string;
|
|
1903
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1904
1904
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1905
1905
|
run_id?: string | undefined;
|
|
1906
1906
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1907
|
-
visibility?: "
|
|
1907
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1908
1908
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1909
1909
|
execution_id?: string | undefined;
|
|
1910
1910
|
execution_seq?: number | undefined;
|
|
@@ -1925,35 +1925,35 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1925
1925
|
text: z.ZodString;
|
|
1926
1926
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
1927
1927
|
}, "strip", z.ZodTypeAny, {
|
|
1928
|
-
type: "markdown_chunk";
|
|
1929
1928
|
id: string;
|
|
1930
|
-
|
|
1929
|
+
type: "markdown_chunk";
|
|
1930
|
+
text: string;
|
|
1931
1931
|
timestamp: number;
|
|
1932
|
+
conversation_id: string;
|
|
1932
1933
|
turn_id: string;
|
|
1933
|
-
|
|
1934
|
-
content_type: "code" | "image" | "text" | "table";
|
|
1934
|
+
content_type: "code" | "text" | "image" | "table";
|
|
1935
1935
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1936
1936
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1937
1937
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1938
|
-
visibility?: "
|
|
1938
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1939
1939
|
seq?: number | undefined;
|
|
1940
1940
|
execution_id?: string | undefined;
|
|
1941
1941
|
execution_seq?: number | undefined;
|
|
1942
1942
|
}, {
|
|
1943
|
-
type: "markdown_chunk";
|
|
1944
1943
|
id: string;
|
|
1945
|
-
|
|
1944
|
+
type: "markdown_chunk";
|
|
1945
|
+
text: string;
|
|
1946
1946
|
timestamp: number;
|
|
1947
|
+
conversation_id: string;
|
|
1947
1948
|
turn_id: string;
|
|
1948
|
-
text: string;
|
|
1949
1949
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1950
1950
|
run_id?: string | undefined;
|
|
1951
1951
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1952
|
-
visibility?: "
|
|
1952
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1953
1953
|
seq?: number | undefined;
|
|
1954
1954
|
execution_id?: string | undefined;
|
|
1955
1955
|
execution_seq?: number | undefined;
|
|
1956
|
-
content_type?: "code" | "
|
|
1956
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
1957
1957
|
}>, z.ZodObject<{
|
|
1958
1958
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1959
1959
|
timestamp: z.ZodNumber;
|
|
@@ -1976,40 +1976,40 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1976
1976
|
} & {
|
|
1977
1977
|
type: z.ZodLiteral<"tool_call_decision">;
|
|
1978
1978
|
}, "strip", z.ZodTypeAny, {
|
|
1979
|
-
type: "tool_call_decision";
|
|
1980
1979
|
id: string;
|
|
1981
|
-
|
|
1982
|
-
timestamp: number;
|
|
1980
|
+
type: "tool_call_decision";
|
|
1983
1981
|
status: "error" | "loading" | "success";
|
|
1984
|
-
turn_id: string;
|
|
1985
|
-
tool_name: string;
|
|
1986
1982
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1987
|
-
|
|
1983
|
+
tool_name: string;
|
|
1984
|
+
timestamp: number;
|
|
1985
|
+
conversation_id: string;
|
|
1986
|
+
turn_id: string;
|
|
1987
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1988
|
+
payload?: SerializableJsonValue | undefined;
|
|
1989
|
+
args?: SerializableJsonValue | undefined;
|
|
1988
1990
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1989
1991
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1990
1992
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1991
|
-
visibility?: "
|
|
1992
|
-
args?: SerializableJsonValue | undefined;
|
|
1993
|
-
payload?: SerializableJsonValue | undefined;
|
|
1993
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1994
1994
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
1995
1995
|
execution_id?: string | undefined;
|
|
1996
1996
|
execution_seq?: number | undefined;
|
|
1997
1997
|
}, {
|
|
1998
|
-
type: "tool_call_decision";
|
|
1999
1998
|
id: string;
|
|
2000
|
-
|
|
2001
|
-
timestamp: number;
|
|
1999
|
+
type: "tool_call_decision";
|
|
2002
2000
|
status: "error" | "loading" | "success";
|
|
2003
|
-
turn_id: string;
|
|
2004
|
-
tool_name: string;
|
|
2005
2001
|
tool_call_id: string;
|
|
2006
|
-
|
|
2002
|
+
tool_name: string;
|
|
2003
|
+
timestamp: number;
|
|
2004
|
+
conversation_id: string;
|
|
2005
|
+
turn_id: string;
|
|
2006
|
+
phase: "error" | "start" | "update" | "complete";
|
|
2007
|
+
payload?: SerializableJsonValue | undefined;
|
|
2008
|
+
args?: SerializableJsonValue | undefined;
|
|
2007
2009
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2008
2010
|
run_id?: string | undefined;
|
|
2009
2011
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2010
|
-
visibility?: "
|
|
2011
|
-
args?: SerializableJsonValue | undefined;
|
|
2012
|
-
payload?: SerializableJsonValue | undefined;
|
|
2012
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2013
2013
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2014
2014
|
execution_id?: string | undefined;
|
|
2015
2015
|
execution_seq?: number | undefined;
|
|
@@ -2035,40 +2035,40 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2035
2035
|
} & {
|
|
2036
2036
|
type: z.ZodLiteral<"tool_process">;
|
|
2037
2037
|
}, "strip", z.ZodTypeAny, {
|
|
2038
|
-
type: "tool_process";
|
|
2039
2038
|
id: string;
|
|
2040
|
-
|
|
2041
|
-
timestamp: number;
|
|
2039
|
+
type: "tool_process";
|
|
2042
2040
|
status: "error" | "loading" | "success";
|
|
2043
|
-
turn_id: string;
|
|
2044
|
-
tool_name: string;
|
|
2045
2041
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2046
|
-
|
|
2042
|
+
tool_name: string;
|
|
2043
|
+
timestamp: number;
|
|
2044
|
+
conversation_id: string;
|
|
2045
|
+
turn_id: string;
|
|
2046
|
+
phase: "error" | "start" | "update" | "complete";
|
|
2047
|
+
payload?: SerializableJsonValue | undefined;
|
|
2048
|
+
args?: SerializableJsonValue | undefined;
|
|
2047
2049
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2048
2050
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2049
2051
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2050
|
-
visibility?: "
|
|
2051
|
-
args?: SerializableJsonValue | undefined;
|
|
2052
|
-
payload?: SerializableJsonValue | undefined;
|
|
2052
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2053
2053
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2054
2054
|
execution_id?: string | undefined;
|
|
2055
2055
|
execution_seq?: number | undefined;
|
|
2056
2056
|
}, {
|
|
2057
|
-
type: "tool_process";
|
|
2058
2057
|
id: string;
|
|
2059
|
-
|
|
2060
|
-
timestamp: number;
|
|
2058
|
+
type: "tool_process";
|
|
2061
2059
|
status: "error" | "loading" | "success";
|
|
2062
|
-
turn_id: string;
|
|
2063
|
-
tool_name: string;
|
|
2064
2060
|
tool_call_id: string;
|
|
2065
|
-
|
|
2061
|
+
tool_name: string;
|
|
2062
|
+
timestamp: number;
|
|
2063
|
+
conversation_id: string;
|
|
2064
|
+
turn_id: string;
|
|
2065
|
+
phase: "error" | "start" | "update" | "complete";
|
|
2066
|
+
payload?: SerializableJsonValue | undefined;
|
|
2067
|
+
args?: SerializableJsonValue | undefined;
|
|
2066
2068
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2067
2069
|
run_id?: string | undefined;
|
|
2068
2070
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2069
|
-
visibility?: "
|
|
2070
|
-
args?: SerializableJsonValue | undefined;
|
|
2071
|
-
payload?: SerializableJsonValue | undefined;
|
|
2071
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2072
2072
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2073
2073
|
execution_id?: string | undefined;
|
|
2074
2074
|
execution_seq?: number | undefined;
|
|
@@ -2128,19 +2128,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2128
2128
|
label?: string | undefined;
|
|
2129
2129
|
}>, "many">>;
|
|
2130
2130
|
}, "strip", z.ZodTypeAny, {
|
|
2131
|
-
type: "tool_output";
|
|
2132
2131
|
id: string;
|
|
2133
|
-
|
|
2134
|
-
timestamp: number;
|
|
2132
|
+
type: "tool_output";
|
|
2135
2133
|
status: "error" | "success";
|
|
2136
|
-
turn_id: string;
|
|
2137
|
-
tool_name: string;
|
|
2138
2134
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2135
|
+
tool_name: string;
|
|
2136
|
+
timestamp: number;
|
|
2137
|
+
conversation_id: string;
|
|
2138
|
+
turn_id: string;
|
|
2139
2139
|
observation: string;
|
|
2140
|
+
data?: SerializableJsonValue | undefined;
|
|
2141
|
+
error?: string | undefined;
|
|
2140
2142
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2141
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2142
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2143
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2144
2143
|
attachments?: {
|
|
2145
2144
|
id: string;
|
|
2146
2145
|
kind: "image";
|
|
@@ -2153,26 +2152,26 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2153
2152
|
fileName?: string | undefined;
|
|
2154
2153
|
label?: string | undefined;
|
|
2155
2154
|
}[] | undefined;
|
|
2156
|
-
|
|
2157
|
-
|
|
2155
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2156
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2157
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2158
2158
|
error_code?: string | undefined;
|
|
2159
2159
|
duration_ms?: number | undefined;
|
|
2160
2160
|
execution_id?: string | undefined;
|
|
2161
2161
|
execution_seq?: number | undefined;
|
|
2162
2162
|
}, {
|
|
2163
|
-
type: "tool_output";
|
|
2164
2163
|
id: string;
|
|
2165
|
-
|
|
2166
|
-
timestamp: number;
|
|
2164
|
+
type: "tool_output";
|
|
2167
2165
|
status: "error" | "success";
|
|
2168
|
-
turn_id: string;
|
|
2169
|
-
tool_name: string;
|
|
2170
2166
|
tool_call_id: string;
|
|
2167
|
+
tool_name: string;
|
|
2168
|
+
timestamp: number;
|
|
2169
|
+
conversation_id: string;
|
|
2170
|
+
turn_id: string;
|
|
2171
2171
|
observation: string;
|
|
2172
|
+
data?: SerializableJsonValue | undefined;
|
|
2173
|
+
error?: string | undefined;
|
|
2172
2174
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2173
|
-
run_id?: string | undefined;
|
|
2174
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2175
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
2176
2175
|
attachments?: {
|
|
2177
2176
|
id: string;
|
|
2178
2177
|
kind: "image";
|
|
@@ -2185,8 +2184,9 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2185
2184
|
fileName?: string | undefined;
|
|
2186
2185
|
label?: string | undefined;
|
|
2187
2186
|
}[] | undefined;
|
|
2188
|
-
|
|
2189
|
-
|
|
2187
|
+
run_id?: string | undefined;
|
|
2188
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2189
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2190
2190
|
error_code?: string | undefined;
|
|
2191
2191
|
duration_ms?: number | undefined;
|
|
2192
2192
|
execution_id?: string | undefined;
|
|
@@ -2221,7 +2221,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2221
2221
|
error: z.ZodString;
|
|
2222
2222
|
error_code: z.ZodString;
|
|
2223
2223
|
}, "strict", z.ZodTypeAny, {
|
|
2224
|
-
status: "
|
|
2224
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
2225
2225
|
error: string;
|
|
2226
2226
|
error_code: string;
|
|
2227
2227
|
retry_id: string;
|
|
@@ -2233,7 +2233,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2233
2233
|
delay_ms: number;
|
|
2234
2234
|
next_retry_at?: number | undefined;
|
|
2235
2235
|
}, {
|
|
2236
|
-
status: "
|
|
2236
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
2237
2237
|
error: string;
|
|
2238
2238
|
error_code: string;
|
|
2239
2239
|
retry_id: string;
|
|
@@ -2280,12 +2280,12 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2280
2280
|
tool_name: z.ZodString;
|
|
2281
2281
|
args: z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
2282
2282
|
}, "strict", z.ZodTypeAny, {
|
|
2283
|
-
tool_name: string;
|
|
2284
2283
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2284
|
+
tool_name: string;
|
|
2285
2285
|
args: Record<string, SerializableJsonValue>;
|
|
2286
2286
|
}, {
|
|
2287
|
-
tool_name: string;
|
|
2288
2287
|
tool_call_id: string;
|
|
2288
|
+
tool_name: string;
|
|
2289
2289
|
args: Record<string, SerializableJsonValue>;
|
|
2290
2290
|
}>, "many">>;
|
|
2291
2291
|
output: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
@@ -2331,21 +2331,27 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2331
2331
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
|
|
2332
2332
|
type: z.ZodLiteral<"subrun_trace">;
|
|
2333
2333
|
}, "strip", z.ZodTypeAny, {
|
|
2334
|
-
type: "subrun_trace";
|
|
2335
2334
|
id: string;
|
|
2336
|
-
|
|
2335
|
+
type: "subrun_trace";
|
|
2336
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
2337
2337
|
timestamp: number;
|
|
2338
|
+
conversation_id: string;
|
|
2338
2339
|
turn_id: string;
|
|
2339
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
2340
2340
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2341
2341
|
subrun_id: string;
|
|
2342
2342
|
source_event_id: string;
|
|
2343
2343
|
status?: "error" | "loading" | "success" | undefined;
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2344
|
+
tool_calls?: {
|
|
2345
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2346
|
+
tool_name: string;
|
|
2347
|
+
args: Record<string, SerializableJsonValue>;
|
|
2348
|
+
}[] | undefined;
|
|
2349
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
2350
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
2351
|
+
tool_name?: string | undefined;
|
|
2352
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2348
2353
|
content?: string | undefined;
|
|
2354
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2349
2355
|
attachments?: {
|
|
2350
2356
|
id: string;
|
|
2351
2357
|
kind: "image";
|
|
@@ -2358,22 +2364,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2358
2364
|
fileName?: string | undefined;
|
|
2359
2365
|
label?: string | undefined;
|
|
2360
2366
|
}[] | undefined;
|
|
2361
|
-
delta?: string | undefined;
|
|
2362
|
-
tool_name?: string | undefined;
|
|
2363
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
2364
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
2365
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2366
|
-
tool_calls?: {
|
|
2367
|
-
tool_name: string;
|
|
2368
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2369
|
-
args: Record<string, SerializableJsonValue>;
|
|
2370
|
-
}[] | undefined;
|
|
2371
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2372
|
-
duration_ms?: number | undefined;
|
|
2373
|
-
subrun_parent_id?: string | undefined;
|
|
2374
|
-
output?: SerializableJsonValue | undefined;
|
|
2375
2367
|
retry?: {
|
|
2376
|
-
status: "
|
|
2368
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
2377
2369
|
error: string;
|
|
2378
2370
|
error_code: string;
|
|
2379
2371
|
retry_id: string;
|
|
@@ -2385,6 +2377,15 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2385
2377
|
delay_ms: number;
|
|
2386
2378
|
next_retry_at?: number | undefined;
|
|
2387
2379
|
} | undefined;
|
|
2380
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2381
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2382
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2383
|
+
delta?: string | undefined;
|
|
2384
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
2385
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2386
|
+
duration_ms?: number | undefined;
|
|
2387
|
+
subrun_parent_id?: string | undefined;
|
|
2388
|
+
output?: SerializableJsonValue | undefined;
|
|
2388
2389
|
failure?: {
|
|
2389
2390
|
error: string;
|
|
2390
2391
|
error_code?: string | undefined;
|
|
@@ -2395,7 +2396,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2395
2396
|
answer_id?: string | undefined;
|
|
2396
2397
|
seq?: number | undefined;
|
|
2397
2398
|
is_last?: boolean | undefined;
|
|
2398
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
2399
2399
|
original_message_count?: number | undefined;
|
|
2400
2400
|
compression_ratio?: number | undefined;
|
|
2401
2401
|
included_old_summary?: boolean | undefined;
|
|
@@ -2403,21 +2403,27 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2403
2403
|
execution_id?: string | undefined;
|
|
2404
2404
|
execution_seq?: number | undefined;
|
|
2405
2405
|
}, {
|
|
2406
|
-
type: "subrun_trace";
|
|
2407
2406
|
id: string;
|
|
2408
|
-
|
|
2407
|
+
type: "subrun_trace";
|
|
2408
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
2409
2409
|
timestamp: number;
|
|
2410
|
+
conversation_id: string;
|
|
2410
2411
|
turn_id: string;
|
|
2411
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
2412
2412
|
parent_tool_call_id: string;
|
|
2413
2413
|
subrun_id: string;
|
|
2414
2414
|
source_event_id: string;
|
|
2415
2415
|
status?: "error" | "loading" | "success" | undefined;
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2416
|
+
tool_calls?: {
|
|
2417
|
+
tool_call_id: string;
|
|
2418
|
+
tool_name: string;
|
|
2419
|
+
args: Record<string, SerializableJsonValue>;
|
|
2420
|
+
}[] | undefined;
|
|
2421
|
+
tool_call_id?: string | undefined;
|
|
2422
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
2423
|
+
tool_name?: string | undefined;
|
|
2424
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2420
2425
|
content?: string | undefined;
|
|
2426
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2421
2427
|
attachments?: {
|
|
2422
2428
|
id: string;
|
|
2423
2429
|
kind: "image";
|
|
@@ -2430,22 +2436,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2430
2436
|
fileName?: string | undefined;
|
|
2431
2437
|
label?: string | undefined;
|
|
2432
2438
|
}[] | undefined;
|
|
2433
|
-
delta?: string | undefined;
|
|
2434
|
-
tool_name?: string | undefined;
|
|
2435
|
-
tool_call_id?: string | undefined;
|
|
2436
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
2437
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
2438
|
-
tool_calls?: {
|
|
2439
|
-
tool_name: string;
|
|
2440
|
-
tool_call_id: string;
|
|
2441
|
-
args: Record<string, SerializableJsonValue>;
|
|
2442
|
-
}[] | undefined;
|
|
2443
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2444
|
-
duration_ms?: number | undefined;
|
|
2445
|
-
subrun_parent_id?: string | undefined;
|
|
2446
|
-
output?: SerializableJsonValue | undefined;
|
|
2447
2439
|
retry?: {
|
|
2448
|
-
status: "
|
|
2440
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
2449
2441
|
error: string;
|
|
2450
2442
|
error_code: string;
|
|
2451
2443
|
retry_id: string;
|
|
@@ -2457,6 +2449,15 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2457
2449
|
delay_ms: number;
|
|
2458
2450
|
next_retry_at?: number | undefined;
|
|
2459
2451
|
} | undefined;
|
|
2452
|
+
run_id?: string | undefined;
|
|
2453
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2454
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2455
|
+
delta?: string | undefined;
|
|
2456
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
2457
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
2458
|
+
duration_ms?: number | undefined;
|
|
2459
|
+
subrun_parent_id?: string | undefined;
|
|
2460
|
+
output?: SerializableJsonValue | undefined;
|
|
2460
2461
|
failure?: {
|
|
2461
2462
|
error: string;
|
|
2462
2463
|
error_code?: string | undefined;
|
|
@@ -2467,7 +2468,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2467
2468
|
answer_id?: string | undefined;
|
|
2468
2469
|
seq?: number | undefined;
|
|
2469
2470
|
is_last?: boolean | undefined;
|
|
2470
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
2471
2471
|
original_message_count?: number | undefined;
|
|
2472
2472
|
compression_ratio?: number | undefined;
|
|
2473
2473
|
included_old_summary?: boolean | undefined;
|
|
@@ -2496,40 +2496,40 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2496
2496
|
resume_token: z.ZodEffects<z.ZodString, string, string>;
|
|
2497
2497
|
interaction_status: z.ZodLiteral<"pending">;
|
|
2498
2498
|
}, "strip", z.ZodTypeAny, {
|
|
2499
|
-
type: "requires_user_interaction";
|
|
2500
2499
|
id: string;
|
|
2501
|
-
|
|
2500
|
+
type: "requires_user_interaction";
|
|
2501
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
2502
2502
|
timestamp: number;
|
|
2503
|
-
turn_id: string;
|
|
2504
2503
|
run_id: string & z.BRAND<"RunId">;
|
|
2505
|
-
|
|
2504
|
+
conversation_id: string;
|
|
2505
|
+
turn_id: string;
|
|
2506
2506
|
interaction_id: string;
|
|
2507
2507
|
checkpoint_revision: number;
|
|
2508
2508
|
resume_token: string;
|
|
2509
2509
|
interaction_status: "pending";
|
|
2510
2510
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2511
2511
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2512
|
-
visibility?: "
|
|
2512
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2513
2513
|
form?: SerializableJsonValue | undefined;
|
|
2514
2514
|
interaction_type?: string | undefined;
|
|
2515
2515
|
prompt?: string | undefined;
|
|
2516
2516
|
execution_id?: string | undefined;
|
|
2517
2517
|
execution_seq?: number | undefined;
|
|
2518
2518
|
}, {
|
|
2519
|
-
type: "requires_user_interaction";
|
|
2520
2519
|
id: string;
|
|
2521
|
-
|
|
2520
|
+
type: "requires_user_interaction";
|
|
2521
|
+
tool_call_id: string;
|
|
2522
2522
|
timestamp: number;
|
|
2523
|
-
turn_id: string;
|
|
2524
2523
|
run_id: string;
|
|
2525
|
-
|
|
2524
|
+
conversation_id: string;
|
|
2525
|
+
turn_id: string;
|
|
2526
2526
|
interaction_id: string;
|
|
2527
2527
|
checkpoint_revision: number;
|
|
2528
2528
|
resume_token: string;
|
|
2529
2529
|
interaction_status: "pending";
|
|
2530
2530
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2531
2531
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2532
|
-
visibility?: "
|
|
2532
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2533
2533
|
form?: SerializableJsonValue | undefined;
|
|
2534
2534
|
interaction_type?: string | undefined;
|
|
2535
2535
|
prompt?: string | undefined;
|
|
@@ -2560,13 +2560,13 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2560
2560
|
error_code: z.ZodString;
|
|
2561
2561
|
type: z.ZodLiteral<"llm_retry">;
|
|
2562
2562
|
}, "strip", z.ZodTypeAny, {
|
|
2563
|
-
type: "llm_retry";
|
|
2564
2563
|
id: string;
|
|
2565
|
-
|
|
2564
|
+
type: "llm_retry";
|
|
2565
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
2566
|
+
error: string;
|
|
2566
2567
|
timestamp: number;
|
|
2567
|
-
|
|
2568
|
+
conversation_id: string;
|
|
2568
2569
|
turn_id: string;
|
|
2569
|
-
error: string;
|
|
2570
2570
|
error_code: string;
|
|
2571
2571
|
retry_id: string;
|
|
2572
2572
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -2578,18 +2578,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2578
2578
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2579
2579
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2580
2580
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2581
|
-
visibility?: "
|
|
2581
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2582
2582
|
next_retry_at?: number | undefined;
|
|
2583
2583
|
execution_id?: string | undefined;
|
|
2584
2584
|
execution_seq?: number | undefined;
|
|
2585
2585
|
}, {
|
|
2586
|
-
type: "llm_retry";
|
|
2587
2586
|
id: string;
|
|
2588
|
-
|
|
2587
|
+
type: "llm_retry";
|
|
2588
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
2589
|
+
error: string;
|
|
2589
2590
|
timestamp: number;
|
|
2590
|
-
|
|
2591
|
+
conversation_id: string;
|
|
2591
2592
|
turn_id: string;
|
|
2592
|
-
error: string;
|
|
2593
2593
|
error_code: string;
|
|
2594
2594
|
retry_id: string;
|
|
2595
2595
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -2601,7 +2601,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2601
2601
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2602
2602
|
run_id?: string | undefined;
|
|
2603
2603
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2604
|
-
visibility?: "
|
|
2604
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2605
2605
|
next_retry_at?: number | undefined;
|
|
2606
2606
|
execution_id?: string | undefined;
|
|
2607
2607
|
execution_seq?: number | undefined;
|
|
@@ -2624,16 +2624,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2624
2624
|
details: z.ZodOptional<z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>;
|
|
2625
2625
|
type: z.ZodLiteral<"error">;
|
|
2626
2626
|
}, "strip", z.ZodTypeAny, {
|
|
2627
|
-
type: "error";
|
|
2628
2627
|
id: string;
|
|
2629
|
-
|
|
2628
|
+
type: "error";
|
|
2629
|
+
error: string;
|
|
2630
2630
|
timestamp: number;
|
|
2631
|
+
conversation_id: string;
|
|
2631
2632
|
turn_id: string;
|
|
2632
|
-
error: string;
|
|
2633
2633
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2634
2634
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2635
2635
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2636
|
-
visibility?: "
|
|
2636
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2637
2637
|
error_code?: string | undefined;
|
|
2638
2638
|
retry_id?: string | undefined;
|
|
2639
2639
|
retryable?: boolean | undefined;
|
|
@@ -2641,16 +2641,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2641
2641
|
execution_id?: string | undefined;
|
|
2642
2642
|
execution_seq?: number | undefined;
|
|
2643
2643
|
}, {
|
|
2644
|
-
type: "error";
|
|
2645
2644
|
id: string;
|
|
2646
|
-
|
|
2645
|
+
type: "error";
|
|
2646
|
+
error: string;
|
|
2647
2647
|
timestamp: number;
|
|
2648
|
+
conversation_id: string;
|
|
2648
2649
|
turn_id: string;
|
|
2649
|
-
error: string;
|
|
2650
2650
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2651
2651
|
run_id?: string | undefined;
|
|
2652
2652
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2653
|
-
visibility?: "
|
|
2653
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2654
2654
|
error_code?: string | undefined;
|
|
2655
2655
|
retry_id?: string | undefined;
|
|
2656
2656
|
retryable?: boolean | undefined;
|
|
@@ -2675,33 +2675,33 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2675
2675
|
error_code: z.ZodOptional<z.ZodString>;
|
|
2676
2676
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2677
2677
|
}, "strip", z.ZodTypeAny, {
|
|
2678
|
-
type: "transport_error";
|
|
2679
2678
|
id: string;
|
|
2680
|
-
|
|
2679
|
+
type: "transport_error";
|
|
2680
|
+
error: string;
|
|
2681
2681
|
timestamp: number;
|
|
2682
|
+
conversation_id: string;
|
|
2682
2683
|
turn_id: string;
|
|
2683
|
-
error: string;
|
|
2684
2684
|
execution_id: string;
|
|
2685
2685
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2686
2686
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2687
2687
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2688
|
-
visibility?: "
|
|
2688
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2689
2689
|
error_code?: string | undefined;
|
|
2690
2690
|
retryable?: boolean | undefined;
|
|
2691
2691
|
details?: SerializableJsonValue | undefined;
|
|
2692
2692
|
execution_seq?: number | undefined;
|
|
2693
2693
|
}, {
|
|
2694
|
-
type: "transport_error";
|
|
2695
2694
|
id: string;
|
|
2696
|
-
|
|
2695
|
+
type: "transport_error";
|
|
2696
|
+
error: string;
|
|
2697
2697
|
timestamp: number;
|
|
2698
|
+
conversation_id: string;
|
|
2698
2699
|
turn_id: string;
|
|
2699
|
-
error: string;
|
|
2700
2700
|
execution_id: string;
|
|
2701
2701
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2702
2702
|
run_id?: string | undefined;
|
|
2703
2703
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2704
|
-
visibility?: "
|
|
2704
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2705
2705
|
error_code?: string | undefined;
|
|
2706
2706
|
retryable?: boolean | undefined;
|
|
2707
2707
|
details?: SerializableJsonValue | undefined;
|
|
@@ -2815,10 +2815,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2815
2815
|
served_model_id?: string | undefined;
|
|
2816
2816
|
}>;
|
|
2817
2817
|
}, "strip", z.ZodTypeAny, {
|
|
2818
|
-
type: "context_usage_snapshot";
|
|
2819
2818
|
id: string;
|
|
2820
|
-
|
|
2819
|
+
type: "context_usage_snapshot";
|
|
2821
2820
|
timestamp: number;
|
|
2821
|
+
conversation_id: string;
|
|
2822
2822
|
turn_id: string;
|
|
2823
2823
|
context_usage: {
|
|
2824
2824
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -2841,15 +2841,15 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2841
2841
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2842
2842
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2843
2843
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2844
|
-
visibility?: "
|
|
2844
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2845
2845
|
user_message_id?: string | undefined;
|
|
2846
2846
|
execution_id?: string | undefined;
|
|
2847
2847
|
execution_seq?: number | undefined;
|
|
2848
2848
|
}, {
|
|
2849
|
-
type: "context_usage_snapshot";
|
|
2850
2849
|
id: string;
|
|
2851
|
-
|
|
2850
|
+
type: "context_usage_snapshot";
|
|
2852
2851
|
timestamp: number;
|
|
2852
|
+
conversation_id: string;
|
|
2853
2853
|
turn_id: string;
|
|
2854
2854
|
context_usage: {
|
|
2855
2855
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -2872,7 +2872,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2872
2872
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2873
2873
|
run_id?: string | undefined;
|
|
2874
2874
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2875
|
-
visibility?: "
|
|
2875
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2876
2876
|
user_message_id?: string | undefined;
|
|
2877
2877
|
execution_id?: string | undefined;
|
|
2878
2878
|
execution_seq?: number | undefined;
|
|
@@ -2987,18 +2987,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2987
2987
|
served_model_id?: string | undefined;
|
|
2988
2988
|
}>>;
|
|
2989
2989
|
}, "strip", z.ZodTypeAny, {
|
|
2990
|
-
type: "run_execution_metrics";
|
|
2991
2990
|
id: string;
|
|
2992
|
-
|
|
2991
|
+
type: "run_execution_metrics";
|
|
2993
2992
|
timestamp: number;
|
|
2993
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
2994
|
+
conversation_id: string;
|
|
2994
2995
|
turn_id: string;
|
|
2995
2996
|
duration_ms: number;
|
|
2996
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
2997
2997
|
execution_id: string;
|
|
2998
2998
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2999
2999
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3000
3000
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3001
|
-
visibility?: "
|
|
3001
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3002
3002
|
user_message_id?: string | undefined;
|
|
3003
3003
|
context_usage?: {
|
|
3004
3004
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -3020,18 +3020,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3020
3020
|
} | undefined;
|
|
3021
3021
|
execution_seq?: number | undefined;
|
|
3022
3022
|
}, {
|
|
3023
|
-
type: "run_execution_metrics";
|
|
3024
3023
|
id: string;
|
|
3025
|
-
|
|
3024
|
+
type: "run_execution_metrics";
|
|
3026
3025
|
timestamp: number;
|
|
3026
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3027
|
+
conversation_id: string;
|
|
3027
3028
|
turn_id: string;
|
|
3028
3029
|
duration_ms: number;
|
|
3029
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
3030
3030
|
execution_id: string;
|
|
3031
3031
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3032
3032
|
run_id?: string | undefined;
|
|
3033
3033
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3034
|
-
visibility?: "
|
|
3034
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3035
3035
|
user_message_id?: string | undefined;
|
|
3036
3036
|
context_usage?: {
|
|
3037
3037
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -3068,31 +3068,31 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3068
3068
|
status: z.ZodEnum<["pending", "running", "awaiting_user", "paused", "completed", "failed", "cancelled"]>;
|
|
3069
3069
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
3070
3070
|
}, "strip", z.ZodTypeAny, {
|
|
3071
|
-
type: "run_status";
|
|
3072
3071
|
id: string;
|
|
3073
|
-
|
|
3072
|
+
type: "run_status";
|
|
3073
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
3074
3074
|
timestamp: number;
|
|
3075
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
3076
|
-
turn_id: string;
|
|
3077
3075
|
run_id: string & z.BRAND<"RunId">;
|
|
3076
|
+
conversation_id: string;
|
|
3077
|
+
turn_id: string;
|
|
3078
3078
|
execution_id: string;
|
|
3079
3079
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3080
3080
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3081
|
-
visibility?: "
|
|
3081
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3082
3082
|
execution_seq?: number | undefined;
|
|
3083
3083
|
reason_message?: string | undefined;
|
|
3084
3084
|
}, {
|
|
3085
|
-
type: "run_status";
|
|
3086
3085
|
id: string;
|
|
3087
|
-
|
|
3086
|
+
type: "run_status";
|
|
3087
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
3088
3088
|
timestamp: number;
|
|
3089
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
3090
|
-
turn_id: string;
|
|
3091
3089
|
run_id: string;
|
|
3090
|
+
conversation_id: string;
|
|
3091
|
+
turn_id: string;
|
|
3092
3092
|
execution_id: string;
|
|
3093
3093
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3094
3094
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3095
|
-
visibility?: "
|
|
3095
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3096
3096
|
execution_seq?: number | undefined;
|
|
3097
3097
|
reason_message?: string | undefined;
|
|
3098
3098
|
}>, z.ZodObject<{
|
|
@@ -3111,31 +3111,31 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3111
3111
|
reason: z.ZodOptional<z.ZodEnum<["complete", "error", "interrupted", "timeout"]>>;
|
|
3112
3112
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
3113
3113
|
}, "strip", z.ZodTypeAny, {
|
|
3114
|
-
type: "transport_end";
|
|
3115
3114
|
id: string;
|
|
3116
|
-
|
|
3115
|
+
type: "transport_end";
|
|
3117
3116
|
timestamp: number;
|
|
3117
|
+
conversation_id: string;
|
|
3118
3118
|
turn_id: string;
|
|
3119
3119
|
execution_id: string;
|
|
3120
3120
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3121
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3121
3122
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3122
3123
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3123
|
-
visibility?: "
|
|
3124
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
3124
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3125
3125
|
execution_seq?: number | undefined;
|
|
3126
3126
|
reason_message?: string | undefined;
|
|
3127
3127
|
}, {
|
|
3128
|
-
type: "transport_end";
|
|
3129
3128
|
id: string;
|
|
3130
|
-
|
|
3129
|
+
type: "transport_end";
|
|
3131
3130
|
timestamp: number;
|
|
3131
|
+
conversation_id: string;
|
|
3132
3132
|
turn_id: string;
|
|
3133
3133
|
execution_id: string;
|
|
3134
3134
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3135
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3135
3136
|
run_id?: string | undefined;
|
|
3136
3137
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3137
|
-
visibility?: "
|
|
3138
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
3138
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3139
3139
|
execution_seq?: number | undefined;
|
|
3140
3140
|
reason_message?: string | undefined;
|
|
3141
3141
|
}>, z.ZodObject<{
|
|
@@ -3160,12 +3160,12 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3160
3160
|
compression_ratio: z.ZodOptional<z.ZodNumber>;
|
|
3161
3161
|
included_old_summary: z.ZodOptional<z.ZodBoolean>;
|
|
3162
3162
|
}, "strip", z.ZodTypeAny, {
|
|
3163
|
-
type: "history_summary";
|
|
3164
3163
|
id: string;
|
|
3165
|
-
|
|
3164
|
+
type: "history_summary";
|
|
3165
|
+
content: string;
|
|
3166
3166
|
timestamp: number;
|
|
3167
|
+
conversation_id: string;
|
|
3167
3168
|
turn_id: string;
|
|
3168
|
-
content: string;
|
|
3169
3169
|
original_message_count: number;
|
|
3170
3170
|
replaced_message_ids: string[];
|
|
3171
3171
|
summary_seq: number;
|
|
@@ -3173,18 +3173,18 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3173
3173
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3174
3174
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3175
3175
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3176
|
-
visibility?: "
|
|
3176
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3177
3177
|
compression_ratio?: number | undefined;
|
|
3178
3178
|
included_old_summary?: boolean | undefined;
|
|
3179
3179
|
execution_id?: string | undefined;
|
|
3180
3180
|
execution_seq?: number | undefined;
|
|
3181
3181
|
}, {
|
|
3182
|
-
type: "history_summary";
|
|
3183
3182
|
id: string;
|
|
3184
|
-
|
|
3183
|
+
type: "history_summary";
|
|
3184
|
+
content: string;
|
|
3185
3185
|
timestamp: number;
|
|
3186
|
+
conversation_id: string;
|
|
3186
3187
|
turn_id: string;
|
|
3187
|
-
content: string;
|
|
3188
3188
|
original_message_count: number;
|
|
3189
3189
|
replaced_message_ids: string[];
|
|
3190
3190
|
summary_seq: number;
|
|
@@ -3192,7 +3192,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3192
3192
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3193
3193
|
run_id?: string | undefined;
|
|
3194
3194
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3195
|
-
visibility?: "
|
|
3195
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3196
3196
|
compression_ratio?: number | undefined;
|
|
3197
3197
|
included_old_summary?: boolean | undefined;
|
|
3198
3198
|
execution_id?: string | undefined;
|
|
@@ -3212,30 +3212,30 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3212
3212
|
execution_id: z.ZodEffects<z.ZodString, string, string>;
|
|
3213
3213
|
summarization_id: z.ZodEffects<z.ZodString, string, string>;
|
|
3214
3214
|
}, "strip", z.ZodTypeAny, {
|
|
3215
|
-
type: "summarization_start";
|
|
3216
3215
|
id: string;
|
|
3217
|
-
|
|
3216
|
+
type: "summarization_start";
|
|
3218
3217
|
timestamp: number;
|
|
3219
|
-
turn_id: string;
|
|
3220
3218
|
run_id: string & z.BRAND<"RunId">;
|
|
3219
|
+
conversation_id: string;
|
|
3220
|
+
turn_id: string;
|
|
3221
3221
|
execution_id: string;
|
|
3222
3222
|
summarization_id: string;
|
|
3223
3223
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3224
3224
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3225
|
-
visibility?: "
|
|
3225
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3226
3226
|
execution_seq?: number | undefined;
|
|
3227
3227
|
}, {
|
|
3228
|
-
type: "summarization_start";
|
|
3229
3228
|
id: string;
|
|
3230
|
-
|
|
3229
|
+
type: "summarization_start";
|
|
3231
3230
|
timestamp: number;
|
|
3232
|
-
turn_id: string;
|
|
3233
3231
|
run_id: string;
|
|
3232
|
+
conversation_id: string;
|
|
3233
|
+
turn_id: string;
|
|
3234
3234
|
execution_id: string;
|
|
3235
3235
|
summarization_id: string;
|
|
3236
3236
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3237
3237
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3238
|
-
visibility?: "
|
|
3238
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3239
3239
|
execution_seq?: number | undefined;
|
|
3240
3240
|
}>, z.ZodObject<{
|
|
3241
3241
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -3256,12 +3256,12 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3256
3256
|
compressed_message_count: z.ZodNumber;
|
|
3257
3257
|
compression_ratio: z.ZodOptional<z.ZodNumber>;
|
|
3258
3258
|
}, "strip", z.ZodTypeAny, {
|
|
3259
|
-
type: "summarization_end";
|
|
3260
3259
|
id: string;
|
|
3261
|
-
|
|
3260
|
+
type: "summarization_end";
|
|
3262
3261
|
timestamp: number;
|
|
3263
|
-
turn_id: string;
|
|
3264
3262
|
run_id: string & z.BRAND<"RunId">;
|
|
3263
|
+
conversation_id: string;
|
|
3264
|
+
turn_id: string;
|
|
3265
3265
|
original_message_count: number;
|
|
3266
3266
|
execution_id: string;
|
|
3267
3267
|
summary_id: string;
|
|
@@ -3269,16 +3269,16 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3269
3269
|
compressed_message_count: number;
|
|
3270
3270
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3271
3271
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3272
|
-
visibility?: "
|
|
3272
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3273
3273
|
compression_ratio?: number | undefined;
|
|
3274
3274
|
execution_seq?: number | undefined;
|
|
3275
3275
|
}, {
|
|
3276
|
-
type: "summarization_end";
|
|
3277
3276
|
id: string;
|
|
3278
|
-
|
|
3277
|
+
type: "summarization_end";
|
|
3279
3278
|
timestamp: number;
|
|
3280
|
-
turn_id: string;
|
|
3281
3279
|
run_id: string;
|
|
3280
|
+
conversation_id: string;
|
|
3281
|
+
turn_id: string;
|
|
3282
3282
|
original_message_count: number;
|
|
3283
3283
|
execution_id: string;
|
|
3284
3284
|
summary_id: string;
|
|
@@ -3286,7 +3286,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3286
3286
|
compressed_message_count: number;
|
|
3287
3287
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3288
3288
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3289
|
-
visibility?: "
|
|
3289
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3290
3290
|
compression_ratio?: number | undefined;
|
|
3291
3291
|
execution_seq?: number | undefined;
|
|
3292
3292
|
}>, z.ZodObject<{
|
|
@@ -3305,54 +3305,54 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3305
3305
|
summarization_id: z.ZodEffects<z.ZodString, string, string>;
|
|
3306
3306
|
error: z.ZodString;
|
|
3307
3307
|
}, "strip", z.ZodTypeAny, {
|
|
3308
|
-
type: "summarization_error";
|
|
3309
3308
|
id: string;
|
|
3310
|
-
|
|
3309
|
+
type: "summarization_error";
|
|
3310
|
+
error: string;
|
|
3311
3311
|
timestamp: number;
|
|
3312
|
-
turn_id: string;
|
|
3313
3312
|
run_id: string & z.BRAND<"RunId">;
|
|
3314
|
-
|
|
3313
|
+
conversation_id: string;
|
|
3314
|
+
turn_id: string;
|
|
3315
3315
|
execution_id: string;
|
|
3316
3316
|
summarization_id: string;
|
|
3317
3317
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3318
3318
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3319
|
-
visibility?: "
|
|
3319
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3320
3320
|
execution_seq?: number | undefined;
|
|
3321
3321
|
}, {
|
|
3322
|
-
type: "summarization_error";
|
|
3323
3322
|
id: string;
|
|
3324
|
-
|
|
3323
|
+
type: "summarization_error";
|
|
3324
|
+
error: string;
|
|
3325
3325
|
timestamp: number;
|
|
3326
|
-
turn_id: string;
|
|
3327
3326
|
run_id: string;
|
|
3328
|
-
|
|
3327
|
+
conversation_id: string;
|
|
3328
|
+
turn_id: string;
|
|
3329
3329
|
execution_id: string;
|
|
3330
3330
|
summarization_id: string;
|
|
3331
3331
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3332
3332
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3333
|
-
visibility?: "
|
|
3333
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3334
3334
|
execution_seq?: number | undefined;
|
|
3335
3335
|
}>]>, {
|
|
3336
|
-
type: "thought";
|
|
3337
3336
|
id: string;
|
|
3338
|
-
|
|
3337
|
+
type: "thought";
|
|
3339
3338
|
timestamp: number;
|
|
3339
|
+
conversation_id: string;
|
|
3340
3340
|
turn_id: string;
|
|
3341
3341
|
is_complete: boolean;
|
|
3342
|
+
content?: string | undefined;
|
|
3342
3343
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3343
3344
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3344
3345
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3345
|
-
visibility?: "
|
|
3346
|
-
content?: string | undefined;
|
|
3346
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3347
3347
|
thought_message_id?: string | undefined;
|
|
3348
3348
|
delta?: string | undefined;
|
|
3349
3349
|
execution_id?: string | undefined;
|
|
3350
3350
|
execution_seq?: number | undefined;
|
|
3351
3351
|
} | {
|
|
3352
|
-
type: "final_answer_chunk";
|
|
3353
3352
|
id: string;
|
|
3354
|
-
|
|
3353
|
+
type: "final_answer_chunk";
|
|
3355
3354
|
timestamp: number;
|
|
3355
|
+
conversation_id: string;
|
|
3356
3356
|
turn_id: string;
|
|
3357
3357
|
answer_id: string;
|
|
3358
3358
|
seq: number;
|
|
@@ -3360,107 +3360,106 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3360
3360
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3361
3361
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3362
3362
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3363
|
-
visibility?: "
|
|
3363
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3364
3364
|
is_last?: boolean | undefined;
|
|
3365
3365
|
execution_id?: string | undefined;
|
|
3366
3366
|
execution_seq?: number | undefined;
|
|
3367
3367
|
} | {
|
|
3368
|
-
type: "final_answer_reset";
|
|
3369
3368
|
id: string;
|
|
3370
|
-
|
|
3369
|
+
type: "final_answer_reset";
|
|
3371
3370
|
timestamp: number;
|
|
3371
|
+
conversation_id: string;
|
|
3372
3372
|
turn_id: string;
|
|
3373
3373
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3374
3374
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3375
3375
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3376
|
-
visibility?: "
|
|
3376
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3377
3377
|
answer_id?: string | undefined;
|
|
3378
3378
|
thought_message_ids?: string[] | undefined;
|
|
3379
3379
|
execution_id?: string | undefined;
|
|
3380
3380
|
execution_seq?: number | undefined;
|
|
3381
3381
|
} | {
|
|
3382
|
-
type: "final_answer";
|
|
3383
3382
|
id: string;
|
|
3384
|
-
|
|
3383
|
+
type: "final_answer";
|
|
3384
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
3385
|
+
content: string;
|
|
3385
3386
|
timestamp: number;
|
|
3387
|
+
conversation_id: string;
|
|
3386
3388
|
turn_id: string;
|
|
3387
|
-
content: string;
|
|
3388
3389
|
answer_id: string;
|
|
3389
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
3390
3390
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3391
3391
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3392
3392
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3393
|
-
visibility?: "
|
|
3393
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3394
3394
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3395
3395
|
execution_id?: string | undefined;
|
|
3396
3396
|
execution_seq?: number | undefined;
|
|
3397
3397
|
} | {
|
|
3398
|
-
type: "markdown_chunk";
|
|
3399
3398
|
id: string;
|
|
3400
|
-
|
|
3399
|
+
type: "markdown_chunk";
|
|
3400
|
+
text: string;
|
|
3401
3401
|
timestamp: number;
|
|
3402
|
+
conversation_id: string;
|
|
3402
3403
|
turn_id: string;
|
|
3403
|
-
|
|
3404
|
-
content_type: "code" | "image" | "text" | "table";
|
|
3404
|
+
content_type: "code" | "text" | "image" | "table";
|
|
3405
3405
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3406
3406
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3407
3407
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3408
|
-
visibility?: "
|
|
3408
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3409
3409
|
seq?: number | undefined;
|
|
3410
3410
|
execution_id?: string | undefined;
|
|
3411
3411
|
execution_seq?: number | undefined;
|
|
3412
3412
|
} | {
|
|
3413
|
-
type: "tool_call_decision";
|
|
3414
3413
|
id: string;
|
|
3415
|
-
|
|
3416
|
-
timestamp: number;
|
|
3414
|
+
type: "tool_call_decision";
|
|
3417
3415
|
status: "error" | "loading" | "success";
|
|
3418
|
-
turn_id: string;
|
|
3419
|
-
tool_name: string;
|
|
3420
3416
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3421
|
-
|
|
3417
|
+
tool_name: string;
|
|
3418
|
+
timestamp: number;
|
|
3419
|
+
conversation_id: string;
|
|
3420
|
+
turn_id: string;
|
|
3421
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3422
|
+
payload?: SerializableJsonValue | undefined;
|
|
3423
|
+
args?: SerializableJsonValue | undefined;
|
|
3422
3424
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3423
3425
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3424
3426
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3425
|
-
visibility?: "
|
|
3426
|
-
args?: SerializableJsonValue | undefined;
|
|
3427
|
-
payload?: SerializableJsonValue | undefined;
|
|
3427
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3428
3428
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3429
3429
|
execution_id?: string | undefined;
|
|
3430
3430
|
execution_seq?: number | undefined;
|
|
3431
3431
|
} | {
|
|
3432
|
-
type: "tool_process";
|
|
3433
3432
|
id: string;
|
|
3434
|
-
|
|
3435
|
-
timestamp: number;
|
|
3433
|
+
type: "tool_process";
|
|
3436
3434
|
status: "error" | "loading" | "success";
|
|
3437
|
-
turn_id: string;
|
|
3438
|
-
tool_name: string;
|
|
3439
3435
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3440
|
-
|
|
3436
|
+
tool_name: string;
|
|
3437
|
+
timestamp: number;
|
|
3438
|
+
conversation_id: string;
|
|
3439
|
+
turn_id: string;
|
|
3440
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3441
|
+
payload?: SerializableJsonValue | undefined;
|
|
3442
|
+
args?: SerializableJsonValue | undefined;
|
|
3441
3443
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3442
3444
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3443
3445
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3444
|
-
visibility?: "
|
|
3445
|
-
args?: SerializableJsonValue | undefined;
|
|
3446
|
-
payload?: SerializableJsonValue | undefined;
|
|
3446
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3447
3447
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3448
3448
|
execution_id?: string | undefined;
|
|
3449
3449
|
execution_seq?: number | undefined;
|
|
3450
3450
|
} | {
|
|
3451
|
-
type: "tool_output";
|
|
3452
3451
|
id: string;
|
|
3453
|
-
|
|
3454
|
-
timestamp: number;
|
|
3452
|
+
type: "tool_output";
|
|
3455
3453
|
status: "error" | "success";
|
|
3456
|
-
turn_id: string;
|
|
3457
|
-
tool_name: string;
|
|
3458
3454
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3455
|
+
tool_name: string;
|
|
3456
|
+
timestamp: number;
|
|
3457
|
+
conversation_id: string;
|
|
3458
|
+
turn_id: string;
|
|
3459
3459
|
observation: string;
|
|
3460
|
+
data?: SerializableJsonValue | undefined;
|
|
3461
|
+
error?: string | undefined;
|
|
3460
3462
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3461
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3462
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3463
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3464
3463
|
attachments?: {
|
|
3465
3464
|
id: string;
|
|
3466
3465
|
kind: "image";
|
|
@@ -3473,28 +3472,35 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3473
3472
|
fileName?: string | undefined;
|
|
3474
3473
|
label?: string | undefined;
|
|
3475
3474
|
}[] | undefined;
|
|
3476
|
-
|
|
3477
|
-
|
|
3475
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3476
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3477
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3478
3478
|
error_code?: string | undefined;
|
|
3479
3479
|
duration_ms?: number | undefined;
|
|
3480
3480
|
execution_id?: string | undefined;
|
|
3481
3481
|
execution_seq?: number | undefined;
|
|
3482
3482
|
} | {
|
|
3483
|
-
type: "subrun_trace";
|
|
3484
3483
|
id: string;
|
|
3485
|
-
|
|
3484
|
+
type: "subrun_trace";
|
|
3485
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
3486
3486
|
timestamp: number;
|
|
3487
|
+
conversation_id: string;
|
|
3487
3488
|
turn_id: string;
|
|
3488
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
3489
3489
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3490
3490
|
subrun_id: string;
|
|
3491
3491
|
source_event_id: string;
|
|
3492
3492
|
status?: "error" | "loading" | "success" | undefined;
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3493
|
+
tool_calls?: {
|
|
3494
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3495
|
+
tool_name: string;
|
|
3496
|
+
args: Record<string, SerializableJsonValue>;
|
|
3497
|
+
}[] | undefined;
|
|
3498
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
3499
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
3500
|
+
tool_name?: string | undefined;
|
|
3501
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3497
3502
|
content?: string | undefined;
|
|
3503
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3498
3504
|
attachments?: {
|
|
3499
3505
|
id: string;
|
|
3500
3506
|
kind: "image";
|
|
@@ -3507,22 +3513,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3507
3513
|
fileName?: string | undefined;
|
|
3508
3514
|
label?: string | undefined;
|
|
3509
3515
|
}[] | undefined;
|
|
3510
|
-
delta?: string | undefined;
|
|
3511
|
-
tool_name?: string | undefined;
|
|
3512
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
3513
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
3514
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3515
|
-
tool_calls?: {
|
|
3516
|
-
tool_name: string;
|
|
3517
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3518
|
-
args: Record<string, SerializableJsonValue>;
|
|
3519
|
-
}[] | undefined;
|
|
3520
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3521
|
-
duration_ms?: number | undefined;
|
|
3522
|
-
subrun_parent_id?: string | undefined;
|
|
3523
|
-
output?: SerializableJsonValue | undefined;
|
|
3524
3516
|
retry?: {
|
|
3525
|
-
status: "
|
|
3517
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
3526
3518
|
error: string;
|
|
3527
3519
|
error_code: string;
|
|
3528
3520
|
retry_id: string;
|
|
@@ -3534,6 +3526,15 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3534
3526
|
delay_ms: number;
|
|
3535
3527
|
next_retry_at?: number | undefined;
|
|
3536
3528
|
} | undefined;
|
|
3529
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3530
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3531
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3532
|
+
delta?: string | undefined;
|
|
3533
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
3534
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3535
|
+
duration_ms?: number | undefined;
|
|
3536
|
+
subrun_parent_id?: string | undefined;
|
|
3537
|
+
output?: SerializableJsonValue | undefined;
|
|
3537
3538
|
failure?: {
|
|
3538
3539
|
error: string;
|
|
3539
3540
|
error_code?: string | undefined;
|
|
@@ -3544,7 +3545,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3544
3545
|
answer_id?: string | undefined;
|
|
3545
3546
|
seq?: number | undefined;
|
|
3546
3547
|
is_last?: boolean | undefined;
|
|
3547
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
3548
3548
|
original_message_count?: number | undefined;
|
|
3549
3549
|
compression_ratio?: number | undefined;
|
|
3550
3550
|
included_old_summary?: boolean | undefined;
|
|
@@ -3552,33 +3552,33 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3552
3552
|
execution_id?: string | undefined;
|
|
3553
3553
|
execution_seq?: number | undefined;
|
|
3554
3554
|
} | {
|
|
3555
|
-
type: "requires_user_interaction";
|
|
3556
3555
|
id: string;
|
|
3557
|
-
|
|
3556
|
+
type: "requires_user_interaction";
|
|
3557
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3558
3558
|
timestamp: number;
|
|
3559
|
-
turn_id: string;
|
|
3560
3559
|
run_id: string & z.BRAND<"RunId">;
|
|
3561
|
-
|
|
3560
|
+
conversation_id: string;
|
|
3561
|
+
turn_id: string;
|
|
3562
3562
|
interaction_id: string;
|
|
3563
3563
|
checkpoint_revision: number;
|
|
3564
3564
|
resume_token: string;
|
|
3565
3565
|
interaction_status: "pending";
|
|
3566
3566
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3567
3567
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3568
|
-
visibility?: "
|
|
3568
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3569
3569
|
form?: SerializableJsonValue | undefined;
|
|
3570
3570
|
interaction_type?: string | undefined;
|
|
3571
3571
|
prompt?: string | undefined;
|
|
3572
3572
|
execution_id?: string | undefined;
|
|
3573
3573
|
execution_seq?: number | undefined;
|
|
3574
3574
|
} | {
|
|
3575
|
-
type: "llm_retry";
|
|
3576
3575
|
id: string;
|
|
3577
|
-
|
|
3576
|
+
type: "llm_retry";
|
|
3577
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
3578
|
+
error: string;
|
|
3578
3579
|
timestamp: number;
|
|
3579
|
-
|
|
3580
|
+
conversation_id: string;
|
|
3580
3581
|
turn_id: string;
|
|
3581
|
-
error: string;
|
|
3582
3582
|
error_code: string;
|
|
3583
3583
|
retry_id: string;
|
|
3584
3584
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -3590,21 +3590,21 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3590
3590
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3591
3591
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3592
3592
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3593
|
-
visibility?: "
|
|
3593
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3594
3594
|
next_retry_at?: number | undefined;
|
|
3595
3595
|
execution_id?: string | undefined;
|
|
3596
3596
|
execution_seq?: number | undefined;
|
|
3597
3597
|
} | {
|
|
3598
|
-
type: "error";
|
|
3599
3598
|
id: string;
|
|
3600
|
-
|
|
3599
|
+
type: "error";
|
|
3600
|
+
error: string;
|
|
3601
3601
|
timestamp: number;
|
|
3602
|
+
conversation_id: string;
|
|
3602
3603
|
turn_id: string;
|
|
3603
|
-
error: string;
|
|
3604
3604
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3605
3605
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3606
3606
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3607
|
-
visibility?: "
|
|
3607
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3608
3608
|
error_code?: string | undefined;
|
|
3609
3609
|
retry_id?: string | undefined;
|
|
3610
3610
|
retryable?: boolean | undefined;
|
|
@@ -3612,26 +3612,26 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3612
3612
|
execution_id?: string | undefined;
|
|
3613
3613
|
execution_seq?: number | undefined;
|
|
3614
3614
|
} | {
|
|
3615
|
-
type: "transport_error";
|
|
3616
3615
|
id: string;
|
|
3617
|
-
|
|
3616
|
+
type: "transport_error";
|
|
3617
|
+
error: string;
|
|
3618
3618
|
timestamp: number;
|
|
3619
|
+
conversation_id: string;
|
|
3619
3620
|
turn_id: string;
|
|
3620
|
-
error: string;
|
|
3621
3621
|
execution_id: string;
|
|
3622
3622
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3623
3623
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3624
3624
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3625
|
-
visibility?: "
|
|
3625
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3626
3626
|
error_code?: string | undefined;
|
|
3627
3627
|
retryable?: boolean | undefined;
|
|
3628
3628
|
details?: SerializableJsonValue | undefined;
|
|
3629
3629
|
execution_seq?: number | undefined;
|
|
3630
3630
|
} | {
|
|
3631
|
-
type: "context_usage_snapshot";
|
|
3632
3631
|
id: string;
|
|
3633
|
-
|
|
3632
|
+
type: "context_usage_snapshot";
|
|
3634
3633
|
timestamp: number;
|
|
3634
|
+
conversation_id: string;
|
|
3635
3635
|
turn_id: string;
|
|
3636
3636
|
context_usage: {
|
|
3637
3637
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -3654,23 +3654,23 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3654
3654
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3655
3655
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3656
3656
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3657
|
-
visibility?: "
|
|
3657
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3658
3658
|
user_message_id?: string | undefined;
|
|
3659
3659
|
execution_id?: string | undefined;
|
|
3660
3660
|
execution_seq?: number | undefined;
|
|
3661
3661
|
} | {
|
|
3662
|
-
type: "run_execution_metrics";
|
|
3663
3662
|
id: string;
|
|
3664
|
-
|
|
3663
|
+
type: "run_execution_metrics";
|
|
3665
3664
|
timestamp: number;
|
|
3665
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3666
|
+
conversation_id: string;
|
|
3666
3667
|
turn_id: string;
|
|
3667
3668
|
duration_ms: number;
|
|
3668
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
3669
3669
|
execution_id: string;
|
|
3670
3670
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3671
3671
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3672
3672
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3673
|
-
visibility?: "
|
|
3673
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3674
3674
|
user_message_id?: string | undefined;
|
|
3675
3675
|
context_usage?: {
|
|
3676
3676
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -3692,40 +3692,40 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3692
3692
|
} | undefined;
|
|
3693
3693
|
execution_seq?: number | undefined;
|
|
3694
3694
|
} | {
|
|
3695
|
-
type: "run_status";
|
|
3696
3695
|
id: string;
|
|
3697
|
-
|
|
3696
|
+
type: "run_status";
|
|
3697
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
3698
3698
|
timestamp: number;
|
|
3699
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
3700
|
-
turn_id: string;
|
|
3701
3699
|
run_id: string & z.BRAND<"RunId">;
|
|
3700
|
+
conversation_id: string;
|
|
3701
|
+
turn_id: string;
|
|
3702
3702
|
execution_id: string;
|
|
3703
3703
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3704
3704
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3705
|
-
visibility?: "
|
|
3705
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3706
3706
|
execution_seq?: number | undefined;
|
|
3707
3707
|
reason_message?: string | undefined;
|
|
3708
3708
|
} | {
|
|
3709
|
-
type: "transport_end";
|
|
3710
3709
|
id: string;
|
|
3711
|
-
|
|
3710
|
+
type: "transport_end";
|
|
3712
3711
|
timestamp: number;
|
|
3712
|
+
conversation_id: string;
|
|
3713
3713
|
turn_id: string;
|
|
3714
3714
|
execution_id: string;
|
|
3715
3715
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3716
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3716
3717
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3717
3718
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3718
|
-
visibility?: "
|
|
3719
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
3719
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3720
3720
|
execution_seq?: number | undefined;
|
|
3721
3721
|
reason_message?: string | undefined;
|
|
3722
3722
|
} | {
|
|
3723
|
-
type: "history_summary";
|
|
3724
3723
|
id: string;
|
|
3725
|
-
|
|
3724
|
+
type: "history_summary";
|
|
3725
|
+
content: string;
|
|
3726
3726
|
timestamp: number;
|
|
3727
|
+
conversation_id: string;
|
|
3727
3728
|
turn_id: string;
|
|
3728
|
-
content: string;
|
|
3729
3729
|
original_message_count: number;
|
|
3730
3730
|
replaced_message_ids: string[];
|
|
3731
3731
|
summary_seq: number;
|
|
@@ -3733,31 +3733,31 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3733
3733
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3734
3734
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3735
3735
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3736
|
-
visibility?: "
|
|
3736
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3737
3737
|
compression_ratio?: number | undefined;
|
|
3738
3738
|
included_old_summary?: boolean | undefined;
|
|
3739
3739
|
execution_id?: string | undefined;
|
|
3740
3740
|
execution_seq?: number | undefined;
|
|
3741
3741
|
} | {
|
|
3742
|
-
type: "summarization_start";
|
|
3743
3742
|
id: string;
|
|
3744
|
-
|
|
3743
|
+
type: "summarization_start";
|
|
3745
3744
|
timestamp: number;
|
|
3746
|
-
turn_id: string;
|
|
3747
3745
|
run_id: string & z.BRAND<"RunId">;
|
|
3746
|
+
conversation_id: string;
|
|
3747
|
+
turn_id: string;
|
|
3748
3748
|
execution_id: string;
|
|
3749
3749
|
summarization_id: string;
|
|
3750
3750
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3751
3751
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3752
|
-
visibility?: "
|
|
3752
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3753
3753
|
execution_seq?: number | undefined;
|
|
3754
3754
|
} | {
|
|
3755
|
-
type: "summarization_end";
|
|
3756
3755
|
id: string;
|
|
3757
|
-
|
|
3756
|
+
type: "summarization_end";
|
|
3758
3757
|
timestamp: number;
|
|
3759
|
-
turn_id: string;
|
|
3760
3758
|
run_id: string & z.BRAND<"RunId">;
|
|
3759
|
+
conversation_id: string;
|
|
3760
|
+
turn_id: string;
|
|
3761
3761
|
original_message_count: number;
|
|
3762
3762
|
execution_id: string;
|
|
3763
3763
|
summary_id: string;
|
|
@@ -3765,44 +3765,44 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3765
3765
|
compressed_message_count: number;
|
|
3766
3766
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3767
3767
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3768
|
-
visibility?: "
|
|
3768
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3769
3769
|
compression_ratio?: number | undefined;
|
|
3770
3770
|
execution_seq?: number | undefined;
|
|
3771
3771
|
} | {
|
|
3772
|
-
type: "summarization_error";
|
|
3773
3772
|
id: string;
|
|
3774
|
-
|
|
3773
|
+
type: "summarization_error";
|
|
3774
|
+
error: string;
|
|
3775
3775
|
timestamp: number;
|
|
3776
|
-
turn_id: string;
|
|
3777
3776
|
run_id: string & z.BRAND<"RunId">;
|
|
3778
|
-
|
|
3777
|
+
conversation_id: string;
|
|
3778
|
+
turn_id: string;
|
|
3779
3779
|
execution_id: string;
|
|
3780
3780
|
summarization_id: string;
|
|
3781
3781
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3782
3782
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3783
|
-
visibility?: "
|
|
3783
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3784
3784
|
execution_seq?: number | undefined;
|
|
3785
3785
|
}, {
|
|
3786
|
-
type: "thought";
|
|
3787
3786
|
id: string;
|
|
3788
|
-
|
|
3787
|
+
type: "thought";
|
|
3789
3788
|
timestamp: number;
|
|
3789
|
+
conversation_id: string;
|
|
3790
3790
|
turn_id: string;
|
|
3791
|
+
content?: string | undefined;
|
|
3791
3792
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3792
3793
|
run_id?: string | undefined;
|
|
3793
3794
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3794
|
-
visibility?: "
|
|
3795
|
-
content?: string | undefined;
|
|
3795
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3796
3796
|
thought_message_id?: string | undefined;
|
|
3797
3797
|
delta?: string | undefined;
|
|
3798
3798
|
is_complete?: boolean | undefined;
|
|
3799
3799
|
execution_id?: string | undefined;
|
|
3800
3800
|
execution_seq?: number | undefined;
|
|
3801
3801
|
} | {
|
|
3802
|
-
type: "final_answer_chunk";
|
|
3803
3802
|
id: string;
|
|
3804
|
-
|
|
3803
|
+
type: "final_answer_chunk";
|
|
3805
3804
|
timestamp: number;
|
|
3805
|
+
conversation_id: string;
|
|
3806
3806
|
turn_id: string;
|
|
3807
3807
|
answer_id: string;
|
|
3808
3808
|
seq: number;
|
|
@@ -3810,107 +3810,106 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3810
3810
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3811
3811
|
run_id?: string | undefined;
|
|
3812
3812
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3813
|
-
visibility?: "
|
|
3813
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3814
3814
|
is_last?: boolean | undefined;
|
|
3815
3815
|
execution_id?: string | undefined;
|
|
3816
3816
|
execution_seq?: number | undefined;
|
|
3817
3817
|
} | {
|
|
3818
|
-
type: "final_answer_reset";
|
|
3819
3818
|
id: string;
|
|
3820
|
-
|
|
3819
|
+
type: "final_answer_reset";
|
|
3821
3820
|
timestamp: number;
|
|
3821
|
+
conversation_id: string;
|
|
3822
3822
|
turn_id: string;
|
|
3823
3823
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3824
3824
|
run_id?: string | undefined;
|
|
3825
3825
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3826
|
-
visibility?: "
|
|
3826
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3827
3827
|
answer_id?: string | undefined;
|
|
3828
3828
|
thought_message_ids?: string[] | undefined;
|
|
3829
3829
|
execution_id?: string | undefined;
|
|
3830
3830
|
execution_seq?: number | undefined;
|
|
3831
3831
|
} | {
|
|
3832
|
-
type: "final_answer";
|
|
3833
3832
|
id: string;
|
|
3834
|
-
|
|
3833
|
+
type: "final_answer";
|
|
3834
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
3835
|
+
content: string;
|
|
3835
3836
|
timestamp: number;
|
|
3837
|
+
conversation_id: string;
|
|
3836
3838
|
turn_id: string;
|
|
3837
|
-
content: string;
|
|
3838
3839
|
answer_id: string;
|
|
3839
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
3840
3840
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3841
3841
|
run_id?: string | undefined;
|
|
3842
3842
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3843
|
-
visibility?: "
|
|
3843
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3844
3844
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3845
3845
|
execution_id?: string | undefined;
|
|
3846
3846
|
execution_seq?: number | undefined;
|
|
3847
3847
|
} | {
|
|
3848
|
-
type: "markdown_chunk";
|
|
3849
3848
|
id: string;
|
|
3850
|
-
|
|
3849
|
+
type: "markdown_chunk";
|
|
3850
|
+
text: string;
|
|
3851
3851
|
timestamp: number;
|
|
3852
|
+
conversation_id: string;
|
|
3852
3853
|
turn_id: string;
|
|
3853
|
-
text: string;
|
|
3854
3854
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3855
3855
|
run_id?: string | undefined;
|
|
3856
3856
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3857
|
-
visibility?: "
|
|
3857
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3858
3858
|
seq?: number | undefined;
|
|
3859
3859
|
execution_id?: string | undefined;
|
|
3860
3860
|
execution_seq?: number | undefined;
|
|
3861
|
-
content_type?: "code" | "
|
|
3861
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
3862
3862
|
} | {
|
|
3863
|
-
type: "tool_call_decision";
|
|
3864
3863
|
id: string;
|
|
3865
|
-
|
|
3866
|
-
timestamp: number;
|
|
3864
|
+
type: "tool_call_decision";
|
|
3867
3865
|
status: "error" | "loading" | "success";
|
|
3868
|
-
turn_id: string;
|
|
3869
|
-
tool_name: string;
|
|
3870
3866
|
tool_call_id: string;
|
|
3871
|
-
|
|
3867
|
+
tool_name: string;
|
|
3868
|
+
timestamp: number;
|
|
3869
|
+
conversation_id: string;
|
|
3870
|
+
turn_id: string;
|
|
3871
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3872
|
+
payload?: SerializableJsonValue | undefined;
|
|
3873
|
+
args?: SerializableJsonValue | undefined;
|
|
3872
3874
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3873
3875
|
run_id?: string | undefined;
|
|
3874
3876
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3875
|
-
visibility?: "
|
|
3876
|
-
args?: SerializableJsonValue | undefined;
|
|
3877
|
-
payload?: SerializableJsonValue | undefined;
|
|
3877
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3878
3878
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3879
3879
|
execution_id?: string | undefined;
|
|
3880
3880
|
execution_seq?: number | undefined;
|
|
3881
3881
|
} | {
|
|
3882
|
-
type: "tool_process";
|
|
3883
3882
|
id: string;
|
|
3884
|
-
|
|
3885
|
-
timestamp: number;
|
|
3883
|
+
type: "tool_process";
|
|
3886
3884
|
status: "error" | "loading" | "success";
|
|
3887
|
-
turn_id: string;
|
|
3888
|
-
tool_name: string;
|
|
3889
3885
|
tool_call_id: string;
|
|
3890
|
-
|
|
3886
|
+
tool_name: string;
|
|
3887
|
+
timestamp: number;
|
|
3888
|
+
conversation_id: string;
|
|
3889
|
+
turn_id: string;
|
|
3890
|
+
phase: "error" | "start" | "update" | "complete";
|
|
3891
|
+
payload?: SerializableJsonValue | undefined;
|
|
3892
|
+
args?: SerializableJsonValue | undefined;
|
|
3891
3893
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3892
3894
|
run_id?: string | undefined;
|
|
3893
3895
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3894
|
-
visibility?: "
|
|
3895
|
-
args?: SerializableJsonValue | undefined;
|
|
3896
|
-
payload?: SerializableJsonValue | undefined;
|
|
3896
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3897
3897
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3898
3898
|
execution_id?: string | undefined;
|
|
3899
3899
|
execution_seq?: number | undefined;
|
|
3900
3900
|
} | {
|
|
3901
|
-
type: "tool_output";
|
|
3902
3901
|
id: string;
|
|
3903
|
-
|
|
3904
|
-
timestamp: number;
|
|
3902
|
+
type: "tool_output";
|
|
3905
3903
|
status: "error" | "success";
|
|
3906
|
-
turn_id: string;
|
|
3907
|
-
tool_name: string;
|
|
3908
3904
|
tool_call_id: string;
|
|
3905
|
+
tool_name: string;
|
|
3906
|
+
timestamp: number;
|
|
3907
|
+
conversation_id: string;
|
|
3908
|
+
turn_id: string;
|
|
3909
3909
|
observation: string;
|
|
3910
|
+
data?: SerializableJsonValue | undefined;
|
|
3911
|
+
error?: string | undefined;
|
|
3910
3912
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3911
|
-
run_id?: string | undefined;
|
|
3912
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3913
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
3914
3913
|
attachments?: {
|
|
3915
3914
|
id: string;
|
|
3916
3915
|
kind: "image";
|
|
@@ -3923,28 +3922,35 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3923
3922
|
fileName?: string | undefined;
|
|
3924
3923
|
label?: string | undefined;
|
|
3925
3924
|
}[] | undefined;
|
|
3926
|
-
|
|
3927
|
-
|
|
3925
|
+
run_id?: string | undefined;
|
|
3926
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3927
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3928
3928
|
error_code?: string | undefined;
|
|
3929
3929
|
duration_ms?: number | undefined;
|
|
3930
3930
|
execution_id?: string | undefined;
|
|
3931
3931
|
execution_seq?: number | undefined;
|
|
3932
3932
|
} | {
|
|
3933
|
-
type: "subrun_trace";
|
|
3934
3933
|
id: string;
|
|
3935
|
-
|
|
3934
|
+
type: "subrun_trace";
|
|
3935
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
3936
3936
|
timestamp: number;
|
|
3937
|
+
conversation_id: string;
|
|
3937
3938
|
turn_id: string;
|
|
3938
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
3939
3939
|
parent_tool_call_id: string;
|
|
3940
3940
|
subrun_id: string;
|
|
3941
3941
|
source_event_id: string;
|
|
3942
3942
|
status?: "error" | "loading" | "success" | undefined;
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3943
|
+
tool_calls?: {
|
|
3944
|
+
tool_call_id: string;
|
|
3945
|
+
tool_name: string;
|
|
3946
|
+
args: Record<string, SerializableJsonValue>;
|
|
3947
|
+
}[] | undefined;
|
|
3948
|
+
tool_call_id?: string | undefined;
|
|
3949
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
3950
|
+
tool_name?: string | undefined;
|
|
3951
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3947
3952
|
content?: string | undefined;
|
|
3953
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3948
3954
|
attachments?: {
|
|
3949
3955
|
id: string;
|
|
3950
3956
|
kind: "image";
|
|
@@ -3957,22 +3963,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3957
3963
|
fileName?: string | undefined;
|
|
3958
3964
|
label?: string | undefined;
|
|
3959
3965
|
}[] | undefined;
|
|
3960
|
-
delta?: string | undefined;
|
|
3961
|
-
tool_name?: string | undefined;
|
|
3962
|
-
tool_call_id?: string | undefined;
|
|
3963
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
3964
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
3965
|
-
tool_calls?: {
|
|
3966
|
-
tool_name: string;
|
|
3967
|
-
tool_call_id: string;
|
|
3968
|
-
args: Record<string, SerializableJsonValue>;
|
|
3969
|
-
}[] | undefined;
|
|
3970
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3971
|
-
duration_ms?: number | undefined;
|
|
3972
|
-
subrun_parent_id?: string | undefined;
|
|
3973
|
-
output?: SerializableJsonValue | undefined;
|
|
3974
3966
|
retry?: {
|
|
3975
|
-
status: "
|
|
3967
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
3976
3968
|
error: string;
|
|
3977
3969
|
error_code: string;
|
|
3978
3970
|
retry_id: string;
|
|
@@ -3984,6 +3976,15 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3984
3976
|
delay_ms: number;
|
|
3985
3977
|
next_retry_at?: number | undefined;
|
|
3986
3978
|
} | undefined;
|
|
3979
|
+
run_id?: string | undefined;
|
|
3980
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3981
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3982
|
+
delta?: string | undefined;
|
|
3983
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
3984
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
3985
|
+
duration_ms?: number | undefined;
|
|
3986
|
+
subrun_parent_id?: string | undefined;
|
|
3987
|
+
output?: SerializableJsonValue | undefined;
|
|
3987
3988
|
failure?: {
|
|
3988
3989
|
error: string;
|
|
3989
3990
|
error_code?: string | undefined;
|
|
@@ -3994,7 +3995,6 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3994
3995
|
answer_id?: string | undefined;
|
|
3995
3996
|
seq?: number | undefined;
|
|
3996
3997
|
is_last?: boolean | undefined;
|
|
3997
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
3998
3998
|
original_message_count?: number | undefined;
|
|
3999
3999
|
compression_ratio?: number | undefined;
|
|
4000
4000
|
included_old_summary?: boolean | undefined;
|
|
@@ -4002,33 +4002,33 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
4002
4002
|
execution_id?: string | undefined;
|
|
4003
4003
|
execution_seq?: number | undefined;
|
|
4004
4004
|
} | {
|
|
4005
|
-
type: "requires_user_interaction";
|
|
4006
4005
|
id: string;
|
|
4007
|
-
|
|
4006
|
+
type: "requires_user_interaction";
|
|
4007
|
+
tool_call_id: string;
|
|
4008
4008
|
timestamp: number;
|
|
4009
|
-
turn_id: string;
|
|
4010
4009
|
run_id: string;
|
|
4011
|
-
|
|
4010
|
+
conversation_id: string;
|
|
4011
|
+
turn_id: string;
|
|
4012
4012
|
interaction_id: string;
|
|
4013
4013
|
checkpoint_revision: number;
|
|
4014
4014
|
resume_token: string;
|
|
4015
4015
|
interaction_status: "pending";
|
|
4016
4016
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4017
4017
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4018
|
-
visibility?: "
|
|
4018
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4019
4019
|
form?: SerializableJsonValue | undefined;
|
|
4020
4020
|
interaction_type?: string | undefined;
|
|
4021
4021
|
prompt?: string | undefined;
|
|
4022
4022
|
execution_id?: string | undefined;
|
|
4023
4023
|
execution_seq?: number | undefined;
|
|
4024
4024
|
} | {
|
|
4025
|
-
type: "llm_retry";
|
|
4026
4025
|
id: string;
|
|
4027
|
-
|
|
4026
|
+
type: "llm_retry";
|
|
4027
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
4028
|
+
error: string;
|
|
4028
4029
|
timestamp: number;
|
|
4029
|
-
|
|
4030
|
+
conversation_id: string;
|
|
4030
4031
|
turn_id: string;
|
|
4031
|
-
error: string;
|
|
4032
4032
|
error_code: string;
|
|
4033
4033
|
retry_id: string;
|
|
4034
4034
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -4040,21 +4040,21 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
4040
4040
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4041
4041
|
run_id?: string | undefined;
|
|
4042
4042
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4043
|
-
visibility?: "
|
|
4043
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4044
4044
|
next_retry_at?: number | undefined;
|
|
4045
4045
|
execution_id?: string | undefined;
|
|
4046
4046
|
execution_seq?: number | undefined;
|
|
4047
4047
|
} | {
|
|
4048
|
-
type: "error";
|
|
4049
4048
|
id: string;
|
|
4050
|
-
|
|
4049
|
+
type: "error";
|
|
4050
|
+
error: string;
|
|
4051
4051
|
timestamp: number;
|
|
4052
|
+
conversation_id: string;
|
|
4052
4053
|
turn_id: string;
|
|
4053
|
-
error: string;
|
|
4054
4054
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4055
4055
|
run_id?: string | undefined;
|
|
4056
4056
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4057
|
-
visibility?: "
|
|
4057
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4058
4058
|
error_code?: string | undefined;
|
|
4059
4059
|
retry_id?: string | undefined;
|
|
4060
4060
|
retryable?: boolean | undefined;
|
|
@@ -4062,26 +4062,26 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
4062
4062
|
execution_id?: string | undefined;
|
|
4063
4063
|
execution_seq?: number | undefined;
|
|
4064
4064
|
} | {
|
|
4065
|
-
type: "transport_error";
|
|
4066
4065
|
id: string;
|
|
4067
|
-
|
|
4066
|
+
type: "transport_error";
|
|
4067
|
+
error: string;
|
|
4068
4068
|
timestamp: number;
|
|
4069
|
+
conversation_id: string;
|
|
4069
4070
|
turn_id: string;
|
|
4070
|
-
error: string;
|
|
4071
4071
|
execution_id: string;
|
|
4072
4072
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4073
4073
|
run_id?: string | undefined;
|
|
4074
4074
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4075
|
-
visibility?: "
|
|
4075
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4076
4076
|
error_code?: string | undefined;
|
|
4077
4077
|
retryable?: boolean | undefined;
|
|
4078
4078
|
details?: SerializableJsonValue | undefined;
|
|
4079
4079
|
execution_seq?: number | undefined;
|
|
4080
4080
|
} | {
|
|
4081
|
-
type: "context_usage_snapshot";
|
|
4082
4081
|
id: string;
|
|
4083
|
-
|
|
4082
|
+
type: "context_usage_snapshot";
|
|
4084
4083
|
timestamp: number;
|
|
4084
|
+
conversation_id: string;
|
|
4085
4085
|
turn_id: string;
|
|
4086
4086
|
context_usage: {
|
|
4087
4087
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -4104,23 +4104,23 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
4104
4104
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4105
4105
|
run_id?: string | undefined;
|
|
4106
4106
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4107
|
-
visibility?: "
|
|
4107
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4108
4108
|
user_message_id?: string | undefined;
|
|
4109
4109
|
execution_id?: string | undefined;
|
|
4110
4110
|
execution_seq?: number | undefined;
|
|
4111
4111
|
} | {
|
|
4112
|
-
type: "run_execution_metrics";
|
|
4113
4112
|
id: string;
|
|
4114
|
-
|
|
4113
|
+
type: "run_execution_metrics";
|
|
4115
4114
|
timestamp: number;
|
|
4115
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
4116
|
+
conversation_id: string;
|
|
4116
4117
|
turn_id: string;
|
|
4117
4118
|
duration_ms: number;
|
|
4118
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
4119
4119
|
execution_id: string;
|
|
4120
4120
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4121
4121
|
run_id?: string | undefined;
|
|
4122
4122
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4123
|
-
visibility?: "
|
|
4123
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4124
4124
|
user_message_id?: string | undefined;
|
|
4125
4125
|
context_usage?: {
|
|
4126
4126
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -4142,40 +4142,40 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
4142
4142
|
} | undefined;
|
|
4143
4143
|
execution_seq?: number | undefined;
|
|
4144
4144
|
} | {
|
|
4145
|
-
type: "run_status";
|
|
4146
4145
|
id: string;
|
|
4147
|
-
|
|
4146
|
+
type: "run_status";
|
|
4147
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
4148
4148
|
timestamp: number;
|
|
4149
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
4150
|
-
turn_id: string;
|
|
4151
4149
|
run_id: string;
|
|
4150
|
+
conversation_id: string;
|
|
4151
|
+
turn_id: string;
|
|
4152
4152
|
execution_id: string;
|
|
4153
4153
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4154
4154
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4155
|
-
visibility?: "
|
|
4155
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4156
4156
|
execution_seq?: number | undefined;
|
|
4157
4157
|
reason_message?: string | undefined;
|
|
4158
4158
|
} | {
|
|
4159
|
-
type: "transport_end";
|
|
4160
4159
|
id: string;
|
|
4161
|
-
|
|
4160
|
+
type: "transport_end";
|
|
4162
4161
|
timestamp: number;
|
|
4162
|
+
conversation_id: string;
|
|
4163
4163
|
turn_id: string;
|
|
4164
4164
|
execution_id: string;
|
|
4165
4165
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4166
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4166
4167
|
run_id?: string | undefined;
|
|
4167
4168
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4168
|
-
visibility?: "
|
|
4169
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
4169
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4170
4170
|
execution_seq?: number | undefined;
|
|
4171
4171
|
reason_message?: string | undefined;
|
|
4172
4172
|
} | {
|
|
4173
|
-
type: "history_summary";
|
|
4174
4173
|
id: string;
|
|
4175
|
-
|
|
4174
|
+
type: "history_summary";
|
|
4175
|
+
content: string;
|
|
4176
4176
|
timestamp: number;
|
|
4177
|
+
conversation_id: string;
|
|
4177
4178
|
turn_id: string;
|
|
4178
|
-
content: string;
|
|
4179
4179
|
original_message_count: number;
|
|
4180
4180
|
replaced_message_ids: string[];
|
|
4181
4181
|
summary_seq: number;
|
|
@@ -4183,31 +4183,31 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
4183
4183
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4184
4184
|
run_id?: string | undefined;
|
|
4185
4185
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4186
|
-
visibility?: "
|
|
4186
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4187
4187
|
compression_ratio?: number | undefined;
|
|
4188
4188
|
included_old_summary?: boolean | undefined;
|
|
4189
4189
|
execution_id?: string | undefined;
|
|
4190
4190
|
execution_seq?: number | undefined;
|
|
4191
4191
|
} | {
|
|
4192
|
-
type: "summarization_start";
|
|
4193
4192
|
id: string;
|
|
4194
|
-
|
|
4193
|
+
type: "summarization_start";
|
|
4195
4194
|
timestamp: number;
|
|
4196
|
-
turn_id: string;
|
|
4197
4195
|
run_id: string;
|
|
4196
|
+
conversation_id: string;
|
|
4197
|
+
turn_id: string;
|
|
4198
4198
|
execution_id: string;
|
|
4199
4199
|
summarization_id: string;
|
|
4200
4200
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4201
4201
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4202
|
-
visibility?: "
|
|
4202
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4203
4203
|
execution_seq?: number | undefined;
|
|
4204
4204
|
} | {
|
|
4205
|
-
type: "summarization_end";
|
|
4206
4205
|
id: string;
|
|
4207
|
-
|
|
4206
|
+
type: "summarization_end";
|
|
4208
4207
|
timestamp: number;
|
|
4209
|
-
turn_id: string;
|
|
4210
4208
|
run_id: string;
|
|
4209
|
+
conversation_id: string;
|
|
4210
|
+
turn_id: string;
|
|
4211
4211
|
original_message_count: number;
|
|
4212
4212
|
execution_id: string;
|
|
4213
4213
|
summary_id: string;
|
|
@@ -4215,48 +4215,48 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
4215
4215
|
compressed_message_count: number;
|
|
4216
4216
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4217
4217
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4218
|
-
visibility?: "
|
|
4218
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4219
4219
|
compression_ratio?: number | undefined;
|
|
4220
4220
|
execution_seq?: number | undefined;
|
|
4221
4221
|
} | {
|
|
4222
|
-
type: "summarization_error";
|
|
4223
4222
|
id: string;
|
|
4224
|
-
|
|
4223
|
+
type: "summarization_error";
|
|
4224
|
+
error: string;
|
|
4225
4225
|
timestamp: number;
|
|
4226
|
-
turn_id: string;
|
|
4227
4226
|
run_id: string;
|
|
4228
|
-
|
|
4227
|
+
conversation_id: string;
|
|
4228
|
+
turn_id: string;
|
|
4229
4229
|
execution_id: string;
|
|
4230
4230
|
summarization_id: string;
|
|
4231
4231
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4232
4232
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4233
|
-
visibility?: "
|
|
4233
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4234
4234
|
execution_seq?: number | undefined;
|
|
4235
4235
|
}>;
|
|
4236
4236
|
type SSEEvent = z.infer<typeof SSEEvent>;
|
|
4237
4237
|
/** Renderer/transport admission 前的 wire 输入;strict parse 后才可作为 SSEEvent 使用。 */
|
|
4238
4238
|
type SSEEventInput = z.input<typeof SSEEvent>;
|
|
4239
4239
|
declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
4240
|
-
type: "thought";
|
|
4241
4240
|
id: string;
|
|
4242
|
-
|
|
4241
|
+
type: "thought";
|
|
4243
4242
|
timestamp: number;
|
|
4243
|
+
conversation_id: string;
|
|
4244
4244
|
turn_id: string;
|
|
4245
|
+
content?: string | undefined;
|
|
4245
4246
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4246
4247
|
run_id?: string | undefined;
|
|
4247
4248
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4248
|
-
visibility?: "
|
|
4249
|
-
content?: string | undefined;
|
|
4249
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4250
4250
|
thought_message_id?: string | undefined;
|
|
4251
4251
|
delta?: string | undefined;
|
|
4252
4252
|
is_complete?: boolean | undefined;
|
|
4253
4253
|
execution_id?: string | undefined;
|
|
4254
4254
|
execution_seq?: number | undefined;
|
|
4255
4255
|
} | {
|
|
4256
|
-
type: "final_answer_chunk";
|
|
4257
4256
|
id: string;
|
|
4258
|
-
|
|
4257
|
+
type: "final_answer_chunk";
|
|
4259
4258
|
timestamp: number;
|
|
4259
|
+
conversation_id: string;
|
|
4260
4260
|
turn_id: string;
|
|
4261
4261
|
answer_id: string;
|
|
4262
4262
|
seq: number;
|
|
@@ -4264,107 +4264,106 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4264
4264
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4265
4265
|
run_id?: string | undefined;
|
|
4266
4266
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4267
|
-
visibility?: "
|
|
4267
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4268
4268
|
is_last?: boolean | undefined;
|
|
4269
4269
|
execution_id?: string | undefined;
|
|
4270
4270
|
execution_seq?: number | undefined;
|
|
4271
4271
|
} | {
|
|
4272
|
-
type: "final_answer_reset";
|
|
4273
4272
|
id: string;
|
|
4274
|
-
|
|
4273
|
+
type: "final_answer_reset";
|
|
4275
4274
|
timestamp: number;
|
|
4275
|
+
conversation_id: string;
|
|
4276
4276
|
turn_id: string;
|
|
4277
4277
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4278
4278
|
run_id?: string | undefined;
|
|
4279
4279
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4280
|
-
visibility?: "
|
|
4280
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4281
4281
|
answer_id?: string | undefined;
|
|
4282
4282
|
thought_message_ids?: string[] | undefined;
|
|
4283
4283
|
execution_id?: string | undefined;
|
|
4284
4284
|
execution_seq?: number | undefined;
|
|
4285
4285
|
} | {
|
|
4286
|
-
type: "final_answer";
|
|
4287
4286
|
id: string;
|
|
4288
|
-
|
|
4287
|
+
type: "final_answer";
|
|
4288
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4289
|
+
content: string;
|
|
4289
4290
|
timestamp: number;
|
|
4291
|
+
conversation_id: string;
|
|
4290
4292
|
turn_id: string;
|
|
4291
|
-
content: string;
|
|
4292
4293
|
answer_id: string;
|
|
4293
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4294
4294
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4295
4295
|
run_id?: string | undefined;
|
|
4296
4296
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4297
|
-
visibility?: "
|
|
4297
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4298
4298
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4299
4299
|
execution_id?: string | undefined;
|
|
4300
4300
|
execution_seq?: number | undefined;
|
|
4301
4301
|
} | {
|
|
4302
|
-
type: "markdown_chunk";
|
|
4303
4302
|
id: string;
|
|
4304
|
-
|
|
4303
|
+
type: "markdown_chunk";
|
|
4304
|
+
text: string;
|
|
4305
4305
|
timestamp: number;
|
|
4306
|
+
conversation_id: string;
|
|
4306
4307
|
turn_id: string;
|
|
4307
|
-
text: string;
|
|
4308
4308
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4309
4309
|
run_id?: string | undefined;
|
|
4310
4310
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4311
|
-
visibility?: "
|
|
4311
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4312
4312
|
seq?: number | undefined;
|
|
4313
4313
|
execution_id?: string | undefined;
|
|
4314
4314
|
execution_seq?: number | undefined;
|
|
4315
|
-
content_type?: "code" | "
|
|
4315
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
4316
4316
|
} | {
|
|
4317
|
-
type: "tool_call_decision";
|
|
4318
4317
|
id: string;
|
|
4319
|
-
|
|
4320
|
-
timestamp: number;
|
|
4318
|
+
type: "tool_call_decision";
|
|
4321
4319
|
status: "error" | "loading" | "success";
|
|
4322
|
-
turn_id: string;
|
|
4323
|
-
tool_name: string;
|
|
4324
4320
|
tool_call_id: string;
|
|
4325
|
-
|
|
4321
|
+
tool_name: string;
|
|
4322
|
+
timestamp: number;
|
|
4323
|
+
conversation_id: string;
|
|
4324
|
+
turn_id: string;
|
|
4325
|
+
phase: "error" | "start" | "update" | "complete";
|
|
4326
|
+
payload?: SerializableJsonValue | undefined;
|
|
4327
|
+
args?: SerializableJsonValue | undefined;
|
|
4326
4328
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4327
4329
|
run_id?: string | undefined;
|
|
4328
4330
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4329
|
-
visibility?: "
|
|
4330
|
-
args?: SerializableJsonValue | undefined;
|
|
4331
|
-
payload?: SerializableJsonValue | undefined;
|
|
4331
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4332
4332
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4333
4333
|
execution_id?: string | undefined;
|
|
4334
4334
|
execution_seq?: number | undefined;
|
|
4335
4335
|
} | {
|
|
4336
|
-
type: "tool_process";
|
|
4337
4336
|
id: string;
|
|
4338
|
-
|
|
4339
|
-
timestamp: number;
|
|
4337
|
+
type: "tool_process";
|
|
4340
4338
|
status: "error" | "loading" | "success";
|
|
4341
|
-
turn_id: string;
|
|
4342
|
-
tool_name: string;
|
|
4343
4339
|
tool_call_id: string;
|
|
4344
|
-
|
|
4340
|
+
tool_name: string;
|
|
4341
|
+
timestamp: number;
|
|
4342
|
+
conversation_id: string;
|
|
4343
|
+
turn_id: string;
|
|
4344
|
+
phase: "error" | "start" | "update" | "complete";
|
|
4345
|
+
payload?: SerializableJsonValue | undefined;
|
|
4346
|
+
args?: SerializableJsonValue | undefined;
|
|
4345
4347
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4346
4348
|
run_id?: string | undefined;
|
|
4347
4349
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4348
|
-
visibility?: "
|
|
4349
|
-
args?: SerializableJsonValue | undefined;
|
|
4350
|
-
payload?: SerializableJsonValue | undefined;
|
|
4350
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4351
4351
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4352
4352
|
execution_id?: string | undefined;
|
|
4353
4353
|
execution_seq?: number | undefined;
|
|
4354
4354
|
} | {
|
|
4355
|
-
type: "tool_output";
|
|
4356
4355
|
id: string;
|
|
4357
|
-
|
|
4358
|
-
timestamp: number;
|
|
4356
|
+
type: "tool_output";
|
|
4359
4357
|
status: "error" | "success";
|
|
4360
|
-
turn_id: string;
|
|
4361
|
-
tool_name: string;
|
|
4362
4358
|
tool_call_id: string;
|
|
4359
|
+
tool_name: string;
|
|
4360
|
+
timestamp: number;
|
|
4361
|
+
conversation_id: string;
|
|
4362
|
+
turn_id: string;
|
|
4363
4363
|
observation: string;
|
|
4364
|
+
data?: SerializableJsonValue | undefined;
|
|
4365
|
+
error?: string | undefined;
|
|
4364
4366
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4365
|
-
run_id?: string | undefined;
|
|
4366
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4367
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
4368
4367
|
attachments?: {
|
|
4369
4368
|
id: string;
|
|
4370
4369
|
kind: "image";
|
|
@@ -4377,28 +4376,35 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4377
4376
|
fileName?: string | undefined;
|
|
4378
4377
|
label?: string | undefined;
|
|
4379
4378
|
}[] | undefined;
|
|
4380
|
-
|
|
4381
|
-
|
|
4379
|
+
run_id?: string | undefined;
|
|
4380
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4381
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4382
4382
|
error_code?: string | undefined;
|
|
4383
4383
|
duration_ms?: number | undefined;
|
|
4384
4384
|
execution_id?: string | undefined;
|
|
4385
4385
|
execution_seq?: number | undefined;
|
|
4386
4386
|
} | {
|
|
4387
|
-
type: "subrun_trace";
|
|
4388
4387
|
id: string;
|
|
4389
|
-
|
|
4388
|
+
type: "subrun_trace";
|
|
4389
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
4390
4390
|
timestamp: number;
|
|
4391
|
+
conversation_id: string;
|
|
4391
4392
|
turn_id: string;
|
|
4392
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
4393
4393
|
parent_tool_call_id: string;
|
|
4394
4394
|
subrun_id: string;
|
|
4395
4395
|
source_event_id: string;
|
|
4396
4396
|
status?: "error" | "loading" | "success" | undefined;
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4397
|
+
tool_calls?: {
|
|
4398
|
+
tool_call_id: string;
|
|
4399
|
+
tool_name: string;
|
|
4400
|
+
args: Record<string, SerializableJsonValue>;
|
|
4401
|
+
}[] | undefined;
|
|
4402
|
+
tool_call_id?: string | undefined;
|
|
4403
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4404
|
+
tool_name?: string | undefined;
|
|
4405
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4401
4406
|
content?: string | undefined;
|
|
4407
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4402
4408
|
attachments?: {
|
|
4403
4409
|
id: string;
|
|
4404
4410
|
kind: "image";
|
|
@@ -4411,22 +4417,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4411
4417
|
fileName?: string | undefined;
|
|
4412
4418
|
label?: string | undefined;
|
|
4413
4419
|
}[] | undefined;
|
|
4414
|
-
delta?: string | undefined;
|
|
4415
|
-
tool_name?: string | undefined;
|
|
4416
|
-
tool_call_id?: string | undefined;
|
|
4417
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
4418
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4419
|
-
tool_calls?: {
|
|
4420
|
-
tool_name: string;
|
|
4421
|
-
tool_call_id: string;
|
|
4422
|
-
args: Record<string, SerializableJsonValue>;
|
|
4423
|
-
}[] | undefined;
|
|
4424
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4425
|
-
duration_ms?: number | undefined;
|
|
4426
|
-
subrun_parent_id?: string | undefined;
|
|
4427
|
-
output?: SerializableJsonValue | undefined;
|
|
4428
4420
|
retry?: {
|
|
4429
|
-
status: "
|
|
4421
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
4430
4422
|
error: string;
|
|
4431
4423
|
error_code: string;
|
|
4432
4424
|
retry_id: string;
|
|
@@ -4438,6 +4430,15 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4438
4430
|
delay_ms: number;
|
|
4439
4431
|
next_retry_at?: number | undefined;
|
|
4440
4432
|
} | undefined;
|
|
4433
|
+
run_id?: string | undefined;
|
|
4434
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4435
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4436
|
+
delta?: string | undefined;
|
|
4437
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
4438
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4439
|
+
duration_ms?: number | undefined;
|
|
4440
|
+
subrun_parent_id?: string | undefined;
|
|
4441
|
+
output?: SerializableJsonValue | undefined;
|
|
4441
4442
|
failure?: {
|
|
4442
4443
|
error: string;
|
|
4443
4444
|
error_code?: string | undefined;
|
|
@@ -4448,7 +4449,6 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4448
4449
|
answer_id?: string | undefined;
|
|
4449
4450
|
seq?: number | undefined;
|
|
4450
4451
|
is_last?: boolean | undefined;
|
|
4451
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4452
4452
|
original_message_count?: number | undefined;
|
|
4453
4453
|
compression_ratio?: number | undefined;
|
|
4454
4454
|
included_old_summary?: boolean | undefined;
|
|
@@ -4456,33 +4456,33 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4456
4456
|
execution_id?: string | undefined;
|
|
4457
4457
|
execution_seq?: number | undefined;
|
|
4458
4458
|
} | {
|
|
4459
|
-
type: "requires_user_interaction";
|
|
4460
4459
|
id: string;
|
|
4461
|
-
|
|
4460
|
+
type: "requires_user_interaction";
|
|
4461
|
+
tool_call_id: string;
|
|
4462
4462
|
timestamp: number;
|
|
4463
|
-
turn_id: string;
|
|
4464
4463
|
run_id: string;
|
|
4465
|
-
|
|
4464
|
+
conversation_id: string;
|
|
4465
|
+
turn_id: string;
|
|
4466
4466
|
interaction_id: string;
|
|
4467
4467
|
checkpoint_revision: number;
|
|
4468
4468
|
resume_token: string;
|
|
4469
4469
|
interaction_status: "pending";
|
|
4470
4470
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4471
4471
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4472
|
-
visibility?: "
|
|
4472
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4473
4473
|
form?: SerializableJsonValue | undefined;
|
|
4474
4474
|
interaction_type?: string | undefined;
|
|
4475
4475
|
prompt?: string | undefined;
|
|
4476
4476
|
execution_id?: string | undefined;
|
|
4477
4477
|
execution_seq?: number | undefined;
|
|
4478
4478
|
} | {
|
|
4479
|
-
type: "llm_retry";
|
|
4480
4479
|
id: string;
|
|
4481
|
-
|
|
4480
|
+
type: "llm_retry";
|
|
4481
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
4482
|
+
error: string;
|
|
4482
4483
|
timestamp: number;
|
|
4483
|
-
|
|
4484
|
+
conversation_id: string;
|
|
4484
4485
|
turn_id: string;
|
|
4485
|
-
error: string;
|
|
4486
4486
|
error_code: string;
|
|
4487
4487
|
retry_id: string;
|
|
4488
4488
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -4494,21 +4494,21 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4494
4494
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4495
4495
|
run_id?: string | undefined;
|
|
4496
4496
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4497
|
-
visibility?: "
|
|
4497
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4498
4498
|
next_retry_at?: number | undefined;
|
|
4499
4499
|
execution_id?: string | undefined;
|
|
4500
4500
|
execution_seq?: number | undefined;
|
|
4501
4501
|
} | {
|
|
4502
|
-
type: "error";
|
|
4503
4502
|
id: string;
|
|
4504
|
-
|
|
4503
|
+
type: "error";
|
|
4504
|
+
error: string;
|
|
4505
4505
|
timestamp: number;
|
|
4506
|
+
conversation_id: string;
|
|
4506
4507
|
turn_id: string;
|
|
4507
|
-
error: string;
|
|
4508
4508
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4509
4509
|
run_id?: string | undefined;
|
|
4510
4510
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4511
|
-
visibility?: "
|
|
4511
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4512
4512
|
error_code?: string | undefined;
|
|
4513
4513
|
retry_id?: string | undefined;
|
|
4514
4514
|
retryable?: boolean | undefined;
|
|
@@ -4516,26 +4516,26 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4516
4516
|
execution_id?: string | undefined;
|
|
4517
4517
|
execution_seq?: number | undefined;
|
|
4518
4518
|
} | {
|
|
4519
|
-
type: "transport_error";
|
|
4520
4519
|
id: string;
|
|
4521
|
-
|
|
4520
|
+
type: "transport_error";
|
|
4521
|
+
error: string;
|
|
4522
4522
|
timestamp: number;
|
|
4523
|
+
conversation_id: string;
|
|
4523
4524
|
turn_id: string;
|
|
4524
|
-
error: string;
|
|
4525
4525
|
execution_id: string;
|
|
4526
4526
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4527
4527
|
run_id?: string | undefined;
|
|
4528
4528
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4529
|
-
visibility?: "
|
|
4529
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4530
4530
|
error_code?: string | undefined;
|
|
4531
4531
|
retryable?: boolean | undefined;
|
|
4532
4532
|
details?: SerializableJsonValue | undefined;
|
|
4533
4533
|
execution_seq?: number | undefined;
|
|
4534
4534
|
} | {
|
|
4535
|
-
type: "context_usage_snapshot";
|
|
4536
4535
|
id: string;
|
|
4537
|
-
|
|
4536
|
+
type: "context_usage_snapshot";
|
|
4538
4537
|
timestamp: number;
|
|
4538
|
+
conversation_id: string;
|
|
4539
4539
|
turn_id: string;
|
|
4540
4540
|
context_usage: {
|
|
4541
4541
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -4558,23 +4558,23 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4558
4558
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4559
4559
|
run_id?: string | undefined;
|
|
4560
4560
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4561
|
-
visibility?: "
|
|
4561
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4562
4562
|
user_message_id?: string | undefined;
|
|
4563
4563
|
execution_id?: string | undefined;
|
|
4564
4564
|
execution_seq?: number | undefined;
|
|
4565
4565
|
} | {
|
|
4566
|
-
type: "run_execution_metrics";
|
|
4567
4566
|
id: string;
|
|
4568
|
-
|
|
4567
|
+
type: "run_execution_metrics";
|
|
4569
4568
|
timestamp: number;
|
|
4569
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
4570
|
+
conversation_id: string;
|
|
4570
4571
|
turn_id: string;
|
|
4571
4572
|
duration_ms: number;
|
|
4572
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
4573
4573
|
execution_id: string;
|
|
4574
4574
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4575
4575
|
run_id?: string | undefined;
|
|
4576
4576
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4577
|
-
visibility?: "
|
|
4577
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4578
4578
|
user_message_id?: string | undefined;
|
|
4579
4579
|
context_usage?: {
|
|
4580
4580
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -4596,40 +4596,40 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4596
4596
|
} | undefined;
|
|
4597
4597
|
execution_seq?: number | undefined;
|
|
4598
4598
|
} | {
|
|
4599
|
-
type: "run_status";
|
|
4600
4599
|
id: string;
|
|
4601
|
-
|
|
4600
|
+
type: "run_status";
|
|
4601
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
4602
4602
|
timestamp: number;
|
|
4603
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
4604
|
-
turn_id: string;
|
|
4605
4603
|
run_id: string;
|
|
4604
|
+
conversation_id: string;
|
|
4605
|
+
turn_id: string;
|
|
4606
4606
|
execution_id: string;
|
|
4607
4607
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4608
4608
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4609
|
-
visibility?: "
|
|
4609
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4610
4610
|
execution_seq?: number | undefined;
|
|
4611
4611
|
reason_message?: string | undefined;
|
|
4612
4612
|
} | {
|
|
4613
|
-
type: "transport_end";
|
|
4614
4613
|
id: string;
|
|
4615
|
-
|
|
4614
|
+
type: "transport_end";
|
|
4616
4615
|
timestamp: number;
|
|
4616
|
+
conversation_id: string;
|
|
4617
4617
|
turn_id: string;
|
|
4618
4618
|
execution_id: string;
|
|
4619
4619
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4620
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4620
4621
|
run_id?: string | undefined;
|
|
4621
4622
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4622
|
-
visibility?: "
|
|
4623
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
4623
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4624
4624
|
execution_seq?: number | undefined;
|
|
4625
4625
|
reason_message?: string | undefined;
|
|
4626
4626
|
} | {
|
|
4627
|
-
type: "history_summary";
|
|
4628
4627
|
id: string;
|
|
4629
|
-
|
|
4628
|
+
type: "history_summary";
|
|
4629
|
+
content: string;
|
|
4630
4630
|
timestamp: number;
|
|
4631
|
+
conversation_id: string;
|
|
4631
4632
|
turn_id: string;
|
|
4632
|
-
content: string;
|
|
4633
4633
|
original_message_count: number;
|
|
4634
4634
|
replaced_message_ids: string[];
|
|
4635
4635
|
summary_seq: number;
|
|
@@ -4637,31 +4637,31 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4637
4637
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4638
4638
|
run_id?: string | undefined;
|
|
4639
4639
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4640
|
-
visibility?: "
|
|
4640
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4641
4641
|
compression_ratio?: number | undefined;
|
|
4642
4642
|
included_old_summary?: boolean | undefined;
|
|
4643
4643
|
execution_id?: string | undefined;
|
|
4644
4644
|
execution_seq?: number | undefined;
|
|
4645
4645
|
} | {
|
|
4646
|
-
type: "summarization_start";
|
|
4647
4646
|
id: string;
|
|
4648
|
-
|
|
4647
|
+
type: "summarization_start";
|
|
4649
4648
|
timestamp: number;
|
|
4650
|
-
turn_id: string;
|
|
4651
4649
|
run_id: string;
|
|
4650
|
+
conversation_id: string;
|
|
4651
|
+
turn_id: string;
|
|
4652
4652
|
execution_id: string;
|
|
4653
4653
|
summarization_id: string;
|
|
4654
4654
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4655
4655
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4656
|
-
visibility?: "
|
|
4656
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4657
4657
|
execution_seq?: number | undefined;
|
|
4658
4658
|
} | {
|
|
4659
|
-
type: "summarization_end";
|
|
4660
4659
|
id: string;
|
|
4661
|
-
|
|
4660
|
+
type: "summarization_end";
|
|
4662
4661
|
timestamp: number;
|
|
4663
|
-
turn_id: string;
|
|
4664
4662
|
run_id: string;
|
|
4663
|
+
conversation_id: string;
|
|
4664
|
+
turn_id: string;
|
|
4665
4665
|
original_message_count: number;
|
|
4666
4666
|
execution_id: string;
|
|
4667
4667
|
summary_id: string;
|
|
@@ -4669,44 +4669,44 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4669
4669
|
compressed_message_count: number;
|
|
4670
4670
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4671
4671
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4672
|
-
visibility?: "
|
|
4672
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4673
4673
|
compression_ratio?: number | undefined;
|
|
4674
4674
|
execution_seq?: number | undefined;
|
|
4675
4675
|
} | {
|
|
4676
|
-
type: "summarization_error";
|
|
4677
4676
|
id: string;
|
|
4678
|
-
|
|
4677
|
+
type: "summarization_error";
|
|
4678
|
+
error: string;
|
|
4679
4679
|
timestamp: number;
|
|
4680
|
-
turn_id: string;
|
|
4681
4680
|
run_id: string;
|
|
4682
|
-
|
|
4681
|
+
conversation_id: string;
|
|
4682
|
+
turn_id: string;
|
|
4683
4683
|
execution_id: string;
|
|
4684
4684
|
summarization_id: string;
|
|
4685
4685
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4686
4686
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4687
|
-
visibility?: "
|
|
4687
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4688
4688
|
execution_seq?: number | undefined;
|
|
4689
4689
|
}, {
|
|
4690
|
-
type: "thought";
|
|
4691
4690
|
id: string;
|
|
4692
|
-
|
|
4691
|
+
type: "thought";
|
|
4693
4692
|
timestamp: number;
|
|
4693
|
+
conversation_id: string;
|
|
4694
4694
|
turn_id: string;
|
|
4695
4695
|
is_complete: boolean;
|
|
4696
|
+
content?: string | undefined;
|
|
4696
4697
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4697
4698
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4698
4699
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4699
|
-
visibility?: "
|
|
4700
|
-
content?: string | undefined;
|
|
4700
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4701
4701
|
thought_message_id?: string | undefined;
|
|
4702
4702
|
delta?: string | undefined;
|
|
4703
4703
|
execution_id?: string | undefined;
|
|
4704
4704
|
execution_seq?: number | undefined;
|
|
4705
4705
|
} | {
|
|
4706
|
-
type: "final_answer_chunk";
|
|
4707
4706
|
id: string;
|
|
4708
|
-
|
|
4707
|
+
type: "final_answer_chunk";
|
|
4709
4708
|
timestamp: number;
|
|
4709
|
+
conversation_id: string;
|
|
4710
4710
|
turn_id: string;
|
|
4711
4711
|
answer_id: string;
|
|
4712
4712
|
seq: number;
|
|
@@ -4714,107 +4714,106 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4714
4714
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4715
4715
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4716
4716
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4717
|
-
visibility?: "
|
|
4717
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4718
4718
|
is_last?: boolean | undefined;
|
|
4719
4719
|
execution_id?: string | undefined;
|
|
4720
4720
|
execution_seq?: number | undefined;
|
|
4721
4721
|
} | {
|
|
4722
|
-
type: "final_answer_reset";
|
|
4723
4722
|
id: string;
|
|
4724
|
-
|
|
4723
|
+
type: "final_answer_reset";
|
|
4725
4724
|
timestamp: number;
|
|
4725
|
+
conversation_id: string;
|
|
4726
4726
|
turn_id: string;
|
|
4727
4727
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4728
4728
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4729
4729
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4730
|
-
visibility?: "
|
|
4730
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4731
4731
|
answer_id?: string | undefined;
|
|
4732
4732
|
thought_message_ids?: string[] | undefined;
|
|
4733
4733
|
execution_id?: string | undefined;
|
|
4734
4734
|
execution_seq?: number | undefined;
|
|
4735
4735
|
} | {
|
|
4736
|
-
type: "final_answer";
|
|
4737
4736
|
id: string;
|
|
4738
|
-
|
|
4737
|
+
type: "final_answer";
|
|
4738
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4739
|
+
content: string;
|
|
4739
4740
|
timestamp: number;
|
|
4741
|
+
conversation_id: string;
|
|
4740
4742
|
turn_id: string;
|
|
4741
|
-
content: string;
|
|
4742
4743
|
answer_id: string;
|
|
4743
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
4744
4744
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4745
4745
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4746
4746
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4747
|
-
visibility?: "
|
|
4747
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4748
4748
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4749
4749
|
execution_id?: string | undefined;
|
|
4750
4750
|
execution_seq?: number | undefined;
|
|
4751
4751
|
} | {
|
|
4752
|
-
type: "markdown_chunk";
|
|
4753
4752
|
id: string;
|
|
4754
|
-
|
|
4753
|
+
type: "markdown_chunk";
|
|
4754
|
+
text: string;
|
|
4755
4755
|
timestamp: number;
|
|
4756
|
+
conversation_id: string;
|
|
4756
4757
|
turn_id: string;
|
|
4757
|
-
|
|
4758
|
-
content_type: "code" | "image" | "text" | "table";
|
|
4758
|
+
content_type: "code" | "text" | "image" | "table";
|
|
4759
4759
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4760
4760
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4761
4761
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4762
|
-
visibility?: "
|
|
4762
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4763
4763
|
seq?: number | undefined;
|
|
4764
4764
|
execution_id?: string | undefined;
|
|
4765
4765
|
execution_seq?: number | undefined;
|
|
4766
4766
|
} | {
|
|
4767
|
-
type: "tool_call_decision";
|
|
4768
4767
|
id: string;
|
|
4769
|
-
|
|
4770
|
-
timestamp: number;
|
|
4768
|
+
type: "tool_call_decision";
|
|
4771
4769
|
status: "error" | "loading" | "success";
|
|
4772
|
-
turn_id: string;
|
|
4773
|
-
tool_name: string;
|
|
4774
4770
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4775
|
-
|
|
4771
|
+
tool_name: string;
|
|
4772
|
+
timestamp: number;
|
|
4773
|
+
conversation_id: string;
|
|
4774
|
+
turn_id: string;
|
|
4775
|
+
phase: "error" | "start" | "update" | "complete";
|
|
4776
|
+
payload?: SerializableJsonValue | undefined;
|
|
4777
|
+
args?: SerializableJsonValue | undefined;
|
|
4776
4778
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4777
4779
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4778
4780
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4779
|
-
visibility?: "
|
|
4780
|
-
args?: SerializableJsonValue | undefined;
|
|
4781
|
-
payload?: SerializableJsonValue | undefined;
|
|
4781
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4782
4782
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4783
4783
|
execution_id?: string | undefined;
|
|
4784
4784
|
execution_seq?: number | undefined;
|
|
4785
4785
|
} | {
|
|
4786
|
-
type: "tool_process";
|
|
4787
4786
|
id: string;
|
|
4788
|
-
|
|
4789
|
-
timestamp: number;
|
|
4787
|
+
type: "tool_process";
|
|
4790
4788
|
status: "error" | "loading" | "success";
|
|
4791
|
-
turn_id: string;
|
|
4792
|
-
tool_name: string;
|
|
4793
4789
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4794
|
-
|
|
4790
|
+
tool_name: string;
|
|
4791
|
+
timestamp: number;
|
|
4792
|
+
conversation_id: string;
|
|
4793
|
+
turn_id: string;
|
|
4794
|
+
phase: "error" | "start" | "update" | "complete";
|
|
4795
|
+
payload?: SerializableJsonValue | undefined;
|
|
4796
|
+
args?: SerializableJsonValue | undefined;
|
|
4795
4797
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4796
4798
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4797
4799
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4798
|
-
visibility?: "
|
|
4799
|
-
args?: SerializableJsonValue | undefined;
|
|
4800
|
-
payload?: SerializableJsonValue | undefined;
|
|
4800
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4801
4801
|
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4802
4802
|
execution_id?: string | undefined;
|
|
4803
4803
|
execution_seq?: number | undefined;
|
|
4804
4804
|
} | {
|
|
4805
|
-
type: "tool_output";
|
|
4806
4805
|
id: string;
|
|
4807
|
-
|
|
4808
|
-
timestamp: number;
|
|
4806
|
+
type: "tool_output";
|
|
4809
4807
|
status: "error" | "success";
|
|
4810
|
-
turn_id: string;
|
|
4811
|
-
tool_name: string;
|
|
4812
4808
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4809
|
+
tool_name: string;
|
|
4810
|
+
timestamp: number;
|
|
4811
|
+
conversation_id: string;
|
|
4812
|
+
turn_id: string;
|
|
4813
4813
|
observation: string;
|
|
4814
|
+
data?: SerializableJsonValue | undefined;
|
|
4815
|
+
error?: string | undefined;
|
|
4814
4816
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4815
|
-
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4816
|
-
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4817
|
-
visibility?: "conversation" | "parent-trace" | "none" | undefined;
|
|
4818
4817
|
attachments?: {
|
|
4819
4818
|
id: string;
|
|
4820
4819
|
kind: "image";
|
|
@@ -4827,28 +4826,35 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4827
4826
|
fileName?: string | undefined;
|
|
4828
4827
|
label?: string | undefined;
|
|
4829
4828
|
}[] | undefined;
|
|
4830
|
-
|
|
4831
|
-
|
|
4829
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4830
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4831
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4832
4832
|
error_code?: string | undefined;
|
|
4833
4833
|
duration_ms?: number | undefined;
|
|
4834
4834
|
execution_id?: string | undefined;
|
|
4835
4835
|
execution_seq?: number | undefined;
|
|
4836
4836
|
} | {
|
|
4837
|
-
type: "subrun_trace";
|
|
4838
4837
|
id: string;
|
|
4839
|
-
|
|
4838
|
+
type: "subrun_trace";
|
|
4839
|
+
kind: "error" | "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "llm_retry";
|
|
4840
4840
|
timestamp: number;
|
|
4841
|
+
conversation_id: string;
|
|
4841
4842
|
turn_id: string;
|
|
4842
|
-
kind: "tool_call_decision" | "error" | "tool_process" | "tool_output" | "thought_delta" | "thought_complete" | "final_answer_chunk" | "final_answer" | "history_summary" | "llm_retry";
|
|
4843
4843
|
parent_tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4844
4844
|
subrun_id: string;
|
|
4845
4845
|
source_event_id: string;
|
|
4846
4846
|
status?: "error" | "loading" | "success" | undefined;
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4847
|
+
tool_calls?: {
|
|
4848
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4849
|
+
tool_name: string;
|
|
4850
|
+
args: Record<string, SerializableJsonValue>;
|
|
4851
|
+
}[] | undefined;
|
|
4852
|
+
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4853
|
+
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4854
|
+
tool_name?: string | undefined;
|
|
4855
|
+
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4851
4856
|
content?: string | undefined;
|
|
4857
|
+
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4852
4858
|
attachments?: {
|
|
4853
4859
|
id: string;
|
|
4854
4860
|
kind: "image";
|
|
@@ -4861,22 +4867,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4861
4867
|
fileName?: string | undefined;
|
|
4862
4868
|
label?: string | undefined;
|
|
4863
4869
|
}[] | undefined;
|
|
4864
|
-
delta?: string | undefined;
|
|
4865
|
-
tool_name?: string | undefined;
|
|
4866
|
-
tool_call_id?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
4867
|
-
phase?: "start" | "update" | "complete" | "error" | undefined;
|
|
4868
|
-
args?: Record<string, SerializableJsonValue> | undefined;
|
|
4869
|
-
tool_calls?: {
|
|
4870
|
-
tool_name: string;
|
|
4871
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4872
|
-
args: Record<string, SerializableJsonValue>;
|
|
4873
|
-
}[] | undefined;
|
|
4874
|
-
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4875
|
-
duration_ms?: number | undefined;
|
|
4876
|
-
subrun_parent_id?: string | undefined;
|
|
4877
|
-
output?: SerializableJsonValue | undefined;
|
|
4878
4870
|
retry?: {
|
|
4879
|
-
status: "
|
|
4871
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
4880
4872
|
error: string;
|
|
4881
4873
|
error_code: string;
|
|
4882
4874
|
retry_id: string;
|
|
@@ -4888,6 +4880,15 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4888
4880
|
delay_ms: number;
|
|
4889
4881
|
next_retry_at?: number | undefined;
|
|
4890
4882
|
} | undefined;
|
|
4883
|
+
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4884
|
+
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4885
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4886
|
+
delta?: string | undefined;
|
|
4887
|
+
phase?: "error" | "start" | "update" | "complete" | undefined;
|
|
4888
|
+
meta?: Record<string, SerializableJsonValue> | undefined;
|
|
4889
|
+
duration_ms?: number | undefined;
|
|
4890
|
+
subrun_parent_id?: string | undefined;
|
|
4891
|
+
output?: SerializableJsonValue | undefined;
|
|
4891
4892
|
failure?: {
|
|
4892
4893
|
error: string;
|
|
4893
4894
|
error_code?: string | undefined;
|
|
@@ -4898,7 +4899,6 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4898
4899
|
answer_id?: string | undefined;
|
|
4899
4900
|
seq?: number | undefined;
|
|
4900
4901
|
is_last?: boolean | undefined;
|
|
4901
|
-
completion_reason?: "tool_call" | "terminal" | "interrupted" | undefined;
|
|
4902
4902
|
original_message_count?: number | undefined;
|
|
4903
4903
|
compression_ratio?: number | undefined;
|
|
4904
4904
|
included_old_summary?: boolean | undefined;
|
|
@@ -4906,33 +4906,33 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4906
4906
|
execution_id?: string | undefined;
|
|
4907
4907
|
execution_seq?: number | undefined;
|
|
4908
4908
|
} | {
|
|
4909
|
-
type: "requires_user_interaction";
|
|
4910
4909
|
id: string;
|
|
4911
|
-
|
|
4910
|
+
type: "requires_user_interaction";
|
|
4911
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4912
4912
|
timestamp: number;
|
|
4913
|
-
turn_id: string;
|
|
4914
4913
|
run_id: string & z.BRAND<"RunId">;
|
|
4915
|
-
|
|
4914
|
+
conversation_id: string;
|
|
4915
|
+
turn_id: string;
|
|
4916
4916
|
interaction_id: string;
|
|
4917
4917
|
checkpoint_revision: number;
|
|
4918
4918
|
resume_token: string;
|
|
4919
4919
|
interaction_status: "pending";
|
|
4920
4920
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4921
4921
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4922
|
-
visibility?: "
|
|
4922
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4923
4923
|
form?: SerializableJsonValue | undefined;
|
|
4924
4924
|
interaction_type?: string | undefined;
|
|
4925
4925
|
prompt?: string | undefined;
|
|
4926
4926
|
execution_id?: string | undefined;
|
|
4927
4927
|
execution_seq?: number | undefined;
|
|
4928
4928
|
} | {
|
|
4929
|
-
type: "llm_retry";
|
|
4930
4929
|
id: string;
|
|
4931
|
-
|
|
4930
|
+
type: "llm_retry";
|
|
4931
|
+
status: "failed" | "cancelled" | "waiting" | "retrying" | "succeeded" | "exhausted";
|
|
4932
|
+
error: string;
|
|
4932
4933
|
timestamp: number;
|
|
4933
|
-
|
|
4934
|
+
conversation_id: string;
|
|
4934
4935
|
turn_id: string;
|
|
4935
|
-
error: string;
|
|
4936
4936
|
error_code: string;
|
|
4937
4937
|
retry_id: string;
|
|
4938
4938
|
category: "transport" | "output" | "rate_limit" | "other";
|
|
@@ -4944,21 +4944,21 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4944
4944
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4945
4945
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4946
4946
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4947
|
-
visibility?: "
|
|
4947
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4948
4948
|
next_retry_at?: number | undefined;
|
|
4949
4949
|
execution_id?: string | undefined;
|
|
4950
4950
|
execution_seq?: number | undefined;
|
|
4951
4951
|
} | {
|
|
4952
|
-
type: "error";
|
|
4953
4952
|
id: string;
|
|
4954
|
-
|
|
4953
|
+
type: "error";
|
|
4954
|
+
error: string;
|
|
4955
4955
|
timestamp: number;
|
|
4956
|
+
conversation_id: string;
|
|
4956
4957
|
turn_id: string;
|
|
4957
|
-
error: string;
|
|
4958
4958
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4959
4959
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4960
4960
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4961
|
-
visibility?: "
|
|
4961
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4962
4962
|
error_code?: string | undefined;
|
|
4963
4963
|
retry_id?: string | undefined;
|
|
4964
4964
|
retryable?: boolean | undefined;
|
|
@@ -4966,26 +4966,26 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4966
4966
|
execution_id?: string | undefined;
|
|
4967
4967
|
execution_seq?: number | undefined;
|
|
4968
4968
|
} | {
|
|
4969
|
-
type: "transport_error";
|
|
4970
4969
|
id: string;
|
|
4971
|
-
|
|
4970
|
+
type: "transport_error";
|
|
4971
|
+
error: string;
|
|
4972
4972
|
timestamp: number;
|
|
4973
|
+
conversation_id: string;
|
|
4973
4974
|
turn_id: string;
|
|
4974
|
-
error: string;
|
|
4975
4975
|
execution_id: string;
|
|
4976
4976
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4977
4977
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4978
4978
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4979
|
-
visibility?: "
|
|
4979
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4980
4980
|
error_code?: string | undefined;
|
|
4981
4981
|
retryable?: boolean | undefined;
|
|
4982
4982
|
details?: SerializableJsonValue | undefined;
|
|
4983
4983
|
execution_seq?: number | undefined;
|
|
4984
4984
|
} | {
|
|
4985
|
-
type: "context_usage_snapshot";
|
|
4986
4985
|
id: string;
|
|
4987
|
-
|
|
4986
|
+
type: "context_usage_snapshot";
|
|
4988
4987
|
timestamp: number;
|
|
4988
|
+
conversation_id: string;
|
|
4989
4989
|
turn_id: string;
|
|
4990
4990
|
context_usage: {
|
|
4991
4991
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -5008,23 +5008,23 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
5008
5008
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5009
5009
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5010
5010
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5011
|
-
visibility?: "
|
|
5011
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5012
5012
|
user_message_id?: string | undefined;
|
|
5013
5013
|
execution_id?: string | undefined;
|
|
5014
5014
|
execution_seq?: number | undefined;
|
|
5015
5015
|
} | {
|
|
5016
|
-
type: "run_execution_metrics";
|
|
5017
5016
|
id: string;
|
|
5018
|
-
|
|
5017
|
+
type: "run_execution_metrics";
|
|
5019
5018
|
timestamp: number;
|
|
5019
|
+
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
5020
|
+
conversation_id: string;
|
|
5020
5021
|
turn_id: string;
|
|
5021
5022
|
duration_ms: number;
|
|
5022
|
-
outcome: "failed" | "cancelled" | "completed" | "awaiting_user";
|
|
5023
5023
|
execution_id: string;
|
|
5024
5024
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5025
5025
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5026
5026
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5027
|
-
visibility?: "
|
|
5027
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5028
5028
|
user_message_id?: string | undefined;
|
|
5029
5029
|
context_usage?: {
|
|
5030
5030
|
source: "local-estimate" | "provider-preflight-count" | "provider-response-usage" | "host-supplied" | "test-fixture";
|
|
@@ -5046,40 +5046,40 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
5046
5046
|
} | undefined;
|
|
5047
5047
|
execution_seq?: number | undefined;
|
|
5048
5048
|
} | {
|
|
5049
|
-
type: "run_status";
|
|
5050
5049
|
id: string;
|
|
5051
|
-
|
|
5050
|
+
type: "run_status";
|
|
5051
|
+
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
5052
5052
|
timestamp: number;
|
|
5053
|
-
status: "failed" | "cancelled" | "pending" | "paused" | "completed" | "awaiting_user" | "running";
|
|
5054
|
-
turn_id: string;
|
|
5055
5053
|
run_id: string & z.BRAND<"RunId">;
|
|
5054
|
+
conversation_id: string;
|
|
5055
|
+
turn_id: string;
|
|
5056
5056
|
execution_id: string;
|
|
5057
5057
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5058
5058
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5059
|
-
visibility?: "
|
|
5059
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5060
5060
|
execution_seq?: number | undefined;
|
|
5061
5061
|
reason_message?: string | undefined;
|
|
5062
5062
|
} | {
|
|
5063
|
-
type: "transport_end";
|
|
5064
5063
|
id: string;
|
|
5065
|
-
|
|
5064
|
+
type: "transport_end";
|
|
5066
5065
|
timestamp: number;
|
|
5066
|
+
conversation_id: string;
|
|
5067
5067
|
turn_id: string;
|
|
5068
5068
|
execution_id: string;
|
|
5069
5069
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5070
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
5070
5071
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5071
5072
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5072
|
-
visibility?: "
|
|
5073
|
-
reason?: "complete" | "error" | "interrupted" | "timeout" | undefined;
|
|
5073
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5074
5074
|
execution_seq?: number | undefined;
|
|
5075
5075
|
reason_message?: string | undefined;
|
|
5076
5076
|
} | {
|
|
5077
|
-
type: "history_summary";
|
|
5078
5077
|
id: string;
|
|
5079
|
-
|
|
5078
|
+
type: "history_summary";
|
|
5079
|
+
content: string;
|
|
5080
5080
|
timestamp: number;
|
|
5081
|
+
conversation_id: string;
|
|
5081
5082
|
turn_id: string;
|
|
5082
|
-
content: string;
|
|
5083
5083
|
original_message_count: number;
|
|
5084
5084
|
replaced_message_ids: string[];
|
|
5085
5085
|
summary_seq: number;
|
|
@@ -5087,31 +5087,31 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
5087
5087
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5088
5088
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
5089
5089
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5090
|
-
visibility?: "
|
|
5090
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5091
5091
|
compression_ratio?: number | undefined;
|
|
5092
5092
|
included_old_summary?: boolean | undefined;
|
|
5093
5093
|
execution_id?: string | undefined;
|
|
5094
5094
|
execution_seq?: number | undefined;
|
|
5095
5095
|
} | {
|
|
5096
|
-
type: "summarization_start";
|
|
5097
5096
|
id: string;
|
|
5098
|
-
|
|
5097
|
+
type: "summarization_start";
|
|
5099
5098
|
timestamp: number;
|
|
5100
|
-
turn_id: string;
|
|
5101
5099
|
run_id: string & z.BRAND<"RunId">;
|
|
5100
|
+
conversation_id: string;
|
|
5101
|
+
turn_id: string;
|
|
5102
5102
|
execution_id: string;
|
|
5103
5103
|
summarization_id: string;
|
|
5104
5104
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5105
5105
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5106
|
-
visibility?: "
|
|
5106
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5107
5107
|
execution_seq?: number | undefined;
|
|
5108
5108
|
} | {
|
|
5109
|
-
type: "summarization_end";
|
|
5110
5109
|
id: string;
|
|
5111
|
-
|
|
5110
|
+
type: "summarization_end";
|
|
5112
5111
|
timestamp: number;
|
|
5113
|
-
turn_id: string;
|
|
5114
5112
|
run_id: string & z.BRAND<"RunId">;
|
|
5113
|
+
conversation_id: string;
|
|
5114
|
+
turn_id: string;
|
|
5115
5115
|
original_message_count: number;
|
|
5116
5116
|
execution_id: string;
|
|
5117
5117
|
summary_id: string;
|
|
@@ -5119,22 +5119,22 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
5119
5119
|
compressed_message_count: number;
|
|
5120
5120
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5121
5121
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5122
|
-
visibility?: "
|
|
5122
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5123
5123
|
compression_ratio?: number | undefined;
|
|
5124
5124
|
execution_seq?: number | undefined;
|
|
5125
5125
|
} | {
|
|
5126
|
-
type: "summarization_error";
|
|
5127
5126
|
id: string;
|
|
5128
|
-
|
|
5127
|
+
type: "summarization_error";
|
|
5128
|
+
error: string;
|
|
5129
5129
|
timestamp: number;
|
|
5130
|
-
turn_id: string;
|
|
5131
5130
|
run_id: string & z.BRAND<"RunId">;
|
|
5132
|
-
|
|
5131
|
+
conversation_id: string;
|
|
5132
|
+
turn_id: string;
|
|
5133
5133
|
execution_id: string;
|
|
5134
5134
|
summarization_id: string;
|
|
5135
5135
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
5136
5136
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
5137
|
-
visibility?: "
|
|
5137
|
+
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
5138
5138
|
execution_seq?: number | undefined;
|
|
5139
5139
|
}>;
|
|
5140
5140
|
/**
|