@linnlabs/linnkit 0.32.2 → 0.32.3
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 -0
- package/dist/contracts/audit.d.cts +14 -14
- package/dist/contracts/audit.d.ts +14 -14
- package/dist/contracts/events.d.cts +233 -233
- package/dist/contracts/events.d.ts +233 -233
- package/dist/contracts/messages.d.cts +974 -974
- package/dist/contracts/messages.d.ts +974 -974
- package/dist/contracts/provider-continuation.d.cts +28 -28
- package/dist/contracts/provider-continuation.d.ts +28 -28
- package/dist/contracts/sse.d.cts +64 -64
- package/dist/contracts/sse.d.ts +64 -64
- package/dist/contracts/token-accounting.d.cts +18 -18
- package/dist/contracts/token-accounting.d.ts +18 -18
- package/dist/runtime-kernel/events/agentEvents.d.cts +82 -82
- package/dist/runtime-kernel/events/agentEvents.d.ts +82 -82
- package/docs/integration/01-installation.md +1 -1
- package/package.json +4 -4
|
@@ -68,7 +68,6 @@ 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;
|
|
72
71
|
schema_version: 2;
|
|
73
72
|
producer: {
|
|
74
73
|
model_id: string;
|
|
@@ -77,9 +76,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
77
76
|
capability_id: string;
|
|
78
77
|
endpoint_model_id: string;
|
|
79
78
|
};
|
|
79
|
+
kind: string;
|
|
80
80
|
payload: SerializableJsonValue;
|
|
81
81
|
}, {
|
|
82
|
-
kind: string;
|
|
83
82
|
schema_version: 2;
|
|
84
83
|
producer: {
|
|
85
84
|
model_id: string;
|
|
@@ -88,6 +87,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
88
87
|
capability_id: string;
|
|
89
88
|
endpoint_model_id: string;
|
|
90
89
|
};
|
|
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,7 +117,6 @@ 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;
|
|
121
120
|
schema_version: 2;
|
|
122
121
|
producer: {
|
|
123
122
|
model_id: string;
|
|
@@ -126,9 +125,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
126
125
|
capability_id: string;
|
|
127
126
|
endpoint_model_id: string;
|
|
128
127
|
};
|
|
128
|
+
kind: string;
|
|
129
129
|
payload: SerializableJsonValue;
|
|
130
130
|
}, {
|
|
131
|
-
kind: string;
|
|
132
131
|
schema_version: 2;
|
|
133
132
|
producer: {
|
|
134
133
|
model_id: string;
|
|
@@ -137,13 +136,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
137
136
|
capability_id: string;
|
|
138
137
|
endpoint_model_id: string;
|
|
139
138
|
};
|
|
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;
|
|
147
146
|
schema_version: 2;
|
|
148
147
|
producer: {
|
|
149
148
|
model_id: string;
|
|
@@ -152,13 +151,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
152
151
|
capability_id: string;
|
|
153
152
|
endpoint_model_id: string;
|
|
154
153
|
};
|
|
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;
|
|
162
161
|
schema_version: 2;
|
|
163
162
|
producer: {
|
|
164
163
|
model_id: string;
|
|
@@ -167,6 +166,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
167
166
|
capability_id: string;
|
|
168
167
|
endpoint_model_id: string;
|
|
169
168
|
};
|
|
169
|
+
kind: string;
|
|
170
170
|
payload: SerializableJsonValue;
|
|
171
171
|
}[] | undefined;
|
|
172
172
|
}>, z.ZodObject<{
|
|
@@ -196,7 +196,6 @@ 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;
|
|
200
199
|
schema_version: 2;
|
|
201
200
|
producer: {
|
|
202
201
|
model_id: string;
|
|
@@ -205,9 +204,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
205
204
|
capability_id: string;
|
|
206
205
|
endpoint_model_id: string;
|
|
207
206
|
};
|
|
207
|
+
kind: string;
|
|
208
208
|
payload: SerializableJsonValue;
|
|
209
209
|
}, {
|
|
210
|
-
kind: string;
|
|
211
210
|
schema_version: 2;
|
|
212
211
|
producer: {
|
|
213
212
|
model_id: string;
|
|
@@ -216,13 +215,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
216
215
|
capability_id: string;
|
|
217
216
|
endpoint_model_id: string;
|
|
218
217
|
};
|
|
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;
|
|
226
225
|
schema_version: 2;
|
|
227
226
|
producer: {
|
|
228
227
|
model_id: string;
|
|
@@ -231,13 +230,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
231
230
|
capability_id: string;
|
|
232
231
|
endpoint_model_id: string;
|
|
233
232
|
};
|
|
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;
|
|
241
240
|
schema_version: 2;
|
|
242
241
|
producer: {
|
|
243
242
|
model_id: string;
|
|
@@ -246,6 +245,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
246
245
|
capability_id: string;
|
|
247
246
|
endpoint_model_id: string;
|
|
248
247
|
};
|
|
248
|
+
kind: string;
|
|
249
249
|
payload: SerializableJsonValue;
|
|
250
250
|
}[] | undefined;
|
|
251
251
|
}>, z.ZodObject<{
|
|
@@ -275,7 +275,6 @@ 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;
|
|
279
278
|
schema_version: 2;
|
|
280
279
|
producer: {
|
|
281
280
|
model_id: string;
|
|
@@ -284,9 +283,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
284
283
|
capability_id: string;
|
|
285
284
|
endpoint_model_id: string;
|
|
286
285
|
};
|
|
286
|
+
kind: string;
|
|
287
287
|
payload: SerializableJsonValue;
|
|
288
288
|
}, {
|
|
289
|
-
kind: string;
|
|
290
289
|
schema_version: 2;
|
|
291
290
|
producer: {
|
|
292
291
|
model_id: string;
|
|
@@ -295,13 +294,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
295
294
|
capability_id: string;
|
|
296
295
|
endpoint_model_id: string;
|
|
297
296
|
};
|
|
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;
|
|
305
304
|
schema_version: 2;
|
|
306
305
|
producer: {
|
|
307
306
|
model_id: string;
|
|
@@ -310,13 +309,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
310
309
|
capability_id: string;
|
|
311
310
|
endpoint_model_id: string;
|
|
312
311
|
};
|
|
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;
|
|
320
319
|
schema_version: 2;
|
|
321
320
|
producer: {
|
|
322
321
|
model_id: string;
|
|
@@ -325,13 +324,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
325
324
|
capability_id: string;
|
|
326
325
|
endpoint_model_id: string;
|
|
327
326
|
};
|
|
327
|
+
kind: string;
|
|
328
328
|
payload: SerializableJsonValue;
|
|
329
329
|
}[] | undefined;
|
|
330
330
|
}>]>, "many">>;
|
|
331
331
|
}, "strict", z.ZodTypeAny, {
|
|
332
332
|
tool_calls?: unknown[] | undefined;
|
|
333
333
|
provider_continuations?: {
|
|
334
|
-
kind: string;
|
|
335
334
|
schema_version: 2;
|
|
336
335
|
producer: {
|
|
337
336
|
model_id: string;
|
|
@@ -340,13 +339,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
340
339
|
capability_id: string;
|
|
341
340
|
endpoint_model_id: string;
|
|
342
341
|
};
|
|
342
|
+
kind: string;
|
|
343
343
|
payload: SerializableJsonValue;
|
|
344
344
|
}[] | undefined;
|
|
345
345
|
assistant_replay_parts?: ({
|
|
346
346
|
type: "text";
|
|
347
347
|
text: string;
|
|
348
348
|
provider_continuations?: {
|
|
349
|
-
kind: string;
|
|
350
349
|
schema_version: 2;
|
|
351
350
|
producer: {
|
|
352
351
|
model_id: string;
|
|
@@ -355,13 +354,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
355
354
|
capability_id: string;
|
|
356
355
|
endpoint_model_id: string;
|
|
357
356
|
};
|
|
357
|
+
kind: string;
|
|
358
358
|
payload: SerializableJsonValue;
|
|
359
359
|
}[] | undefined;
|
|
360
360
|
} | {
|
|
361
361
|
type: "reasoning";
|
|
362
362
|
text: string;
|
|
363
363
|
provider_continuations?: {
|
|
364
|
-
kind: string;
|
|
365
364
|
schema_version: 2;
|
|
366
365
|
producer: {
|
|
367
366
|
model_id: string;
|
|
@@ -370,13 +369,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
370
369
|
capability_id: string;
|
|
371
370
|
endpoint_model_id: string;
|
|
372
371
|
};
|
|
372
|
+
kind: string;
|
|
373
373
|
payload: SerializableJsonValue;
|
|
374
374
|
}[] | undefined;
|
|
375
375
|
} | {
|
|
376
376
|
type: "tool_call";
|
|
377
377
|
tool_call_id: string;
|
|
378
378
|
provider_continuations?: {
|
|
379
|
-
kind: string;
|
|
380
379
|
schema_version: 2;
|
|
381
380
|
producer: {
|
|
382
381
|
model_id: string;
|
|
@@ -385,6 +384,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
385
384
|
capability_id: string;
|
|
386
385
|
endpoint_model_id: string;
|
|
387
386
|
};
|
|
387
|
+
kind: string;
|
|
388
388
|
payload: SerializableJsonValue;
|
|
389
389
|
}[] | undefined;
|
|
390
390
|
})[] | undefined;
|
|
@@ -392,7 +392,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
392
392
|
}, {
|
|
393
393
|
tool_calls?: unknown[] | undefined;
|
|
394
394
|
provider_continuations?: {
|
|
395
|
-
kind: string;
|
|
396
395
|
schema_version: 2;
|
|
397
396
|
producer: {
|
|
398
397
|
model_id: string;
|
|
@@ -401,13 +400,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
401
400
|
capability_id: string;
|
|
402
401
|
endpoint_model_id: string;
|
|
403
402
|
};
|
|
403
|
+
kind: string;
|
|
404
404
|
payload: SerializableJsonValue;
|
|
405
405
|
}[] | undefined;
|
|
406
406
|
assistant_replay_parts?: ({
|
|
407
407
|
type: "text";
|
|
408
408
|
text: string;
|
|
409
409
|
provider_continuations?: {
|
|
410
|
-
kind: string;
|
|
411
410
|
schema_version: 2;
|
|
412
411
|
producer: {
|
|
413
412
|
model_id: string;
|
|
@@ -416,13 +415,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
416
415
|
capability_id: string;
|
|
417
416
|
endpoint_model_id: string;
|
|
418
417
|
};
|
|
418
|
+
kind: string;
|
|
419
419
|
payload: SerializableJsonValue;
|
|
420
420
|
}[] | undefined;
|
|
421
421
|
} | {
|
|
422
422
|
type: "reasoning";
|
|
423
423
|
text: string;
|
|
424
424
|
provider_continuations?: {
|
|
425
|
-
kind: string;
|
|
426
425
|
schema_version: 2;
|
|
427
426
|
producer: {
|
|
428
427
|
model_id: string;
|
|
@@ -431,13 +430,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
431
430
|
capability_id: string;
|
|
432
431
|
endpoint_model_id: string;
|
|
433
432
|
};
|
|
433
|
+
kind: string;
|
|
434
434
|
payload: SerializableJsonValue;
|
|
435
435
|
}[] | undefined;
|
|
436
436
|
} | {
|
|
437
437
|
type: "tool_call";
|
|
438
438
|
tool_call_id: string;
|
|
439
439
|
provider_continuations?: {
|
|
440
|
-
kind: string;
|
|
441
440
|
schema_version: 2;
|
|
442
441
|
producer: {
|
|
443
442
|
model_id: string;
|
|
@@ -446,6 +445,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
446
445
|
capability_id: string;
|
|
447
446
|
endpoint_model_id: string;
|
|
448
447
|
};
|
|
448
|
+
kind: string;
|
|
449
449
|
payload: SerializableJsonValue;
|
|
450
450
|
}[] | undefined;
|
|
451
451
|
})[] | undefined;
|
|
@@ -453,8 +453,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
453
453
|
}>>;
|
|
454
454
|
}, "strict", z.ZodTypeAny, {
|
|
455
455
|
id: string;
|
|
456
|
-
status: "error" | "loading" | "success";
|
|
457
456
|
type: "tool_call_decision";
|
|
457
|
+
status: "error" | "loading" | "success";
|
|
458
458
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
459
459
|
tool_name: string;
|
|
460
460
|
timestamp: number;
|
|
@@ -464,7 +464,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
464
464
|
payload?: {
|
|
465
465
|
tool_calls?: unknown[] | undefined;
|
|
466
466
|
provider_continuations?: {
|
|
467
|
-
kind: string;
|
|
468
467
|
schema_version: 2;
|
|
469
468
|
producer: {
|
|
470
469
|
model_id: string;
|
|
@@ -473,13 +472,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
473
472
|
capability_id: string;
|
|
474
473
|
endpoint_model_id: string;
|
|
475
474
|
};
|
|
475
|
+
kind: string;
|
|
476
476
|
payload: SerializableJsonValue;
|
|
477
477
|
}[] | undefined;
|
|
478
478
|
assistant_replay_parts?: ({
|
|
479
479
|
type: "text";
|
|
480
480
|
text: string;
|
|
481
481
|
provider_continuations?: {
|
|
482
|
-
kind: string;
|
|
483
482
|
schema_version: 2;
|
|
484
483
|
producer: {
|
|
485
484
|
model_id: string;
|
|
@@ -488,13 +487,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
488
487
|
capability_id: string;
|
|
489
488
|
endpoint_model_id: string;
|
|
490
489
|
};
|
|
490
|
+
kind: string;
|
|
491
491
|
payload: SerializableJsonValue;
|
|
492
492
|
}[] | undefined;
|
|
493
493
|
} | {
|
|
494
494
|
type: "reasoning";
|
|
495
495
|
text: string;
|
|
496
496
|
provider_continuations?: {
|
|
497
|
-
kind: string;
|
|
498
497
|
schema_version: 2;
|
|
499
498
|
producer: {
|
|
500
499
|
model_id: string;
|
|
@@ -503,13 +502,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
503
502
|
capability_id: string;
|
|
504
503
|
endpoint_model_id: string;
|
|
505
504
|
};
|
|
505
|
+
kind: string;
|
|
506
506
|
payload: SerializableJsonValue;
|
|
507
507
|
}[] | undefined;
|
|
508
508
|
} | {
|
|
509
509
|
type: "tool_call";
|
|
510
510
|
tool_call_id: string;
|
|
511
511
|
provider_continuations?: {
|
|
512
|
-
kind: string;
|
|
513
512
|
schema_version: 2;
|
|
514
513
|
producer: {
|
|
515
514
|
model_id: string;
|
|
@@ -518,6 +517,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
518
517
|
capability_id: string;
|
|
519
518
|
endpoint_model_id: string;
|
|
520
519
|
};
|
|
520
|
+
kind: string;
|
|
521
521
|
payload: SerializableJsonValue;
|
|
522
522
|
}[] | undefined;
|
|
523
523
|
})[] | undefined;
|
|
@@ -526,8 +526,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
526
526
|
meta?: Record<string, unknown> | undefined;
|
|
527
527
|
}, {
|
|
528
528
|
id: string;
|
|
529
|
-
status: "error" | "loading" | "success";
|
|
530
529
|
type: "tool_call_decision";
|
|
530
|
+
status: "error" | "loading" | "success";
|
|
531
531
|
tool_call_id: string;
|
|
532
532
|
tool_name: string;
|
|
533
533
|
timestamp: number;
|
|
@@ -537,7 +537,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
537
537
|
payload?: {
|
|
538
538
|
tool_calls?: unknown[] | undefined;
|
|
539
539
|
provider_continuations?: {
|
|
540
|
-
kind: string;
|
|
541
540
|
schema_version: 2;
|
|
542
541
|
producer: {
|
|
543
542
|
model_id: string;
|
|
@@ -546,13 +545,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
546
545
|
capability_id: string;
|
|
547
546
|
endpoint_model_id: string;
|
|
548
547
|
};
|
|
548
|
+
kind: string;
|
|
549
549
|
payload: SerializableJsonValue;
|
|
550
550
|
}[] | undefined;
|
|
551
551
|
assistant_replay_parts?: ({
|
|
552
552
|
type: "text";
|
|
553
553
|
text: string;
|
|
554
554
|
provider_continuations?: {
|
|
555
|
-
kind: string;
|
|
556
555
|
schema_version: 2;
|
|
557
556
|
producer: {
|
|
558
557
|
model_id: string;
|
|
@@ -561,13 +560,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
561
560
|
capability_id: string;
|
|
562
561
|
endpoint_model_id: string;
|
|
563
562
|
};
|
|
563
|
+
kind: string;
|
|
564
564
|
payload: SerializableJsonValue;
|
|
565
565
|
}[] | undefined;
|
|
566
566
|
} | {
|
|
567
567
|
type: "reasoning";
|
|
568
568
|
text: string;
|
|
569
569
|
provider_continuations?: {
|
|
570
|
-
kind: string;
|
|
571
570
|
schema_version: 2;
|
|
572
571
|
producer: {
|
|
573
572
|
model_id: string;
|
|
@@ -576,13 +575,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
576
575
|
capability_id: string;
|
|
577
576
|
endpoint_model_id: string;
|
|
578
577
|
};
|
|
578
|
+
kind: string;
|
|
579
579
|
payload: SerializableJsonValue;
|
|
580
580
|
}[] | undefined;
|
|
581
581
|
} | {
|
|
582
582
|
type: "tool_call";
|
|
583
583
|
tool_call_id: string;
|
|
584
584
|
provider_continuations?: {
|
|
585
|
-
kind: string;
|
|
586
585
|
schema_version: 2;
|
|
587
586
|
producer: {
|
|
588
587
|
model_id: string;
|
|
@@ -591,6 +590,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
591
590
|
capability_id: string;
|
|
592
591
|
endpoint_model_id: string;
|
|
593
592
|
};
|
|
593
|
+
kind: string;
|
|
594
594
|
payload: SerializableJsonValue;
|
|
595
595
|
}[] | undefined;
|
|
596
596
|
})[] | undefined;
|
|
@@ -612,8 +612,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
612
612
|
type: z.ZodLiteral<"tool_process">;
|
|
613
613
|
}, "strict", z.ZodTypeAny, {
|
|
614
614
|
id: string;
|
|
615
|
-
status: "error" | "loading" | "success";
|
|
616
615
|
type: "tool_process";
|
|
616
|
+
status: "error" | "loading" | "success";
|
|
617
617
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
618
618
|
tool_name: string;
|
|
619
619
|
timestamp: number;
|
|
@@ -624,8 +624,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
624
624
|
meta?: Record<string, unknown> | undefined;
|
|
625
625
|
}, {
|
|
626
626
|
id: string;
|
|
627
|
-
status: "error" | "loading" | "success";
|
|
628
627
|
type: "tool_process";
|
|
628
|
+
status: "error" | "loading" | "success";
|
|
629
629
|
tool_call_id: string;
|
|
630
630
|
tool_name: string;
|
|
631
631
|
timestamp: number;
|
|
@@ -761,7 +761,6 @@ 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;
|
|
765
764
|
schema_version: 2;
|
|
766
765
|
producer: {
|
|
767
766
|
model_id: string;
|
|
@@ -770,9 +769,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
770
769
|
capability_id: string;
|
|
771
770
|
endpoint_model_id: string;
|
|
772
771
|
};
|
|
772
|
+
kind: string;
|
|
773
773
|
payload: SerializableJsonValue;
|
|
774
774
|
}, {
|
|
775
|
-
kind: string;
|
|
776
775
|
schema_version: 2;
|
|
777
776
|
producer: {
|
|
778
777
|
model_id: string;
|
|
@@ -781,6 +780,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
781
780
|
capability_id: string;
|
|
782
781
|
endpoint_model_id: string;
|
|
783
782
|
};
|
|
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,7 +810,6 @@ 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;
|
|
814
813
|
schema_version: 2;
|
|
815
814
|
producer: {
|
|
816
815
|
model_id: string;
|
|
@@ -819,9 +818,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
819
818
|
capability_id: string;
|
|
820
819
|
endpoint_model_id: string;
|
|
821
820
|
};
|
|
821
|
+
kind: string;
|
|
822
822
|
payload: SerializableJsonValue;
|
|
823
823
|
}, {
|
|
824
|
-
kind: string;
|
|
825
824
|
schema_version: 2;
|
|
826
825
|
producer: {
|
|
827
826
|
model_id: string;
|
|
@@ -830,13 +829,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
830
829
|
capability_id: string;
|
|
831
830
|
endpoint_model_id: string;
|
|
832
831
|
};
|
|
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;
|
|
840
839
|
schema_version: 2;
|
|
841
840
|
producer: {
|
|
842
841
|
model_id: string;
|
|
@@ -845,13 +844,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
845
844
|
capability_id: string;
|
|
846
845
|
endpoint_model_id: string;
|
|
847
846
|
};
|
|
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;
|
|
855
854
|
schema_version: 2;
|
|
856
855
|
producer: {
|
|
857
856
|
model_id: string;
|
|
@@ -860,6 +859,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
860
859
|
capability_id: string;
|
|
861
860
|
endpoint_model_id: string;
|
|
862
861
|
};
|
|
862
|
+
kind: string;
|
|
863
863
|
payload: SerializableJsonValue;
|
|
864
864
|
}[] | undefined;
|
|
865
865
|
}>, z.ZodObject<{
|
|
@@ -889,7 +889,6 @@ 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;
|
|
893
892
|
schema_version: 2;
|
|
894
893
|
producer: {
|
|
895
894
|
model_id: string;
|
|
@@ -898,9 +897,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
898
897
|
capability_id: string;
|
|
899
898
|
endpoint_model_id: string;
|
|
900
899
|
};
|
|
900
|
+
kind: string;
|
|
901
901
|
payload: SerializableJsonValue;
|
|
902
902
|
}, {
|
|
903
|
-
kind: string;
|
|
904
903
|
schema_version: 2;
|
|
905
904
|
producer: {
|
|
906
905
|
model_id: string;
|
|
@@ -909,13 +908,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
909
908
|
capability_id: string;
|
|
910
909
|
endpoint_model_id: string;
|
|
911
910
|
};
|
|
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;
|
|
919
918
|
schema_version: 2;
|
|
920
919
|
producer: {
|
|
921
920
|
model_id: string;
|
|
@@ -924,13 +923,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
924
923
|
capability_id: string;
|
|
925
924
|
endpoint_model_id: string;
|
|
926
925
|
};
|
|
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;
|
|
934
933
|
schema_version: 2;
|
|
935
934
|
producer: {
|
|
936
935
|
model_id: string;
|
|
@@ -939,6 +938,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
939
938
|
capability_id: string;
|
|
940
939
|
endpoint_model_id: string;
|
|
941
940
|
};
|
|
941
|
+
kind: string;
|
|
942
942
|
payload: SerializableJsonValue;
|
|
943
943
|
}[] | undefined;
|
|
944
944
|
}>, z.ZodObject<{
|
|
@@ -968,7 +968,6 @@ 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;
|
|
972
971
|
schema_version: 2;
|
|
973
972
|
producer: {
|
|
974
973
|
model_id: string;
|
|
@@ -977,9 +976,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
977
976
|
capability_id: string;
|
|
978
977
|
endpoint_model_id: string;
|
|
979
978
|
};
|
|
979
|
+
kind: string;
|
|
980
980
|
payload: SerializableJsonValue;
|
|
981
981
|
}, {
|
|
982
|
-
kind: string;
|
|
983
982
|
schema_version: 2;
|
|
984
983
|
producer: {
|
|
985
984
|
model_id: string;
|
|
@@ -988,13 +987,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
988
987
|
capability_id: string;
|
|
989
988
|
endpoint_model_id: string;
|
|
990
989
|
};
|
|
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;
|
|
998
997
|
schema_version: 2;
|
|
999
998
|
producer: {
|
|
1000
999
|
model_id: string;
|
|
@@ -1003,13 +1002,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1003
1002
|
capability_id: string;
|
|
1004
1003
|
endpoint_model_id: string;
|
|
1005
1004
|
};
|
|
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;
|
|
1013
1012
|
schema_version: 2;
|
|
1014
1013
|
producer: {
|
|
1015
1014
|
model_id: string;
|
|
@@ -1018,6 +1017,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1018
1017
|
capability_id: string;
|
|
1019
1018
|
endpoint_model_id: string;
|
|
1020
1019
|
};
|
|
1020
|
+
kind: string;
|
|
1021
1021
|
payload: SerializableJsonValue;
|
|
1022
1022
|
}[] | undefined;
|
|
1023
1023
|
}>]>, "many">>;
|
|
@@ -1030,7 +1030,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1030
1030
|
answer_id: string;
|
|
1031
1031
|
answer: string;
|
|
1032
1032
|
provider_continuations?: {
|
|
1033
|
-
kind: string;
|
|
1034
1033
|
schema_version: 2;
|
|
1035
1034
|
producer: {
|
|
1036
1035
|
model_id: string;
|
|
@@ -1039,13 +1038,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1039
1038
|
capability_id: string;
|
|
1040
1039
|
endpoint_model_id: string;
|
|
1041
1040
|
};
|
|
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;
|
|
1049
1048
|
schema_version: 2;
|
|
1050
1049
|
producer: {
|
|
1051
1050
|
model_id: string;
|
|
@@ -1054,13 +1053,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1054
1053
|
capability_id: string;
|
|
1055
1054
|
endpoint_model_id: string;
|
|
1056
1055
|
};
|
|
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;
|
|
1064
1063
|
schema_version: 2;
|
|
1065
1064
|
producer: {
|
|
1066
1065
|
model_id: string;
|
|
@@ -1069,13 +1068,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1069
1068
|
capability_id: string;
|
|
1070
1069
|
endpoint_model_id: string;
|
|
1071
1070
|
};
|
|
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;
|
|
1079
1078
|
schema_version: 2;
|
|
1080
1079
|
producer: {
|
|
1081
1080
|
model_id: string;
|
|
@@ -1084,6 +1083,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1084
1083
|
capability_id: string;
|
|
1085
1084
|
endpoint_model_id: string;
|
|
1086
1085
|
};
|
|
1086
|
+
kind: string;
|
|
1087
1087
|
payload: SerializableJsonValue;
|
|
1088
1088
|
}[] | undefined;
|
|
1089
1089
|
})[] | undefined;
|
|
@@ -1096,7 +1096,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1096
1096
|
answer_id: string;
|
|
1097
1097
|
answer: string;
|
|
1098
1098
|
provider_continuations?: {
|
|
1099
|
-
kind: string;
|
|
1100
1099
|
schema_version: 2;
|
|
1101
1100
|
producer: {
|
|
1102
1101
|
model_id: string;
|
|
@@ -1105,13 +1104,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1105
1104
|
capability_id: string;
|
|
1106
1105
|
endpoint_model_id: string;
|
|
1107
1106
|
};
|
|
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;
|
|
1115
1114
|
schema_version: 2;
|
|
1116
1115
|
producer: {
|
|
1117
1116
|
model_id: string;
|
|
@@ -1120,13 +1119,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1120
1119
|
capability_id: string;
|
|
1121
1120
|
endpoint_model_id: string;
|
|
1122
1121
|
};
|
|
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;
|
|
1130
1129
|
schema_version: 2;
|
|
1131
1130
|
producer: {
|
|
1132
1131
|
model_id: string;
|
|
@@ -1135,13 +1134,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1135
1134
|
capability_id: string;
|
|
1136
1135
|
endpoint_model_id: string;
|
|
1137
1136
|
};
|
|
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;
|
|
1145
1144
|
schema_version: 2;
|
|
1146
1145
|
producer: {
|
|
1147
1146
|
model_id: string;
|
|
@@ -1150,6 +1149,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1150
1149
|
capability_id: string;
|
|
1151
1150
|
endpoint_model_id: string;
|
|
1152
1151
|
};
|
|
1152
|
+
kind: string;
|
|
1153
1153
|
payload: SerializableJsonValue;
|
|
1154
1154
|
}[] | undefined;
|
|
1155
1155
|
})[] | undefined;
|
|
@@ -1252,7 +1252,6 @@ 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;
|
|
1256
1255
|
schema_version: 2;
|
|
1257
1256
|
producer: {
|
|
1258
1257
|
model_id: string;
|
|
@@ -1261,9 +1260,9 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1261
1260
|
capability_id: string;
|
|
1262
1261
|
endpoint_model_id: string;
|
|
1263
1262
|
};
|
|
1263
|
+
kind: string;
|
|
1264
1264
|
payload: SerializableJsonValue;
|
|
1265
1265
|
}, {
|
|
1266
|
-
kind: string;
|
|
1267
1266
|
schema_version: 2;
|
|
1268
1267
|
producer: {
|
|
1269
1268
|
model_id: string;
|
|
@@ -1272,6 +1271,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1272
1271
|
capability_id: string;
|
|
1273
1272
|
endpoint_model_id: string;
|
|
1274
1273
|
};
|
|
1274
|
+
kind: string;
|
|
1275
1275
|
payload: SerializableJsonValue;
|
|
1276
1276
|
}>, "many">;
|
|
1277
1277
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1279,7 +1279,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1279
1279
|
type: "provider_continuation";
|
|
1280
1280
|
timestamp: number;
|
|
1281
1281
|
continuations: {
|
|
1282
|
-
kind: string;
|
|
1283
1282
|
schema_version: 2;
|
|
1284
1283
|
producer: {
|
|
1285
1284
|
model_id: string;
|
|
@@ -1288,6 +1287,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1288
1287
|
capability_id: string;
|
|
1289
1288
|
endpoint_model_id: string;
|
|
1290
1289
|
};
|
|
1290
|
+
kind: string;
|
|
1291
1291
|
payload: SerializableJsonValue;
|
|
1292
1292
|
}[];
|
|
1293
1293
|
}, {
|
|
@@ -1295,7 +1295,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1295
1295
|
type: "provider_continuation";
|
|
1296
1296
|
timestamp: number;
|
|
1297
1297
|
continuations: {
|
|
1298
|
-
kind: string;
|
|
1299
1298
|
schema_version: 2;
|
|
1300
1299
|
producer: {
|
|
1301
1300
|
model_id: string;
|
|
@@ -1304,6 +1303,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1304
1303
|
capability_id: string;
|
|
1305
1304
|
endpoint_model_id: string;
|
|
1306
1305
|
};
|
|
1306
|
+
kind: string;
|
|
1307
1307
|
payload: SerializableJsonValue;
|
|
1308
1308
|
}[];
|
|
1309
1309
|
}>]>, {
|
|
@@ -1317,8 +1317,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1317
1317
|
meta?: Record<string, unknown> | undefined;
|
|
1318
1318
|
} | {
|
|
1319
1319
|
id: string;
|
|
1320
|
-
status: "error" | "loading" | "success";
|
|
1321
1320
|
type: "tool_call_decision";
|
|
1321
|
+
status: "error" | "loading" | "success";
|
|
1322
1322
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1323
1323
|
tool_name: string;
|
|
1324
1324
|
timestamp: number;
|
|
@@ -1328,7 +1328,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1328
1328
|
payload?: {
|
|
1329
1329
|
tool_calls?: unknown[] | undefined;
|
|
1330
1330
|
provider_continuations?: {
|
|
1331
|
-
kind: string;
|
|
1332
1331
|
schema_version: 2;
|
|
1333
1332
|
producer: {
|
|
1334
1333
|
model_id: string;
|
|
@@ -1337,13 +1336,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1337
1336
|
capability_id: string;
|
|
1338
1337
|
endpoint_model_id: string;
|
|
1339
1338
|
};
|
|
1339
|
+
kind: string;
|
|
1340
1340
|
payload: SerializableJsonValue;
|
|
1341
1341
|
}[] | undefined;
|
|
1342
1342
|
assistant_replay_parts?: ({
|
|
1343
1343
|
type: "text";
|
|
1344
1344
|
text: string;
|
|
1345
1345
|
provider_continuations?: {
|
|
1346
|
-
kind: string;
|
|
1347
1346
|
schema_version: 2;
|
|
1348
1347
|
producer: {
|
|
1349
1348
|
model_id: string;
|
|
@@ -1352,13 +1351,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1352
1351
|
capability_id: string;
|
|
1353
1352
|
endpoint_model_id: string;
|
|
1354
1353
|
};
|
|
1354
|
+
kind: string;
|
|
1355
1355
|
payload: SerializableJsonValue;
|
|
1356
1356
|
}[] | undefined;
|
|
1357
1357
|
} | {
|
|
1358
1358
|
type: "reasoning";
|
|
1359
1359
|
text: string;
|
|
1360
1360
|
provider_continuations?: {
|
|
1361
|
-
kind: string;
|
|
1362
1361
|
schema_version: 2;
|
|
1363
1362
|
producer: {
|
|
1364
1363
|
model_id: string;
|
|
@@ -1367,13 +1366,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1367
1366
|
capability_id: string;
|
|
1368
1367
|
endpoint_model_id: string;
|
|
1369
1368
|
};
|
|
1369
|
+
kind: string;
|
|
1370
1370
|
payload: SerializableJsonValue;
|
|
1371
1371
|
}[] | undefined;
|
|
1372
1372
|
} | {
|
|
1373
1373
|
type: "tool_call";
|
|
1374
1374
|
tool_call_id: string;
|
|
1375
1375
|
provider_continuations?: {
|
|
1376
|
-
kind: string;
|
|
1377
1376
|
schema_version: 2;
|
|
1378
1377
|
producer: {
|
|
1379
1378
|
model_id: string;
|
|
@@ -1382,6 +1381,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1382
1381
|
capability_id: string;
|
|
1383
1382
|
endpoint_model_id: string;
|
|
1384
1383
|
};
|
|
1384
|
+
kind: string;
|
|
1385
1385
|
payload: SerializableJsonValue;
|
|
1386
1386
|
}[] | undefined;
|
|
1387
1387
|
})[] | undefined;
|
|
@@ -1390,8 +1390,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1390
1390
|
meta?: Record<string, unknown> | undefined;
|
|
1391
1391
|
} | {
|
|
1392
1392
|
id: string;
|
|
1393
|
-
status: "error" | "loading" | "success";
|
|
1394
1393
|
type: "tool_process";
|
|
1394
|
+
status: "error" | "loading" | "success";
|
|
1395
1395
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1396
1396
|
tool_name: string;
|
|
1397
1397
|
timestamp: number;
|
|
@@ -1432,7 +1432,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1432
1432
|
answer_id: string;
|
|
1433
1433
|
answer: string;
|
|
1434
1434
|
provider_continuations?: {
|
|
1435
|
-
kind: string;
|
|
1436
1435
|
schema_version: 2;
|
|
1437
1436
|
producer: {
|
|
1438
1437
|
model_id: string;
|
|
@@ -1441,13 +1440,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1441
1440
|
capability_id: string;
|
|
1442
1441
|
endpoint_model_id: string;
|
|
1443
1442
|
};
|
|
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;
|
|
1451
1450
|
schema_version: 2;
|
|
1452
1451
|
producer: {
|
|
1453
1452
|
model_id: string;
|
|
@@ -1456,13 +1455,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1456
1455
|
capability_id: string;
|
|
1457
1456
|
endpoint_model_id: string;
|
|
1458
1457
|
};
|
|
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;
|
|
1466
1465
|
schema_version: 2;
|
|
1467
1466
|
producer: {
|
|
1468
1467
|
model_id: string;
|
|
@@ -1471,13 +1470,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1471
1470
|
capability_id: string;
|
|
1472
1471
|
endpoint_model_id: string;
|
|
1473
1472
|
};
|
|
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;
|
|
1481
1480
|
schema_version: 2;
|
|
1482
1481
|
producer: {
|
|
1483
1482
|
model_id: string;
|
|
@@ -1486,6 +1485,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1486
1485
|
capability_id: string;
|
|
1487
1486
|
endpoint_model_id: string;
|
|
1488
1487
|
};
|
|
1488
|
+
kind: string;
|
|
1489
1489
|
payload: SerializableJsonValue;
|
|
1490
1490
|
}[] | undefined;
|
|
1491
1491
|
})[] | undefined;
|
|
@@ -1517,7 +1517,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1517
1517
|
type: "provider_continuation";
|
|
1518
1518
|
timestamp: number;
|
|
1519
1519
|
continuations: {
|
|
1520
|
-
kind: string;
|
|
1521
1520
|
schema_version: 2;
|
|
1522
1521
|
producer: {
|
|
1523
1522
|
model_id: string;
|
|
@@ -1526,6 +1525,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1526
1525
|
capability_id: string;
|
|
1527
1526
|
endpoint_model_id: string;
|
|
1528
1527
|
};
|
|
1528
|
+
kind: string;
|
|
1529
1529
|
payload: SerializableJsonValue;
|
|
1530
1530
|
}[];
|
|
1531
1531
|
}, {
|
|
@@ -1539,8 +1539,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1539
1539
|
meta?: Record<string, unknown> | undefined;
|
|
1540
1540
|
} | {
|
|
1541
1541
|
id: string;
|
|
1542
|
-
status: "error" | "loading" | "success";
|
|
1543
1542
|
type: "tool_call_decision";
|
|
1543
|
+
status: "error" | "loading" | "success";
|
|
1544
1544
|
tool_call_id: string;
|
|
1545
1545
|
tool_name: string;
|
|
1546
1546
|
timestamp: number;
|
|
@@ -1550,7 +1550,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1550
1550
|
payload?: {
|
|
1551
1551
|
tool_calls?: unknown[] | undefined;
|
|
1552
1552
|
provider_continuations?: {
|
|
1553
|
-
kind: string;
|
|
1554
1553
|
schema_version: 2;
|
|
1555
1554
|
producer: {
|
|
1556
1555
|
model_id: string;
|
|
@@ -1559,13 +1558,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1559
1558
|
capability_id: string;
|
|
1560
1559
|
endpoint_model_id: string;
|
|
1561
1560
|
};
|
|
1561
|
+
kind: string;
|
|
1562
1562
|
payload: SerializableJsonValue;
|
|
1563
1563
|
}[] | undefined;
|
|
1564
1564
|
assistant_replay_parts?: ({
|
|
1565
1565
|
type: "text";
|
|
1566
1566
|
text: string;
|
|
1567
1567
|
provider_continuations?: {
|
|
1568
|
-
kind: string;
|
|
1569
1568
|
schema_version: 2;
|
|
1570
1569
|
producer: {
|
|
1571
1570
|
model_id: string;
|
|
@@ -1574,13 +1573,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1574
1573
|
capability_id: string;
|
|
1575
1574
|
endpoint_model_id: string;
|
|
1576
1575
|
};
|
|
1576
|
+
kind: string;
|
|
1577
1577
|
payload: SerializableJsonValue;
|
|
1578
1578
|
}[] | undefined;
|
|
1579
1579
|
} | {
|
|
1580
1580
|
type: "reasoning";
|
|
1581
1581
|
text: string;
|
|
1582
1582
|
provider_continuations?: {
|
|
1583
|
-
kind: string;
|
|
1584
1583
|
schema_version: 2;
|
|
1585
1584
|
producer: {
|
|
1586
1585
|
model_id: string;
|
|
@@ -1589,13 +1588,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1589
1588
|
capability_id: string;
|
|
1590
1589
|
endpoint_model_id: string;
|
|
1591
1590
|
};
|
|
1591
|
+
kind: string;
|
|
1592
1592
|
payload: SerializableJsonValue;
|
|
1593
1593
|
}[] | undefined;
|
|
1594
1594
|
} | {
|
|
1595
1595
|
type: "tool_call";
|
|
1596
1596
|
tool_call_id: string;
|
|
1597
1597
|
provider_continuations?: {
|
|
1598
|
-
kind: string;
|
|
1599
1598
|
schema_version: 2;
|
|
1600
1599
|
producer: {
|
|
1601
1600
|
model_id: string;
|
|
@@ -1604,6 +1603,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1604
1603
|
capability_id: string;
|
|
1605
1604
|
endpoint_model_id: string;
|
|
1606
1605
|
};
|
|
1606
|
+
kind: string;
|
|
1607
1607
|
payload: SerializableJsonValue;
|
|
1608
1608
|
}[] | undefined;
|
|
1609
1609
|
})[] | undefined;
|
|
@@ -1612,8 +1612,8 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1612
1612
|
meta?: Record<string, unknown> | undefined;
|
|
1613
1613
|
} | {
|
|
1614
1614
|
id: string;
|
|
1615
|
-
status: "error" | "loading" | "success";
|
|
1616
1615
|
type: "tool_process";
|
|
1616
|
+
status: "error" | "loading" | "success";
|
|
1617
1617
|
tool_call_id: string;
|
|
1618
1618
|
tool_name: string;
|
|
1619
1619
|
timestamp: number;
|
|
@@ -1654,7 +1654,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1654
1654
|
answer_id: string;
|
|
1655
1655
|
answer: string;
|
|
1656
1656
|
provider_continuations?: {
|
|
1657
|
-
kind: string;
|
|
1658
1657
|
schema_version: 2;
|
|
1659
1658
|
producer: {
|
|
1660
1659
|
model_id: string;
|
|
@@ -1663,13 +1662,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1663
1662
|
capability_id: string;
|
|
1664
1663
|
endpoint_model_id: string;
|
|
1665
1664
|
};
|
|
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;
|
|
1673
1672
|
schema_version: 2;
|
|
1674
1673
|
producer: {
|
|
1675
1674
|
model_id: string;
|
|
@@ -1678,13 +1677,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1678
1677
|
capability_id: string;
|
|
1679
1678
|
endpoint_model_id: string;
|
|
1680
1679
|
};
|
|
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;
|
|
1688
1687
|
schema_version: 2;
|
|
1689
1688
|
producer: {
|
|
1690
1689
|
model_id: string;
|
|
@@ -1693,13 +1692,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1693
1692
|
capability_id: string;
|
|
1694
1693
|
endpoint_model_id: string;
|
|
1695
1694
|
};
|
|
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;
|
|
1703
1702
|
schema_version: 2;
|
|
1704
1703
|
producer: {
|
|
1705
1704
|
model_id: string;
|
|
@@ -1708,6 +1707,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1708
1707
|
capability_id: string;
|
|
1709
1708
|
endpoint_model_id: string;
|
|
1710
1709
|
};
|
|
1710
|
+
kind: string;
|
|
1711
1711
|
payload: SerializableJsonValue;
|
|
1712
1712
|
}[] | undefined;
|
|
1713
1713
|
})[] | undefined;
|
|
@@ -1739,7 +1739,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1739
1739
|
type: "provider_continuation";
|
|
1740
1740
|
timestamp: number;
|
|
1741
1741
|
continuations: {
|
|
1742
|
-
kind: string;
|
|
1743
1742
|
schema_version: 2;
|
|
1744
1743
|
producer: {
|
|
1745
1744
|
model_id: string;
|
|
@@ -1748,6 +1747,7 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1748
1747
|
capability_id: string;
|
|
1749
1748
|
endpoint_model_id: string;
|
|
1750
1749
|
};
|
|
1750
|
+
kind: string;
|
|
1751
1751
|
payload: SerializableJsonValue;
|
|
1752
1752
|
}[];
|
|
1753
1753
|
}>;
|