@openai/agents-core 0.0.14 → 0.0.16
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/dist/agent.js +6 -1
- package/dist/agent.js.map +1 -1
- package/dist/agent.mjs +6 -1
- package/dist/agent.mjs.map +1 -1
- package/dist/extensions/handoffFilters.js +2 -1
- package/dist/extensions/handoffFilters.js.map +1 -1
- package/dist/extensions/handoffFilters.mjs +2 -1
- package/dist/extensions/handoffFilters.mjs.map +1 -1
- package/dist/handoff.d.ts +5 -0
- package/dist/handoff.js.map +1 -1
- package/dist/handoff.mjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/items.d.ts +40 -32
- package/dist/mcp.d.ts +56 -6
- package/dist/mcp.js +120 -57
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.mjs +120 -57
- package/dist/mcp.mjs.map +1 -1
- package/dist/metadata.js +2 -2
- package/dist/metadata.mjs +2 -2
- package/dist/runImplementation.js +1 -0
- package/dist/runImplementation.js.map +1 -1
- package/dist/runImplementation.mjs +1 -0
- package/dist/runImplementation.mjs.map +1 -1
- package/dist/runState.d.ts +220 -185
- package/dist/shims/mcp-server/browser.d.ts +10 -1
- package/dist/shims/mcp-server/browser.js +24 -1
- package/dist/shims/mcp-server/browser.js.map +1 -1
- package/dist/shims/mcp-server/browser.mjs +24 -1
- package/dist/shims/mcp-server/browser.mjs.map +1 -1
- package/dist/shims/mcp-server/node.d.ts +21 -1
- package/dist/shims/mcp-server/node.js +101 -1
- package/dist/shims/mcp-server/node.js.map +1 -1
- package/dist/shims/mcp-server/node.mjs +101 -1
- package/dist/shims/mcp-server/node.mjs.map +1 -1
- package/dist/shims/shims-browser.d.ts +1 -1
- package/dist/shims/shims-browser.js +1 -1
- package/dist/shims/shims-browser.js.map +1 -1
- package/dist/shims/shims-browser.mjs +1 -1
- package/dist/shims/shims-browser.mjs.map +1 -1
- package/dist/shims/shims-node.d.ts +1 -1
- package/dist/shims/shims-node.js +1 -1
- package/dist/shims/shims-node.js.map +1 -1
- package/dist/shims/shims-node.mjs +1 -1
- package/dist/shims/shims-node.mjs.map +1 -1
- package/dist/shims/shims-workerd.d.ts +1 -1
- package/dist/shims/shims-workerd.js +1 -1
- package/dist/shims/shims-workerd.js.map +1 -1
- package/dist/shims/shims-workerd.mjs +1 -1
- package/dist/shims/shims-workerd.mjs.map +1 -1
- package/dist/types/protocol.d.ts +232 -220
- package/dist/types/protocol.js +11 -1
- package/dist/types/protocol.js.map +1 -1
- package/dist/types/protocol.mjs +11 -1
- package/dist/types/protocol.mjs.map +1 -1
- package/dist/usage.d.ts +10 -3
- package/dist/usage.js +9 -7
- package/dist/usage.js.map +1 -1
- package/dist/usage.mjs +9 -7
- package/dist/usage.mjs.map +1 -1
- package/package.json +2 -2
package/dist/types/protocol.d.ts
CHANGED
|
@@ -104,6 +104,28 @@ export declare const InputText: z.ZodObject<{
|
|
|
104
104
|
providerData?: Record<string, any> | undefined;
|
|
105
105
|
}>;
|
|
106
106
|
export type InputText = z.infer<typeof InputText>;
|
|
107
|
+
export declare const ReasoningText: z.ZodObject<{
|
|
108
|
+
/**
|
|
109
|
+
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
110
|
+
* specific fields.
|
|
111
|
+
*/
|
|
112
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
113
|
+
} & {
|
|
114
|
+
type: z.ZodLiteral<"reasoning_text">;
|
|
115
|
+
/**
|
|
116
|
+
* A text input for example a message from a user
|
|
117
|
+
*/
|
|
118
|
+
text: z.ZodString;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
type: "reasoning_text";
|
|
121
|
+
text: string;
|
|
122
|
+
providerData?: Record<string, any> | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
type: "reasoning_text";
|
|
125
|
+
text: string;
|
|
126
|
+
providerData?: Record<string, any> | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
export type ReasoningText = z.infer<typeof ReasoningText>;
|
|
107
129
|
export declare const InputImage: z.ZodObject<{
|
|
108
130
|
/**
|
|
109
131
|
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
@@ -473,26 +495,6 @@ export declare const AssistantContent: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
473
495
|
* specific fields.
|
|
474
496
|
*/
|
|
475
497
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
476
|
-
} & {
|
|
477
|
-
type: z.ZodLiteral<"input_text">;
|
|
478
|
-
/**
|
|
479
|
-
* A text input for example a message from a user
|
|
480
|
-
*/
|
|
481
|
-
text: z.ZodString;
|
|
482
|
-
}, "strip", z.ZodTypeAny, {
|
|
483
|
-
type: "input_text";
|
|
484
|
-
text: string;
|
|
485
|
-
providerData?: Record<string, any> | undefined;
|
|
486
|
-
}, {
|
|
487
|
-
type: "input_text";
|
|
488
|
-
text: string;
|
|
489
|
-
providerData?: Record<string, any> | undefined;
|
|
490
|
-
}>, z.ZodObject<{
|
|
491
|
-
/**
|
|
492
|
-
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
493
|
-
* specific fields.
|
|
494
|
-
*/
|
|
495
|
-
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
496
498
|
} & {
|
|
497
499
|
type: z.ZodLiteral<"audio">;
|
|
498
500
|
/**
|
|
@@ -626,26 +628,6 @@ export declare const AssistantMessageItem: z.ZodObject<{
|
|
|
626
628
|
* specific fields.
|
|
627
629
|
*/
|
|
628
630
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
629
|
-
} & {
|
|
630
|
-
type: z.ZodLiteral<"input_text">;
|
|
631
|
-
/**
|
|
632
|
-
* A text input for example a message from a user
|
|
633
|
-
*/
|
|
634
|
-
text: z.ZodString;
|
|
635
|
-
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
type: "input_text";
|
|
637
|
-
text: string;
|
|
638
|
-
providerData?: Record<string, any> | undefined;
|
|
639
|
-
}, {
|
|
640
|
-
type: "input_text";
|
|
641
|
-
text: string;
|
|
642
|
-
providerData?: Record<string, any> | undefined;
|
|
643
|
-
}>, z.ZodObject<{
|
|
644
|
-
/**
|
|
645
|
-
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
646
|
-
* specific fields.
|
|
647
|
-
*/
|
|
648
|
-
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
649
631
|
} & {
|
|
650
632
|
type: z.ZodLiteral<"audio">;
|
|
651
633
|
/**
|
|
@@ -714,10 +696,6 @@ export declare const AssistantMessageItem: z.ZodObject<{
|
|
|
714
696
|
type: "output_text";
|
|
715
697
|
text: string;
|
|
716
698
|
providerData?: Record<string, any> | undefined;
|
|
717
|
-
} | {
|
|
718
|
-
type: "input_text";
|
|
719
|
-
text: string;
|
|
720
|
-
providerData?: Record<string, any> | undefined;
|
|
721
699
|
} | {
|
|
722
700
|
type: "audio";
|
|
723
701
|
audio: string | {
|
|
@@ -745,10 +723,6 @@ export declare const AssistantMessageItem: z.ZodObject<{
|
|
|
745
723
|
type: "output_text";
|
|
746
724
|
text: string;
|
|
747
725
|
providerData?: Record<string, any> | undefined;
|
|
748
|
-
} | {
|
|
749
|
-
type: "input_text";
|
|
750
|
-
text: string;
|
|
751
|
-
providerData?: Record<string, any> | undefined;
|
|
752
726
|
} | {
|
|
753
727
|
type: "audio";
|
|
754
728
|
audio: string | {
|
|
@@ -1278,26 +1252,6 @@ export declare const MessageItem: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
1278
1252
|
* specific fields.
|
|
1279
1253
|
*/
|
|
1280
1254
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1281
|
-
} & {
|
|
1282
|
-
type: z.ZodLiteral<"input_text">;
|
|
1283
|
-
/**
|
|
1284
|
-
* A text input for example a message from a user
|
|
1285
|
-
*/
|
|
1286
|
-
text: z.ZodString;
|
|
1287
|
-
}, "strip", z.ZodTypeAny, {
|
|
1288
|
-
type: "input_text";
|
|
1289
|
-
text: string;
|
|
1290
|
-
providerData?: Record<string, any> | undefined;
|
|
1291
|
-
}, {
|
|
1292
|
-
type: "input_text";
|
|
1293
|
-
text: string;
|
|
1294
|
-
providerData?: Record<string, any> | undefined;
|
|
1295
|
-
}>, z.ZodObject<{
|
|
1296
|
-
/**
|
|
1297
|
-
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
1298
|
-
* specific fields.
|
|
1299
|
-
*/
|
|
1300
|
-
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1301
1255
|
} & {
|
|
1302
1256
|
type: z.ZodLiteral<"audio">;
|
|
1303
1257
|
/**
|
|
@@ -1366,10 +1320,6 @@ export declare const MessageItem: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
1366
1320
|
type: "output_text";
|
|
1367
1321
|
text: string;
|
|
1368
1322
|
providerData?: Record<string, any> | undefined;
|
|
1369
|
-
} | {
|
|
1370
|
-
type: "input_text";
|
|
1371
|
-
text: string;
|
|
1372
|
-
providerData?: Record<string, any> | undefined;
|
|
1373
1323
|
} | {
|
|
1374
1324
|
type: "audio";
|
|
1375
1325
|
audio: string | {
|
|
@@ -1397,10 +1347,6 @@ export declare const MessageItem: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
|
1397
1347
|
type: "output_text";
|
|
1398
1348
|
text: string;
|
|
1399
1349
|
providerData?: Record<string, any> | undefined;
|
|
1400
|
-
} | {
|
|
1401
|
-
type: "input_text";
|
|
1402
|
-
text: string;
|
|
1403
|
-
providerData?: Record<string, any> | undefined;
|
|
1404
1350
|
} | {
|
|
1405
1351
|
type: "audio";
|
|
1406
1352
|
audio: string | {
|
|
@@ -2484,6 +2430,30 @@ export declare const ReasoningItem: z.ZodObject<{
|
|
|
2484
2430
|
text: string;
|
|
2485
2431
|
providerData?: Record<string, any> | undefined;
|
|
2486
2432
|
}>, "many">;
|
|
2433
|
+
/**
|
|
2434
|
+
* The raw reasoning text from the model.
|
|
2435
|
+
*/
|
|
2436
|
+
rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2437
|
+
/**
|
|
2438
|
+
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
2439
|
+
* specific fields.
|
|
2440
|
+
*/
|
|
2441
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2442
|
+
} & {
|
|
2443
|
+
type: z.ZodLiteral<"reasoning_text">;
|
|
2444
|
+
/**
|
|
2445
|
+
* A text input for example a message from a user
|
|
2446
|
+
*/
|
|
2447
|
+
text: z.ZodString;
|
|
2448
|
+
}, "strip", z.ZodTypeAny, {
|
|
2449
|
+
type: "reasoning_text";
|
|
2450
|
+
text: string;
|
|
2451
|
+
providerData?: Record<string, any> | undefined;
|
|
2452
|
+
}, {
|
|
2453
|
+
type: "reasoning_text";
|
|
2454
|
+
text: string;
|
|
2455
|
+
providerData?: Record<string, any> | undefined;
|
|
2456
|
+
}>, "many">>;
|
|
2487
2457
|
}, "strip", z.ZodTypeAny, {
|
|
2488
2458
|
type: "reasoning";
|
|
2489
2459
|
content: {
|
|
@@ -2493,6 +2463,11 @@ export declare const ReasoningItem: z.ZodObject<{
|
|
|
2493
2463
|
}[];
|
|
2494
2464
|
providerData?: Record<string, any> | undefined;
|
|
2495
2465
|
id?: string | undefined;
|
|
2466
|
+
rawContent?: {
|
|
2467
|
+
type: "reasoning_text";
|
|
2468
|
+
text: string;
|
|
2469
|
+
providerData?: Record<string, any> | undefined;
|
|
2470
|
+
}[] | undefined;
|
|
2496
2471
|
}, {
|
|
2497
2472
|
type: "reasoning";
|
|
2498
2473
|
content: {
|
|
@@ -2502,6 +2477,11 @@ export declare const ReasoningItem: z.ZodObject<{
|
|
|
2502
2477
|
}[];
|
|
2503
2478
|
providerData?: Record<string, any> | undefined;
|
|
2504
2479
|
id?: string | undefined;
|
|
2480
|
+
rawContent?: {
|
|
2481
|
+
type: "reasoning_text";
|
|
2482
|
+
text: string;
|
|
2483
|
+
providerData?: Record<string, any> | undefined;
|
|
2484
|
+
}[] | undefined;
|
|
2505
2485
|
}>;
|
|
2506
2486
|
export type ReasoningItem = z.infer<typeof ReasoningItem>;
|
|
2507
2487
|
/**
|
|
@@ -2612,26 +2592,6 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2612
2592
|
* specific fields.
|
|
2613
2593
|
*/
|
|
2614
2594
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2615
|
-
} & {
|
|
2616
|
-
type: z.ZodLiteral<"input_text">;
|
|
2617
|
-
/**
|
|
2618
|
-
* A text input for example a message from a user
|
|
2619
|
-
*/
|
|
2620
|
-
text: z.ZodString;
|
|
2621
|
-
}, "strip", z.ZodTypeAny, {
|
|
2622
|
-
type: "input_text";
|
|
2623
|
-
text: string;
|
|
2624
|
-
providerData?: Record<string, any> | undefined;
|
|
2625
|
-
}, {
|
|
2626
|
-
type: "input_text";
|
|
2627
|
-
text: string;
|
|
2628
|
-
providerData?: Record<string, any> | undefined;
|
|
2629
|
-
}>, z.ZodObject<{
|
|
2630
|
-
/**
|
|
2631
|
-
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
2632
|
-
* specific fields.
|
|
2633
|
-
*/
|
|
2634
|
-
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2635
2595
|
} & {
|
|
2636
2596
|
type: z.ZodLiteral<"audio">;
|
|
2637
2597
|
/**
|
|
@@ -2700,10 +2660,6 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2700
2660
|
type: "output_text";
|
|
2701
2661
|
text: string;
|
|
2702
2662
|
providerData?: Record<string, any> | undefined;
|
|
2703
|
-
} | {
|
|
2704
|
-
type: "input_text";
|
|
2705
|
-
text: string;
|
|
2706
|
-
providerData?: Record<string, any> | undefined;
|
|
2707
2663
|
} | {
|
|
2708
2664
|
type: "audio";
|
|
2709
2665
|
audio: string | {
|
|
@@ -2731,10 +2687,6 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
2731
2687
|
type: "output_text";
|
|
2732
2688
|
text: string;
|
|
2733
2689
|
providerData?: Record<string, any> | undefined;
|
|
2734
|
-
} | {
|
|
2735
|
-
type: "input_text";
|
|
2736
|
-
text: string;
|
|
2737
|
-
providerData?: Record<string, any> | undefined;
|
|
2738
2690
|
} | {
|
|
2739
2691
|
type: "audio";
|
|
2740
2692
|
audio: string | {
|
|
@@ -3097,6 +3049,30 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3097
3049
|
text: string;
|
|
3098
3050
|
providerData?: Record<string, any> | undefined;
|
|
3099
3051
|
}>, "many">;
|
|
3052
|
+
/**
|
|
3053
|
+
* The raw reasoning text from the model.
|
|
3054
|
+
*/
|
|
3055
|
+
rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3056
|
+
/**
|
|
3057
|
+
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
3058
|
+
* specific fields.
|
|
3059
|
+
*/
|
|
3060
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3061
|
+
} & {
|
|
3062
|
+
type: z.ZodLiteral<"reasoning_text">;
|
|
3063
|
+
/**
|
|
3064
|
+
* A text input for example a message from a user
|
|
3065
|
+
*/
|
|
3066
|
+
text: z.ZodString;
|
|
3067
|
+
}, "strip", z.ZodTypeAny, {
|
|
3068
|
+
type: "reasoning_text";
|
|
3069
|
+
text: string;
|
|
3070
|
+
providerData?: Record<string, any> | undefined;
|
|
3071
|
+
}, {
|
|
3072
|
+
type: "reasoning_text";
|
|
3073
|
+
text: string;
|
|
3074
|
+
providerData?: Record<string, any> | undefined;
|
|
3075
|
+
}>, "many">>;
|
|
3100
3076
|
}, "strip", z.ZodTypeAny, {
|
|
3101
3077
|
type: "reasoning";
|
|
3102
3078
|
content: {
|
|
@@ -3106,6 +3082,11 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3106
3082
|
}[];
|
|
3107
3083
|
providerData?: Record<string, any> | undefined;
|
|
3108
3084
|
id?: string | undefined;
|
|
3085
|
+
rawContent?: {
|
|
3086
|
+
type: "reasoning_text";
|
|
3087
|
+
text: string;
|
|
3088
|
+
providerData?: Record<string, any> | undefined;
|
|
3089
|
+
}[] | undefined;
|
|
3109
3090
|
}, {
|
|
3110
3091
|
type: "reasoning";
|
|
3111
3092
|
content: {
|
|
@@ -3115,6 +3096,11 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
3115
3096
|
}[];
|
|
3116
3097
|
providerData?: Record<string, any> | undefined;
|
|
3117
3098
|
id?: string | undefined;
|
|
3099
|
+
rawContent?: {
|
|
3100
|
+
type: "reasoning_text";
|
|
3101
|
+
text: string;
|
|
3102
|
+
providerData?: Record<string, any> | undefined;
|
|
3103
|
+
}[] | undefined;
|
|
3118
3104
|
}>, z.ZodObject<{
|
|
3119
3105
|
/**
|
|
3120
3106
|
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
@@ -3436,26 +3422,6 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
|
|
|
3436
3422
|
* specific fields.
|
|
3437
3423
|
*/
|
|
3438
3424
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3439
|
-
} & {
|
|
3440
|
-
type: z.ZodLiteral<"input_text">;
|
|
3441
|
-
/**
|
|
3442
|
-
* A text input for example a message from a user
|
|
3443
|
-
*/
|
|
3444
|
-
text: z.ZodString;
|
|
3445
|
-
}, "strip", z.ZodTypeAny, {
|
|
3446
|
-
type: "input_text";
|
|
3447
|
-
text: string;
|
|
3448
|
-
providerData?: Record<string, any> | undefined;
|
|
3449
|
-
}, {
|
|
3450
|
-
type: "input_text";
|
|
3451
|
-
text: string;
|
|
3452
|
-
providerData?: Record<string, any> | undefined;
|
|
3453
|
-
}>, z.ZodObject<{
|
|
3454
|
-
/**
|
|
3455
|
-
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
3456
|
-
* specific fields.
|
|
3457
|
-
*/
|
|
3458
|
-
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3459
3425
|
} & {
|
|
3460
3426
|
type: z.ZodLiteral<"audio">;
|
|
3461
3427
|
/**
|
|
@@ -3524,10 +3490,6 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
|
|
|
3524
3490
|
type: "output_text";
|
|
3525
3491
|
text: string;
|
|
3526
3492
|
providerData?: Record<string, any> | undefined;
|
|
3527
|
-
} | {
|
|
3528
|
-
type: "input_text";
|
|
3529
|
-
text: string;
|
|
3530
|
-
providerData?: Record<string, any> | undefined;
|
|
3531
3493
|
} | {
|
|
3532
3494
|
type: "audio";
|
|
3533
3495
|
audio: string | {
|
|
@@ -3555,10 +3517,6 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
|
|
|
3555
3517
|
type: "output_text";
|
|
3556
3518
|
text: string;
|
|
3557
3519
|
providerData?: Record<string, any> | undefined;
|
|
3558
|
-
} | {
|
|
3559
|
-
type: "input_text";
|
|
3560
|
-
text: string;
|
|
3561
|
-
providerData?: Record<string, any> | undefined;
|
|
3562
3520
|
} | {
|
|
3563
3521
|
type: "audio";
|
|
3564
3522
|
audio: string | {
|
|
@@ -4131,6 +4089,30 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
|
|
|
4131
4089
|
text: string;
|
|
4132
4090
|
providerData?: Record<string, any> | undefined;
|
|
4133
4091
|
}>, "many">;
|
|
4092
|
+
/**
|
|
4093
|
+
* The raw reasoning text from the model.
|
|
4094
|
+
*/
|
|
4095
|
+
rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4096
|
+
/**
|
|
4097
|
+
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
4098
|
+
* specific fields.
|
|
4099
|
+
*/
|
|
4100
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4101
|
+
} & {
|
|
4102
|
+
type: z.ZodLiteral<"reasoning_text">;
|
|
4103
|
+
/**
|
|
4104
|
+
* A text input for example a message from a user
|
|
4105
|
+
*/
|
|
4106
|
+
text: z.ZodString;
|
|
4107
|
+
}, "strip", z.ZodTypeAny, {
|
|
4108
|
+
type: "reasoning_text";
|
|
4109
|
+
text: string;
|
|
4110
|
+
providerData?: Record<string, any> | undefined;
|
|
4111
|
+
}, {
|
|
4112
|
+
type: "reasoning_text";
|
|
4113
|
+
text: string;
|
|
4114
|
+
providerData?: Record<string, any> | undefined;
|
|
4115
|
+
}>, "many">>;
|
|
4134
4116
|
}, "strip", z.ZodTypeAny, {
|
|
4135
4117
|
type: "reasoning";
|
|
4136
4118
|
content: {
|
|
@@ -4140,6 +4122,11 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
|
|
|
4140
4122
|
}[];
|
|
4141
4123
|
providerData?: Record<string, any> | undefined;
|
|
4142
4124
|
id?: string | undefined;
|
|
4125
|
+
rawContent?: {
|
|
4126
|
+
type: "reasoning_text";
|
|
4127
|
+
text: string;
|
|
4128
|
+
providerData?: Record<string, any> | undefined;
|
|
4129
|
+
}[] | undefined;
|
|
4143
4130
|
}, {
|
|
4144
4131
|
type: "reasoning";
|
|
4145
4132
|
content: {
|
|
@@ -4149,6 +4136,11 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
|
|
|
4149
4136
|
}[];
|
|
4150
4137
|
providerData?: Record<string, any> | undefined;
|
|
4151
4138
|
id?: string | undefined;
|
|
4139
|
+
rawContent?: {
|
|
4140
|
+
type: "reasoning_text";
|
|
4141
|
+
text: string;
|
|
4142
|
+
providerData?: Record<string, any> | undefined;
|
|
4143
|
+
}[] | undefined;
|
|
4152
4144
|
}>, z.ZodObject<{
|
|
4153
4145
|
/**
|
|
4154
4146
|
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
@@ -4368,26 +4360,6 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4368
4360
|
* specific fields.
|
|
4369
4361
|
*/
|
|
4370
4362
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4371
|
-
} & {
|
|
4372
|
-
type: z.ZodLiteral<"input_text">;
|
|
4373
|
-
/**
|
|
4374
|
-
* A text input for example a message from a user
|
|
4375
|
-
*/
|
|
4376
|
-
text: z.ZodString;
|
|
4377
|
-
}, "strip", z.ZodTypeAny, {
|
|
4378
|
-
type: "input_text";
|
|
4379
|
-
text: string;
|
|
4380
|
-
providerData?: Record<string, any> | undefined;
|
|
4381
|
-
}, {
|
|
4382
|
-
type: "input_text";
|
|
4383
|
-
text: string;
|
|
4384
|
-
providerData?: Record<string, any> | undefined;
|
|
4385
|
-
}>, z.ZodObject<{
|
|
4386
|
-
/**
|
|
4387
|
-
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
4388
|
-
* specific fields.
|
|
4389
|
-
*/
|
|
4390
|
-
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4391
4363
|
} & {
|
|
4392
4364
|
type: z.ZodLiteral<"audio">;
|
|
4393
4365
|
/**
|
|
@@ -4456,10 +4428,6 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4456
4428
|
type: "output_text";
|
|
4457
4429
|
text: string;
|
|
4458
4430
|
providerData?: Record<string, any> | undefined;
|
|
4459
|
-
} | {
|
|
4460
|
-
type: "input_text";
|
|
4461
|
-
text: string;
|
|
4462
|
-
providerData?: Record<string, any> | undefined;
|
|
4463
4431
|
} | {
|
|
4464
4432
|
type: "audio";
|
|
4465
4433
|
audio: string | {
|
|
@@ -4487,10 +4455,6 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4487
4455
|
type: "output_text";
|
|
4488
4456
|
text: string;
|
|
4489
4457
|
providerData?: Record<string, any> | undefined;
|
|
4490
|
-
} | {
|
|
4491
|
-
type: "input_text";
|
|
4492
|
-
text: string;
|
|
4493
|
-
providerData?: Record<string, any> | undefined;
|
|
4494
4458
|
} | {
|
|
4495
4459
|
type: "audio";
|
|
4496
4460
|
audio: string | {
|
|
@@ -4853,6 +4817,30 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4853
4817
|
text: string;
|
|
4854
4818
|
providerData?: Record<string, any> | undefined;
|
|
4855
4819
|
}>, "many">;
|
|
4820
|
+
/**
|
|
4821
|
+
* The raw reasoning text from the model.
|
|
4822
|
+
*/
|
|
4823
|
+
rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4824
|
+
/**
|
|
4825
|
+
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
4826
|
+
* specific fields.
|
|
4827
|
+
*/
|
|
4828
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4829
|
+
} & {
|
|
4830
|
+
type: z.ZodLiteral<"reasoning_text">;
|
|
4831
|
+
/**
|
|
4832
|
+
* A text input for example a message from a user
|
|
4833
|
+
*/
|
|
4834
|
+
text: z.ZodString;
|
|
4835
|
+
}, "strip", z.ZodTypeAny, {
|
|
4836
|
+
type: "reasoning_text";
|
|
4837
|
+
text: string;
|
|
4838
|
+
providerData?: Record<string, any> | undefined;
|
|
4839
|
+
}, {
|
|
4840
|
+
type: "reasoning_text";
|
|
4841
|
+
text: string;
|
|
4842
|
+
providerData?: Record<string, any> | undefined;
|
|
4843
|
+
}>, "many">>;
|
|
4856
4844
|
}, "strip", z.ZodTypeAny, {
|
|
4857
4845
|
type: "reasoning";
|
|
4858
4846
|
content: {
|
|
@@ -4862,6 +4850,11 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4862
4850
|
}[];
|
|
4863
4851
|
providerData?: Record<string, any> | undefined;
|
|
4864
4852
|
id?: string | undefined;
|
|
4853
|
+
rawContent?: {
|
|
4854
|
+
type: "reasoning_text";
|
|
4855
|
+
text: string;
|
|
4856
|
+
providerData?: Record<string, any> | undefined;
|
|
4857
|
+
}[] | undefined;
|
|
4865
4858
|
}, {
|
|
4866
4859
|
type: "reasoning";
|
|
4867
4860
|
content: {
|
|
@@ -4871,6 +4864,11 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4871
4864
|
}[];
|
|
4872
4865
|
providerData?: Record<string, any> | undefined;
|
|
4873
4866
|
id?: string | undefined;
|
|
4867
|
+
rawContent?: {
|
|
4868
|
+
type: "reasoning_text";
|
|
4869
|
+
text: string;
|
|
4870
|
+
providerData?: Record<string, any> | undefined;
|
|
4871
|
+
}[] | undefined;
|
|
4874
4872
|
}>, z.ZodObject<{
|
|
4875
4873
|
/**
|
|
4876
4874
|
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
@@ -4907,10 +4905,6 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4907
4905
|
type: "output_text";
|
|
4908
4906
|
text: string;
|
|
4909
4907
|
providerData?: Record<string, any> | undefined;
|
|
4910
|
-
} | {
|
|
4911
|
-
type: "input_text";
|
|
4912
|
-
text: string;
|
|
4913
|
-
providerData?: Record<string, any> | undefined;
|
|
4914
4908
|
} | {
|
|
4915
4909
|
type: "audio";
|
|
4916
4910
|
audio: string | {
|
|
@@ -4994,6 +4988,11 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
4994
4988
|
}[];
|
|
4995
4989
|
providerData?: Record<string, any> | undefined;
|
|
4996
4990
|
id?: string | undefined;
|
|
4991
|
+
rawContent?: {
|
|
4992
|
+
type: "reasoning_text";
|
|
4993
|
+
text: string;
|
|
4994
|
+
providerData?: Record<string, any> | undefined;
|
|
4995
|
+
}[] | undefined;
|
|
4997
4996
|
} | {
|
|
4998
4997
|
type: "unknown";
|
|
4999
4998
|
providerData?: Record<string, any> | undefined;
|
|
@@ -5021,10 +5020,6 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
5021
5020
|
type: "output_text";
|
|
5022
5021
|
text: string;
|
|
5023
5022
|
providerData?: Record<string, any> | undefined;
|
|
5024
|
-
} | {
|
|
5025
|
-
type: "input_text";
|
|
5026
|
-
text: string;
|
|
5027
|
-
providerData?: Record<string, any> | undefined;
|
|
5028
5023
|
} | {
|
|
5029
5024
|
type: "audio";
|
|
5030
5025
|
audio: string | {
|
|
@@ -5108,6 +5103,11 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
5108
5103
|
}[];
|
|
5109
5104
|
providerData?: Record<string, any> | undefined;
|
|
5110
5105
|
id?: string | undefined;
|
|
5106
|
+
rawContent?: {
|
|
5107
|
+
type: "reasoning_text";
|
|
5108
|
+
text: string;
|
|
5109
|
+
providerData?: Record<string, any> | undefined;
|
|
5110
|
+
}[] | undefined;
|
|
5111
5111
|
} | {
|
|
5112
5112
|
type: "unknown";
|
|
5113
5113
|
providerData?: Record<string, any> | undefined;
|
|
@@ -5138,10 +5138,6 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
5138
5138
|
type: "output_text";
|
|
5139
5139
|
text: string;
|
|
5140
5140
|
providerData?: Record<string, any> | undefined;
|
|
5141
|
-
} | {
|
|
5142
|
-
type: "input_text";
|
|
5143
|
-
text: string;
|
|
5144
|
-
providerData?: Record<string, any> | undefined;
|
|
5145
5141
|
} | {
|
|
5146
5142
|
type: "audio";
|
|
5147
5143
|
audio: string | {
|
|
@@ -5225,6 +5221,11 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
5225
5221
|
}[];
|
|
5226
5222
|
providerData?: Record<string, any> | undefined;
|
|
5227
5223
|
id?: string | undefined;
|
|
5224
|
+
rawContent?: {
|
|
5225
|
+
type: "reasoning_text";
|
|
5226
|
+
text: string;
|
|
5227
|
+
providerData?: Record<string, any> | undefined;
|
|
5228
|
+
}[] | undefined;
|
|
5228
5229
|
} | {
|
|
5229
5230
|
type: "unknown";
|
|
5230
5231
|
providerData?: Record<string, any> | undefined;
|
|
@@ -5256,10 +5257,6 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
5256
5257
|
type: "output_text";
|
|
5257
5258
|
text: string;
|
|
5258
5259
|
providerData?: Record<string, any> | undefined;
|
|
5259
|
-
} | {
|
|
5260
|
-
type: "input_text";
|
|
5261
|
-
text: string;
|
|
5262
|
-
providerData?: Record<string, any> | undefined;
|
|
5263
5260
|
} | {
|
|
5264
5261
|
type: "audio";
|
|
5265
5262
|
audio: string | {
|
|
@@ -5343,6 +5340,11 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
|
|
|
5343
5340
|
}[];
|
|
5344
5341
|
providerData?: Record<string, any> | undefined;
|
|
5345
5342
|
id?: string | undefined;
|
|
5343
|
+
rawContent?: {
|
|
5344
|
+
type: "reasoning_text";
|
|
5345
|
+
text: string;
|
|
5346
|
+
providerData?: Record<string, any> | undefined;
|
|
5347
|
+
}[] | undefined;
|
|
5346
5348
|
} | {
|
|
5347
5349
|
type: "unknown";
|
|
5348
5350
|
providerData?: Record<string, any> | undefined;
|
|
@@ -5529,26 +5531,6 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5529
5531
|
* specific fields.
|
|
5530
5532
|
*/
|
|
5531
5533
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5532
|
-
} & {
|
|
5533
|
-
type: z.ZodLiteral<"input_text">;
|
|
5534
|
-
/**
|
|
5535
|
-
* A text input for example a message from a user
|
|
5536
|
-
*/
|
|
5537
|
-
text: z.ZodString;
|
|
5538
|
-
}, "strip", z.ZodTypeAny, {
|
|
5539
|
-
type: "input_text";
|
|
5540
|
-
text: string;
|
|
5541
|
-
providerData?: Record<string, any> | undefined;
|
|
5542
|
-
}, {
|
|
5543
|
-
type: "input_text";
|
|
5544
|
-
text: string;
|
|
5545
|
-
providerData?: Record<string, any> | undefined;
|
|
5546
|
-
}>, z.ZodObject<{
|
|
5547
|
-
/**
|
|
5548
|
-
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
5549
|
-
* specific fields.
|
|
5550
|
-
*/
|
|
5551
|
-
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5552
5534
|
} & {
|
|
5553
5535
|
type: z.ZodLiteral<"audio">;
|
|
5554
5536
|
/**
|
|
@@ -5617,10 +5599,6 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5617
5599
|
type: "output_text";
|
|
5618
5600
|
text: string;
|
|
5619
5601
|
providerData?: Record<string, any> | undefined;
|
|
5620
|
-
} | {
|
|
5621
|
-
type: "input_text";
|
|
5622
|
-
text: string;
|
|
5623
|
-
providerData?: Record<string, any> | undefined;
|
|
5624
5602
|
} | {
|
|
5625
5603
|
type: "audio";
|
|
5626
5604
|
audio: string | {
|
|
@@ -5648,10 +5626,6 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5648
5626
|
type: "output_text";
|
|
5649
5627
|
text: string;
|
|
5650
5628
|
providerData?: Record<string, any> | undefined;
|
|
5651
|
-
} | {
|
|
5652
|
-
type: "input_text";
|
|
5653
|
-
text: string;
|
|
5654
|
-
providerData?: Record<string, any> | undefined;
|
|
5655
5629
|
} | {
|
|
5656
5630
|
type: "audio";
|
|
5657
5631
|
audio: string | {
|
|
@@ -6014,6 +5988,30 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6014
5988
|
text: string;
|
|
6015
5989
|
providerData?: Record<string, any> | undefined;
|
|
6016
5990
|
}>, "many">;
|
|
5991
|
+
/**
|
|
5992
|
+
* The raw reasoning text from the model.
|
|
5993
|
+
*/
|
|
5994
|
+
rawContent: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5995
|
+
/**
|
|
5996
|
+
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
5997
|
+
* specific fields.
|
|
5998
|
+
*/
|
|
5999
|
+
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
6000
|
+
} & {
|
|
6001
|
+
type: z.ZodLiteral<"reasoning_text">;
|
|
6002
|
+
/**
|
|
6003
|
+
* A text input for example a message from a user
|
|
6004
|
+
*/
|
|
6005
|
+
text: z.ZodString;
|
|
6006
|
+
}, "strip", z.ZodTypeAny, {
|
|
6007
|
+
type: "reasoning_text";
|
|
6008
|
+
text: string;
|
|
6009
|
+
providerData?: Record<string, any> | undefined;
|
|
6010
|
+
}, {
|
|
6011
|
+
type: "reasoning_text";
|
|
6012
|
+
text: string;
|
|
6013
|
+
providerData?: Record<string, any> | undefined;
|
|
6014
|
+
}>, "many">>;
|
|
6017
6015
|
}, "strip", z.ZodTypeAny, {
|
|
6018
6016
|
type: "reasoning";
|
|
6019
6017
|
content: {
|
|
@@ -6023,6 +6021,11 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6023
6021
|
}[];
|
|
6024
6022
|
providerData?: Record<string, any> | undefined;
|
|
6025
6023
|
id?: string | undefined;
|
|
6024
|
+
rawContent?: {
|
|
6025
|
+
type: "reasoning_text";
|
|
6026
|
+
text: string;
|
|
6027
|
+
providerData?: Record<string, any> | undefined;
|
|
6028
|
+
}[] | undefined;
|
|
6026
6029
|
}, {
|
|
6027
6030
|
type: "reasoning";
|
|
6028
6031
|
content: {
|
|
@@ -6032,6 +6035,11 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6032
6035
|
}[];
|
|
6033
6036
|
providerData?: Record<string, any> | undefined;
|
|
6034
6037
|
id?: string | undefined;
|
|
6038
|
+
rawContent?: {
|
|
6039
|
+
type: "reasoning_text";
|
|
6040
|
+
text: string;
|
|
6041
|
+
providerData?: Record<string, any> | undefined;
|
|
6042
|
+
}[] | undefined;
|
|
6035
6043
|
}>, z.ZodObject<{
|
|
6036
6044
|
/**
|
|
6037
6045
|
* Additional optional provider specific data. Used for custom functionality or model provider
|
|
@@ -6068,10 +6076,6 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6068
6076
|
type: "output_text";
|
|
6069
6077
|
text: string;
|
|
6070
6078
|
providerData?: Record<string, any> | undefined;
|
|
6071
|
-
} | {
|
|
6072
|
-
type: "input_text";
|
|
6073
|
-
text: string;
|
|
6074
|
-
providerData?: Record<string, any> | undefined;
|
|
6075
6079
|
} | {
|
|
6076
6080
|
type: "audio";
|
|
6077
6081
|
audio: string | {
|
|
@@ -6155,6 +6159,11 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6155
6159
|
}[];
|
|
6156
6160
|
providerData?: Record<string, any> | undefined;
|
|
6157
6161
|
id?: string | undefined;
|
|
6162
|
+
rawContent?: {
|
|
6163
|
+
type: "reasoning_text";
|
|
6164
|
+
text: string;
|
|
6165
|
+
providerData?: Record<string, any> | undefined;
|
|
6166
|
+
}[] | undefined;
|
|
6158
6167
|
} | {
|
|
6159
6168
|
type: "unknown";
|
|
6160
6169
|
providerData?: Record<string, any> | undefined;
|
|
@@ -6182,10 +6191,6 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6182
6191
|
type: "output_text";
|
|
6183
6192
|
text: string;
|
|
6184
6193
|
providerData?: Record<string, any> | undefined;
|
|
6185
|
-
} | {
|
|
6186
|
-
type: "input_text";
|
|
6187
|
-
text: string;
|
|
6188
|
-
providerData?: Record<string, any> | undefined;
|
|
6189
6194
|
} | {
|
|
6190
6195
|
type: "audio";
|
|
6191
6196
|
audio: string | {
|
|
@@ -6269,6 +6274,11 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6269
6274
|
}[];
|
|
6270
6275
|
providerData?: Record<string, any> | undefined;
|
|
6271
6276
|
id?: string | undefined;
|
|
6277
|
+
rawContent?: {
|
|
6278
|
+
type: "reasoning_text";
|
|
6279
|
+
text: string;
|
|
6280
|
+
providerData?: Record<string, any> | undefined;
|
|
6281
|
+
}[] | undefined;
|
|
6272
6282
|
} | {
|
|
6273
6283
|
type: "unknown";
|
|
6274
6284
|
providerData?: Record<string, any> | undefined;
|
|
@@ -6299,10 +6309,6 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6299
6309
|
type: "output_text";
|
|
6300
6310
|
text: string;
|
|
6301
6311
|
providerData?: Record<string, any> | undefined;
|
|
6302
|
-
} | {
|
|
6303
|
-
type: "input_text";
|
|
6304
|
-
text: string;
|
|
6305
|
-
providerData?: Record<string, any> | undefined;
|
|
6306
6312
|
} | {
|
|
6307
6313
|
type: "audio";
|
|
6308
6314
|
audio: string | {
|
|
@@ -6386,6 +6392,11 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6386
6392
|
}[];
|
|
6387
6393
|
providerData?: Record<string, any> | undefined;
|
|
6388
6394
|
id?: string | undefined;
|
|
6395
|
+
rawContent?: {
|
|
6396
|
+
type: "reasoning_text";
|
|
6397
|
+
text: string;
|
|
6398
|
+
providerData?: Record<string, any> | undefined;
|
|
6399
|
+
}[] | undefined;
|
|
6389
6400
|
} | {
|
|
6390
6401
|
type: "unknown";
|
|
6391
6402
|
providerData?: Record<string, any> | undefined;
|
|
@@ -6417,10 +6428,6 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6417
6428
|
type: "output_text";
|
|
6418
6429
|
text: string;
|
|
6419
6430
|
providerData?: Record<string, any> | undefined;
|
|
6420
|
-
} | {
|
|
6421
|
-
type: "input_text";
|
|
6422
|
-
text: string;
|
|
6423
|
-
providerData?: Record<string, any> | undefined;
|
|
6424
6431
|
} | {
|
|
6425
6432
|
type: "audio";
|
|
6426
6433
|
audio: string | {
|
|
@@ -6504,6 +6511,11 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6504
6511
|
}[];
|
|
6505
6512
|
providerData?: Record<string, any> | undefined;
|
|
6506
6513
|
id?: string | undefined;
|
|
6514
|
+
rawContent?: {
|
|
6515
|
+
type: "reasoning_text";
|
|
6516
|
+
text: string;
|
|
6517
|
+
providerData?: Record<string, any> | undefined;
|
|
6518
|
+
}[] | undefined;
|
|
6507
6519
|
} | {
|
|
6508
6520
|
type: "unknown";
|
|
6509
6521
|
providerData?: Record<string, any> | undefined;
|