@linnlabs/linnkit 0.35.1 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cli.cjs +13 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -3
- package/dist/cli.js.map +1 -1
- package/dist/contracts/agentSpec.d.cts +30 -30
- package/dist/contracts/agentSpec.d.ts +30 -30
- package/dist/contracts/audit.d.cts +32 -32
- package/dist/contracts/audit.d.ts +32 -32
- package/dist/contracts/contextPolicy.d.cts +36 -36
- package/dist/contracts/contextPolicy.d.ts +36 -36
- package/dist/contracts/events.d.cts +1114 -1114
- package/dist/contracts/events.d.ts +1114 -1114
- package/dist/contracts/execution.d.cts +8 -8
- package/dist/contracts/execution.d.ts +8 -8
- 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 +899 -899
- package/dist/contracts/sse.d.ts +899 -899
- package/dist/contracts/sub-run-trace-payload.d.cts +26 -26
- package/dist/contracts/sub-run-trace-payload.d.ts +26 -26
- package/dist/contracts/token-accounting.d.cts +46 -46
- package/dist/contracts/token-accounting.d.ts +46 -46
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +13 -3
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +13 -3
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/events/agentEvents.d.cts +172 -172
- package/dist/runtime-kernel/events/agentEvents.d.ts +172 -172
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +3 -1
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +3 -1
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.cts +2 -2
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.ts +2 -2
- package/dist/runtime-kernel.cjs +13 -3
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +13 -3
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +13 -3
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +13 -3
- package/dist/testkit.js.map +1 -1
- package/docs/integration/run-supervisor.md +2 -0
- package/package.json +2 -2
|
@@ -12,19 +12,19 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
12
12
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
thought_message_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
14
14
|
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
id: string;
|
|
16
15
|
type: "thought";
|
|
17
|
-
|
|
16
|
+
id: string;
|
|
18
17
|
timestamp: number;
|
|
18
|
+
content: string;
|
|
19
19
|
is_complete: boolean;
|
|
20
20
|
thought_message_id?: string | undefined;
|
|
21
21
|
delta?: string | undefined;
|
|
22
22
|
meta?: Record<string, unknown> | undefined;
|
|
23
23
|
}, {
|
|
24
|
-
id: string;
|
|
25
24
|
type: "thought";
|
|
26
|
-
|
|
25
|
+
id: string;
|
|
27
26
|
timestamp: number;
|
|
27
|
+
content: string;
|
|
28
28
|
is_complete: boolean;
|
|
29
29
|
thought_message_id?: string | undefined;
|
|
30
30
|
delta?: string | undefined;
|
|
@@ -68,6 +68,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
68
68
|
kind: z.ZodString;
|
|
69
69
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
70
70
|
}, "strict", z.ZodTypeAny, {
|
|
71
|
+
kind: string;
|
|
71
72
|
schema_version: 2;
|
|
72
73
|
producer: {
|
|
73
74
|
model_id: string;
|
|
@@ -76,9 +77,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
76
77
|
capability_id: string;
|
|
77
78
|
endpoint_model_id: string;
|
|
78
79
|
};
|
|
79
|
-
kind: string;
|
|
80
80
|
payload: SerializableJsonValue;
|
|
81
81
|
}, {
|
|
82
|
+
kind: string;
|
|
82
83
|
schema_version: 2;
|
|
83
84
|
producer: {
|
|
84
85
|
model_id: string;
|
|
@@ -87,7 +88,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
87
88
|
capability_id: string;
|
|
88
89
|
endpoint_model_id: string;
|
|
89
90
|
};
|
|
90
|
-
kind: string;
|
|
91
91
|
payload: SerializableJsonValue;
|
|
92
92
|
}>, "many">>;
|
|
93
93
|
assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -117,6 +117,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
117
117
|
kind: z.ZodString;
|
|
118
118
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
119
119
|
}, "strict", z.ZodTypeAny, {
|
|
120
|
+
kind: string;
|
|
120
121
|
schema_version: 2;
|
|
121
122
|
producer: {
|
|
122
123
|
model_id: string;
|
|
@@ -125,9 +126,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
125
126
|
capability_id: string;
|
|
126
127
|
endpoint_model_id: string;
|
|
127
128
|
};
|
|
128
|
-
kind: string;
|
|
129
129
|
payload: SerializableJsonValue;
|
|
130
130
|
}, {
|
|
131
|
+
kind: string;
|
|
131
132
|
schema_version: 2;
|
|
132
133
|
producer: {
|
|
133
134
|
model_id: string;
|
|
@@ -136,13 +137,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
136
137
|
capability_id: string;
|
|
137
138
|
endpoint_model_id: string;
|
|
138
139
|
};
|
|
139
|
-
kind: string;
|
|
140
140
|
payload: SerializableJsonValue;
|
|
141
141
|
}>, "many">>;
|
|
142
142
|
}, "strict", z.ZodTypeAny, {
|
|
143
143
|
type: "text";
|
|
144
144
|
text: string;
|
|
145
145
|
provider_continuations?: {
|
|
146
|
+
kind: string;
|
|
146
147
|
schema_version: 2;
|
|
147
148
|
producer: {
|
|
148
149
|
model_id: string;
|
|
@@ -151,13 +152,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
151
152
|
capability_id: string;
|
|
152
153
|
endpoint_model_id: string;
|
|
153
154
|
};
|
|
154
|
-
kind: string;
|
|
155
155
|
payload: SerializableJsonValue;
|
|
156
156
|
}[] | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
type: "text";
|
|
159
159
|
text: string;
|
|
160
160
|
provider_continuations?: {
|
|
161
|
+
kind: string;
|
|
161
162
|
schema_version: 2;
|
|
162
163
|
producer: {
|
|
163
164
|
model_id: string;
|
|
@@ -166,7 +167,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
166
167
|
capability_id: string;
|
|
167
168
|
endpoint_model_id: string;
|
|
168
169
|
};
|
|
169
|
-
kind: string;
|
|
170
170
|
payload: SerializableJsonValue;
|
|
171
171
|
}[] | undefined;
|
|
172
172
|
}>, z.ZodObject<{
|
|
@@ -196,6 +196,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
196
196
|
kind: z.ZodString;
|
|
197
197
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
198
198
|
}, "strict", z.ZodTypeAny, {
|
|
199
|
+
kind: string;
|
|
199
200
|
schema_version: 2;
|
|
200
201
|
producer: {
|
|
201
202
|
model_id: string;
|
|
@@ -204,9 +205,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
204
205
|
capability_id: string;
|
|
205
206
|
endpoint_model_id: string;
|
|
206
207
|
};
|
|
207
|
-
kind: string;
|
|
208
208
|
payload: SerializableJsonValue;
|
|
209
209
|
}, {
|
|
210
|
+
kind: string;
|
|
210
211
|
schema_version: 2;
|
|
211
212
|
producer: {
|
|
212
213
|
model_id: string;
|
|
@@ -215,13 +216,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
215
216
|
capability_id: string;
|
|
216
217
|
endpoint_model_id: string;
|
|
217
218
|
};
|
|
218
|
-
kind: string;
|
|
219
219
|
payload: SerializableJsonValue;
|
|
220
220
|
}>, "many">>;
|
|
221
221
|
}, "strict", z.ZodTypeAny, {
|
|
222
222
|
type: "reasoning";
|
|
223
223
|
text: string;
|
|
224
224
|
provider_continuations?: {
|
|
225
|
+
kind: string;
|
|
225
226
|
schema_version: 2;
|
|
226
227
|
producer: {
|
|
227
228
|
model_id: string;
|
|
@@ -230,13 +231,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
230
231
|
capability_id: string;
|
|
231
232
|
endpoint_model_id: string;
|
|
232
233
|
};
|
|
233
|
-
kind: string;
|
|
234
234
|
payload: SerializableJsonValue;
|
|
235
235
|
}[] | undefined;
|
|
236
236
|
}, {
|
|
237
237
|
type: "reasoning";
|
|
238
238
|
text: string;
|
|
239
239
|
provider_continuations?: {
|
|
240
|
+
kind: string;
|
|
240
241
|
schema_version: 2;
|
|
241
242
|
producer: {
|
|
242
243
|
model_id: string;
|
|
@@ -245,7 +246,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
245
246
|
capability_id: string;
|
|
246
247
|
endpoint_model_id: string;
|
|
247
248
|
};
|
|
248
|
-
kind: string;
|
|
249
249
|
payload: SerializableJsonValue;
|
|
250
250
|
}[] | undefined;
|
|
251
251
|
}>, z.ZodObject<{
|
|
@@ -275,6 +275,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
275
275
|
kind: z.ZodString;
|
|
276
276
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
277
277
|
}, "strict", z.ZodTypeAny, {
|
|
278
|
+
kind: string;
|
|
278
279
|
schema_version: 2;
|
|
279
280
|
producer: {
|
|
280
281
|
model_id: string;
|
|
@@ -283,9 +284,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
283
284
|
capability_id: string;
|
|
284
285
|
endpoint_model_id: string;
|
|
285
286
|
};
|
|
286
|
-
kind: string;
|
|
287
287
|
payload: SerializableJsonValue;
|
|
288
288
|
}, {
|
|
289
|
+
kind: string;
|
|
289
290
|
schema_version: 2;
|
|
290
291
|
producer: {
|
|
291
292
|
model_id: string;
|
|
@@ -294,13 +295,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
294
295
|
capability_id: string;
|
|
295
296
|
endpoint_model_id: string;
|
|
296
297
|
};
|
|
297
|
-
kind: string;
|
|
298
298
|
payload: SerializableJsonValue;
|
|
299
299
|
}>, "many">>;
|
|
300
300
|
}, "strict", z.ZodTypeAny, {
|
|
301
301
|
type: "tool_call";
|
|
302
302
|
tool_call_id: string;
|
|
303
303
|
provider_continuations?: {
|
|
304
|
+
kind: string;
|
|
304
305
|
schema_version: 2;
|
|
305
306
|
producer: {
|
|
306
307
|
model_id: string;
|
|
@@ -309,13 +310,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
309
310
|
capability_id: string;
|
|
310
311
|
endpoint_model_id: string;
|
|
311
312
|
};
|
|
312
|
-
kind: string;
|
|
313
313
|
payload: SerializableJsonValue;
|
|
314
314
|
}[] | undefined;
|
|
315
315
|
}, {
|
|
316
316
|
type: "tool_call";
|
|
317
317
|
tool_call_id: string;
|
|
318
318
|
provider_continuations?: {
|
|
319
|
+
kind: string;
|
|
319
320
|
schema_version: 2;
|
|
320
321
|
producer: {
|
|
321
322
|
model_id: string;
|
|
@@ -324,13 +325,14 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
324
325
|
capability_id: string;
|
|
325
326
|
endpoint_model_id: string;
|
|
326
327
|
};
|
|
327
|
-
kind: string;
|
|
328
328
|
payload: SerializableJsonValue;
|
|
329
329
|
}[] | undefined;
|
|
330
330
|
}>]>, "many">>;
|
|
331
331
|
}, "strict", z.ZodTypeAny, {
|
|
332
|
+
args?: Record<string, unknown> | undefined;
|
|
332
333
|
tool_calls?: unknown[] | undefined;
|
|
333
334
|
provider_continuations?: {
|
|
335
|
+
kind: string;
|
|
334
336
|
schema_version: 2;
|
|
335
337
|
producer: {
|
|
336
338
|
model_id: string;
|
|
@@ -339,13 +341,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
339
341
|
capability_id: string;
|
|
340
342
|
endpoint_model_id: string;
|
|
341
343
|
};
|
|
342
|
-
kind: string;
|
|
343
344
|
payload: SerializableJsonValue;
|
|
344
345
|
}[] | undefined;
|
|
345
346
|
assistant_replay_parts?: ({
|
|
346
347
|
type: "text";
|
|
347
348
|
text: string;
|
|
348
349
|
provider_continuations?: {
|
|
350
|
+
kind: string;
|
|
349
351
|
schema_version: 2;
|
|
350
352
|
producer: {
|
|
351
353
|
model_id: string;
|
|
@@ -354,13 +356,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
354
356
|
capability_id: string;
|
|
355
357
|
endpoint_model_id: string;
|
|
356
358
|
};
|
|
357
|
-
kind: string;
|
|
358
359
|
payload: SerializableJsonValue;
|
|
359
360
|
}[] | undefined;
|
|
360
361
|
} | {
|
|
361
362
|
type: "reasoning";
|
|
362
363
|
text: string;
|
|
363
364
|
provider_continuations?: {
|
|
365
|
+
kind: string;
|
|
364
366
|
schema_version: 2;
|
|
365
367
|
producer: {
|
|
366
368
|
model_id: string;
|
|
@@ -369,13 +371,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
369
371
|
capability_id: string;
|
|
370
372
|
endpoint_model_id: string;
|
|
371
373
|
};
|
|
372
|
-
kind: string;
|
|
373
374
|
payload: SerializableJsonValue;
|
|
374
375
|
}[] | undefined;
|
|
375
376
|
} | {
|
|
376
377
|
type: "tool_call";
|
|
377
378
|
tool_call_id: string;
|
|
378
379
|
provider_continuations?: {
|
|
380
|
+
kind: string;
|
|
379
381
|
schema_version: 2;
|
|
380
382
|
producer: {
|
|
381
383
|
model_id: string;
|
|
@@ -384,14 +386,14 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
384
386
|
capability_id: string;
|
|
385
387
|
endpoint_model_id: string;
|
|
386
388
|
};
|
|
387
|
-
kind: string;
|
|
388
389
|
payload: SerializableJsonValue;
|
|
389
390
|
}[] | undefined;
|
|
390
391
|
})[] | undefined;
|
|
391
|
-
args?: Record<string, unknown> | undefined;
|
|
392
392
|
}, {
|
|
393
|
+
args?: Record<string, unknown> | undefined;
|
|
393
394
|
tool_calls?: unknown[] | undefined;
|
|
394
395
|
provider_continuations?: {
|
|
396
|
+
kind: string;
|
|
395
397
|
schema_version: 2;
|
|
396
398
|
producer: {
|
|
397
399
|
model_id: string;
|
|
@@ -400,13 +402,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
400
402
|
capability_id: string;
|
|
401
403
|
endpoint_model_id: string;
|
|
402
404
|
};
|
|
403
|
-
kind: string;
|
|
404
405
|
payload: SerializableJsonValue;
|
|
405
406
|
}[] | undefined;
|
|
406
407
|
assistant_replay_parts?: ({
|
|
407
408
|
type: "text";
|
|
408
409
|
text: string;
|
|
409
410
|
provider_continuations?: {
|
|
411
|
+
kind: string;
|
|
410
412
|
schema_version: 2;
|
|
411
413
|
producer: {
|
|
412
414
|
model_id: string;
|
|
@@ -415,13 +417,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
415
417
|
capability_id: string;
|
|
416
418
|
endpoint_model_id: string;
|
|
417
419
|
};
|
|
418
|
-
kind: string;
|
|
419
420
|
payload: SerializableJsonValue;
|
|
420
421
|
}[] | undefined;
|
|
421
422
|
} | {
|
|
422
423
|
type: "reasoning";
|
|
423
424
|
text: string;
|
|
424
425
|
provider_continuations?: {
|
|
426
|
+
kind: string;
|
|
425
427
|
schema_version: 2;
|
|
426
428
|
producer: {
|
|
427
429
|
model_id: string;
|
|
@@ -430,13 +432,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
430
432
|
capability_id: string;
|
|
431
433
|
endpoint_model_id: string;
|
|
432
434
|
};
|
|
433
|
-
kind: string;
|
|
434
435
|
payload: SerializableJsonValue;
|
|
435
436
|
}[] | undefined;
|
|
436
437
|
} | {
|
|
437
438
|
type: "tool_call";
|
|
438
439
|
tool_call_id: string;
|
|
439
440
|
provider_continuations?: {
|
|
441
|
+
kind: string;
|
|
440
442
|
schema_version: 2;
|
|
441
443
|
producer: {
|
|
442
444
|
model_id: string;
|
|
@@ -445,25 +447,25 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
445
447
|
capability_id: string;
|
|
446
448
|
endpoint_model_id: string;
|
|
447
449
|
};
|
|
448
|
-
kind: string;
|
|
449
450
|
payload: SerializableJsonValue;
|
|
450
451
|
}[] | undefined;
|
|
451
452
|
})[] | undefined;
|
|
452
|
-
args?: Record<string, unknown> | undefined;
|
|
453
453
|
}>>;
|
|
454
454
|
}, "strict", z.ZodTypeAny, {
|
|
455
|
-
id: string;
|
|
456
455
|
type: "tool_call_decision";
|
|
456
|
+
id: string;
|
|
457
|
+
timestamp: number;
|
|
457
458
|
status: "error" | "loading" | "success";
|
|
458
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
459
459
|
tool_name: string;
|
|
460
|
-
|
|
461
|
-
phase: "
|
|
460
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
461
|
+
phase: "start" | "update" | "complete" | "error";
|
|
462
462
|
tool_args: Record<string, unknown>;
|
|
463
463
|
tool_calls?: unknown[] | undefined;
|
|
464
464
|
payload?: {
|
|
465
|
+
args?: Record<string, unknown> | undefined;
|
|
465
466
|
tool_calls?: unknown[] | undefined;
|
|
466
467
|
provider_continuations?: {
|
|
468
|
+
kind: string;
|
|
467
469
|
schema_version: 2;
|
|
468
470
|
producer: {
|
|
469
471
|
model_id: string;
|
|
@@ -472,13 +474,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
472
474
|
capability_id: string;
|
|
473
475
|
endpoint_model_id: string;
|
|
474
476
|
};
|
|
475
|
-
kind: string;
|
|
476
477
|
payload: SerializableJsonValue;
|
|
477
478
|
}[] | undefined;
|
|
478
479
|
assistant_replay_parts?: ({
|
|
479
480
|
type: "text";
|
|
480
481
|
text: string;
|
|
481
482
|
provider_continuations?: {
|
|
483
|
+
kind: string;
|
|
482
484
|
schema_version: 2;
|
|
483
485
|
producer: {
|
|
484
486
|
model_id: string;
|
|
@@ -487,13 +489,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
487
489
|
capability_id: string;
|
|
488
490
|
endpoint_model_id: string;
|
|
489
491
|
};
|
|
490
|
-
kind: string;
|
|
491
492
|
payload: SerializableJsonValue;
|
|
492
493
|
}[] | undefined;
|
|
493
494
|
} | {
|
|
494
495
|
type: "reasoning";
|
|
495
496
|
text: string;
|
|
496
497
|
provider_continuations?: {
|
|
498
|
+
kind: string;
|
|
497
499
|
schema_version: 2;
|
|
498
500
|
producer: {
|
|
499
501
|
model_id: string;
|
|
@@ -502,13 +504,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
502
504
|
capability_id: string;
|
|
503
505
|
endpoint_model_id: string;
|
|
504
506
|
};
|
|
505
|
-
kind: string;
|
|
506
507
|
payload: SerializableJsonValue;
|
|
507
508
|
}[] | undefined;
|
|
508
509
|
} | {
|
|
509
510
|
type: "tool_call";
|
|
510
511
|
tool_call_id: string;
|
|
511
512
|
provider_continuations?: {
|
|
513
|
+
kind: string;
|
|
512
514
|
schema_version: 2;
|
|
513
515
|
producer: {
|
|
514
516
|
model_id: string;
|
|
@@ -517,26 +519,26 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
517
519
|
capability_id: string;
|
|
518
520
|
endpoint_model_id: string;
|
|
519
521
|
};
|
|
520
|
-
kind: string;
|
|
521
522
|
payload: SerializableJsonValue;
|
|
522
523
|
}[] | undefined;
|
|
523
524
|
})[] | undefined;
|
|
524
|
-
args?: Record<string, unknown> | undefined;
|
|
525
525
|
} | undefined;
|
|
526
526
|
meta?: Record<string, unknown> | undefined;
|
|
527
527
|
}, {
|
|
528
|
-
id: string;
|
|
529
528
|
type: "tool_call_decision";
|
|
529
|
+
id: string;
|
|
530
|
+
timestamp: number;
|
|
530
531
|
status: "error" | "loading" | "success";
|
|
531
|
-
tool_call_id: string;
|
|
532
532
|
tool_name: string;
|
|
533
|
-
|
|
534
|
-
phase: "
|
|
533
|
+
tool_call_id: string;
|
|
534
|
+
phase: "start" | "update" | "complete" | "error";
|
|
535
535
|
tool_args: Record<string, unknown>;
|
|
536
536
|
tool_calls?: unknown[] | undefined;
|
|
537
537
|
payload?: {
|
|
538
|
+
args?: Record<string, unknown> | undefined;
|
|
538
539
|
tool_calls?: unknown[] | undefined;
|
|
539
540
|
provider_continuations?: {
|
|
541
|
+
kind: string;
|
|
540
542
|
schema_version: 2;
|
|
541
543
|
producer: {
|
|
542
544
|
model_id: string;
|
|
@@ -545,13 +547,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
545
547
|
capability_id: string;
|
|
546
548
|
endpoint_model_id: string;
|
|
547
549
|
};
|
|
548
|
-
kind: string;
|
|
549
550
|
payload: SerializableJsonValue;
|
|
550
551
|
}[] | undefined;
|
|
551
552
|
assistant_replay_parts?: ({
|
|
552
553
|
type: "text";
|
|
553
554
|
text: string;
|
|
554
555
|
provider_continuations?: {
|
|
556
|
+
kind: string;
|
|
555
557
|
schema_version: 2;
|
|
556
558
|
producer: {
|
|
557
559
|
model_id: string;
|
|
@@ -560,13 +562,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
560
562
|
capability_id: string;
|
|
561
563
|
endpoint_model_id: string;
|
|
562
564
|
};
|
|
563
|
-
kind: string;
|
|
564
565
|
payload: SerializableJsonValue;
|
|
565
566
|
}[] | undefined;
|
|
566
567
|
} | {
|
|
567
568
|
type: "reasoning";
|
|
568
569
|
text: string;
|
|
569
570
|
provider_continuations?: {
|
|
571
|
+
kind: string;
|
|
570
572
|
schema_version: 2;
|
|
571
573
|
producer: {
|
|
572
574
|
model_id: string;
|
|
@@ -575,13 +577,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
575
577
|
capability_id: string;
|
|
576
578
|
endpoint_model_id: string;
|
|
577
579
|
};
|
|
578
|
-
kind: string;
|
|
579
580
|
payload: SerializableJsonValue;
|
|
580
581
|
}[] | undefined;
|
|
581
582
|
} | {
|
|
582
583
|
type: "tool_call";
|
|
583
584
|
tool_call_id: string;
|
|
584
585
|
provider_continuations?: {
|
|
586
|
+
kind: string;
|
|
585
587
|
schema_version: 2;
|
|
586
588
|
producer: {
|
|
587
589
|
model_id: string;
|
|
@@ -590,11 +592,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
590
592
|
capability_id: string;
|
|
591
593
|
endpoint_model_id: string;
|
|
592
594
|
};
|
|
593
|
-
kind: string;
|
|
594
595
|
payload: SerializableJsonValue;
|
|
595
596
|
}[] | undefined;
|
|
596
597
|
})[] | undefined;
|
|
597
|
-
args?: Record<string, unknown> | undefined;
|
|
598
598
|
} | undefined;
|
|
599
599
|
meta?: Record<string, unknown> | undefined;
|
|
600
600
|
}>, z.ZodObject<{
|
|
@@ -611,25 +611,25 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
611
611
|
} & {
|
|
612
612
|
type: z.ZodLiteral<"tool_process">;
|
|
613
613
|
}, "strict", z.ZodTypeAny, {
|
|
614
|
-
id: string;
|
|
615
614
|
type: "tool_process";
|
|
615
|
+
id: string;
|
|
616
|
+
timestamp: number;
|
|
616
617
|
status: "error" | "loading" | "success";
|
|
617
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
618
618
|
tool_name: string;
|
|
619
|
-
|
|
620
|
-
phase: "
|
|
619
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
620
|
+
phase: "start" | "update" | "complete" | "error";
|
|
621
621
|
tool_args: Record<string, unknown>;
|
|
622
622
|
tool_calls?: unknown[] | undefined;
|
|
623
623
|
payload?: Record<string, unknown> | undefined;
|
|
624
624
|
meta?: Record<string, unknown> | undefined;
|
|
625
625
|
}, {
|
|
626
|
-
id: string;
|
|
627
626
|
type: "tool_process";
|
|
627
|
+
id: string;
|
|
628
|
+
timestamp: number;
|
|
628
629
|
status: "error" | "loading" | "success";
|
|
629
|
-
tool_call_id: string;
|
|
630
630
|
tool_name: string;
|
|
631
|
-
|
|
632
|
-
phase: "
|
|
631
|
+
tool_call_id: string;
|
|
632
|
+
phase: "start" | "update" | "complete" | "error";
|
|
633
633
|
tool_args: Record<string, unknown>;
|
|
634
634
|
tool_calls?: unknown[] | undefined;
|
|
635
635
|
payload?: Record<string, unknown> | undefined;
|
|
@@ -682,15 +682,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
682
682
|
label?: string | undefined;
|
|
683
683
|
}>, "many">>;
|
|
684
684
|
}, "strict", z.ZodTypeAny, {
|
|
685
|
-
id: string;
|
|
686
685
|
type: "observation";
|
|
687
|
-
|
|
688
|
-
tool_name: string;
|
|
686
|
+
id: string;
|
|
689
687
|
timestamp: number;
|
|
688
|
+
tool_name: string;
|
|
689
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
690
690
|
success: boolean;
|
|
691
691
|
observation: string;
|
|
692
|
-
data?: unknown;
|
|
693
|
-
error?: string | undefined;
|
|
694
692
|
attachments?: {
|
|
695
693
|
id: string;
|
|
696
694
|
kind: "image";
|
|
@@ -703,18 +701,18 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
703
701
|
fileName?: string | undefined;
|
|
704
702
|
label?: string | undefined;
|
|
705
703
|
}[] | undefined;
|
|
704
|
+
error?: string | undefined;
|
|
705
|
+
data?: unknown;
|
|
706
706
|
error_code?: string | undefined;
|
|
707
707
|
duration_ms?: number | undefined;
|
|
708
708
|
}, {
|
|
709
|
-
id: string;
|
|
710
709
|
type: "observation";
|
|
711
|
-
|
|
712
|
-
tool_name: string;
|
|
710
|
+
id: string;
|
|
713
711
|
timestamp: number;
|
|
712
|
+
tool_name: string;
|
|
713
|
+
tool_call_id: string;
|
|
714
714
|
success: boolean;
|
|
715
715
|
observation: string;
|
|
716
|
-
data?: unknown;
|
|
717
|
-
error?: string | undefined;
|
|
718
716
|
attachments?: {
|
|
719
717
|
id: string;
|
|
720
718
|
kind: "image";
|
|
@@ -727,6 +725,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
727
725
|
fileName?: string | undefined;
|
|
728
726
|
label?: string | undefined;
|
|
729
727
|
}[] | undefined;
|
|
728
|
+
error?: string | undefined;
|
|
729
|
+
data?: unknown;
|
|
730
730
|
error_code?: string | undefined;
|
|
731
731
|
duration_ms?: number | undefined;
|
|
732
732
|
}>, z.ZodObject<{
|
|
@@ -761,6 +761,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
761
761
|
kind: z.ZodString;
|
|
762
762
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
763
763
|
}, "strict", z.ZodTypeAny, {
|
|
764
|
+
kind: string;
|
|
764
765
|
schema_version: 2;
|
|
765
766
|
producer: {
|
|
766
767
|
model_id: string;
|
|
@@ -769,9 +770,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
769
770
|
capability_id: string;
|
|
770
771
|
endpoint_model_id: string;
|
|
771
772
|
};
|
|
772
|
-
kind: string;
|
|
773
773
|
payload: SerializableJsonValue;
|
|
774
774
|
}, {
|
|
775
|
+
kind: string;
|
|
775
776
|
schema_version: 2;
|
|
776
777
|
producer: {
|
|
777
778
|
model_id: string;
|
|
@@ -780,7 +781,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
780
781
|
capability_id: string;
|
|
781
782
|
endpoint_model_id: string;
|
|
782
783
|
};
|
|
783
|
-
kind: string;
|
|
784
784
|
payload: SerializableJsonValue;
|
|
785
785
|
}>, "many">>;
|
|
786
786
|
assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -810,6 +810,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
810
810
|
kind: z.ZodString;
|
|
811
811
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
812
812
|
}, "strict", z.ZodTypeAny, {
|
|
813
|
+
kind: string;
|
|
813
814
|
schema_version: 2;
|
|
814
815
|
producer: {
|
|
815
816
|
model_id: string;
|
|
@@ -818,9 +819,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
818
819
|
capability_id: string;
|
|
819
820
|
endpoint_model_id: string;
|
|
820
821
|
};
|
|
821
|
-
kind: string;
|
|
822
822
|
payload: SerializableJsonValue;
|
|
823
823
|
}, {
|
|
824
|
+
kind: string;
|
|
824
825
|
schema_version: 2;
|
|
825
826
|
producer: {
|
|
826
827
|
model_id: string;
|
|
@@ -829,13 +830,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
829
830
|
capability_id: string;
|
|
830
831
|
endpoint_model_id: string;
|
|
831
832
|
};
|
|
832
|
-
kind: string;
|
|
833
833
|
payload: SerializableJsonValue;
|
|
834
834
|
}>, "many">>;
|
|
835
835
|
}, "strict", z.ZodTypeAny, {
|
|
836
836
|
type: "text";
|
|
837
837
|
text: string;
|
|
838
838
|
provider_continuations?: {
|
|
839
|
+
kind: string;
|
|
839
840
|
schema_version: 2;
|
|
840
841
|
producer: {
|
|
841
842
|
model_id: string;
|
|
@@ -844,13 +845,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
844
845
|
capability_id: string;
|
|
845
846
|
endpoint_model_id: string;
|
|
846
847
|
};
|
|
847
|
-
kind: string;
|
|
848
848
|
payload: SerializableJsonValue;
|
|
849
849
|
}[] | undefined;
|
|
850
850
|
}, {
|
|
851
851
|
type: "text";
|
|
852
852
|
text: string;
|
|
853
853
|
provider_continuations?: {
|
|
854
|
+
kind: string;
|
|
854
855
|
schema_version: 2;
|
|
855
856
|
producer: {
|
|
856
857
|
model_id: string;
|
|
@@ -859,7 +860,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
859
860
|
capability_id: string;
|
|
860
861
|
endpoint_model_id: string;
|
|
861
862
|
};
|
|
862
|
-
kind: string;
|
|
863
863
|
payload: SerializableJsonValue;
|
|
864
864
|
}[] | undefined;
|
|
865
865
|
}>, z.ZodObject<{
|
|
@@ -889,6 +889,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
889
889
|
kind: z.ZodString;
|
|
890
890
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
891
891
|
}, "strict", z.ZodTypeAny, {
|
|
892
|
+
kind: string;
|
|
892
893
|
schema_version: 2;
|
|
893
894
|
producer: {
|
|
894
895
|
model_id: string;
|
|
@@ -897,9 +898,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
897
898
|
capability_id: string;
|
|
898
899
|
endpoint_model_id: string;
|
|
899
900
|
};
|
|
900
|
-
kind: string;
|
|
901
901
|
payload: SerializableJsonValue;
|
|
902
902
|
}, {
|
|
903
|
+
kind: string;
|
|
903
904
|
schema_version: 2;
|
|
904
905
|
producer: {
|
|
905
906
|
model_id: string;
|
|
@@ -908,13 +909,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
908
909
|
capability_id: string;
|
|
909
910
|
endpoint_model_id: string;
|
|
910
911
|
};
|
|
911
|
-
kind: string;
|
|
912
912
|
payload: SerializableJsonValue;
|
|
913
913
|
}>, "many">>;
|
|
914
914
|
}, "strict", z.ZodTypeAny, {
|
|
915
915
|
type: "reasoning";
|
|
916
916
|
text: string;
|
|
917
917
|
provider_continuations?: {
|
|
918
|
+
kind: string;
|
|
918
919
|
schema_version: 2;
|
|
919
920
|
producer: {
|
|
920
921
|
model_id: string;
|
|
@@ -923,13 +924,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
923
924
|
capability_id: string;
|
|
924
925
|
endpoint_model_id: string;
|
|
925
926
|
};
|
|
926
|
-
kind: string;
|
|
927
927
|
payload: SerializableJsonValue;
|
|
928
928
|
}[] | undefined;
|
|
929
929
|
}, {
|
|
930
930
|
type: "reasoning";
|
|
931
931
|
text: string;
|
|
932
932
|
provider_continuations?: {
|
|
933
|
+
kind: string;
|
|
933
934
|
schema_version: 2;
|
|
934
935
|
producer: {
|
|
935
936
|
model_id: string;
|
|
@@ -938,7 +939,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
938
939
|
capability_id: string;
|
|
939
940
|
endpoint_model_id: string;
|
|
940
941
|
};
|
|
941
|
-
kind: string;
|
|
942
942
|
payload: SerializableJsonValue;
|
|
943
943
|
}[] | undefined;
|
|
944
944
|
}>, z.ZodObject<{
|
|
@@ -968,6 +968,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
968
968
|
kind: z.ZodString;
|
|
969
969
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
970
970
|
}, "strict", z.ZodTypeAny, {
|
|
971
|
+
kind: string;
|
|
971
972
|
schema_version: 2;
|
|
972
973
|
producer: {
|
|
973
974
|
model_id: string;
|
|
@@ -976,9 +977,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
976
977
|
capability_id: string;
|
|
977
978
|
endpoint_model_id: string;
|
|
978
979
|
};
|
|
979
|
-
kind: string;
|
|
980
980
|
payload: SerializableJsonValue;
|
|
981
981
|
}, {
|
|
982
|
+
kind: string;
|
|
982
983
|
schema_version: 2;
|
|
983
984
|
producer: {
|
|
984
985
|
model_id: string;
|
|
@@ -987,13 +988,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
987
988
|
capability_id: string;
|
|
988
989
|
endpoint_model_id: string;
|
|
989
990
|
};
|
|
990
|
-
kind: string;
|
|
991
991
|
payload: SerializableJsonValue;
|
|
992
992
|
}>, "many">>;
|
|
993
993
|
}, "strict", z.ZodTypeAny, {
|
|
994
994
|
type: "tool_call";
|
|
995
995
|
tool_call_id: string;
|
|
996
996
|
provider_continuations?: {
|
|
997
|
+
kind: string;
|
|
997
998
|
schema_version: 2;
|
|
998
999
|
producer: {
|
|
999
1000
|
model_id: string;
|
|
@@ -1002,13 +1003,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1002
1003
|
capability_id: string;
|
|
1003
1004
|
endpoint_model_id: string;
|
|
1004
1005
|
};
|
|
1005
|
-
kind: string;
|
|
1006
1006
|
payload: SerializableJsonValue;
|
|
1007
1007
|
}[] | undefined;
|
|
1008
1008
|
}, {
|
|
1009
1009
|
type: "tool_call";
|
|
1010
1010
|
tool_call_id: string;
|
|
1011
1011
|
provider_continuations?: {
|
|
1012
|
+
kind: string;
|
|
1012
1013
|
schema_version: 2;
|
|
1013
1014
|
producer: {
|
|
1014
1015
|
model_id: string;
|
|
@@ -1017,19 +1018,19 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1017
1018
|
capability_id: string;
|
|
1018
1019
|
endpoint_model_id: string;
|
|
1019
1020
|
};
|
|
1020
|
-
kind: string;
|
|
1021
1021
|
payload: SerializableJsonValue;
|
|
1022
1022
|
}[] | undefined;
|
|
1023
1023
|
}>]>, "many">>;
|
|
1024
1024
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1025
1025
|
}, "strict", z.ZodTypeAny, {
|
|
1026
|
-
id: string;
|
|
1027
1026
|
type: "final_answer";
|
|
1028
|
-
|
|
1027
|
+
id: string;
|
|
1029
1028
|
timestamp: number;
|
|
1030
1029
|
answer_id: string;
|
|
1030
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1031
1031
|
answer: string;
|
|
1032
1032
|
provider_continuations?: {
|
|
1033
|
+
kind: string;
|
|
1033
1034
|
schema_version: 2;
|
|
1034
1035
|
producer: {
|
|
1035
1036
|
model_id: string;
|
|
@@ -1038,13 +1039,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1038
1039
|
capability_id: string;
|
|
1039
1040
|
endpoint_model_id: string;
|
|
1040
1041
|
};
|
|
1041
|
-
kind: string;
|
|
1042
1042
|
payload: SerializableJsonValue;
|
|
1043
1043
|
}[] | undefined;
|
|
1044
1044
|
assistant_replay_parts?: ({
|
|
1045
1045
|
type: "text";
|
|
1046
1046
|
text: string;
|
|
1047
1047
|
provider_continuations?: {
|
|
1048
|
+
kind: string;
|
|
1048
1049
|
schema_version: 2;
|
|
1049
1050
|
producer: {
|
|
1050
1051
|
model_id: string;
|
|
@@ -1053,13 +1054,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1053
1054
|
capability_id: string;
|
|
1054
1055
|
endpoint_model_id: string;
|
|
1055
1056
|
};
|
|
1056
|
-
kind: string;
|
|
1057
1057
|
payload: SerializableJsonValue;
|
|
1058
1058
|
}[] | undefined;
|
|
1059
1059
|
} | {
|
|
1060
1060
|
type: "reasoning";
|
|
1061
1061
|
text: string;
|
|
1062
1062
|
provider_continuations?: {
|
|
1063
|
+
kind: string;
|
|
1063
1064
|
schema_version: 2;
|
|
1064
1065
|
producer: {
|
|
1065
1066
|
model_id: string;
|
|
@@ -1068,13 +1069,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1068
1069
|
capability_id: string;
|
|
1069
1070
|
endpoint_model_id: string;
|
|
1070
1071
|
};
|
|
1071
|
-
kind: string;
|
|
1072
1072
|
payload: SerializableJsonValue;
|
|
1073
1073
|
}[] | undefined;
|
|
1074
1074
|
} | {
|
|
1075
1075
|
type: "tool_call";
|
|
1076
1076
|
tool_call_id: string;
|
|
1077
1077
|
provider_continuations?: {
|
|
1078
|
+
kind: string;
|
|
1078
1079
|
schema_version: 2;
|
|
1079
1080
|
producer: {
|
|
1080
1081
|
model_id: string;
|
|
@@ -1083,19 +1084,19 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1083
1084
|
capability_id: string;
|
|
1084
1085
|
endpoint_model_id: string;
|
|
1085
1086
|
};
|
|
1086
|
-
kind: string;
|
|
1087
1087
|
payload: SerializableJsonValue;
|
|
1088
1088
|
}[] | undefined;
|
|
1089
1089
|
})[] | undefined;
|
|
1090
1090
|
meta?: Record<string, unknown> | undefined;
|
|
1091
1091
|
}, {
|
|
1092
|
-
id: string;
|
|
1093
1092
|
type: "final_answer";
|
|
1094
|
-
|
|
1093
|
+
id: string;
|
|
1095
1094
|
timestamp: number;
|
|
1096
1095
|
answer_id: string;
|
|
1096
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1097
1097
|
answer: string;
|
|
1098
1098
|
provider_continuations?: {
|
|
1099
|
+
kind: string;
|
|
1099
1100
|
schema_version: 2;
|
|
1100
1101
|
producer: {
|
|
1101
1102
|
model_id: string;
|
|
@@ -1104,13 +1105,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1104
1105
|
capability_id: string;
|
|
1105
1106
|
endpoint_model_id: string;
|
|
1106
1107
|
};
|
|
1107
|
-
kind: string;
|
|
1108
1108
|
payload: SerializableJsonValue;
|
|
1109
1109
|
}[] | undefined;
|
|
1110
1110
|
assistant_replay_parts?: ({
|
|
1111
1111
|
type: "text";
|
|
1112
1112
|
text: string;
|
|
1113
1113
|
provider_continuations?: {
|
|
1114
|
+
kind: string;
|
|
1114
1115
|
schema_version: 2;
|
|
1115
1116
|
producer: {
|
|
1116
1117
|
model_id: string;
|
|
@@ -1119,13 +1120,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1119
1120
|
capability_id: string;
|
|
1120
1121
|
endpoint_model_id: string;
|
|
1121
1122
|
};
|
|
1122
|
-
kind: string;
|
|
1123
1123
|
payload: SerializableJsonValue;
|
|
1124
1124
|
}[] | undefined;
|
|
1125
1125
|
} | {
|
|
1126
1126
|
type: "reasoning";
|
|
1127
1127
|
text: string;
|
|
1128
1128
|
provider_continuations?: {
|
|
1129
|
+
kind: string;
|
|
1129
1130
|
schema_version: 2;
|
|
1130
1131
|
producer: {
|
|
1131
1132
|
model_id: string;
|
|
@@ -1134,13 +1135,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1134
1135
|
capability_id: string;
|
|
1135
1136
|
endpoint_model_id: string;
|
|
1136
1137
|
};
|
|
1137
|
-
kind: string;
|
|
1138
1138
|
payload: SerializableJsonValue;
|
|
1139
1139
|
}[] | undefined;
|
|
1140
1140
|
} | {
|
|
1141
1141
|
type: "tool_call";
|
|
1142
1142
|
tool_call_id: string;
|
|
1143
1143
|
provider_continuations?: {
|
|
1144
|
+
kind: string;
|
|
1144
1145
|
schema_version: 2;
|
|
1145
1146
|
producer: {
|
|
1146
1147
|
model_id: string;
|
|
@@ -1149,7 +1150,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1149
1150
|
capability_id: string;
|
|
1150
1151
|
endpoint_model_id: string;
|
|
1151
1152
|
};
|
|
1152
|
-
kind: string;
|
|
1153
1153
|
payload: SerializableJsonValue;
|
|
1154
1154
|
}[] | undefined;
|
|
1155
1155
|
})[] | undefined;
|
|
@@ -1164,18 +1164,18 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1164
1164
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1165
1165
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1166
1166
|
}, "strict", z.ZodTypeAny, {
|
|
1167
|
-
id: string;
|
|
1168
1167
|
type: "error";
|
|
1169
|
-
|
|
1168
|
+
id: string;
|
|
1170
1169
|
timestamp: number;
|
|
1170
|
+
error: string;
|
|
1171
1171
|
error_code?: string | undefined;
|
|
1172
1172
|
details?: Record<string, unknown> | undefined;
|
|
1173
1173
|
retryable?: boolean | undefined;
|
|
1174
1174
|
}, {
|
|
1175
|
-
id: string;
|
|
1176
1175
|
type: "error";
|
|
1177
|
-
|
|
1176
|
+
id: string;
|
|
1178
1177
|
timestamp: number;
|
|
1178
|
+
error: string;
|
|
1179
1179
|
error_code?: string | undefined;
|
|
1180
1180
|
details?: Record<string, unknown> | undefined;
|
|
1181
1181
|
retryable?: boolean | undefined;
|
|
@@ -1189,18 +1189,18 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1189
1189
|
seq: z.ZodNumber;
|
|
1190
1190
|
is_last: z.ZodOptional<z.ZodBoolean>;
|
|
1191
1191
|
}, "strict", z.ZodTypeAny, {
|
|
1192
|
-
id: string;
|
|
1193
1192
|
type: "stream_chunk";
|
|
1194
|
-
|
|
1193
|
+
id: string;
|
|
1195
1194
|
timestamp: number;
|
|
1195
|
+
content: string;
|
|
1196
1196
|
answer_id: string;
|
|
1197
1197
|
seq: number;
|
|
1198
1198
|
is_last?: boolean | undefined;
|
|
1199
1199
|
}, {
|
|
1200
|
-
id: string;
|
|
1201
1200
|
type: "stream_chunk";
|
|
1202
|
-
|
|
1201
|
+
id: string;
|
|
1203
1202
|
timestamp: number;
|
|
1203
|
+
content: string;
|
|
1204
1204
|
answer_id: string;
|
|
1205
1205
|
seq: number;
|
|
1206
1206
|
is_last?: boolean | undefined;
|
|
@@ -1212,14 +1212,14 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1212
1212
|
answer_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1213
1213
|
thought_message_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1214
1214
|
}, "strict", z.ZodTypeAny, {
|
|
1215
|
-
id: string;
|
|
1216
1215
|
type: "stream_reset";
|
|
1216
|
+
id: string;
|
|
1217
1217
|
timestamp: number;
|
|
1218
1218
|
answer_id?: string | undefined;
|
|
1219
1219
|
thought_message_ids?: string[] | undefined;
|
|
1220
1220
|
}, {
|
|
1221
|
-
id: string;
|
|
1222
1221
|
type: "stream_reset";
|
|
1222
|
+
id: string;
|
|
1223
1223
|
timestamp: number;
|
|
1224
1224
|
answer_id?: string | undefined;
|
|
1225
1225
|
thought_message_ids?: string[] | undefined;
|
|
@@ -1252,6 +1252,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1252
1252
|
kind: z.ZodString;
|
|
1253
1253
|
payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
|
|
1254
1254
|
}, "strict", z.ZodTypeAny, {
|
|
1255
|
+
kind: string;
|
|
1255
1256
|
schema_version: 2;
|
|
1256
1257
|
producer: {
|
|
1257
1258
|
model_id: string;
|
|
@@ -1260,9 +1261,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1260
1261
|
capability_id: string;
|
|
1261
1262
|
endpoint_model_id: string;
|
|
1262
1263
|
};
|
|
1263
|
-
kind: string;
|
|
1264
1264
|
payload: SerializableJsonValue;
|
|
1265
1265
|
}, {
|
|
1266
|
+
kind: string;
|
|
1266
1267
|
schema_version: 2;
|
|
1267
1268
|
producer: {
|
|
1268
1269
|
model_id: string;
|
|
@@ -1271,14 +1272,14 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1271
1272
|
capability_id: string;
|
|
1272
1273
|
endpoint_model_id: string;
|
|
1273
1274
|
};
|
|
1274
|
-
kind: string;
|
|
1275
1275
|
payload: SerializableJsonValue;
|
|
1276
1276
|
}>, "many">;
|
|
1277
1277
|
}, "strict", z.ZodTypeAny, {
|
|
1278
|
-
id: string;
|
|
1279
1278
|
type: "provider_continuation";
|
|
1279
|
+
id: string;
|
|
1280
1280
|
timestamp: number;
|
|
1281
1281
|
continuations: {
|
|
1282
|
+
kind: string;
|
|
1282
1283
|
schema_version: 2;
|
|
1283
1284
|
producer: {
|
|
1284
1285
|
model_id: string;
|
|
@@ -1287,14 +1288,14 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1287
1288
|
capability_id: string;
|
|
1288
1289
|
endpoint_model_id: string;
|
|
1289
1290
|
};
|
|
1290
|
-
kind: string;
|
|
1291
1291
|
payload: SerializableJsonValue;
|
|
1292
1292
|
}[];
|
|
1293
1293
|
}, {
|
|
1294
|
-
id: string;
|
|
1295
1294
|
type: "provider_continuation";
|
|
1295
|
+
id: string;
|
|
1296
1296
|
timestamp: number;
|
|
1297
1297
|
continuations: {
|
|
1298
|
+
kind: string;
|
|
1298
1299
|
schema_version: 2;
|
|
1299
1300
|
producer: {
|
|
1300
1301
|
model_id: string;
|
|
@@ -1303,31 +1304,32 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1303
1304
|
capability_id: string;
|
|
1304
1305
|
endpoint_model_id: string;
|
|
1305
1306
|
};
|
|
1306
|
-
kind: string;
|
|
1307
1307
|
payload: SerializableJsonValue;
|
|
1308
1308
|
}[];
|
|
1309
1309
|
}>]>, {
|
|
1310
|
-
id: string;
|
|
1311
1310
|
type: "thought";
|
|
1312
|
-
|
|
1311
|
+
id: string;
|
|
1313
1312
|
timestamp: number;
|
|
1313
|
+
content: string;
|
|
1314
1314
|
is_complete: boolean;
|
|
1315
1315
|
thought_message_id?: string | undefined;
|
|
1316
1316
|
delta?: string | undefined;
|
|
1317
1317
|
meta?: Record<string, unknown> | undefined;
|
|
1318
1318
|
} | {
|
|
1319
|
-
id: string;
|
|
1320
1319
|
type: "tool_call_decision";
|
|
1320
|
+
id: string;
|
|
1321
|
+
timestamp: number;
|
|
1321
1322
|
status: "error" | "loading" | "success";
|
|
1322
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1323
1323
|
tool_name: string;
|
|
1324
|
-
|
|
1325
|
-
phase: "
|
|
1324
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1325
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1326
1326
|
tool_args: Record<string, unknown>;
|
|
1327
1327
|
tool_calls?: unknown[] | undefined;
|
|
1328
1328
|
payload?: {
|
|
1329
|
+
args?: Record<string, unknown> | undefined;
|
|
1329
1330
|
tool_calls?: unknown[] | undefined;
|
|
1330
1331
|
provider_continuations?: {
|
|
1332
|
+
kind: string;
|
|
1331
1333
|
schema_version: 2;
|
|
1332
1334
|
producer: {
|
|
1333
1335
|
model_id: string;
|
|
@@ -1336,13 +1338,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1336
1338
|
capability_id: string;
|
|
1337
1339
|
endpoint_model_id: string;
|
|
1338
1340
|
};
|
|
1339
|
-
kind: string;
|
|
1340
1341
|
payload: SerializableJsonValue;
|
|
1341
1342
|
}[] | undefined;
|
|
1342
1343
|
assistant_replay_parts?: ({
|
|
1343
1344
|
type: "text";
|
|
1344
1345
|
text: string;
|
|
1345
1346
|
provider_continuations?: {
|
|
1347
|
+
kind: string;
|
|
1346
1348
|
schema_version: 2;
|
|
1347
1349
|
producer: {
|
|
1348
1350
|
model_id: string;
|
|
@@ -1351,13 +1353,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1351
1353
|
capability_id: string;
|
|
1352
1354
|
endpoint_model_id: string;
|
|
1353
1355
|
};
|
|
1354
|
-
kind: string;
|
|
1355
1356
|
payload: SerializableJsonValue;
|
|
1356
1357
|
}[] | undefined;
|
|
1357
1358
|
} | {
|
|
1358
1359
|
type: "reasoning";
|
|
1359
1360
|
text: string;
|
|
1360
1361
|
provider_continuations?: {
|
|
1362
|
+
kind: string;
|
|
1361
1363
|
schema_version: 2;
|
|
1362
1364
|
producer: {
|
|
1363
1365
|
model_id: string;
|
|
@@ -1366,13 +1368,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1366
1368
|
capability_id: string;
|
|
1367
1369
|
endpoint_model_id: string;
|
|
1368
1370
|
};
|
|
1369
|
-
kind: string;
|
|
1370
1371
|
payload: SerializableJsonValue;
|
|
1371
1372
|
}[] | undefined;
|
|
1372
1373
|
} | {
|
|
1373
1374
|
type: "tool_call";
|
|
1374
1375
|
tool_call_id: string;
|
|
1375
1376
|
provider_continuations?: {
|
|
1377
|
+
kind: string;
|
|
1376
1378
|
schema_version: 2;
|
|
1377
1379
|
producer: {
|
|
1378
1380
|
model_id: string;
|
|
@@ -1381,35 +1383,31 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1381
1383
|
capability_id: string;
|
|
1382
1384
|
endpoint_model_id: string;
|
|
1383
1385
|
};
|
|
1384
|
-
kind: string;
|
|
1385
1386
|
payload: SerializableJsonValue;
|
|
1386
1387
|
}[] | undefined;
|
|
1387
1388
|
})[] | undefined;
|
|
1388
|
-
args?: Record<string, unknown> | undefined;
|
|
1389
1389
|
} | undefined;
|
|
1390
1390
|
meta?: Record<string, unknown> | undefined;
|
|
1391
1391
|
} | {
|
|
1392
|
-
id: string;
|
|
1393
1392
|
type: "tool_process";
|
|
1393
|
+
id: string;
|
|
1394
|
+
timestamp: number;
|
|
1394
1395
|
status: "error" | "loading" | "success";
|
|
1395
|
-
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1396
1396
|
tool_name: string;
|
|
1397
|
-
|
|
1398
|
-
phase: "
|
|
1397
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1398
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1399
1399
|
tool_args: Record<string, unknown>;
|
|
1400
1400
|
tool_calls?: unknown[] | undefined;
|
|
1401
1401
|
payload?: Record<string, unknown> | undefined;
|
|
1402
1402
|
meta?: Record<string, unknown> | undefined;
|
|
1403
1403
|
} | {
|
|
1404
|
-
id: string;
|
|
1405
1404
|
type: "observation";
|
|
1406
|
-
|
|
1407
|
-
tool_name: string;
|
|
1405
|
+
id: string;
|
|
1408
1406
|
timestamp: number;
|
|
1407
|
+
tool_name: string;
|
|
1408
|
+
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1409
1409
|
success: boolean;
|
|
1410
1410
|
observation: string;
|
|
1411
|
-
data?: unknown;
|
|
1412
|
-
error?: string | undefined;
|
|
1413
1411
|
attachments?: {
|
|
1414
1412
|
id: string;
|
|
1415
1413
|
kind: "image";
|
|
@@ -1422,16 +1420,19 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1422
1420
|
fileName?: string | undefined;
|
|
1423
1421
|
label?: string | undefined;
|
|
1424
1422
|
}[] | undefined;
|
|
1423
|
+
error?: string | undefined;
|
|
1424
|
+
data?: unknown;
|
|
1425
1425
|
error_code?: string | undefined;
|
|
1426
1426
|
duration_ms?: number | undefined;
|
|
1427
1427
|
} | {
|
|
1428
|
-
id: string;
|
|
1429
1428
|
type: "final_answer";
|
|
1430
|
-
|
|
1429
|
+
id: string;
|
|
1431
1430
|
timestamp: number;
|
|
1432
1431
|
answer_id: string;
|
|
1432
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1433
1433
|
answer: string;
|
|
1434
1434
|
provider_continuations?: {
|
|
1435
|
+
kind: string;
|
|
1435
1436
|
schema_version: 2;
|
|
1436
1437
|
producer: {
|
|
1437
1438
|
model_id: string;
|
|
@@ -1440,13 +1441,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1440
1441
|
capability_id: string;
|
|
1441
1442
|
endpoint_model_id: string;
|
|
1442
1443
|
};
|
|
1443
|
-
kind: string;
|
|
1444
1444
|
payload: SerializableJsonValue;
|
|
1445
1445
|
}[] | undefined;
|
|
1446
1446
|
assistant_replay_parts?: ({
|
|
1447
1447
|
type: "text";
|
|
1448
1448
|
text: string;
|
|
1449
1449
|
provider_continuations?: {
|
|
1450
|
+
kind: string;
|
|
1450
1451
|
schema_version: 2;
|
|
1451
1452
|
producer: {
|
|
1452
1453
|
model_id: string;
|
|
@@ -1455,13 +1456,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1455
1456
|
capability_id: string;
|
|
1456
1457
|
endpoint_model_id: string;
|
|
1457
1458
|
};
|
|
1458
|
-
kind: string;
|
|
1459
1459
|
payload: SerializableJsonValue;
|
|
1460
1460
|
}[] | undefined;
|
|
1461
1461
|
} | {
|
|
1462
1462
|
type: "reasoning";
|
|
1463
1463
|
text: string;
|
|
1464
1464
|
provider_continuations?: {
|
|
1465
|
+
kind: string;
|
|
1465
1466
|
schema_version: 2;
|
|
1466
1467
|
producer: {
|
|
1467
1468
|
model_id: string;
|
|
@@ -1470,13 +1471,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1470
1471
|
capability_id: string;
|
|
1471
1472
|
endpoint_model_id: string;
|
|
1472
1473
|
};
|
|
1473
|
-
kind: string;
|
|
1474
1474
|
payload: SerializableJsonValue;
|
|
1475
1475
|
}[] | undefined;
|
|
1476
1476
|
} | {
|
|
1477
1477
|
type: "tool_call";
|
|
1478
1478
|
tool_call_id: string;
|
|
1479
1479
|
provider_continuations?: {
|
|
1480
|
+
kind: string;
|
|
1480
1481
|
schema_version: 2;
|
|
1481
1482
|
producer: {
|
|
1482
1483
|
model_id: string;
|
|
@@ -1485,38 +1486,38 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1485
1486
|
capability_id: string;
|
|
1486
1487
|
endpoint_model_id: string;
|
|
1487
1488
|
};
|
|
1488
|
-
kind: string;
|
|
1489
1489
|
payload: SerializableJsonValue;
|
|
1490
1490
|
}[] | undefined;
|
|
1491
1491
|
})[] | undefined;
|
|
1492
1492
|
meta?: Record<string, unknown> | undefined;
|
|
1493
1493
|
} | {
|
|
1494
|
-
id: string;
|
|
1495
1494
|
type: "error";
|
|
1496
|
-
|
|
1495
|
+
id: string;
|
|
1497
1496
|
timestamp: number;
|
|
1497
|
+
error: string;
|
|
1498
1498
|
error_code?: string | undefined;
|
|
1499
1499
|
details?: Record<string, unknown> | undefined;
|
|
1500
1500
|
retryable?: boolean | undefined;
|
|
1501
1501
|
} | {
|
|
1502
|
-
id: string;
|
|
1503
1502
|
type: "stream_chunk";
|
|
1504
|
-
|
|
1503
|
+
id: string;
|
|
1505
1504
|
timestamp: number;
|
|
1505
|
+
content: string;
|
|
1506
1506
|
answer_id: string;
|
|
1507
1507
|
seq: number;
|
|
1508
1508
|
is_last?: boolean | undefined;
|
|
1509
1509
|
} | {
|
|
1510
|
-
id: string;
|
|
1511
1510
|
type: "stream_reset";
|
|
1511
|
+
id: string;
|
|
1512
1512
|
timestamp: number;
|
|
1513
1513
|
answer_id?: string | undefined;
|
|
1514
1514
|
thought_message_ids?: string[] | undefined;
|
|
1515
1515
|
} | {
|
|
1516
|
-
id: string;
|
|
1517
1516
|
type: "provider_continuation";
|
|
1517
|
+
id: string;
|
|
1518
1518
|
timestamp: number;
|
|
1519
1519
|
continuations: {
|
|
1520
|
+
kind: string;
|
|
1520
1521
|
schema_version: 2;
|
|
1521
1522
|
producer: {
|
|
1522
1523
|
model_id: string;
|
|
@@ -1525,31 +1526,32 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1525
1526
|
capability_id: string;
|
|
1526
1527
|
endpoint_model_id: string;
|
|
1527
1528
|
};
|
|
1528
|
-
kind: string;
|
|
1529
1529
|
payload: SerializableJsonValue;
|
|
1530
1530
|
}[];
|
|
1531
1531
|
}, {
|
|
1532
|
-
id: string;
|
|
1533
1532
|
type: "thought";
|
|
1534
|
-
|
|
1533
|
+
id: string;
|
|
1535
1534
|
timestamp: number;
|
|
1535
|
+
content: string;
|
|
1536
1536
|
is_complete: boolean;
|
|
1537
1537
|
thought_message_id?: string | undefined;
|
|
1538
1538
|
delta?: string | undefined;
|
|
1539
1539
|
meta?: Record<string, unknown> | undefined;
|
|
1540
1540
|
} | {
|
|
1541
|
-
id: string;
|
|
1542
1541
|
type: "tool_call_decision";
|
|
1542
|
+
id: string;
|
|
1543
|
+
timestamp: number;
|
|
1543
1544
|
status: "error" | "loading" | "success";
|
|
1544
|
-
tool_call_id: string;
|
|
1545
1545
|
tool_name: string;
|
|
1546
|
-
|
|
1547
|
-
phase: "
|
|
1546
|
+
tool_call_id: string;
|
|
1547
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1548
1548
|
tool_args: Record<string, unknown>;
|
|
1549
1549
|
tool_calls?: unknown[] | undefined;
|
|
1550
1550
|
payload?: {
|
|
1551
|
+
args?: Record<string, unknown> | undefined;
|
|
1551
1552
|
tool_calls?: unknown[] | undefined;
|
|
1552
1553
|
provider_continuations?: {
|
|
1554
|
+
kind: string;
|
|
1553
1555
|
schema_version: 2;
|
|
1554
1556
|
producer: {
|
|
1555
1557
|
model_id: string;
|
|
@@ -1558,13 +1560,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1558
1560
|
capability_id: string;
|
|
1559
1561
|
endpoint_model_id: string;
|
|
1560
1562
|
};
|
|
1561
|
-
kind: string;
|
|
1562
1563
|
payload: SerializableJsonValue;
|
|
1563
1564
|
}[] | undefined;
|
|
1564
1565
|
assistant_replay_parts?: ({
|
|
1565
1566
|
type: "text";
|
|
1566
1567
|
text: string;
|
|
1567
1568
|
provider_continuations?: {
|
|
1569
|
+
kind: string;
|
|
1568
1570
|
schema_version: 2;
|
|
1569
1571
|
producer: {
|
|
1570
1572
|
model_id: string;
|
|
@@ -1573,13 +1575,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1573
1575
|
capability_id: string;
|
|
1574
1576
|
endpoint_model_id: string;
|
|
1575
1577
|
};
|
|
1576
|
-
kind: string;
|
|
1577
1578
|
payload: SerializableJsonValue;
|
|
1578
1579
|
}[] | undefined;
|
|
1579
1580
|
} | {
|
|
1580
1581
|
type: "reasoning";
|
|
1581
1582
|
text: string;
|
|
1582
1583
|
provider_continuations?: {
|
|
1584
|
+
kind: string;
|
|
1583
1585
|
schema_version: 2;
|
|
1584
1586
|
producer: {
|
|
1585
1587
|
model_id: string;
|
|
@@ -1588,13 +1590,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1588
1590
|
capability_id: string;
|
|
1589
1591
|
endpoint_model_id: string;
|
|
1590
1592
|
};
|
|
1591
|
-
kind: string;
|
|
1592
1593
|
payload: SerializableJsonValue;
|
|
1593
1594
|
}[] | undefined;
|
|
1594
1595
|
} | {
|
|
1595
1596
|
type: "tool_call";
|
|
1596
1597
|
tool_call_id: string;
|
|
1597
1598
|
provider_continuations?: {
|
|
1599
|
+
kind: string;
|
|
1598
1600
|
schema_version: 2;
|
|
1599
1601
|
producer: {
|
|
1600
1602
|
model_id: string;
|
|
@@ -1603,35 +1605,31 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1603
1605
|
capability_id: string;
|
|
1604
1606
|
endpoint_model_id: string;
|
|
1605
1607
|
};
|
|
1606
|
-
kind: string;
|
|
1607
1608
|
payload: SerializableJsonValue;
|
|
1608
1609
|
}[] | undefined;
|
|
1609
1610
|
})[] | undefined;
|
|
1610
|
-
args?: Record<string, unknown> | undefined;
|
|
1611
1611
|
} | undefined;
|
|
1612
1612
|
meta?: Record<string, unknown> | undefined;
|
|
1613
1613
|
} | {
|
|
1614
|
-
id: string;
|
|
1615
1614
|
type: "tool_process";
|
|
1615
|
+
id: string;
|
|
1616
|
+
timestamp: number;
|
|
1616
1617
|
status: "error" | "loading" | "success";
|
|
1617
|
-
tool_call_id: string;
|
|
1618
1618
|
tool_name: string;
|
|
1619
|
-
|
|
1620
|
-
phase: "
|
|
1619
|
+
tool_call_id: string;
|
|
1620
|
+
phase: "start" | "update" | "complete" | "error";
|
|
1621
1621
|
tool_args: Record<string, unknown>;
|
|
1622
1622
|
tool_calls?: unknown[] | undefined;
|
|
1623
1623
|
payload?: Record<string, unknown> | undefined;
|
|
1624
1624
|
meta?: Record<string, unknown> | undefined;
|
|
1625
1625
|
} | {
|
|
1626
|
-
id: string;
|
|
1627
1626
|
type: "observation";
|
|
1628
|
-
|
|
1629
|
-
tool_name: string;
|
|
1627
|
+
id: string;
|
|
1630
1628
|
timestamp: number;
|
|
1629
|
+
tool_name: string;
|
|
1630
|
+
tool_call_id: string;
|
|
1631
1631
|
success: boolean;
|
|
1632
1632
|
observation: string;
|
|
1633
|
-
data?: unknown;
|
|
1634
|
-
error?: string | undefined;
|
|
1635
1633
|
attachments?: {
|
|
1636
1634
|
id: string;
|
|
1637
1635
|
kind: "image";
|
|
@@ -1644,16 +1642,19 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1644
1642
|
fileName?: string | undefined;
|
|
1645
1643
|
label?: string | undefined;
|
|
1646
1644
|
}[] | undefined;
|
|
1645
|
+
error?: string | undefined;
|
|
1646
|
+
data?: unknown;
|
|
1647
1647
|
error_code?: string | undefined;
|
|
1648
1648
|
duration_ms?: number | undefined;
|
|
1649
1649
|
} | {
|
|
1650
|
-
id: string;
|
|
1651
1650
|
type: "final_answer";
|
|
1652
|
-
|
|
1651
|
+
id: string;
|
|
1653
1652
|
timestamp: number;
|
|
1654
1653
|
answer_id: string;
|
|
1654
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1655
1655
|
answer: string;
|
|
1656
1656
|
provider_continuations?: {
|
|
1657
|
+
kind: string;
|
|
1657
1658
|
schema_version: 2;
|
|
1658
1659
|
producer: {
|
|
1659
1660
|
model_id: string;
|
|
@@ -1662,13 +1663,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1662
1663
|
capability_id: string;
|
|
1663
1664
|
endpoint_model_id: string;
|
|
1664
1665
|
};
|
|
1665
|
-
kind: string;
|
|
1666
1666
|
payload: SerializableJsonValue;
|
|
1667
1667
|
}[] | undefined;
|
|
1668
1668
|
assistant_replay_parts?: ({
|
|
1669
1669
|
type: "text";
|
|
1670
1670
|
text: string;
|
|
1671
1671
|
provider_continuations?: {
|
|
1672
|
+
kind: string;
|
|
1672
1673
|
schema_version: 2;
|
|
1673
1674
|
producer: {
|
|
1674
1675
|
model_id: string;
|
|
@@ -1677,13 +1678,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1677
1678
|
capability_id: string;
|
|
1678
1679
|
endpoint_model_id: string;
|
|
1679
1680
|
};
|
|
1680
|
-
kind: string;
|
|
1681
1681
|
payload: SerializableJsonValue;
|
|
1682
1682
|
}[] | undefined;
|
|
1683
1683
|
} | {
|
|
1684
1684
|
type: "reasoning";
|
|
1685
1685
|
text: string;
|
|
1686
1686
|
provider_continuations?: {
|
|
1687
|
+
kind: string;
|
|
1687
1688
|
schema_version: 2;
|
|
1688
1689
|
producer: {
|
|
1689
1690
|
model_id: string;
|
|
@@ -1692,13 +1693,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1692
1693
|
capability_id: string;
|
|
1693
1694
|
endpoint_model_id: string;
|
|
1694
1695
|
};
|
|
1695
|
-
kind: string;
|
|
1696
1696
|
payload: SerializableJsonValue;
|
|
1697
1697
|
}[] | undefined;
|
|
1698
1698
|
} | {
|
|
1699
1699
|
type: "tool_call";
|
|
1700
1700
|
tool_call_id: string;
|
|
1701
1701
|
provider_continuations?: {
|
|
1702
|
+
kind: string;
|
|
1702
1703
|
schema_version: 2;
|
|
1703
1704
|
producer: {
|
|
1704
1705
|
model_id: string;
|
|
@@ -1707,38 +1708,38 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1707
1708
|
capability_id: string;
|
|
1708
1709
|
endpoint_model_id: string;
|
|
1709
1710
|
};
|
|
1710
|
-
kind: string;
|
|
1711
1711
|
payload: SerializableJsonValue;
|
|
1712
1712
|
}[] | undefined;
|
|
1713
1713
|
})[] | undefined;
|
|
1714
1714
|
meta?: Record<string, unknown> | undefined;
|
|
1715
1715
|
} | {
|
|
1716
|
-
id: string;
|
|
1717
1716
|
type: "error";
|
|
1718
|
-
|
|
1717
|
+
id: string;
|
|
1719
1718
|
timestamp: number;
|
|
1719
|
+
error: string;
|
|
1720
1720
|
error_code?: string | undefined;
|
|
1721
1721
|
details?: Record<string, unknown> | undefined;
|
|
1722
1722
|
retryable?: boolean | undefined;
|
|
1723
1723
|
} | {
|
|
1724
|
-
id: string;
|
|
1725
1724
|
type: "stream_chunk";
|
|
1726
|
-
|
|
1725
|
+
id: string;
|
|
1727
1726
|
timestamp: number;
|
|
1727
|
+
content: string;
|
|
1728
1728
|
answer_id: string;
|
|
1729
1729
|
seq: number;
|
|
1730
1730
|
is_last?: boolean | undefined;
|
|
1731
1731
|
} | {
|
|
1732
|
-
id: string;
|
|
1733
1732
|
type: "stream_reset";
|
|
1733
|
+
id: string;
|
|
1734
1734
|
timestamp: number;
|
|
1735
1735
|
answer_id?: string | undefined;
|
|
1736
1736
|
thought_message_ids?: string[] | undefined;
|
|
1737
1737
|
} | {
|
|
1738
|
-
id: string;
|
|
1739
1738
|
type: "provider_continuation";
|
|
1739
|
+
id: string;
|
|
1740
1740
|
timestamp: number;
|
|
1741
1741
|
continuations: {
|
|
1742
|
+
kind: string;
|
|
1742
1743
|
schema_version: 2;
|
|
1743
1744
|
producer: {
|
|
1744
1745
|
model_id: string;
|
|
@@ -1747,7 +1748,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1747
1748
|
capability_id: string;
|
|
1748
1749
|
endpoint_model_id: string;
|
|
1749
1750
|
};
|
|
1750
|
-
kind: string;
|
|
1751
1751
|
payload: SerializableJsonValue;
|
|
1752
1752
|
}[];
|
|
1753
1753
|
}>;
|