@linnlabs/linnkit 0.37.4 → 0.37.5
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 +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- 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 +1113 -1113
- package/dist/contracts/events.d.ts +1113 -1113
- 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 +897 -897
- package/dist/contracts/sse.d.ts +897 -897
- 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 +38 -38
- package/dist/contracts/token-accounting.d.ts +38 -38
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +1 -1
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +1 -1
- 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.cjs +1 -1
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +1 -1
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +1 -1
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +1 -1
- package/dist/testkit.js.map +1 -1
- package/docs/integration/llm-provider.md +5 -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
|
-
type: "thought";
|
|
16
15
|
id: string;
|
|
17
|
-
|
|
16
|
+
type: "thought";
|
|
18
17
|
content: string;
|
|
18
|
+
timestamp: number;
|
|
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
|
-
type: "thought";
|
|
25
24
|
id: string;
|
|
26
|
-
|
|
25
|
+
type: "thought";
|
|
27
26
|
content: string;
|
|
27
|
+
timestamp: number;
|
|
28
28
|
is_complete: boolean;
|
|
29
29
|
thought_message_id?: string | undefined;
|
|
30
30
|
delta?: string | undefined;
|
|
@@ -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,14 +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
|
-
args?: Record<string, unknown> | undefined;
|
|
333
332
|
tool_calls?: unknown[] | undefined;
|
|
334
333
|
provider_continuations?: {
|
|
335
|
-
kind: string;
|
|
336
334
|
schema_version: 2;
|
|
337
335
|
producer: {
|
|
338
336
|
model_id: string;
|
|
@@ -341,13 +339,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
341
339
|
capability_id: string;
|
|
342
340
|
endpoint_model_id: string;
|
|
343
341
|
};
|
|
342
|
+
kind: string;
|
|
344
343
|
payload: SerializableJsonValue;
|
|
345
344
|
}[] | undefined;
|
|
346
345
|
assistant_replay_parts?: ({
|
|
347
346
|
type: "text";
|
|
348
347
|
text: string;
|
|
349
348
|
provider_continuations?: {
|
|
350
|
-
kind: string;
|
|
351
349
|
schema_version: 2;
|
|
352
350
|
producer: {
|
|
353
351
|
model_id: string;
|
|
@@ -356,13 +354,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
356
354
|
capability_id: string;
|
|
357
355
|
endpoint_model_id: string;
|
|
358
356
|
};
|
|
357
|
+
kind: string;
|
|
359
358
|
payload: SerializableJsonValue;
|
|
360
359
|
}[] | undefined;
|
|
361
360
|
} | {
|
|
362
361
|
type: "reasoning";
|
|
363
362
|
text: string;
|
|
364
363
|
provider_continuations?: {
|
|
365
|
-
kind: string;
|
|
366
364
|
schema_version: 2;
|
|
367
365
|
producer: {
|
|
368
366
|
model_id: string;
|
|
@@ -371,13 +369,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
371
369
|
capability_id: string;
|
|
372
370
|
endpoint_model_id: string;
|
|
373
371
|
};
|
|
372
|
+
kind: string;
|
|
374
373
|
payload: SerializableJsonValue;
|
|
375
374
|
}[] | undefined;
|
|
376
375
|
} | {
|
|
377
376
|
type: "tool_call";
|
|
378
377
|
tool_call_id: string;
|
|
379
378
|
provider_continuations?: {
|
|
380
|
-
kind: string;
|
|
381
379
|
schema_version: 2;
|
|
382
380
|
producer: {
|
|
383
381
|
model_id: string;
|
|
@@ -386,14 +384,14 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
386
384
|
capability_id: string;
|
|
387
385
|
endpoint_model_id: string;
|
|
388
386
|
};
|
|
387
|
+
kind: string;
|
|
389
388
|
payload: SerializableJsonValue;
|
|
390
389
|
}[] | undefined;
|
|
391
390
|
})[] | undefined;
|
|
392
|
-
}, {
|
|
393
391
|
args?: Record<string, unknown> | undefined;
|
|
392
|
+
}, {
|
|
394
393
|
tool_calls?: unknown[] | undefined;
|
|
395
394
|
provider_continuations?: {
|
|
396
|
-
kind: string;
|
|
397
395
|
schema_version: 2;
|
|
398
396
|
producer: {
|
|
399
397
|
model_id: string;
|
|
@@ -402,13 +400,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
402
400
|
capability_id: string;
|
|
403
401
|
endpoint_model_id: string;
|
|
404
402
|
};
|
|
403
|
+
kind: string;
|
|
405
404
|
payload: SerializableJsonValue;
|
|
406
405
|
}[] | undefined;
|
|
407
406
|
assistant_replay_parts?: ({
|
|
408
407
|
type: "text";
|
|
409
408
|
text: string;
|
|
410
409
|
provider_continuations?: {
|
|
411
|
-
kind: string;
|
|
412
410
|
schema_version: 2;
|
|
413
411
|
producer: {
|
|
414
412
|
model_id: string;
|
|
@@ -417,13 +415,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
417
415
|
capability_id: string;
|
|
418
416
|
endpoint_model_id: string;
|
|
419
417
|
};
|
|
418
|
+
kind: string;
|
|
420
419
|
payload: SerializableJsonValue;
|
|
421
420
|
}[] | undefined;
|
|
422
421
|
} | {
|
|
423
422
|
type: "reasoning";
|
|
424
423
|
text: string;
|
|
425
424
|
provider_continuations?: {
|
|
426
|
-
kind: string;
|
|
427
425
|
schema_version: 2;
|
|
428
426
|
producer: {
|
|
429
427
|
model_id: string;
|
|
@@ -432,13 +430,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
432
430
|
capability_id: string;
|
|
433
431
|
endpoint_model_id: string;
|
|
434
432
|
};
|
|
433
|
+
kind: string;
|
|
435
434
|
payload: SerializableJsonValue;
|
|
436
435
|
}[] | undefined;
|
|
437
436
|
} | {
|
|
438
437
|
type: "tool_call";
|
|
439
438
|
tool_call_id: string;
|
|
440
439
|
provider_continuations?: {
|
|
441
|
-
kind: string;
|
|
442
440
|
schema_version: 2;
|
|
443
441
|
producer: {
|
|
444
442
|
model_id: string;
|
|
@@ -447,25 +445,25 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
447
445
|
capability_id: string;
|
|
448
446
|
endpoint_model_id: string;
|
|
449
447
|
};
|
|
448
|
+
kind: string;
|
|
450
449
|
payload: SerializableJsonValue;
|
|
451
450
|
}[] | undefined;
|
|
452
451
|
})[] | undefined;
|
|
452
|
+
args?: Record<string, unknown> | undefined;
|
|
453
453
|
}>>;
|
|
454
454
|
}, "strict", z.ZodTypeAny, {
|
|
455
|
-
type: "tool_call_decision";
|
|
456
455
|
id: string;
|
|
457
|
-
|
|
456
|
+
type: "tool_call_decision";
|
|
458
457
|
status: "error" | "loading" | "success";
|
|
459
|
-
tool_name: string;
|
|
460
458
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
461
|
-
|
|
459
|
+
tool_name: string;
|
|
460
|
+
timestamp: number;
|
|
461
|
+
phase: "error" | "start" | "update" | "complete";
|
|
462
462
|
tool_args: Record<string, unknown>;
|
|
463
463
|
tool_calls?: unknown[] | undefined;
|
|
464
464
|
payload?: {
|
|
465
|
-
args?: Record<string, unknown> | undefined;
|
|
466
465
|
tool_calls?: unknown[] | undefined;
|
|
467
466
|
provider_continuations?: {
|
|
468
|
-
kind: string;
|
|
469
467
|
schema_version: 2;
|
|
470
468
|
producer: {
|
|
471
469
|
model_id: string;
|
|
@@ -474,13 +472,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
474
472
|
capability_id: string;
|
|
475
473
|
endpoint_model_id: string;
|
|
476
474
|
};
|
|
475
|
+
kind: string;
|
|
477
476
|
payload: SerializableJsonValue;
|
|
478
477
|
}[] | undefined;
|
|
479
478
|
assistant_replay_parts?: ({
|
|
480
479
|
type: "text";
|
|
481
480
|
text: string;
|
|
482
481
|
provider_continuations?: {
|
|
483
|
-
kind: string;
|
|
484
482
|
schema_version: 2;
|
|
485
483
|
producer: {
|
|
486
484
|
model_id: string;
|
|
@@ -489,13 +487,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
489
487
|
capability_id: string;
|
|
490
488
|
endpoint_model_id: string;
|
|
491
489
|
};
|
|
490
|
+
kind: string;
|
|
492
491
|
payload: SerializableJsonValue;
|
|
493
492
|
}[] | undefined;
|
|
494
493
|
} | {
|
|
495
494
|
type: "reasoning";
|
|
496
495
|
text: string;
|
|
497
496
|
provider_continuations?: {
|
|
498
|
-
kind: string;
|
|
499
497
|
schema_version: 2;
|
|
500
498
|
producer: {
|
|
501
499
|
model_id: string;
|
|
@@ -504,13 +502,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
504
502
|
capability_id: string;
|
|
505
503
|
endpoint_model_id: string;
|
|
506
504
|
};
|
|
505
|
+
kind: string;
|
|
507
506
|
payload: SerializableJsonValue;
|
|
508
507
|
}[] | undefined;
|
|
509
508
|
} | {
|
|
510
509
|
type: "tool_call";
|
|
511
510
|
tool_call_id: string;
|
|
512
511
|
provider_continuations?: {
|
|
513
|
-
kind: string;
|
|
514
512
|
schema_version: 2;
|
|
515
513
|
producer: {
|
|
516
514
|
model_id: string;
|
|
@@ -519,26 +517,26 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
519
517
|
capability_id: string;
|
|
520
518
|
endpoint_model_id: string;
|
|
521
519
|
};
|
|
520
|
+
kind: string;
|
|
522
521
|
payload: SerializableJsonValue;
|
|
523
522
|
}[] | undefined;
|
|
524
523
|
})[] | undefined;
|
|
524
|
+
args?: Record<string, unknown> | undefined;
|
|
525
525
|
} | undefined;
|
|
526
526
|
meta?: Record<string, unknown> | undefined;
|
|
527
527
|
}, {
|
|
528
|
-
type: "tool_call_decision";
|
|
529
528
|
id: string;
|
|
530
|
-
|
|
529
|
+
type: "tool_call_decision";
|
|
531
530
|
status: "error" | "loading" | "success";
|
|
532
|
-
tool_name: string;
|
|
533
531
|
tool_call_id: string;
|
|
534
|
-
|
|
532
|
+
tool_name: string;
|
|
533
|
+
timestamp: number;
|
|
534
|
+
phase: "error" | "start" | "update" | "complete";
|
|
535
535
|
tool_args: Record<string, unknown>;
|
|
536
536
|
tool_calls?: unknown[] | undefined;
|
|
537
537
|
payload?: {
|
|
538
|
-
args?: Record<string, unknown> | undefined;
|
|
539
538
|
tool_calls?: unknown[] | undefined;
|
|
540
539
|
provider_continuations?: {
|
|
541
|
-
kind: string;
|
|
542
540
|
schema_version: 2;
|
|
543
541
|
producer: {
|
|
544
542
|
model_id: string;
|
|
@@ -547,13 +545,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
547
545
|
capability_id: string;
|
|
548
546
|
endpoint_model_id: string;
|
|
549
547
|
};
|
|
548
|
+
kind: string;
|
|
550
549
|
payload: SerializableJsonValue;
|
|
551
550
|
}[] | undefined;
|
|
552
551
|
assistant_replay_parts?: ({
|
|
553
552
|
type: "text";
|
|
554
553
|
text: string;
|
|
555
554
|
provider_continuations?: {
|
|
556
|
-
kind: string;
|
|
557
555
|
schema_version: 2;
|
|
558
556
|
producer: {
|
|
559
557
|
model_id: string;
|
|
@@ -562,13 +560,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
562
560
|
capability_id: string;
|
|
563
561
|
endpoint_model_id: string;
|
|
564
562
|
};
|
|
563
|
+
kind: string;
|
|
565
564
|
payload: SerializableJsonValue;
|
|
566
565
|
}[] | undefined;
|
|
567
566
|
} | {
|
|
568
567
|
type: "reasoning";
|
|
569
568
|
text: string;
|
|
570
569
|
provider_continuations?: {
|
|
571
|
-
kind: string;
|
|
572
570
|
schema_version: 2;
|
|
573
571
|
producer: {
|
|
574
572
|
model_id: string;
|
|
@@ -577,13 +575,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
577
575
|
capability_id: string;
|
|
578
576
|
endpoint_model_id: string;
|
|
579
577
|
};
|
|
578
|
+
kind: string;
|
|
580
579
|
payload: SerializableJsonValue;
|
|
581
580
|
}[] | undefined;
|
|
582
581
|
} | {
|
|
583
582
|
type: "tool_call";
|
|
584
583
|
tool_call_id: string;
|
|
585
584
|
provider_continuations?: {
|
|
586
|
-
kind: string;
|
|
587
585
|
schema_version: 2;
|
|
588
586
|
producer: {
|
|
589
587
|
model_id: string;
|
|
@@ -592,9 +590,11 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
592
590
|
capability_id: string;
|
|
593
591
|
endpoint_model_id: string;
|
|
594
592
|
};
|
|
593
|
+
kind: string;
|
|
595
594
|
payload: SerializableJsonValue;
|
|
596
595
|
}[] | undefined;
|
|
597
596
|
})[] | 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
|
-
type: "tool_process";
|
|
615
614
|
id: string;
|
|
616
|
-
|
|
615
|
+
type: "tool_process";
|
|
617
616
|
status: "error" | "loading" | "success";
|
|
618
|
-
tool_name: string;
|
|
619
617
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
620
|
-
|
|
618
|
+
tool_name: string;
|
|
619
|
+
timestamp: number;
|
|
620
|
+
phase: "error" | "start" | "update" | "complete";
|
|
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
|
-
type: "tool_process";
|
|
627
626
|
id: string;
|
|
628
|
-
|
|
627
|
+
type: "tool_process";
|
|
629
628
|
status: "error" | "loading" | "success";
|
|
630
|
-
tool_name: string;
|
|
631
629
|
tool_call_id: string;
|
|
632
|
-
|
|
630
|
+
tool_name: string;
|
|
631
|
+
timestamp: number;
|
|
632
|
+
phase: "error" | "start" | "update" | "complete";
|
|
633
633
|
tool_args: Record<string, unknown>;
|
|
634
634
|
tool_calls?: unknown[] | undefined;
|
|
635
635
|
payload?: Record<string, unknown> | undefined;
|
|
@@ -682,13 +682,15 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
682
682
|
label?: string | undefined;
|
|
683
683
|
}>, "many">>;
|
|
684
684
|
}, "strict", z.ZodTypeAny, {
|
|
685
|
-
type: "observation";
|
|
686
685
|
id: string;
|
|
687
|
-
|
|
688
|
-
tool_name: string;
|
|
686
|
+
type: "observation";
|
|
689
687
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
688
|
+
tool_name: string;
|
|
689
|
+
timestamp: number;
|
|
690
690
|
success: boolean;
|
|
691
691
|
observation: string;
|
|
692
|
+
data?: unknown;
|
|
693
|
+
error?: string | undefined;
|
|
692
694
|
attachments?: {
|
|
693
695
|
id: string;
|
|
694
696
|
kind: "image";
|
|
@@ -701,18 +703,18 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
701
703
|
fileName?: string | undefined;
|
|
702
704
|
label?: string | undefined;
|
|
703
705
|
}[] | undefined;
|
|
704
|
-
error?: string | undefined;
|
|
705
|
-
data?: unknown;
|
|
706
706
|
error_code?: string | undefined;
|
|
707
707
|
duration_ms?: number | undefined;
|
|
708
708
|
}, {
|
|
709
|
-
type: "observation";
|
|
710
709
|
id: string;
|
|
711
|
-
|
|
712
|
-
tool_name: string;
|
|
710
|
+
type: "observation";
|
|
713
711
|
tool_call_id: string;
|
|
712
|
+
tool_name: string;
|
|
713
|
+
timestamp: number;
|
|
714
714
|
success: boolean;
|
|
715
715
|
observation: string;
|
|
716
|
+
data?: unknown;
|
|
717
|
+
error?: string | undefined;
|
|
716
718
|
attachments?: {
|
|
717
719
|
id: string;
|
|
718
720
|
kind: "image";
|
|
@@ -725,8 +727,6 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
725
727
|
fileName?: string | undefined;
|
|
726
728
|
label?: string | undefined;
|
|
727
729
|
}[] | 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,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,19 +1017,19 @@ 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">>;
|
|
1024
1024
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1025
1025
|
}, "strict", z.ZodTypeAny, {
|
|
1026
|
-
type: "final_answer";
|
|
1027
1026
|
id: string;
|
|
1027
|
+
type: "final_answer";
|
|
1028
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1028
1029
|
timestamp: number;
|
|
1029
1030
|
answer_id: string;
|
|
1030
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
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,19 +1083,19 @@ 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;
|
|
1090
1090
|
meta?: Record<string, unknown> | undefined;
|
|
1091
1091
|
}, {
|
|
1092
|
-
type: "final_answer";
|
|
1093
1092
|
id: string;
|
|
1093
|
+
type: "final_answer";
|
|
1094
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1094
1095
|
timestamp: number;
|
|
1095
1096
|
answer_id: string;
|
|
1096
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
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;
|
|
@@ -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
|
-
type: "error";
|
|
1168
1167
|
id: string;
|
|
1169
|
-
|
|
1168
|
+
type: "error";
|
|
1170
1169
|
error: string;
|
|
1170
|
+
timestamp: number;
|
|
1171
1171
|
error_code?: string | undefined;
|
|
1172
1172
|
details?: Record<string, unknown> | undefined;
|
|
1173
1173
|
retryable?: boolean | undefined;
|
|
1174
1174
|
}, {
|
|
1175
|
-
type: "error";
|
|
1176
1175
|
id: string;
|
|
1177
|
-
|
|
1176
|
+
type: "error";
|
|
1178
1177
|
error: string;
|
|
1178
|
+
timestamp: number;
|
|
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
|
-
type: "stream_chunk";
|
|
1193
1192
|
id: string;
|
|
1194
|
-
|
|
1193
|
+
type: "stream_chunk";
|
|
1195
1194
|
content: string;
|
|
1195
|
+
timestamp: number;
|
|
1196
1196
|
answer_id: string;
|
|
1197
1197
|
seq: number;
|
|
1198
1198
|
is_last?: boolean | undefined;
|
|
1199
1199
|
}, {
|
|
1200
|
-
type: "stream_chunk";
|
|
1201
1200
|
id: string;
|
|
1202
|
-
|
|
1201
|
+
type: "stream_chunk";
|
|
1203
1202
|
content: string;
|
|
1203
|
+
timestamp: number;
|
|
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
|
-
type: "stream_reset";
|
|
1216
1215
|
id: string;
|
|
1216
|
+
type: "stream_reset";
|
|
1217
1217
|
timestamp: number;
|
|
1218
1218
|
answer_id?: string | undefined;
|
|
1219
1219
|
thought_message_ids?: string[] | undefined;
|
|
1220
1220
|
}, {
|
|
1221
|
-
type: "stream_reset";
|
|
1222
1221
|
id: string;
|
|
1222
|
+
type: "stream_reset";
|
|
1223
1223
|
timestamp: number;
|
|
1224
1224
|
answer_id?: string | undefined;
|
|
1225
1225
|
thought_message_ids?: string[] | 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,14 +1271,14 @@ 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, {
|
|
1278
|
-
type: "provider_continuation";
|
|
1279
1278
|
id: string;
|
|
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,14 +1287,14 @@ 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
|
}, {
|
|
1294
|
-
type: "provider_continuation";
|
|
1295
1294
|
id: string;
|
|
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,32 +1303,31 @@ 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
|
}>]>, {
|
|
1310
|
-
type: "thought";
|
|
1311
1310
|
id: string;
|
|
1312
|
-
|
|
1311
|
+
type: "thought";
|
|
1313
1312
|
content: string;
|
|
1313
|
+
timestamp: number;
|
|
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
|
-
type: "tool_call_decision";
|
|
1320
1319
|
id: string;
|
|
1321
|
-
|
|
1320
|
+
type: "tool_call_decision";
|
|
1322
1321
|
status: "error" | "loading" | "success";
|
|
1323
|
-
tool_name: string;
|
|
1324
1322
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1325
|
-
|
|
1323
|
+
tool_name: string;
|
|
1324
|
+
timestamp: number;
|
|
1325
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1326
1326
|
tool_args: Record<string, unknown>;
|
|
1327
1327
|
tool_calls?: unknown[] | undefined;
|
|
1328
1328
|
payload?: {
|
|
1329
|
-
args?: Record<string, unknown> | undefined;
|
|
1330
1329
|
tool_calls?: unknown[] | undefined;
|
|
1331
1330
|
provider_continuations?: {
|
|
1332
|
-
kind: string;
|
|
1333
1331
|
schema_version: 2;
|
|
1334
1332
|
producer: {
|
|
1335
1333
|
model_id: string;
|
|
@@ -1338,13 +1336,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1338
1336
|
capability_id: string;
|
|
1339
1337
|
endpoint_model_id: string;
|
|
1340
1338
|
};
|
|
1339
|
+
kind: string;
|
|
1341
1340
|
payload: SerializableJsonValue;
|
|
1342
1341
|
}[] | undefined;
|
|
1343
1342
|
assistant_replay_parts?: ({
|
|
1344
1343
|
type: "text";
|
|
1345
1344
|
text: string;
|
|
1346
1345
|
provider_continuations?: {
|
|
1347
|
-
kind: string;
|
|
1348
1346
|
schema_version: 2;
|
|
1349
1347
|
producer: {
|
|
1350
1348
|
model_id: string;
|
|
@@ -1353,13 +1351,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1353
1351
|
capability_id: string;
|
|
1354
1352
|
endpoint_model_id: string;
|
|
1355
1353
|
};
|
|
1354
|
+
kind: string;
|
|
1356
1355
|
payload: SerializableJsonValue;
|
|
1357
1356
|
}[] | undefined;
|
|
1358
1357
|
} | {
|
|
1359
1358
|
type: "reasoning";
|
|
1360
1359
|
text: string;
|
|
1361
1360
|
provider_continuations?: {
|
|
1362
|
-
kind: string;
|
|
1363
1361
|
schema_version: 2;
|
|
1364
1362
|
producer: {
|
|
1365
1363
|
model_id: string;
|
|
@@ -1368,13 +1366,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1368
1366
|
capability_id: string;
|
|
1369
1367
|
endpoint_model_id: string;
|
|
1370
1368
|
};
|
|
1369
|
+
kind: string;
|
|
1371
1370
|
payload: SerializableJsonValue;
|
|
1372
1371
|
}[] | undefined;
|
|
1373
1372
|
} | {
|
|
1374
1373
|
type: "tool_call";
|
|
1375
1374
|
tool_call_id: string;
|
|
1376
1375
|
provider_continuations?: {
|
|
1377
|
-
kind: string;
|
|
1378
1376
|
schema_version: 2;
|
|
1379
1377
|
producer: {
|
|
1380
1378
|
model_id: string;
|
|
@@ -1383,31 +1381,35 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1383
1381
|
capability_id: string;
|
|
1384
1382
|
endpoint_model_id: string;
|
|
1385
1383
|
};
|
|
1384
|
+
kind: string;
|
|
1386
1385
|
payload: SerializableJsonValue;
|
|
1387
1386
|
}[] | undefined;
|
|
1388
1387
|
})[] | undefined;
|
|
1388
|
+
args?: Record<string, unknown> | undefined;
|
|
1389
1389
|
} | undefined;
|
|
1390
1390
|
meta?: Record<string, unknown> | undefined;
|
|
1391
1391
|
} | {
|
|
1392
|
-
type: "tool_process";
|
|
1393
1392
|
id: string;
|
|
1394
|
-
|
|
1393
|
+
type: "tool_process";
|
|
1395
1394
|
status: "error" | "loading" | "success";
|
|
1396
|
-
tool_name: string;
|
|
1397
1395
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1398
|
-
|
|
1396
|
+
tool_name: string;
|
|
1397
|
+
timestamp: number;
|
|
1398
|
+
phase: "error" | "start" | "update" | "complete";
|
|
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
|
-
type: "observation";
|
|
1405
1404
|
id: string;
|
|
1406
|
-
|
|
1407
|
-
tool_name: string;
|
|
1405
|
+
type: "observation";
|
|
1408
1406
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1407
|
+
tool_name: string;
|
|
1408
|
+
timestamp: number;
|
|
1409
1409
|
success: boolean;
|
|
1410
1410
|
observation: string;
|
|
1411
|
+
data?: unknown;
|
|
1412
|
+
error?: string | undefined;
|
|
1411
1413
|
attachments?: {
|
|
1412
1414
|
id: string;
|
|
1413
1415
|
kind: "image";
|
|
@@ -1420,19 +1422,16 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1420
1422
|
fileName?: string | undefined;
|
|
1421
1423
|
label?: string | undefined;
|
|
1422
1424
|
}[] | undefined;
|
|
1423
|
-
error?: string | undefined;
|
|
1424
|
-
data?: unknown;
|
|
1425
1425
|
error_code?: string | undefined;
|
|
1426
1426
|
duration_ms?: number | undefined;
|
|
1427
1427
|
} | {
|
|
1428
|
-
type: "final_answer";
|
|
1429
1428
|
id: string;
|
|
1429
|
+
type: "final_answer";
|
|
1430
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1430
1431
|
timestamp: number;
|
|
1431
1432
|
answer_id: string;
|
|
1432
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
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,38 +1485,38 @@ 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;
|
|
1492
1492
|
meta?: Record<string, unknown> | undefined;
|
|
1493
1493
|
} | {
|
|
1494
|
-
type: "error";
|
|
1495
1494
|
id: string;
|
|
1496
|
-
|
|
1495
|
+
type: "error";
|
|
1497
1496
|
error: string;
|
|
1497
|
+
timestamp: number;
|
|
1498
1498
|
error_code?: string | undefined;
|
|
1499
1499
|
details?: Record<string, unknown> | undefined;
|
|
1500
1500
|
retryable?: boolean | undefined;
|
|
1501
1501
|
} | {
|
|
1502
|
-
type: "stream_chunk";
|
|
1503
1502
|
id: string;
|
|
1504
|
-
|
|
1503
|
+
type: "stream_chunk";
|
|
1505
1504
|
content: string;
|
|
1505
|
+
timestamp: number;
|
|
1506
1506
|
answer_id: string;
|
|
1507
1507
|
seq: number;
|
|
1508
1508
|
is_last?: boolean | undefined;
|
|
1509
1509
|
} | {
|
|
1510
|
-
type: "stream_reset";
|
|
1511
1510
|
id: string;
|
|
1511
|
+
type: "stream_reset";
|
|
1512
1512
|
timestamp: number;
|
|
1513
1513
|
answer_id?: string | undefined;
|
|
1514
1514
|
thought_message_ids?: string[] | undefined;
|
|
1515
1515
|
} | {
|
|
1516
|
-
type: "provider_continuation";
|
|
1517
1516
|
id: string;
|
|
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,32 +1525,31 @@ 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
|
}, {
|
|
1532
|
-
type: "thought";
|
|
1533
1532
|
id: string;
|
|
1534
|
-
|
|
1533
|
+
type: "thought";
|
|
1535
1534
|
content: string;
|
|
1535
|
+
timestamp: number;
|
|
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
|
-
type: "tool_call_decision";
|
|
1542
1541
|
id: string;
|
|
1543
|
-
|
|
1542
|
+
type: "tool_call_decision";
|
|
1544
1543
|
status: "error" | "loading" | "success";
|
|
1545
|
-
tool_name: string;
|
|
1546
1544
|
tool_call_id: string;
|
|
1547
|
-
|
|
1545
|
+
tool_name: string;
|
|
1546
|
+
timestamp: number;
|
|
1547
|
+
phase: "error" | "start" | "update" | "complete";
|
|
1548
1548
|
tool_args: Record<string, unknown>;
|
|
1549
1549
|
tool_calls?: unknown[] | undefined;
|
|
1550
1550
|
payload?: {
|
|
1551
|
-
args?: Record<string, unknown> | undefined;
|
|
1552
1551
|
tool_calls?: unknown[] | undefined;
|
|
1553
1552
|
provider_continuations?: {
|
|
1554
|
-
kind: string;
|
|
1555
1553
|
schema_version: 2;
|
|
1556
1554
|
producer: {
|
|
1557
1555
|
model_id: string;
|
|
@@ -1560,13 +1558,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1560
1558
|
capability_id: string;
|
|
1561
1559
|
endpoint_model_id: string;
|
|
1562
1560
|
};
|
|
1561
|
+
kind: string;
|
|
1563
1562
|
payload: SerializableJsonValue;
|
|
1564
1563
|
}[] | undefined;
|
|
1565
1564
|
assistant_replay_parts?: ({
|
|
1566
1565
|
type: "text";
|
|
1567
1566
|
text: string;
|
|
1568
1567
|
provider_continuations?: {
|
|
1569
|
-
kind: string;
|
|
1570
1568
|
schema_version: 2;
|
|
1571
1569
|
producer: {
|
|
1572
1570
|
model_id: string;
|
|
@@ -1575,13 +1573,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1575
1573
|
capability_id: string;
|
|
1576
1574
|
endpoint_model_id: string;
|
|
1577
1575
|
};
|
|
1576
|
+
kind: string;
|
|
1578
1577
|
payload: SerializableJsonValue;
|
|
1579
1578
|
}[] | undefined;
|
|
1580
1579
|
} | {
|
|
1581
1580
|
type: "reasoning";
|
|
1582
1581
|
text: string;
|
|
1583
1582
|
provider_continuations?: {
|
|
1584
|
-
kind: string;
|
|
1585
1583
|
schema_version: 2;
|
|
1586
1584
|
producer: {
|
|
1587
1585
|
model_id: string;
|
|
@@ -1590,13 +1588,13 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1590
1588
|
capability_id: string;
|
|
1591
1589
|
endpoint_model_id: string;
|
|
1592
1590
|
};
|
|
1591
|
+
kind: string;
|
|
1593
1592
|
payload: SerializableJsonValue;
|
|
1594
1593
|
}[] | undefined;
|
|
1595
1594
|
} | {
|
|
1596
1595
|
type: "tool_call";
|
|
1597
1596
|
tool_call_id: string;
|
|
1598
1597
|
provider_continuations?: {
|
|
1599
|
-
kind: string;
|
|
1600
1598
|
schema_version: 2;
|
|
1601
1599
|
producer: {
|
|
1602
1600
|
model_id: string;
|
|
@@ -1605,31 +1603,35 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1605
1603
|
capability_id: string;
|
|
1606
1604
|
endpoint_model_id: string;
|
|
1607
1605
|
};
|
|
1606
|
+
kind: string;
|
|
1608
1607
|
payload: SerializableJsonValue;
|
|
1609
1608
|
}[] | undefined;
|
|
1610
1609
|
})[] | undefined;
|
|
1610
|
+
args?: Record<string, unknown> | undefined;
|
|
1611
1611
|
} | undefined;
|
|
1612
1612
|
meta?: Record<string, unknown> | undefined;
|
|
1613
1613
|
} | {
|
|
1614
|
-
type: "tool_process";
|
|
1615
1614
|
id: string;
|
|
1616
|
-
|
|
1615
|
+
type: "tool_process";
|
|
1617
1616
|
status: "error" | "loading" | "success";
|
|
1618
|
-
tool_name: string;
|
|
1619
1617
|
tool_call_id: string;
|
|
1620
|
-
|
|
1618
|
+
tool_name: string;
|
|
1619
|
+
timestamp: number;
|
|
1620
|
+
phase: "error" | "start" | "update" | "complete";
|
|
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
|
-
type: "observation";
|
|
1627
1626
|
id: string;
|
|
1628
|
-
|
|
1629
|
-
tool_name: string;
|
|
1627
|
+
type: "observation";
|
|
1630
1628
|
tool_call_id: string;
|
|
1629
|
+
tool_name: string;
|
|
1630
|
+
timestamp: number;
|
|
1631
1631
|
success: boolean;
|
|
1632
1632
|
observation: string;
|
|
1633
|
+
data?: unknown;
|
|
1634
|
+
error?: string | undefined;
|
|
1633
1635
|
attachments?: {
|
|
1634
1636
|
id: string;
|
|
1635
1637
|
kind: "image";
|
|
@@ -1642,19 +1644,16 @@ declare const AgentEventSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.
|
|
|
1642
1644
|
fileName?: string | undefined;
|
|
1643
1645
|
label?: string | undefined;
|
|
1644
1646
|
}[] | undefined;
|
|
1645
|
-
error?: string | undefined;
|
|
1646
|
-
data?: unknown;
|
|
1647
1647
|
error_code?: string | undefined;
|
|
1648
1648
|
duration_ms?: number | undefined;
|
|
1649
1649
|
} | {
|
|
1650
|
-
type: "final_answer";
|
|
1651
1650
|
id: string;
|
|
1651
|
+
type: "final_answer";
|
|
1652
|
+
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
1652
1653
|
timestamp: number;
|
|
1653
1654
|
answer_id: string;
|
|
1654
|
-
completion_reason: "tool_call" | "terminal" | "interrupted";
|
|
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,38 +1707,38 @@ 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;
|
|
1714
1714
|
meta?: Record<string, unknown> | undefined;
|
|
1715
1715
|
} | {
|
|
1716
|
-
type: "error";
|
|
1717
1716
|
id: string;
|
|
1718
|
-
|
|
1717
|
+
type: "error";
|
|
1719
1718
|
error: string;
|
|
1719
|
+
timestamp: number;
|
|
1720
1720
|
error_code?: string | undefined;
|
|
1721
1721
|
details?: Record<string, unknown> | undefined;
|
|
1722
1722
|
retryable?: boolean | undefined;
|
|
1723
1723
|
} | {
|
|
1724
|
-
type: "stream_chunk";
|
|
1725
1724
|
id: string;
|
|
1726
|
-
|
|
1725
|
+
type: "stream_chunk";
|
|
1727
1726
|
content: string;
|
|
1727
|
+
timestamp: number;
|
|
1728
1728
|
answer_id: string;
|
|
1729
1729
|
seq: number;
|
|
1730
1730
|
is_last?: boolean | undefined;
|
|
1731
1731
|
} | {
|
|
1732
|
-
type: "stream_reset";
|
|
1733
1732
|
id: string;
|
|
1733
|
+
type: "stream_reset";
|
|
1734
1734
|
timestamp: number;
|
|
1735
1735
|
answer_id?: string | undefined;
|
|
1736
1736
|
thought_message_ids?: string[] | undefined;
|
|
1737
1737
|
} | {
|
|
1738
|
-
type: "provider_continuation";
|
|
1739
1738
|
id: string;
|
|
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
|
}>;
|