@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
package/dist/contracts/sse.d.cts
CHANGED
|
@@ -278,7 +278,7 @@ declare const SSEMarkdownChunkEvent: z.ZodObject<{
|
|
|
278
278
|
timestamp: number;
|
|
279
279
|
conversation_id: string;
|
|
280
280
|
turn_id: string;
|
|
281
|
-
content_type: "code" | "
|
|
281
|
+
content_type: "code" | "text" | "image" | "table";
|
|
282
282
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
283
283
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
284
284
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
@@ -300,7 +300,7 @@ declare const SSEMarkdownChunkEvent: z.ZodObject<{
|
|
|
300
300
|
seq?: number | undefined;
|
|
301
301
|
execution_id?: string | undefined;
|
|
302
302
|
execution_seq?: number | undefined;
|
|
303
|
-
content_type?: "code" | "
|
|
303
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
304
304
|
}>;
|
|
305
305
|
type SSEMarkdownChunkEvent = z.infer<typeof SSEMarkdownChunkEvent>;
|
|
306
306
|
declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
@@ -326,8 +326,8 @@ declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
|
326
326
|
type: z.ZodLiteral<"tool_call_decision">;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
328
|
id: string;
|
|
329
|
-
status: "error" | "loading" | "success";
|
|
330
329
|
type: "tool_call_decision";
|
|
330
|
+
status: "error" | "loading" | "success";
|
|
331
331
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
332
332
|
tool_name: string;
|
|
333
333
|
timestamp: number;
|
|
@@ -345,8 +345,8 @@ declare const SSEToolCallDecisionEvent: z.ZodObject<{
|
|
|
345
345
|
execution_seq?: number | undefined;
|
|
346
346
|
}, {
|
|
347
347
|
id: string;
|
|
348
|
-
status: "error" | "loading" | "success";
|
|
349
348
|
type: "tool_call_decision";
|
|
349
|
+
status: "error" | "loading" | "success";
|
|
350
350
|
tool_call_id: string;
|
|
351
351
|
tool_name: string;
|
|
352
352
|
timestamp: number;
|
|
@@ -387,8 +387,8 @@ declare const SSEToolProcessEvent: z.ZodObject<{
|
|
|
387
387
|
type: z.ZodLiteral<"tool_process">;
|
|
388
388
|
}, "strip", z.ZodTypeAny, {
|
|
389
389
|
id: string;
|
|
390
|
-
status: "error" | "loading" | "success";
|
|
391
390
|
type: "tool_process";
|
|
391
|
+
status: "error" | "loading" | "success";
|
|
392
392
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
393
393
|
tool_name: string;
|
|
394
394
|
timestamp: number;
|
|
@@ -406,8 +406,8 @@ declare const SSEToolProcessEvent: z.ZodObject<{
|
|
|
406
406
|
execution_seq?: number | undefined;
|
|
407
407
|
}, {
|
|
408
408
|
id: string;
|
|
409
|
-
status: "error" | "loading" | "success";
|
|
410
409
|
type: "tool_process";
|
|
410
|
+
status: "error" | "loading" | "success";
|
|
411
411
|
tool_call_id: string;
|
|
412
412
|
tool_name: string;
|
|
413
413
|
timestamp: number;
|
|
@@ -482,8 +482,8 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
482
482
|
}>, "many">>;
|
|
483
483
|
}, "strip", z.ZodTypeAny, {
|
|
484
484
|
id: string;
|
|
485
|
-
status: "error" | "success";
|
|
486
485
|
type: "tool_output";
|
|
486
|
+
status: "error" | "success";
|
|
487
487
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
488
488
|
tool_name: string;
|
|
489
489
|
timestamp: number;
|
|
@@ -514,8 +514,8 @@ declare const SSEToolOutputEvent: z.ZodObject<{
|
|
|
514
514
|
execution_seq?: number | undefined;
|
|
515
515
|
}, {
|
|
516
516
|
id: string;
|
|
517
|
-
status: "error" | "success";
|
|
518
517
|
type: "tool_output";
|
|
518
|
+
status: "error" | "success";
|
|
519
519
|
tool_call_id: string;
|
|
520
520
|
tool_name: string;
|
|
521
521
|
timestamp: number;
|
|
@@ -631,8 +631,8 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
631
631
|
type: z.ZodLiteral<"subrun_trace">;
|
|
632
632
|
}, "strip", z.ZodTypeAny, {
|
|
633
633
|
id: string;
|
|
634
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
635
634
|
type: "subrun_trace";
|
|
635
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
636
636
|
timestamp: number;
|
|
637
637
|
conversation_id: string;
|
|
638
638
|
turn_id: string;
|
|
@@ -683,8 +683,8 @@ declare const SSESubRunTraceEvent: z.ZodObject<{
|
|
|
683
683
|
execution_seq?: number | undefined;
|
|
684
684
|
}, {
|
|
685
685
|
id: string;
|
|
686
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
687
686
|
type: "subrun_trace";
|
|
687
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
688
688
|
timestamp: number;
|
|
689
689
|
conversation_id: string;
|
|
690
690
|
turn_id: string;
|
|
@@ -1191,10 +1191,10 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1191
1191
|
id: string;
|
|
1192
1192
|
type: "run_execution_metrics";
|
|
1193
1193
|
timestamp: number;
|
|
1194
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
1195
1194
|
conversation_id: string;
|
|
1196
1195
|
turn_id: string;
|
|
1197
1196
|
duration_ms: number;
|
|
1197
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
1198
1198
|
execution_id: string;
|
|
1199
1199
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1200
1200
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
@@ -1224,10 +1224,10 @@ declare const SSERunExecutionMetricsEvent: z.ZodObject<{
|
|
|
1224
1224
|
id: string;
|
|
1225
1225
|
type: "run_execution_metrics";
|
|
1226
1226
|
timestamp: number;
|
|
1227
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
1228
1227
|
conversation_id: string;
|
|
1229
1228
|
turn_id: string;
|
|
1230
1229
|
duration_ms: number;
|
|
1230
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
1231
1231
|
execution_id: string;
|
|
1232
1232
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1233
1233
|
run_id?: string | undefined;
|
|
@@ -1272,8 +1272,8 @@ declare const SSERunStatusEvent: z.ZodObject<{
|
|
|
1272
1272
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
1273
1273
|
}, "strip", z.ZodTypeAny, {
|
|
1274
1274
|
id: string;
|
|
1275
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
1276
1275
|
type: "run_status";
|
|
1276
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
1277
1277
|
timestamp: number;
|
|
1278
1278
|
run_id: string & z.BRAND<"RunId">;
|
|
1279
1279
|
conversation_id: string;
|
|
@@ -1286,8 +1286,8 @@ declare const SSERunStatusEvent: z.ZodObject<{
|
|
|
1286
1286
|
reason_message?: string | undefined;
|
|
1287
1287
|
}, {
|
|
1288
1288
|
id: string;
|
|
1289
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
1290
1289
|
type: "run_status";
|
|
1290
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
1291
1291
|
timestamp: number;
|
|
1292
1292
|
run_id: string;
|
|
1293
1293
|
conversation_id: string;
|
|
@@ -1323,10 +1323,10 @@ declare const SSETransportEndEvent: z.ZodObject<{
|
|
|
1323
1323
|
turn_id: string;
|
|
1324
1324
|
execution_id: string;
|
|
1325
1325
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1326
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1327
1326
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1328
1327
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1329
1328
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1329
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1330
1330
|
execution_seq?: number | undefined;
|
|
1331
1331
|
reason_message?: string | undefined;
|
|
1332
1332
|
}, {
|
|
@@ -1337,10 +1337,10 @@ declare const SSETransportEndEvent: z.ZodObject<{
|
|
|
1337
1337
|
turn_id: string;
|
|
1338
1338
|
execution_id: string;
|
|
1339
1339
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1340
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1341
1340
|
run_id?: string | undefined;
|
|
1342
1341
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
1343
1342
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
1343
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
1344
1344
|
execution_seq?: number | undefined;
|
|
1345
1345
|
reason_message?: string | undefined;
|
|
1346
1346
|
}>;
|
|
@@ -1760,7 +1760,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1760
1760
|
timestamp: number;
|
|
1761
1761
|
conversation_id: string;
|
|
1762
1762
|
turn_id: string;
|
|
1763
|
-
content_type: "code" | "
|
|
1763
|
+
content_type: "code" | "text" | "image" | "table";
|
|
1764
1764
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
1765
1765
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
1766
1766
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
@@ -1782,7 +1782,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1782
1782
|
seq?: number | undefined;
|
|
1783
1783
|
execution_id?: string | undefined;
|
|
1784
1784
|
execution_seq?: number | undefined;
|
|
1785
|
-
content_type?: "code" | "
|
|
1785
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
1786
1786
|
}>, z.ZodObject<{
|
|
1787
1787
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1788
1788
|
timestamp: z.ZodNumber;
|
|
@@ -1806,8 +1806,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1806
1806
|
type: z.ZodLiteral<"tool_call_decision">;
|
|
1807
1807
|
}, "strip", z.ZodTypeAny, {
|
|
1808
1808
|
id: string;
|
|
1809
|
-
status: "error" | "loading" | "success";
|
|
1810
1809
|
type: "tool_call_decision";
|
|
1810
|
+
status: "error" | "loading" | "success";
|
|
1811
1811
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1812
1812
|
tool_name: string;
|
|
1813
1813
|
timestamp: number;
|
|
@@ -1825,8 +1825,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1825
1825
|
execution_seq?: number | undefined;
|
|
1826
1826
|
}, {
|
|
1827
1827
|
id: string;
|
|
1828
|
-
status: "error" | "loading" | "success";
|
|
1829
1828
|
type: "tool_call_decision";
|
|
1829
|
+
status: "error" | "loading" | "success";
|
|
1830
1830
|
tool_call_id: string;
|
|
1831
1831
|
tool_name: string;
|
|
1832
1832
|
timestamp: number;
|
|
@@ -1865,8 +1865,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1865
1865
|
type: z.ZodLiteral<"tool_process">;
|
|
1866
1866
|
}, "strip", z.ZodTypeAny, {
|
|
1867
1867
|
id: string;
|
|
1868
|
-
status: "error" | "loading" | "success";
|
|
1869
1868
|
type: "tool_process";
|
|
1869
|
+
status: "error" | "loading" | "success";
|
|
1870
1870
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1871
1871
|
tool_name: string;
|
|
1872
1872
|
timestamp: number;
|
|
@@ -1884,8 +1884,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1884
1884
|
execution_seq?: number | undefined;
|
|
1885
1885
|
}, {
|
|
1886
1886
|
id: string;
|
|
1887
|
-
status: "error" | "loading" | "success";
|
|
1888
1887
|
type: "tool_process";
|
|
1888
|
+
status: "error" | "loading" | "success";
|
|
1889
1889
|
tool_call_id: string;
|
|
1890
1890
|
tool_name: string;
|
|
1891
1891
|
timestamp: number;
|
|
@@ -1958,8 +1958,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1958
1958
|
}>, "many">>;
|
|
1959
1959
|
}, "strip", z.ZodTypeAny, {
|
|
1960
1960
|
id: string;
|
|
1961
|
-
status: "error" | "success";
|
|
1962
1961
|
type: "tool_output";
|
|
1962
|
+
status: "error" | "success";
|
|
1963
1963
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
1964
1964
|
tool_name: string;
|
|
1965
1965
|
timestamp: number;
|
|
@@ -1990,8 +1990,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1990
1990
|
execution_seq?: number | undefined;
|
|
1991
1991
|
}, {
|
|
1992
1992
|
id: string;
|
|
1993
|
-
status: "error" | "success";
|
|
1994
1993
|
type: "tool_output";
|
|
1994
|
+
status: "error" | "success";
|
|
1995
1995
|
tool_call_id: string;
|
|
1996
1996
|
tool_name: string;
|
|
1997
1997
|
timestamp: number;
|
|
@@ -2105,8 +2105,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2105
2105
|
type: z.ZodLiteral<"subrun_trace">;
|
|
2106
2106
|
}, "strip", z.ZodTypeAny, {
|
|
2107
2107
|
id: string;
|
|
2108
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
2109
2108
|
type: "subrun_trace";
|
|
2109
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
2110
2110
|
timestamp: number;
|
|
2111
2111
|
conversation_id: string;
|
|
2112
2112
|
turn_id: string;
|
|
@@ -2157,8 +2157,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2157
2157
|
execution_seq?: number | undefined;
|
|
2158
2158
|
}, {
|
|
2159
2159
|
id: string;
|
|
2160
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
2161
2160
|
type: "subrun_trace";
|
|
2161
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
2162
2162
|
timestamp: number;
|
|
2163
2163
|
conversation_id: string;
|
|
2164
2164
|
turn_id: string;
|
|
@@ -2650,10 +2650,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2650
2650
|
id: string;
|
|
2651
2651
|
type: "run_execution_metrics";
|
|
2652
2652
|
timestamp: number;
|
|
2653
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
2654
2653
|
conversation_id: string;
|
|
2655
2654
|
turn_id: string;
|
|
2656
2655
|
duration_ms: number;
|
|
2656
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
2657
2657
|
execution_id: string;
|
|
2658
2658
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2659
2659
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
@@ -2683,10 +2683,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2683
2683
|
id: string;
|
|
2684
2684
|
type: "run_execution_metrics";
|
|
2685
2685
|
timestamp: number;
|
|
2686
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
2687
2686
|
conversation_id: string;
|
|
2688
2687
|
turn_id: string;
|
|
2689
2688
|
duration_ms: number;
|
|
2689
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
2690
2690
|
execution_id: string;
|
|
2691
2691
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2692
2692
|
run_id?: string | undefined;
|
|
@@ -2729,8 +2729,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2729
2729
|
reason_message: z.ZodOptional<z.ZodString>;
|
|
2730
2730
|
}, "strip", z.ZodTypeAny, {
|
|
2731
2731
|
id: string;
|
|
2732
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
2733
2732
|
type: "run_status";
|
|
2733
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
2734
2734
|
timestamp: number;
|
|
2735
2735
|
run_id: string & z.BRAND<"RunId">;
|
|
2736
2736
|
conversation_id: string;
|
|
@@ -2743,8 +2743,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2743
2743
|
reason_message?: string | undefined;
|
|
2744
2744
|
}, {
|
|
2745
2745
|
id: string;
|
|
2746
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
2747
2746
|
type: "run_status";
|
|
2747
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
2748
2748
|
timestamp: number;
|
|
2749
2749
|
run_id: string;
|
|
2750
2750
|
conversation_id: string;
|
|
@@ -2778,10 +2778,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2778
2778
|
turn_id: string;
|
|
2779
2779
|
execution_id: string;
|
|
2780
2780
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2781
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
2782
2781
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
2783
2782
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2784
2783
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2784
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
2785
2785
|
execution_seq?: number | undefined;
|
|
2786
2786
|
reason_message?: string | undefined;
|
|
2787
2787
|
}, {
|
|
@@ -2792,10 +2792,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
2792
2792
|
turn_id: string;
|
|
2793
2793
|
execution_id: string;
|
|
2794
2794
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
2795
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
2796
2795
|
run_id?: string | undefined;
|
|
2797
2796
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
2798
2797
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
2798
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
2799
2799
|
execution_seq?: number | undefined;
|
|
2800
2800
|
reason_message?: string | undefined;
|
|
2801
2801
|
}>, z.ZodObject<{
|
|
@@ -3061,7 +3061,7 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3061
3061
|
timestamp: number;
|
|
3062
3062
|
conversation_id: string;
|
|
3063
3063
|
turn_id: string;
|
|
3064
|
-
content_type: "code" | "
|
|
3064
|
+
content_type: "code" | "text" | "image" | "table";
|
|
3065
3065
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3066
3066
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3067
3067
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
@@ -3071,8 +3071,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3071
3071
|
execution_seq?: number | undefined;
|
|
3072
3072
|
} | {
|
|
3073
3073
|
id: string;
|
|
3074
|
-
status: "error" | "loading" | "success";
|
|
3075
3074
|
type: "tool_call_decision";
|
|
3075
|
+
status: "error" | "loading" | "success";
|
|
3076
3076
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3077
3077
|
tool_name: string;
|
|
3078
3078
|
timestamp: number;
|
|
@@ -3090,8 +3090,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3090
3090
|
execution_seq?: number | undefined;
|
|
3091
3091
|
} | {
|
|
3092
3092
|
id: string;
|
|
3093
|
-
status: "error" | "loading" | "success";
|
|
3094
3093
|
type: "tool_process";
|
|
3094
|
+
status: "error" | "loading" | "success";
|
|
3095
3095
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3096
3096
|
tool_name: string;
|
|
3097
3097
|
timestamp: number;
|
|
@@ -3109,8 +3109,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3109
3109
|
execution_seq?: number | undefined;
|
|
3110
3110
|
} | {
|
|
3111
3111
|
id: string;
|
|
3112
|
-
status: "error" | "success";
|
|
3113
3112
|
type: "tool_output";
|
|
3113
|
+
status: "error" | "success";
|
|
3114
3114
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
3115
3115
|
tool_name: string;
|
|
3116
3116
|
timestamp: number;
|
|
@@ -3141,8 +3141,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3141
3141
|
execution_seq?: number | undefined;
|
|
3142
3142
|
} | {
|
|
3143
3143
|
id: string;
|
|
3144
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3145
3144
|
type: "subrun_trace";
|
|
3145
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3146
3146
|
timestamp: number;
|
|
3147
3147
|
conversation_id: string;
|
|
3148
3148
|
turn_id: string;
|
|
@@ -3278,10 +3278,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3278
3278
|
id: string;
|
|
3279
3279
|
type: "run_execution_metrics";
|
|
3280
3280
|
timestamp: number;
|
|
3281
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3282
3281
|
conversation_id: string;
|
|
3283
3282
|
turn_id: string;
|
|
3284
3283
|
duration_ms: number;
|
|
3284
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
3285
3285
|
execution_id: string;
|
|
3286
3286
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3287
3287
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
@@ -3309,8 +3309,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3309
3309
|
execution_seq?: number | undefined;
|
|
3310
3310
|
} | {
|
|
3311
3311
|
id: string;
|
|
3312
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
3313
3312
|
type: "run_status";
|
|
3313
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
3314
3314
|
timestamp: number;
|
|
3315
3315
|
run_id: string & z.BRAND<"RunId">;
|
|
3316
3316
|
conversation_id: string;
|
|
@@ -3329,10 +3329,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3329
3329
|
turn_id: string;
|
|
3330
3330
|
execution_id: string;
|
|
3331
3331
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3332
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3333
3332
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
3334
3333
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3335
3334
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3335
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3336
3336
|
execution_seq?: number | undefined;
|
|
3337
3337
|
reason_message?: string | undefined;
|
|
3338
3338
|
} | {
|
|
@@ -3474,11 +3474,11 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3474
3474
|
seq?: number | undefined;
|
|
3475
3475
|
execution_id?: string | undefined;
|
|
3476
3476
|
execution_seq?: number | undefined;
|
|
3477
|
-
content_type?: "code" | "
|
|
3477
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
3478
3478
|
} | {
|
|
3479
3479
|
id: string;
|
|
3480
|
-
status: "error" | "loading" | "success";
|
|
3481
3480
|
type: "tool_call_decision";
|
|
3481
|
+
status: "error" | "loading" | "success";
|
|
3482
3482
|
tool_call_id: string;
|
|
3483
3483
|
tool_name: string;
|
|
3484
3484
|
timestamp: number;
|
|
@@ -3496,8 +3496,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3496
3496
|
execution_seq?: number | undefined;
|
|
3497
3497
|
} | {
|
|
3498
3498
|
id: string;
|
|
3499
|
-
status: "error" | "loading" | "success";
|
|
3500
3499
|
type: "tool_process";
|
|
3500
|
+
status: "error" | "loading" | "success";
|
|
3501
3501
|
tool_call_id: string;
|
|
3502
3502
|
tool_name: string;
|
|
3503
3503
|
timestamp: number;
|
|
@@ -3515,8 +3515,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3515
3515
|
execution_seq?: number | undefined;
|
|
3516
3516
|
} | {
|
|
3517
3517
|
id: string;
|
|
3518
|
-
status: "error" | "success";
|
|
3519
3518
|
type: "tool_output";
|
|
3519
|
+
status: "error" | "success";
|
|
3520
3520
|
tool_call_id: string;
|
|
3521
3521
|
tool_name: string;
|
|
3522
3522
|
timestamp: number;
|
|
@@ -3547,8 +3547,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3547
3547
|
execution_seq?: number | undefined;
|
|
3548
3548
|
} | {
|
|
3549
3549
|
id: string;
|
|
3550
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3551
3550
|
type: "subrun_trace";
|
|
3551
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3552
3552
|
timestamp: number;
|
|
3553
3553
|
conversation_id: string;
|
|
3554
3554
|
turn_id: string;
|
|
@@ -3684,10 +3684,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3684
3684
|
id: string;
|
|
3685
3685
|
type: "run_execution_metrics";
|
|
3686
3686
|
timestamp: number;
|
|
3687
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
3688
3687
|
conversation_id: string;
|
|
3689
3688
|
turn_id: string;
|
|
3690
3689
|
duration_ms: number;
|
|
3690
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
3691
3691
|
execution_id: string;
|
|
3692
3692
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3693
3693
|
run_id?: string | undefined;
|
|
@@ -3715,8 +3715,8 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3715
3715
|
execution_seq?: number | undefined;
|
|
3716
3716
|
} | {
|
|
3717
3717
|
id: string;
|
|
3718
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
3719
3718
|
type: "run_status";
|
|
3719
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
3720
3720
|
timestamp: number;
|
|
3721
3721
|
run_id: string;
|
|
3722
3722
|
conversation_id: string;
|
|
@@ -3735,10 +3735,10 @@ declare const SSEEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
3735
3735
|
turn_id: string;
|
|
3736
3736
|
execution_id: string;
|
|
3737
3737
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
3738
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3739
3738
|
run_id?: string | undefined;
|
|
3740
3739
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
3741
3740
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
3741
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
3742
3742
|
execution_seq?: number | undefined;
|
|
3743
3743
|
reason_message?: string | undefined;
|
|
3744
3744
|
} | {
|
|
@@ -3884,11 +3884,11 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3884
3884
|
seq?: number | undefined;
|
|
3885
3885
|
execution_id?: string | undefined;
|
|
3886
3886
|
execution_seq?: number | undefined;
|
|
3887
|
-
content_type?: "code" | "
|
|
3887
|
+
content_type?: "code" | "text" | "image" | "table" | undefined;
|
|
3888
3888
|
} | {
|
|
3889
3889
|
id: string;
|
|
3890
|
-
status: "error" | "loading" | "success";
|
|
3891
3890
|
type: "tool_call_decision";
|
|
3891
|
+
status: "error" | "loading" | "success";
|
|
3892
3892
|
tool_call_id: string;
|
|
3893
3893
|
tool_name: string;
|
|
3894
3894
|
timestamp: number;
|
|
@@ -3906,8 +3906,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3906
3906
|
execution_seq?: number | undefined;
|
|
3907
3907
|
} | {
|
|
3908
3908
|
id: string;
|
|
3909
|
-
status: "error" | "loading" | "success";
|
|
3910
3909
|
type: "tool_process";
|
|
3910
|
+
status: "error" | "loading" | "success";
|
|
3911
3911
|
tool_call_id: string;
|
|
3912
3912
|
tool_name: string;
|
|
3913
3913
|
timestamp: number;
|
|
@@ -3925,8 +3925,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3925
3925
|
execution_seq?: number | undefined;
|
|
3926
3926
|
} | {
|
|
3927
3927
|
id: string;
|
|
3928
|
-
status: "error" | "success";
|
|
3929
3928
|
type: "tool_output";
|
|
3929
|
+
status: "error" | "success";
|
|
3930
3930
|
tool_call_id: string;
|
|
3931
3931
|
tool_name: string;
|
|
3932
3932
|
timestamp: number;
|
|
@@ -3957,8 +3957,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
3957
3957
|
execution_seq?: number | undefined;
|
|
3958
3958
|
} | {
|
|
3959
3959
|
id: string;
|
|
3960
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3961
3960
|
type: "subrun_trace";
|
|
3961
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
3962
3962
|
timestamp: number;
|
|
3963
3963
|
conversation_id: string;
|
|
3964
3964
|
turn_id: string;
|
|
@@ -4094,10 +4094,10 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4094
4094
|
id: string;
|
|
4095
4095
|
type: "run_execution_metrics";
|
|
4096
4096
|
timestamp: number;
|
|
4097
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
4098
4097
|
conversation_id: string;
|
|
4099
4098
|
turn_id: string;
|
|
4100
4099
|
duration_ms: number;
|
|
4100
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
4101
4101
|
execution_id: string;
|
|
4102
4102
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4103
4103
|
run_id?: string | undefined;
|
|
@@ -4125,8 +4125,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4125
4125
|
execution_seq?: number | undefined;
|
|
4126
4126
|
} | {
|
|
4127
4127
|
id: string;
|
|
4128
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
4129
4128
|
type: "run_status";
|
|
4129
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
4130
4130
|
timestamp: number;
|
|
4131
4131
|
run_id: string;
|
|
4132
4132
|
conversation_id: string;
|
|
@@ -4145,10 +4145,10 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4145
4145
|
turn_id: string;
|
|
4146
4146
|
execution_id: string;
|
|
4147
4147
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4148
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4149
4148
|
run_id?: string | undefined;
|
|
4150
4149
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4151
4150
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4151
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4152
4152
|
execution_seq?: number | undefined;
|
|
4153
4153
|
reason_message?: string | undefined;
|
|
4154
4154
|
} | {
|
|
@@ -4283,7 +4283,7 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4283
4283
|
timestamp: number;
|
|
4284
4284
|
conversation_id: string;
|
|
4285
4285
|
turn_id: string;
|
|
4286
|
-
content_type: "code" | "
|
|
4286
|
+
content_type: "code" | "text" | "image" | "table";
|
|
4287
4287
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4288
4288
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4289
4289
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
@@ -4293,8 +4293,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4293
4293
|
execution_seq?: number | undefined;
|
|
4294
4294
|
} | {
|
|
4295
4295
|
id: string;
|
|
4296
|
-
status: "error" | "loading" | "success";
|
|
4297
4296
|
type: "tool_call_decision";
|
|
4297
|
+
status: "error" | "loading" | "success";
|
|
4298
4298
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4299
4299
|
tool_name: string;
|
|
4300
4300
|
timestamp: number;
|
|
@@ -4312,8 +4312,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4312
4312
|
execution_seq?: number | undefined;
|
|
4313
4313
|
} | {
|
|
4314
4314
|
id: string;
|
|
4315
|
-
status: "error" | "loading" | "success";
|
|
4316
4315
|
type: "tool_process";
|
|
4316
|
+
status: "error" | "loading" | "success";
|
|
4317
4317
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4318
4318
|
tool_name: string;
|
|
4319
4319
|
timestamp: number;
|
|
@@ -4331,8 +4331,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4331
4331
|
execution_seq?: number | undefined;
|
|
4332
4332
|
} | {
|
|
4333
4333
|
id: string;
|
|
4334
|
-
status: "error" | "success";
|
|
4335
4334
|
type: "tool_output";
|
|
4335
|
+
status: "error" | "success";
|
|
4336
4336
|
tool_call_id: string & z.BRAND<"ToolCallId">;
|
|
4337
4337
|
tool_name: string;
|
|
4338
4338
|
timestamp: number;
|
|
@@ -4363,8 +4363,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4363
4363
|
execution_seq?: number | undefined;
|
|
4364
4364
|
} | {
|
|
4365
4365
|
id: string;
|
|
4366
|
-
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
4367
4366
|
type: "subrun_trace";
|
|
4367
|
+
kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
|
|
4368
4368
|
timestamp: number;
|
|
4369
4369
|
conversation_id: string;
|
|
4370
4370
|
turn_id: string;
|
|
@@ -4500,10 +4500,10 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4500
4500
|
id: string;
|
|
4501
4501
|
type: "run_execution_metrics";
|
|
4502
4502
|
timestamp: number;
|
|
4503
|
-
outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
|
|
4504
4503
|
conversation_id: string;
|
|
4505
4504
|
turn_id: string;
|
|
4506
4505
|
duration_ms: number;
|
|
4506
|
+
outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
|
|
4507
4507
|
execution_id: string;
|
|
4508
4508
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4509
4509
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
@@ -4531,8 +4531,8 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4531
4531
|
execution_seq?: number | undefined;
|
|
4532
4532
|
} | {
|
|
4533
4533
|
id: string;
|
|
4534
|
-
status: "completed" | "failed" | "cancelled" | "paused" | "pending" | "running" | "awaiting_user";
|
|
4535
4534
|
type: "run_status";
|
|
4535
|
+
status: "completed" | "failed" | "pending" | "running" | "awaiting_user" | "paused" | "cancelled";
|
|
4536
4536
|
timestamp: number;
|
|
4537
4537
|
run_id: string & z.BRAND<"RunId">;
|
|
4538
4538
|
conversation_id: string;
|
|
@@ -4551,10 +4551,10 @@ declare const validateSSEEvent: (event: unknown) => z.SafeParseReturnType<{
|
|
|
4551
4551
|
turn_id: string;
|
|
4552
4552
|
execution_id: string;
|
|
4553
4553
|
metadata?: Record<string, SerializableJsonValue> | undefined;
|
|
4554
|
-
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4555
4554
|
run_id?: (string & z.BRAND<"RunId">) | undefined;
|
|
4556
4555
|
lane?: "foreground" | "auxiliary" | "child" | undefined;
|
|
4557
4556
|
visibility?: "none" | "conversation" | "parent-trace" | undefined;
|
|
4557
|
+
reason?: "interrupted" | "error" | "complete" | "timeout" | undefined;
|
|
4558
4558
|
execution_seq?: number | undefined;
|
|
4559
4559
|
reason_message?: string | undefined;
|
|
4560
4560
|
} | {
|