@convex-dev/agent 0.2.0-alpha.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/createTool.d.ts +3 -5
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +0 -1
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +28 -28
- package/dist/client/files.d.ts +8 -1
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js +60 -5
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +223 -239
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +368 -382
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +91 -373
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +7 -1
- package/dist/client/messages.js.map +1 -1
- package/dist/client/search.d.ts +15 -15
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +3 -3
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +21 -22
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +35 -40
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/types.d.ts +148 -61
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +47 -357
- package/dist/component/messages.d.ts +157 -150
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +124 -70
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +1147 -2687
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +5 -4
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.d.ts +29 -323
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/component/streams.js +104 -60
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts +4 -4
- package/dist/component/users.d.ts +3 -3
- package/dist/mapping.d.ts +4 -1
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +17 -1
- package/dist/mapping.js.map +1 -1
- package/dist/parts.d.ts +3 -0
- package/dist/parts.d.ts.map +1 -0
- package/dist/parts.js +34 -0
- package/dist/parts.js.map +1 -0
- package/dist/react/SmoothText.d.ts +5 -0
- package/dist/react/SmoothText.d.ts.map +1 -0
- package/dist/react/SmoothText.js +6 -0
- package/dist/react/SmoothText.js.map +1 -0
- package/dist/react/deltas.d.ts +3 -2
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +19 -79
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +31 -11
- package/dist/react/index.js.map +1 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +1 -1
- package/dist/react/optimisticallySendMessage.js +2 -8
- package/dist/react/optimisticallySendMessage.js.map +1 -1
- package/dist/react/useSmoothText.d.ts +13 -12
- package/dist/react/useSmoothText.d.ts.map +1 -1
- package/dist/react/useSmoothText.js +1 -1
- package/dist/react/useSmoothText.js.map +1 -1
- package/dist/validators.d.ts +109 -1590
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +4 -81
- package/dist/validators.js.map +1 -1
- package/package.json +3 -3
- package/src/client/createTool.ts +4 -9
- package/src/client/files.ts +88 -10
- package/src/client/index.test.ts +9 -21
- package/src/client/index.ts +664 -650
- package/src/client/messages.ts +16 -2
- package/src/client/search.ts +10 -7
- package/src/client/streaming.ts +53 -57
- package/src/client/types.ts +227 -97
- package/src/component/_generated/api.d.ts +47 -357
- package/src/component/messages.ts +157 -96
- package/src/component/schema.ts +4 -4
- package/src/component/streams.ts +180 -69
- package/src/mapping.ts +23 -2
- package/src/parts.ts +39 -0
- package/src/react/SmoothText.tsx +9 -0
- package/src/react/deltas.test.ts +38 -42
- package/src/react/deltas.ts +24 -86
- package/src/react/index.ts +35 -13
- package/src/react/optimisticallySendMessage.ts +2 -8
- package/src/react/useSmoothText.ts +14 -15
- package/src/validators.test.ts +0 -17
- package/src/validators.ts +8 -101
package/dist/validators.d.ts
CHANGED
|
@@ -1647,9 +1647,9 @@ export declare const vSource: import("convex/values").VUnion<{
|
|
|
1647
1647
|
title?: string | undefined;
|
|
1648
1648
|
type?: "source" | undefined;
|
|
1649
1649
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1650
|
-
url?: string | undefined;
|
|
1651
1650
|
id: string;
|
|
1652
1651
|
sourceType: "url";
|
|
1652
|
+
url: string;
|
|
1653
1653
|
} | {
|
|
1654
1654
|
filename?: string | undefined;
|
|
1655
1655
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1662,14 +1662,14 @@ export declare const vSource: import("convex/values").VUnion<{
|
|
|
1662
1662
|
title?: string | undefined;
|
|
1663
1663
|
type?: "source" | undefined;
|
|
1664
1664
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1665
|
-
url?: string | undefined;
|
|
1666
1665
|
id: string;
|
|
1667
1666
|
sourceType: "url";
|
|
1667
|
+
url: string;
|
|
1668
1668
|
}, {
|
|
1669
1669
|
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
1670
1670
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
1671
1671
|
id: import("convex/values").VString<string, "required">;
|
|
1672
|
-
url: import("convex/values").VString<string
|
|
1672
|
+
url: import("convex/values").VString<string, "required">;
|
|
1673
1673
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1674
1674
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1675
1675
|
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
@@ -1769,9 +1769,9 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
1769
1769
|
title?: string | undefined;
|
|
1770
1770
|
type?: "source" | undefined;
|
|
1771
1771
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1772
|
-
url?: string | undefined;
|
|
1773
1772
|
id: string;
|
|
1774
1773
|
sourceType: "url";
|
|
1774
|
+
url: string;
|
|
1775
1775
|
} | {
|
|
1776
1776
|
filename?: string | undefined;
|
|
1777
1777
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1781,6 +1781,19 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
1781
1781
|
sourceType: "document";
|
|
1782
1782
|
mediaType: string;
|
|
1783
1783
|
})[] | undefined;
|
|
1784
|
+
warnings?: ({
|
|
1785
|
+
details?: string | undefined;
|
|
1786
|
+
type: "unsupported-setting";
|
|
1787
|
+
setting: string;
|
|
1788
|
+
} | {
|
|
1789
|
+
details?: string | undefined;
|
|
1790
|
+
type: "unsupported-tool";
|
|
1791
|
+
tool: any;
|
|
1792
|
+
} | {
|
|
1793
|
+
type: "other";
|
|
1794
|
+
message: string;
|
|
1795
|
+
})[] | undefined;
|
|
1796
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1784
1797
|
reasoningDetails?: ({
|
|
1785
1798
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1786
1799
|
signature?: string | undefined;
|
|
@@ -1795,19 +1808,6 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
1795
1808
|
type: "redacted";
|
|
1796
1809
|
data: string;
|
|
1797
1810
|
})[] | undefined;
|
|
1798
|
-
warnings?: ({
|
|
1799
|
-
details?: string | undefined;
|
|
1800
|
-
type: "unsupported-setting";
|
|
1801
|
-
setting: string;
|
|
1802
|
-
} | {
|
|
1803
|
-
details?: string | undefined;
|
|
1804
|
-
type: "unsupported-tool";
|
|
1805
|
-
tool: any;
|
|
1806
|
-
} | {
|
|
1807
|
-
type: "other";
|
|
1808
|
-
message: string;
|
|
1809
|
-
})[] | undefined;
|
|
1810
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1811
1811
|
message: {
|
|
1812
1812
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1813
1813
|
role: "user";
|
|
@@ -2345,9 +2345,9 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2345
2345
|
title?: string | undefined;
|
|
2346
2346
|
type?: "source" | undefined;
|
|
2347
2347
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2348
|
-
url?: string | undefined;
|
|
2349
2348
|
id: string;
|
|
2350
2349
|
sourceType: "url";
|
|
2350
|
+
url: string;
|
|
2351
2351
|
} | {
|
|
2352
2352
|
filename?: string | undefined;
|
|
2353
2353
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2360,9 +2360,9 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2360
2360
|
title?: string | undefined;
|
|
2361
2361
|
type?: "source" | undefined;
|
|
2362
2362
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2363
|
-
url?: string | undefined;
|
|
2364
2363
|
id: string;
|
|
2365
2364
|
sourceType: "url";
|
|
2365
|
+
url: string;
|
|
2366
2366
|
} | {
|
|
2367
2367
|
filename?: string | undefined;
|
|
2368
2368
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2375,14 +2375,14 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2375
2375
|
title?: string | undefined;
|
|
2376
2376
|
type?: "source" | undefined;
|
|
2377
2377
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2378
|
-
url?: string | undefined;
|
|
2379
2378
|
id: string;
|
|
2380
2379
|
sourceType: "url";
|
|
2380
|
+
url: string;
|
|
2381
2381
|
}, {
|
|
2382
2382
|
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
2383
2383
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
2384
2384
|
id: import("convex/values").VString<string, "required">;
|
|
2385
|
-
url: import("convex/values").VString<string
|
|
2385
|
+
url: import("convex/values").VString<string, "required">;
|
|
2386
2386
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2387
2387
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2388
2388
|
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
@@ -2515,7 +2515,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2515
2515
|
message: import("convex/values").VString<string, "required">;
|
|
2516
2516
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
2517
2517
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
2518
|
-
}, "required", "status" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "
|
|
2518
|
+
}, "required", "status" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
|
|
2519
|
+
export type MessageWithMetadataInternal = Infer<typeof vMessageWithMetadataInternal>;
|
|
2519
2520
|
export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
2520
2521
|
status?: "pending" | "success" | "failed" | undefined;
|
|
2521
2522
|
fileIds?: string[] | undefined;
|
|
@@ -2536,9 +2537,9 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2536
2537
|
title?: string | undefined;
|
|
2537
2538
|
type?: "source" | undefined;
|
|
2538
2539
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2539
|
-
url?: string | undefined;
|
|
2540
2540
|
id: string;
|
|
2541
2541
|
sourceType: "url";
|
|
2542
|
+
url: string;
|
|
2542
2543
|
} | {
|
|
2543
2544
|
filename?: string | undefined;
|
|
2544
2545
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2548,6 +2549,19 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2548
2549
|
sourceType: "document";
|
|
2549
2550
|
mediaType: string;
|
|
2550
2551
|
})[] | undefined;
|
|
2552
|
+
warnings?: ({
|
|
2553
|
+
details?: string | undefined;
|
|
2554
|
+
type: "unsupported-setting";
|
|
2555
|
+
setting: string;
|
|
2556
|
+
} | {
|
|
2557
|
+
details?: string | undefined;
|
|
2558
|
+
type: "unsupported-tool";
|
|
2559
|
+
tool: any;
|
|
2560
|
+
} | {
|
|
2561
|
+
type: "other";
|
|
2562
|
+
message: string;
|
|
2563
|
+
})[] | undefined;
|
|
2564
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2551
2565
|
reasoningDetails?: ({
|
|
2552
2566
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2553
2567
|
signature?: string | undefined;
|
|
@@ -2562,19 +2576,6 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2562
2576
|
type: "redacted";
|
|
2563
2577
|
data: string;
|
|
2564
2578
|
})[] | undefined;
|
|
2565
|
-
warnings?: ({
|
|
2566
|
-
details?: string | undefined;
|
|
2567
|
-
type: "unsupported-setting";
|
|
2568
|
-
setting: string;
|
|
2569
|
-
} | {
|
|
2570
|
-
details?: string | undefined;
|
|
2571
|
-
type: "unsupported-tool";
|
|
2572
|
-
tool: any;
|
|
2573
|
-
} | {
|
|
2574
|
-
type: "other";
|
|
2575
|
-
message: string;
|
|
2576
|
-
})[] | undefined;
|
|
2577
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2578
2579
|
message: {
|
|
2579
2580
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2580
2581
|
role: "user";
|
|
@@ -3112,9 +3113,9 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3112
3113
|
title?: string | undefined;
|
|
3113
3114
|
type?: "source" | undefined;
|
|
3114
3115
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3115
|
-
url?: string | undefined;
|
|
3116
3116
|
id: string;
|
|
3117
3117
|
sourceType: "url";
|
|
3118
|
+
url: string;
|
|
3118
3119
|
} | {
|
|
3119
3120
|
filename?: string | undefined;
|
|
3120
3121
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3127,9 +3128,9 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3127
3128
|
title?: string | undefined;
|
|
3128
3129
|
type?: "source" | undefined;
|
|
3129
3130
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3130
|
-
url?: string | undefined;
|
|
3131
3131
|
id: string;
|
|
3132
3132
|
sourceType: "url";
|
|
3133
|
+
url: string;
|
|
3133
3134
|
} | {
|
|
3134
3135
|
filename?: string | undefined;
|
|
3135
3136
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3142,14 +3143,14 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3142
3143
|
title?: string | undefined;
|
|
3143
3144
|
type?: "source" | undefined;
|
|
3144
3145
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3145
|
-
url?: string | undefined;
|
|
3146
3146
|
id: string;
|
|
3147
3147
|
sourceType: "url";
|
|
3148
|
+
url: string;
|
|
3148
3149
|
}, {
|
|
3149
3150
|
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
3150
3151
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
3151
3152
|
id: import("convex/values").VString<string, "required">;
|
|
3152
|
-
url: import("convex/values").VString<string
|
|
3153
|
+
url: import("convex/values").VString<string, "required">;
|
|
3153
3154
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3154
3155
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
3155
3156
|
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
@@ -3282,7 +3283,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3282
3283
|
message: import("convex/values").VString<string, "required">;
|
|
3283
3284
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3284
3285
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
3285
|
-
}, "required", "status" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "
|
|
3286
|
+
}, "required", "status" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
|
|
3286
3287
|
export type MessageWithMetadata = Infer<typeof vMessageWithMetadata>;
|
|
3287
3288
|
export declare const vMessageEmbeddingsWithDimension: import("convex/values").VObject<{
|
|
3288
3289
|
model: string;
|
|
@@ -4867,1563 +4868,81 @@ export declare function vPaginationResult<T extends Validator<Value, "required",
|
|
|
4867
4868
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
4868
4869
|
pageStatus: import("convex/values").VUnion<"SplitRecommended" | "SplitRequired" | null | undefined, [import("convex/values").VLiteral<"SplitRecommended", "required">, import("convex/values").VLiteral<"SplitRequired", "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
4869
4870
|
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus">;
|
|
4870
|
-
export declare const
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
type: "tool-call";
|
|
4874
|
-
toolCallId: string;
|
|
4875
|
-
toolName: string;
|
|
4876
|
-
args: any;
|
|
4877
|
-
} | {
|
|
4878
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4879
|
-
args?: any;
|
|
4880
|
-
providerExecuted?: boolean | undefined;
|
|
4881
|
-
isError?: boolean | undefined;
|
|
4882
|
-
experimental_content?: ({
|
|
4883
|
-
type: "text";
|
|
4884
|
-
text: string;
|
|
4885
|
-
} | {
|
|
4886
|
-
mimeType?: string | undefined;
|
|
4887
|
-
type: "image";
|
|
4888
|
-
data: string;
|
|
4889
|
-
})[] | undefined;
|
|
4890
|
-
type: "tool-result";
|
|
4891
|
-
toolCallId: string;
|
|
4892
|
-
toolName: string;
|
|
4893
|
-
result: any;
|
|
4894
|
-
} | {
|
|
4895
|
-
type: "text-delta";
|
|
4896
|
-
textDelta: string;
|
|
4897
|
-
} | {
|
|
4898
|
-
type: "reasoning";
|
|
4899
|
-
textDelta: string;
|
|
4900
|
-
} | {
|
|
4901
|
-
type: "source";
|
|
4902
|
-
source: {
|
|
4903
|
-
title?: string | undefined;
|
|
4904
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4905
|
-
url?: string | undefined;
|
|
4906
|
-
id: string;
|
|
4907
|
-
sourceType: "url";
|
|
4908
|
-
};
|
|
4909
|
-
} | {
|
|
4910
|
-
type: "tool-call-streaming-start";
|
|
4911
|
-
toolCallId: string;
|
|
4912
|
-
toolName: string;
|
|
4913
|
-
} | {
|
|
4914
|
-
type: "tool-call-delta";
|
|
4915
|
-
toolCallId: string;
|
|
4916
|
-
toolName: string;
|
|
4917
|
-
argsTextDelta: string;
|
|
4918
|
-
}, [import("convex/values").VObject<{
|
|
4919
|
-
type: "text-delta";
|
|
4920
|
-
textDelta: string;
|
|
4871
|
+
export declare const vStreamCursor: import("convex/values").VObject<{
|
|
4872
|
+
streamId: string;
|
|
4873
|
+
cursor: number;
|
|
4921
4874
|
}, {
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
}, "required", "
|
|
4925
|
-
|
|
4926
|
-
|
|
4875
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
4876
|
+
cursor: import("convex/values").VFloat64<number, "required">;
|
|
4877
|
+
}, "required", "streamId" | "cursor">;
|
|
4878
|
+
export type StreamCursor = Infer<typeof vStreamCursor>;
|
|
4879
|
+
export declare const vStreamArgs: import("convex/values").VUnion<{
|
|
4880
|
+
startOrder?: number | undefined;
|
|
4881
|
+
kind: "list";
|
|
4882
|
+
} | {
|
|
4883
|
+
kind: "deltas";
|
|
4884
|
+
cursors: {
|
|
4885
|
+
streamId: string;
|
|
4886
|
+
cursor: number;
|
|
4887
|
+
}[];
|
|
4888
|
+
} | undefined, [import("convex/values").VObject<{
|
|
4889
|
+
startOrder?: number | undefined;
|
|
4890
|
+
kind: "list";
|
|
4927
4891
|
}, {
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
}, "required", "
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
id: string;
|
|
4937
|
-
sourceType: "url";
|
|
4938
|
-
};
|
|
4892
|
+
kind: import("convex/values").VLiteral<"list", "required">;
|
|
4893
|
+
startOrder: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4894
|
+
}, "required", "kind" | "startOrder">, import("convex/values").VObject<{
|
|
4895
|
+
kind: "deltas";
|
|
4896
|
+
cursors: {
|
|
4897
|
+
streamId: string;
|
|
4898
|
+
cursor: number;
|
|
4899
|
+
}[];
|
|
4939
4900
|
}, {
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4901
|
+
kind: import("convex/values").VLiteral<"deltas", "required">;
|
|
4902
|
+
cursors: import("convex/values").VArray<{
|
|
4903
|
+
streamId: string;
|
|
4904
|
+
cursor: number;
|
|
4905
|
+
}[], import("convex/values").VObject<{
|
|
4906
|
+
streamId: string;
|
|
4907
|
+
cursor: number;
|
|
4947
4908
|
}, {
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
toolCallId: string;
|
|
4959
|
-
toolName: string;
|
|
4960
|
-
args: any;
|
|
4961
|
-
}, {
|
|
4962
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
4963
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
4964
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
4965
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
4966
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
4967
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4968
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
4909
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
4910
|
+
cursor: import("convex/values").VFloat64<number, "required">;
|
|
4911
|
+
}, "required", "streamId" | "cursor">, "required">;
|
|
4912
|
+
}, "required", "kind" | "cursors">], "optional", "kind" | "startOrder" | "cursors">;
|
|
4913
|
+
export type StreamArgs = Infer<typeof vStreamArgs>;
|
|
4914
|
+
export declare const vStreamMessage: import("convex/values").VObject<{
|
|
4915
|
+
userId?: string | undefined;
|
|
4916
|
+
agentName?: string | undefined;
|
|
4917
|
+
model?: string | undefined;
|
|
4918
|
+
provider?: string | undefined;
|
|
4969
4919
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
type: "text";
|
|
4975
|
-
text: string;
|
|
4976
|
-
} | {
|
|
4977
|
-
mimeType?: string | undefined;
|
|
4978
|
-
type: "image";
|
|
4979
|
-
data: string;
|
|
4980
|
-
})[] | undefined;
|
|
4981
|
-
type: "tool-result";
|
|
4982
|
-
toolCallId: string;
|
|
4983
|
-
toolName: string;
|
|
4984
|
-
result: any;
|
|
4920
|
+
status: "streaming" | "finished" | "aborted";
|
|
4921
|
+
order: number;
|
|
4922
|
+
stepOrder: number;
|
|
4923
|
+
streamId: string;
|
|
4985
4924
|
}, {
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4925
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
4926
|
+
status: import("convex/values").VUnion<"streaming" | "finished" | "aborted", [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"finished", "required">, import("convex/values").VLiteral<"aborted", "required">], "required", never>;
|
|
4927
|
+
order: import("convex/values").VFloat64<number, "required">;
|
|
4928
|
+
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
4929
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
4930
|
+
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
4931
|
+
model: import("convex/values").VString<string | undefined, "optional">;
|
|
4932
|
+
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
4990
4933
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
mimeType?: string | undefined;
|
|
4999
|
-
type: "image";
|
|
5000
|
-
data: string;
|
|
5001
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
5002
|
-
type: "text";
|
|
5003
|
-
text: string;
|
|
5004
|
-
} | {
|
|
5005
|
-
mimeType?: string | undefined;
|
|
5006
|
-
type: "image";
|
|
5007
|
-
data: string;
|
|
5008
|
-
}, [import("convex/values").VObject<{
|
|
5009
|
-
type: "text";
|
|
5010
|
-
text: string;
|
|
5011
|
-
}, {
|
|
5012
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
5013
|
-
text: import("convex/values").VString<string, "required">;
|
|
5014
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
5015
|
-
mimeType?: string | undefined;
|
|
5016
|
-
type: "image";
|
|
5017
|
-
data: string;
|
|
5018
|
-
}, {
|
|
5019
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
5020
|
-
data: import("convex/values").VString<string, "required">;
|
|
5021
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
5022
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
5023
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VObject<{
|
|
5024
|
-
type: "tool-call-streaming-start";
|
|
5025
|
-
toolCallId: string;
|
|
5026
|
-
toolName: string;
|
|
5027
|
-
}, {
|
|
5028
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
5029
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5030
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5031
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
5032
|
-
type: "tool-call-delta";
|
|
5033
|
-
toolCallId: string;
|
|
5034
|
-
toolName: string;
|
|
5035
|
-
argsTextDelta: string;
|
|
4934
|
+
}, "required", "status" | "userId" | "order" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId">;
|
|
4935
|
+
export type StreamMessage = Infer<typeof vStreamMessage>;
|
|
4936
|
+
export declare const vStreamDelta: import("convex/values").VObject<{
|
|
4937
|
+
streamId: string;
|
|
4938
|
+
start: number;
|
|
4939
|
+
end: number;
|
|
4940
|
+
parts: any[];
|
|
5036
4941
|
}, {
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "source" | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">;
|
|
5042
|
-
export declare const vTextStreamPartV5: import("convex/values").VUnion<{
|
|
5043
|
-
title?: string | undefined;
|
|
5044
|
-
type?: "source" | undefined;
|
|
5045
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5046
|
-
url?: string | undefined;
|
|
5047
|
-
id: string;
|
|
5048
|
-
sourceType: "url";
|
|
5049
|
-
} | {
|
|
5050
|
-
filename?: string | undefined;
|
|
5051
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5052
|
-
id: string;
|
|
5053
|
-
title: string;
|
|
5054
|
-
type: "source";
|
|
5055
|
-
sourceType: "document";
|
|
5056
|
-
mediaType: string;
|
|
5057
|
-
} | {
|
|
5058
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5059
|
-
id: string;
|
|
5060
|
-
type: "text-delta";
|
|
5061
|
-
text: string;
|
|
5062
|
-
} | {
|
|
5063
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5064
|
-
id: string;
|
|
5065
|
-
type: "reasoning-delta";
|
|
5066
|
-
text: string;
|
|
5067
|
-
} | {
|
|
5068
|
-
providerExecuted?: boolean | undefined;
|
|
5069
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5070
|
-
dynamic?: boolean | undefined;
|
|
5071
|
-
type: "tool-call";
|
|
5072
|
-
toolCallId: string;
|
|
5073
|
-
toolName: string;
|
|
5074
|
-
input: any;
|
|
5075
|
-
} | {
|
|
5076
|
-
providerExecuted?: boolean | undefined;
|
|
5077
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5078
|
-
dynamic?: boolean | undefined;
|
|
5079
|
-
id: string;
|
|
5080
|
-
type: "tool-input-start";
|
|
5081
|
-
toolName: string;
|
|
5082
|
-
} | {
|
|
5083
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5084
|
-
id: string;
|
|
5085
|
-
type: "tool-input-delta";
|
|
5086
|
-
delta: string;
|
|
5087
|
-
} | {
|
|
5088
|
-
providerExecuted?: boolean | undefined;
|
|
5089
|
-
input?: any;
|
|
5090
|
-
dynamic?: boolean | undefined;
|
|
5091
|
-
output?: any;
|
|
5092
|
-
type: "tool-result";
|
|
5093
|
-
toolCallId: string;
|
|
5094
|
-
toolName: string;
|
|
5095
|
-
} | {
|
|
5096
|
-
type: "raw";
|
|
5097
|
-
rawValue: any;
|
|
5098
|
-
}, [import("convex/values").VObject<{
|
|
5099
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5100
|
-
id: string;
|
|
5101
|
-
type: "text-delta";
|
|
5102
|
-
text: string;
|
|
5103
|
-
}, {
|
|
5104
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
5105
|
-
id: import("convex/values").VString<string, "required">;
|
|
5106
|
-
text: import("convex/values").VString<string, "required">;
|
|
5107
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5108
|
-
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
5109
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5110
|
-
id: string;
|
|
5111
|
-
type: "reasoning-delta";
|
|
5112
|
-
text: string;
|
|
5113
|
-
}, {
|
|
5114
|
-
type: import("convex/values").VLiteral<"reasoning-delta", "required">;
|
|
5115
|
-
id: import("convex/values").VString<string, "required">;
|
|
5116
|
-
text: import("convex/values").VString<string, "required">;
|
|
5117
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5118
|
-
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VUnion<{
|
|
5119
|
-
title?: string | undefined;
|
|
5120
|
-
type?: "source" | undefined;
|
|
5121
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5122
|
-
url?: string | undefined;
|
|
5123
|
-
id: string;
|
|
5124
|
-
sourceType: "url";
|
|
5125
|
-
} | {
|
|
5126
|
-
filename?: string | undefined;
|
|
5127
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5128
|
-
id: string;
|
|
5129
|
-
title: string;
|
|
5130
|
-
type: "source";
|
|
5131
|
-
sourceType: "document";
|
|
5132
|
-
mediaType: string;
|
|
5133
|
-
}, [import("convex/values").VObject<{
|
|
5134
|
-
title?: string | undefined;
|
|
5135
|
-
type?: "source" | undefined;
|
|
5136
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5137
|
-
url?: string | undefined;
|
|
5138
|
-
id: string;
|
|
5139
|
-
sourceType: "url";
|
|
5140
|
-
}, {
|
|
5141
|
-
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
5142
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
5143
|
-
id: import("convex/values").VString<string, "required">;
|
|
5144
|
-
url: import("convex/values").VString<string | undefined, "optional">;
|
|
5145
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5146
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5147
|
-
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
5148
|
-
filename?: string | undefined;
|
|
5149
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5150
|
-
id: string;
|
|
5151
|
-
title: string;
|
|
5152
|
-
type: "source";
|
|
5153
|
-
sourceType: "document";
|
|
5154
|
-
mediaType: string;
|
|
5155
|
-
}, {
|
|
5156
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
5157
|
-
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
5158
|
-
id: import("convex/values").VString<string, "required">;
|
|
5159
|
-
mediaType: import("convex/values").VString<string, "required">;
|
|
5160
|
-
title: import("convex/values").VString<string, "required">;
|
|
5161
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
5162
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5163
|
-
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
5164
|
-
providerExecuted?: boolean | undefined;
|
|
5165
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5166
|
-
dynamic?: boolean | undefined;
|
|
5167
|
-
type: "tool-call";
|
|
5168
|
-
toolCallId: string;
|
|
5169
|
-
toolName: string;
|
|
5170
|
-
input: any;
|
|
5171
|
-
}, {
|
|
5172
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
5173
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5174
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5175
|
-
input: import("convex/values").VAny<any, "required", string>;
|
|
5176
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5177
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5178
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5179
|
-
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}`>, import("convex/values").VObject<{
|
|
5180
|
-
providerExecuted?: boolean | undefined;
|
|
5181
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5182
|
-
dynamic?: boolean | undefined;
|
|
5183
|
-
id: string;
|
|
5184
|
-
type: "tool-input-start";
|
|
5185
|
-
toolName: string;
|
|
5186
|
-
}, {
|
|
5187
|
-
type: import("convex/values").VLiteral<"tool-input-start", "required">;
|
|
5188
|
-
id: import("convex/values").VString<string, "required">;
|
|
5189
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5190
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5191
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5192
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5193
|
-
}, "required", "id" | "type" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "dynamic">, import("convex/values").VObject<{
|
|
5194
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5195
|
-
id: string;
|
|
5196
|
-
type: "tool-input-delta";
|
|
5197
|
-
delta: string;
|
|
5198
|
-
}, {
|
|
5199
|
-
type: import("convex/values").VLiteral<"tool-input-delta", "required">;
|
|
5200
|
-
id: import("convex/values").VString<string, "required">;
|
|
5201
|
-
delta: import("convex/values").VString<string, "required">;
|
|
5202
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5203
|
-
}, "required", "id" | "type" | "providerMetadata" | `providerMetadata.${string}` | "delta">, import("convex/values").VObject<{
|
|
5204
|
-
providerExecuted?: boolean | undefined;
|
|
5205
|
-
input?: any;
|
|
5206
|
-
dynamic?: boolean | undefined;
|
|
5207
|
-
output?: any;
|
|
5208
|
-
type: "tool-result";
|
|
5209
|
-
toolCallId: string;
|
|
5210
|
-
toolName: string;
|
|
5211
|
-
}, {
|
|
5212
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
5213
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5214
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5215
|
-
input: import("convex/values").VAny<any, "optional", string>;
|
|
5216
|
-
output: import("convex/values").VAny<any, "optional", string>;
|
|
5217
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5218
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5219
|
-
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "input" | "dynamic" | `input.${string}` | "output" | `output.${string}`>, import("convex/values").VObject<{
|
|
5220
|
-
type: "raw";
|
|
5221
|
-
rawValue: any;
|
|
5222
|
-
}, {
|
|
5223
|
-
type: import("convex/values").VLiteral<"raw", "required">;
|
|
5224
|
-
rawValue: import("convex/values").VAny<any, "required", string>;
|
|
5225
|
-
}, "required", "type" | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>;
|
|
5226
|
-
export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
5227
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5228
|
-
providerExecuted?: boolean | undefined;
|
|
5229
|
-
type: "tool-call";
|
|
5230
|
-
toolCallId: string;
|
|
5231
|
-
toolName: string;
|
|
5232
|
-
args: any;
|
|
5233
|
-
} | {
|
|
5234
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5235
|
-
args?: any;
|
|
5236
|
-
providerExecuted?: boolean | undefined;
|
|
5237
|
-
isError?: boolean | undefined;
|
|
5238
|
-
experimental_content?: ({
|
|
5239
|
-
type: "text";
|
|
5240
|
-
text: string;
|
|
5241
|
-
} | {
|
|
5242
|
-
mimeType?: string | undefined;
|
|
5243
|
-
type: "image";
|
|
5244
|
-
data: string;
|
|
5245
|
-
})[] | undefined;
|
|
5246
|
-
type: "tool-result";
|
|
5247
|
-
toolCallId: string;
|
|
5248
|
-
toolName: string;
|
|
5249
|
-
result: any;
|
|
5250
|
-
} | {
|
|
5251
|
-
title?: string | undefined;
|
|
5252
|
-
type?: "source" | undefined;
|
|
5253
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5254
|
-
url?: string | undefined;
|
|
5255
|
-
id: string;
|
|
5256
|
-
sourceType: "url";
|
|
5257
|
-
} | {
|
|
5258
|
-
filename?: string | undefined;
|
|
5259
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5260
|
-
id: string;
|
|
5261
|
-
title: string;
|
|
5262
|
-
type: "source";
|
|
5263
|
-
sourceType: "document";
|
|
5264
|
-
mediaType: string;
|
|
5265
|
-
} | {
|
|
5266
|
-
type: "text-delta";
|
|
5267
|
-
textDelta: string;
|
|
5268
|
-
} | {
|
|
5269
|
-
type: "reasoning";
|
|
5270
|
-
textDelta: string;
|
|
5271
|
-
} | {
|
|
5272
|
-
type: "source";
|
|
5273
|
-
source: {
|
|
5274
|
-
title?: string | undefined;
|
|
5275
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5276
|
-
url?: string | undefined;
|
|
5277
|
-
id: string;
|
|
5278
|
-
sourceType: "url";
|
|
5279
|
-
};
|
|
5280
|
-
} | {
|
|
5281
|
-
type: "tool-call-streaming-start";
|
|
5282
|
-
toolCallId: string;
|
|
5283
|
-
toolName: string;
|
|
5284
|
-
} | {
|
|
5285
|
-
type: "tool-call-delta";
|
|
5286
|
-
toolCallId: string;
|
|
5287
|
-
toolName: string;
|
|
5288
|
-
argsTextDelta: string;
|
|
5289
|
-
} | {
|
|
5290
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5291
|
-
id: string;
|
|
5292
|
-
type: "text-delta";
|
|
5293
|
-
text: string;
|
|
5294
|
-
} | {
|
|
5295
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5296
|
-
id: string;
|
|
5297
|
-
type: "reasoning-delta";
|
|
5298
|
-
text: string;
|
|
5299
|
-
} | {
|
|
5300
|
-
providerExecuted?: boolean | undefined;
|
|
5301
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5302
|
-
dynamic?: boolean | undefined;
|
|
5303
|
-
type: "tool-call";
|
|
5304
|
-
toolCallId: string;
|
|
5305
|
-
toolName: string;
|
|
5306
|
-
input: any;
|
|
5307
|
-
} | {
|
|
5308
|
-
providerExecuted?: boolean | undefined;
|
|
5309
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5310
|
-
dynamic?: boolean | undefined;
|
|
5311
|
-
id: string;
|
|
5312
|
-
type: "tool-input-start";
|
|
5313
|
-
toolName: string;
|
|
5314
|
-
} | {
|
|
5315
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5316
|
-
id: string;
|
|
5317
|
-
type: "tool-input-delta";
|
|
5318
|
-
delta: string;
|
|
5319
|
-
} | {
|
|
5320
|
-
providerExecuted?: boolean | undefined;
|
|
5321
|
-
input?: any;
|
|
5322
|
-
dynamic?: boolean | undefined;
|
|
5323
|
-
output?: any;
|
|
5324
|
-
type: "tool-result";
|
|
5325
|
-
toolCallId: string;
|
|
5326
|
-
toolName: string;
|
|
5327
|
-
} | {
|
|
5328
|
-
type: "raw";
|
|
5329
|
-
rawValue: any;
|
|
5330
|
-
}, [import("convex/values").VUnion<{
|
|
5331
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5332
|
-
providerExecuted?: boolean | undefined;
|
|
5333
|
-
type: "tool-call";
|
|
5334
|
-
toolCallId: string;
|
|
5335
|
-
toolName: string;
|
|
5336
|
-
args: any;
|
|
5337
|
-
} | {
|
|
5338
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5339
|
-
args?: any;
|
|
5340
|
-
providerExecuted?: boolean | undefined;
|
|
5341
|
-
isError?: boolean | undefined;
|
|
5342
|
-
experimental_content?: ({
|
|
5343
|
-
type: "text";
|
|
5344
|
-
text: string;
|
|
5345
|
-
} | {
|
|
5346
|
-
mimeType?: string | undefined;
|
|
5347
|
-
type: "image";
|
|
5348
|
-
data: string;
|
|
5349
|
-
})[] | undefined;
|
|
5350
|
-
type: "tool-result";
|
|
5351
|
-
toolCallId: string;
|
|
5352
|
-
toolName: string;
|
|
5353
|
-
result: any;
|
|
5354
|
-
} | {
|
|
5355
|
-
type: "text-delta";
|
|
5356
|
-
textDelta: string;
|
|
5357
|
-
} | {
|
|
5358
|
-
type: "reasoning";
|
|
5359
|
-
textDelta: string;
|
|
5360
|
-
} | {
|
|
5361
|
-
type: "source";
|
|
5362
|
-
source: {
|
|
5363
|
-
title?: string | undefined;
|
|
5364
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5365
|
-
url?: string | undefined;
|
|
5366
|
-
id: string;
|
|
5367
|
-
sourceType: "url";
|
|
5368
|
-
};
|
|
5369
|
-
} | {
|
|
5370
|
-
type: "tool-call-streaming-start";
|
|
5371
|
-
toolCallId: string;
|
|
5372
|
-
toolName: string;
|
|
5373
|
-
} | {
|
|
5374
|
-
type: "tool-call-delta";
|
|
5375
|
-
toolCallId: string;
|
|
5376
|
-
toolName: string;
|
|
5377
|
-
argsTextDelta: string;
|
|
5378
|
-
}, [import("convex/values").VObject<{
|
|
5379
|
-
type: "text-delta";
|
|
5380
|
-
textDelta: string;
|
|
5381
|
-
}, {
|
|
5382
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
5383
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
5384
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
5385
|
-
type: "reasoning";
|
|
5386
|
-
textDelta: string;
|
|
5387
|
-
}, {
|
|
5388
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
5389
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
5390
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
5391
|
-
type: "source";
|
|
5392
|
-
source: {
|
|
5393
|
-
title?: string | undefined;
|
|
5394
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5395
|
-
url?: string | undefined;
|
|
5396
|
-
id: string;
|
|
5397
|
-
sourceType: "url";
|
|
5398
|
-
};
|
|
5399
|
-
}, {
|
|
5400
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
5401
|
-
source: import("convex/values").VObject<{
|
|
5402
|
-
title?: string | undefined;
|
|
5403
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5404
|
-
url?: string | undefined;
|
|
5405
|
-
id: string;
|
|
5406
|
-
sourceType: "url";
|
|
5407
|
-
}, {
|
|
5408
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
5409
|
-
id: import("convex/values").VString<string, "required">;
|
|
5410
|
-
url: import("convex/values").VString<string | undefined, "optional">;
|
|
5411
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5412
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5413
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
5414
|
-
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
5415
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5416
|
-
providerExecuted?: boolean | undefined;
|
|
5417
|
-
type: "tool-call";
|
|
5418
|
-
toolCallId: string;
|
|
5419
|
-
toolName: string;
|
|
5420
|
-
args: any;
|
|
5421
|
-
}, {
|
|
5422
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
5423
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5424
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5425
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
5426
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5427
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5428
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
5429
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5430
|
-
args?: any;
|
|
5431
|
-
providerExecuted?: boolean | undefined;
|
|
5432
|
-
isError?: boolean | undefined;
|
|
5433
|
-
experimental_content?: ({
|
|
5434
|
-
type: "text";
|
|
5435
|
-
text: string;
|
|
5436
|
-
} | {
|
|
5437
|
-
mimeType?: string | undefined;
|
|
5438
|
-
type: "image";
|
|
5439
|
-
data: string;
|
|
5440
|
-
})[] | undefined;
|
|
5441
|
-
type: "tool-result";
|
|
5442
|
-
toolCallId: string;
|
|
5443
|
-
toolName: string;
|
|
5444
|
-
result: any;
|
|
5445
|
-
}, {
|
|
5446
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
5447
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5448
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5449
|
-
result: import("convex/values").VAny<any, "required", string>;
|
|
5450
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5451
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5452
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5453
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
5454
|
-
experimental_content: import("convex/values").VArray<({
|
|
5455
|
-
type: "text";
|
|
5456
|
-
text: string;
|
|
5457
|
-
} | {
|
|
5458
|
-
mimeType?: string | undefined;
|
|
5459
|
-
type: "image";
|
|
5460
|
-
data: string;
|
|
5461
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
5462
|
-
type: "text";
|
|
5463
|
-
text: string;
|
|
5464
|
-
} | {
|
|
5465
|
-
mimeType?: string | undefined;
|
|
5466
|
-
type: "image";
|
|
5467
|
-
data: string;
|
|
5468
|
-
}, [import("convex/values").VObject<{
|
|
5469
|
-
type: "text";
|
|
5470
|
-
text: string;
|
|
5471
|
-
}, {
|
|
5472
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
5473
|
-
text: import("convex/values").VString<string, "required">;
|
|
5474
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
5475
|
-
mimeType?: string | undefined;
|
|
5476
|
-
type: "image";
|
|
5477
|
-
data: string;
|
|
5478
|
-
}, {
|
|
5479
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
5480
|
-
data: import("convex/values").VString<string, "required">;
|
|
5481
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
5482
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
5483
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VObject<{
|
|
5484
|
-
type: "tool-call-streaming-start";
|
|
5485
|
-
toolCallId: string;
|
|
5486
|
-
toolName: string;
|
|
5487
|
-
}, {
|
|
5488
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
5489
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5490
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5491
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
5492
|
-
type: "tool-call-delta";
|
|
5493
|
-
toolCallId: string;
|
|
5494
|
-
toolName: string;
|
|
5495
|
-
argsTextDelta: string;
|
|
5496
|
-
}, {
|
|
5497
|
-
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
5498
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5499
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5500
|
-
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
5501
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "source" | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, import("convex/values").VUnion<{
|
|
5502
|
-
title?: string | undefined;
|
|
5503
|
-
type?: "source" | undefined;
|
|
5504
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5505
|
-
url?: string | undefined;
|
|
5506
|
-
id: string;
|
|
5507
|
-
sourceType: "url";
|
|
5508
|
-
} | {
|
|
5509
|
-
filename?: string | undefined;
|
|
5510
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5511
|
-
id: string;
|
|
5512
|
-
title: string;
|
|
5513
|
-
type: "source";
|
|
5514
|
-
sourceType: "document";
|
|
5515
|
-
mediaType: string;
|
|
5516
|
-
} | {
|
|
5517
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5518
|
-
id: string;
|
|
5519
|
-
type: "text-delta";
|
|
5520
|
-
text: string;
|
|
5521
|
-
} | {
|
|
5522
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5523
|
-
id: string;
|
|
5524
|
-
type: "reasoning-delta";
|
|
5525
|
-
text: string;
|
|
5526
|
-
} | {
|
|
5527
|
-
providerExecuted?: boolean | undefined;
|
|
5528
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5529
|
-
dynamic?: boolean | undefined;
|
|
5530
|
-
type: "tool-call";
|
|
5531
|
-
toolCallId: string;
|
|
5532
|
-
toolName: string;
|
|
5533
|
-
input: any;
|
|
5534
|
-
} | {
|
|
5535
|
-
providerExecuted?: boolean | undefined;
|
|
5536
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5537
|
-
dynamic?: boolean | undefined;
|
|
5538
|
-
id: string;
|
|
5539
|
-
type: "tool-input-start";
|
|
5540
|
-
toolName: string;
|
|
5541
|
-
} | {
|
|
5542
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5543
|
-
id: string;
|
|
5544
|
-
type: "tool-input-delta";
|
|
5545
|
-
delta: string;
|
|
5546
|
-
} | {
|
|
5547
|
-
providerExecuted?: boolean | undefined;
|
|
5548
|
-
input?: any;
|
|
5549
|
-
dynamic?: boolean | undefined;
|
|
5550
|
-
output?: any;
|
|
5551
|
-
type: "tool-result";
|
|
5552
|
-
toolCallId: string;
|
|
5553
|
-
toolName: string;
|
|
5554
|
-
} | {
|
|
5555
|
-
type: "raw";
|
|
5556
|
-
rawValue: any;
|
|
5557
|
-
}, [import("convex/values").VObject<{
|
|
5558
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5559
|
-
id: string;
|
|
5560
|
-
type: "text-delta";
|
|
5561
|
-
text: string;
|
|
5562
|
-
}, {
|
|
5563
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
5564
|
-
id: import("convex/values").VString<string, "required">;
|
|
5565
|
-
text: import("convex/values").VString<string, "required">;
|
|
5566
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5567
|
-
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
5568
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5569
|
-
id: string;
|
|
5570
|
-
type: "reasoning-delta";
|
|
5571
|
-
text: string;
|
|
5572
|
-
}, {
|
|
5573
|
-
type: import("convex/values").VLiteral<"reasoning-delta", "required">;
|
|
5574
|
-
id: import("convex/values").VString<string, "required">;
|
|
5575
|
-
text: import("convex/values").VString<string, "required">;
|
|
5576
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5577
|
-
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VUnion<{
|
|
5578
|
-
title?: string | undefined;
|
|
5579
|
-
type?: "source" | undefined;
|
|
5580
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5581
|
-
url?: string | undefined;
|
|
5582
|
-
id: string;
|
|
5583
|
-
sourceType: "url";
|
|
5584
|
-
} | {
|
|
5585
|
-
filename?: string | undefined;
|
|
5586
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5587
|
-
id: string;
|
|
5588
|
-
title: string;
|
|
5589
|
-
type: "source";
|
|
5590
|
-
sourceType: "document";
|
|
5591
|
-
mediaType: string;
|
|
5592
|
-
}, [import("convex/values").VObject<{
|
|
5593
|
-
title?: string | undefined;
|
|
5594
|
-
type?: "source" | undefined;
|
|
5595
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5596
|
-
url?: string | undefined;
|
|
5597
|
-
id: string;
|
|
5598
|
-
sourceType: "url";
|
|
5599
|
-
}, {
|
|
5600
|
-
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
5601
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
5602
|
-
id: import("convex/values").VString<string, "required">;
|
|
5603
|
-
url: import("convex/values").VString<string | undefined, "optional">;
|
|
5604
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5605
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5606
|
-
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
5607
|
-
filename?: string | undefined;
|
|
5608
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5609
|
-
id: string;
|
|
5610
|
-
title: string;
|
|
5611
|
-
type: "source";
|
|
5612
|
-
sourceType: "document";
|
|
5613
|
-
mediaType: string;
|
|
5614
|
-
}, {
|
|
5615
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
5616
|
-
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
5617
|
-
id: import("convex/values").VString<string, "required">;
|
|
5618
|
-
mediaType: import("convex/values").VString<string, "required">;
|
|
5619
|
-
title: import("convex/values").VString<string, "required">;
|
|
5620
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
5621
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5622
|
-
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
5623
|
-
providerExecuted?: boolean | undefined;
|
|
5624
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5625
|
-
dynamic?: boolean | undefined;
|
|
5626
|
-
type: "tool-call";
|
|
5627
|
-
toolCallId: string;
|
|
5628
|
-
toolName: string;
|
|
5629
|
-
input: any;
|
|
5630
|
-
}, {
|
|
5631
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
5632
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5633
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5634
|
-
input: import("convex/values").VAny<any, "required", string>;
|
|
5635
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5636
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5637
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5638
|
-
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}`>, import("convex/values").VObject<{
|
|
5639
|
-
providerExecuted?: boolean | undefined;
|
|
5640
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5641
|
-
dynamic?: boolean | undefined;
|
|
5642
|
-
id: string;
|
|
5643
|
-
type: "tool-input-start";
|
|
5644
|
-
toolName: string;
|
|
5645
|
-
}, {
|
|
5646
|
-
type: import("convex/values").VLiteral<"tool-input-start", "required">;
|
|
5647
|
-
id: import("convex/values").VString<string, "required">;
|
|
5648
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5649
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5650
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5651
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5652
|
-
}, "required", "id" | "type" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "dynamic">, import("convex/values").VObject<{
|
|
5653
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5654
|
-
id: string;
|
|
5655
|
-
type: "tool-input-delta";
|
|
5656
|
-
delta: string;
|
|
5657
|
-
}, {
|
|
5658
|
-
type: import("convex/values").VLiteral<"tool-input-delta", "required">;
|
|
5659
|
-
id: import("convex/values").VString<string, "required">;
|
|
5660
|
-
delta: import("convex/values").VString<string, "required">;
|
|
5661
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5662
|
-
}, "required", "id" | "type" | "providerMetadata" | `providerMetadata.${string}` | "delta">, import("convex/values").VObject<{
|
|
5663
|
-
providerExecuted?: boolean | undefined;
|
|
5664
|
-
input?: any;
|
|
5665
|
-
dynamic?: boolean | undefined;
|
|
5666
|
-
output?: any;
|
|
5667
|
-
type: "tool-result";
|
|
5668
|
-
toolCallId: string;
|
|
5669
|
-
toolName: string;
|
|
5670
|
-
}, {
|
|
5671
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
5672
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5673
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5674
|
-
input: import("convex/values").VAny<any, "optional", string>;
|
|
5675
|
-
output: import("convex/values").VAny<any, "optional", string>;
|
|
5676
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5677
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5678
|
-
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "input" | "dynamic" | `input.${string}` | "output" | `output.${string}`>, import("convex/values").VObject<{
|
|
5679
|
-
type: "raw";
|
|
5680
|
-
rawValue: any;
|
|
5681
|
-
}, {
|
|
5682
|
-
type: import("convex/values").VLiteral<"raw", "required">;
|
|
5683
|
-
rawValue: import("convex/values").VAny<any, "required", string>;
|
|
5684
|
-
}, "required", "type" | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "providerMetadata" | "source" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta" | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>;
|
|
5685
|
-
export type TextStreamPart = Infer<typeof vTextStreamPart>;
|
|
5686
|
-
export declare const vStreamCursor: import("convex/values").VObject<{
|
|
5687
|
-
streamId: string;
|
|
5688
|
-
cursor: number;
|
|
5689
|
-
}, {
|
|
5690
|
-
streamId: import("convex/values").VString<string, "required">;
|
|
5691
|
-
cursor: import("convex/values").VFloat64<number, "required">;
|
|
5692
|
-
}, "required", "streamId" | "cursor">;
|
|
5693
|
-
export type StreamCursor = Infer<typeof vStreamCursor>;
|
|
5694
|
-
export declare const vStreamArgs: import("convex/values").VUnion<{
|
|
5695
|
-
startOrder?: number | undefined;
|
|
5696
|
-
kind: "list";
|
|
5697
|
-
} | {
|
|
5698
|
-
kind: "deltas";
|
|
5699
|
-
cursors: {
|
|
5700
|
-
streamId: string;
|
|
5701
|
-
cursor: number;
|
|
5702
|
-
}[];
|
|
5703
|
-
} | undefined, [import("convex/values").VObject<{
|
|
5704
|
-
startOrder?: number | undefined;
|
|
5705
|
-
kind: "list";
|
|
5706
|
-
}, {
|
|
5707
|
-
kind: import("convex/values").VLiteral<"list", "required">;
|
|
5708
|
-
startOrder: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5709
|
-
}, "required", "kind" | "startOrder">, import("convex/values").VObject<{
|
|
5710
|
-
kind: "deltas";
|
|
5711
|
-
cursors: {
|
|
5712
|
-
streamId: string;
|
|
5713
|
-
cursor: number;
|
|
5714
|
-
}[];
|
|
5715
|
-
}, {
|
|
5716
|
-
kind: import("convex/values").VLiteral<"deltas", "required">;
|
|
5717
|
-
cursors: import("convex/values").VArray<{
|
|
5718
|
-
streamId: string;
|
|
5719
|
-
cursor: number;
|
|
5720
|
-
}[], import("convex/values").VObject<{
|
|
5721
|
-
streamId: string;
|
|
5722
|
-
cursor: number;
|
|
5723
|
-
}, {
|
|
5724
|
-
streamId: import("convex/values").VString<string, "required">;
|
|
5725
|
-
cursor: import("convex/values").VFloat64<number, "required">;
|
|
5726
|
-
}, "required", "streamId" | "cursor">, "required">;
|
|
5727
|
-
}, "required", "kind" | "cursors">], "optional", "kind" | "startOrder" | "cursors">;
|
|
5728
|
-
export type StreamArgs = Infer<typeof vStreamArgs>;
|
|
5729
|
-
export declare const vStreamMessage: import("convex/values").VObject<{
|
|
5730
|
-
userId?: string | undefined;
|
|
5731
|
-
agentName?: string | undefined;
|
|
5732
|
-
model?: string | undefined;
|
|
5733
|
-
provider?: string | undefined;
|
|
5734
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5735
|
-
status: "streaming" | "finished" | "aborted";
|
|
5736
|
-
order: number;
|
|
5737
|
-
stepOrder: number;
|
|
5738
|
-
streamId: string;
|
|
5739
|
-
}, {
|
|
5740
|
-
streamId: import("convex/values").VString<string, "required">;
|
|
5741
|
-
status: import("convex/values").VUnion<"streaming" | "finished" | "aborted", [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"finished", "required">, import("convex/values").VLiteral<"aborted", "required">], "required", never>;
|
|
5742
|
-
order: import("convex/values").VFloat64<number, "required">;
|
|
5743
|
-
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
5744
|
-
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
5745
|
-
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
5746
|
-
model: import("convex/values").VString<string | undefined, "optional">;
|
|
5747
|
-
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
5748
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5749
|
-
}, "required", "status" | "userId" | "order" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId">;
|
|
5750
|
-
export type StreamMessage = Infer<typeof vStreamMessage>;
|
|
5751
|
-
export declare const vStreamDelta: import("convex/values").VObject<{
|
|
5752
|
-
streamId: string;
|
|
5753
|
-
start: number;
|
|
5754
|
-
end: number;
|
|
5755
|
-
parts: ({
|
|
5756
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5757
|
-
providerExecuted?: boolean | undefined;
|
|
5758
|
-
type: "tool-call";
|
|
5759
|
-
toolCallId: string;
|
|
5760
|
-
toolName: string;
|
|
5761
|
-
args: any;
|
|
5762
|
-
} | {
|
|
5763
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5764
|
-
args?: any;
|
|
5765
|
-
providerExecuted?: boolean | undefined;
|
|
5766
|
-
isError?: boolean | undefined;
|
|
5767
|
-
experimental_content?: ({
|
|
5768
|
-
type: "text";
|
|
5769
|
-
text: string;
|
|
5770
|
-
} | {
|
|
5771
|
-
mimeType?: string | undefined;
|
|
5772
|
-
type: "image";
|
|
5773
|
-
data: string;
|
|
5774
|
-
})[] | undefined;
|
|
5775
|
-
type: "tool-result";
|
|
5776
|
-
toolCallId: string;
|
|
5777
|
-
toolName: string;
|
|
5778
|
-
result: any;
|
|
5779
|
-
} | {
|
|
5780
|
-
title?: string | undefined;
|
|
5781
|
-
type?: "source" | undefined;
|
|
5782
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5783
|
-
url?: string | undefined;
|
|
5784
|
-
id: string;
|
|
5785
|
-
sourceType: "url";
|
|
5786
|
-
} | {
|
|
5787
|
-
filename?: string | undefined;
|
|
5788
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5789
|
-
id: string;
|
|
5790
|
-
title: string;
|
|
5791
|
-
type: "source";
|
|
5792
|
-
sourceType: "document";
|
|
5793
|
-
mediaType: string;
|
|
5794
|
-
} | {
|
|
5795
|
-
type: "text-delta";
|
|
5796
|
-
textDelta: string;
|
|
5797
|
-
} | {
|
|
5798
|
-
type: "reasoning";
|
|
5799
|
-
textDelta: string;
|
|
5800
|
-
} | {
|
|
5801
|
-
type: "source";
|
|
5802
|
-
source: {
|
|
5803
|
-
title?: string | undefined;
|
|
5804
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5805
|
-
url?: string | undefined;
|
|
5806
|
-
id: string;
|
|
5807
|
-
sourceType: "url";
|
|
5808
|
-
};
|
|
5809
|
-
} | {
|
|
5810
|
-
type: "tool-call-streaming-start";
|
|
5811
|
-
toolCallId: string;
|
|
5812
|
-
toolName: string;
|
|
5813
|
-
} | {
|
|
5814
|
-
type: "tool-call-delta";
|
|
5815
|
-
toolCallId: string;
|
|
5816
|
-
toolName: string;
|
|
5817
|
-
argsTextDelta: string;
|
|
5818
|
-
} | {
|
|
5819
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5820
|
-
id: string;
|
|
5821
|
-
type: "text-delta";
|
|
5822
|
-
text: string;
|
|
5823
|
-
} | {
|
|
5824
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5825
|
-
id: string;
|
|
5826
|
-
type: "reasoning-delta";
|
|
5827
|
-
text: string;
|
|
5828
|
-
} | {
|
|
5829
|
-
providerExecuted?: boolean | undefined;
|
|
5830
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5831
|
-
dynamic?: boolean | undefined;
|
|
5832
|
-
type: "tool-call";
|
|
5833
|
-
toolCallId: string;
|
|
5834
|
-
toolName: string;
|
|
5835
|
-
input: any;
|
|
5836
|
-
} | {
|
|
5837
|
-
providerExecuted?: boolean | undefined;
|
|
5838
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5839
|
-
dynamic?: boolean | undefined;
|
|
5840
|
-
id: string;
|
|
5841
|
-
type: "tool-input-start";
|
|
5842
|
-
toolName: string;
|
|
5843
|
-
} | {
|
|
5844
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5845
|
-
id: string;
|
|
5846
|
-
type: "tool-input-delta";
|
|
5847
|
-
delta: string;
|
|
5848
|
-
} | {
|
|
5849
|
-
providerExecuted?: boolean | undefined;
|
|
5850
|
-
input?: any;
|
|
5851
|
-
dynamic?: boolean | undefined;
|
|
5852
|
-
output?: any;
|
|
5853
|
-
type: "tool-result";
|
|
5854
|
-
toolCallId: string;
|
|
5855
|
-
toolName: string;
|
|
5856
|
-
} | {
|
|
5857
|
-
type: "raw";
|
|
5858
|
-
rawValue: any;
|
|
5859
|
-
})[];
|
|
5860
|
-
}, {
|
|
5861
|
-
streamId: import("convex/values").VString<string, "required">;
|
|
5862
|
-
start: import("convex/values").VFloat64<number, "required">;
|
|
5863
|
-
end: import("convex/values").VFloat64<number, "required">;
|
|
5864
|
-
parts: import("convex/values").VArray<({
|
|
5865
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5866
|
-
providerExecuted?: boolean | undefined;
|
|
5867
|
-
type: "tool-call";
|
|
5868
|
-
toolCallId: string;
|
|
5869
|
-
toolName: string;
|
|
5870
|
-
args: any;
|
|
5871
|
-
} | {
|
|
5872
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5873
|
-
args?: any;
|
|
5874
|
-
providerExecuted?: boolean | undefined;
|
|
5875
|
-
isError?: boolean | undefined;
|
|
5876
|
-
experimental_content?: ({
|
|
5877
|
-
type: "text";
|
|
5878
|
-
text: string;
|
|
5879
|
-
} | {
|
|
5880
|
-
mimeType?: string | undefined;
|
|
5881
|
-
type: "image";
|
|
5882
|
-
data: string;
|
|
5883
|
-
})[] | undefined;
|
|
5884
|
-
type: "tool-result";
|
|
5885
|
-
toolCallId: string;
|
|
5886
|
-
toolName: string;
|
|
5887
|
-
result: any;
|
|
5888
|
-
} | {
|
|
5889
|
-
title?: string | undefined;
|
|
5890
|
-
type?: "source" | undefined;
|
|
5891
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5892
|
-
url?: string | undefined;
|
|
5893
|
-
id: string;
|
|
5894
|
-
sourceType: "url";
|
|
5895
|
-
} | {
|
|
5896
|
-
filename?: string | undefined;
|
|
5897
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5898
|
-
id: string;
|
|
5899
|
-
title: string;
|
|
5900
|
-
type: "source";
|
|
5901
|
-
sourceType: "document";
|
|
5902
|
-
mediaType: string;
|
|
5903
|
-
} | {
|
|
5904
|
-
type: "text-delta";
|
|
5905
|
-
textDelta: string;
|
|
5906
|
-
} | {
|
|
5907
|
-
type: "reasoning";
|
|
5908
|
-
textDelta: string;
|
|
5909
|
-
} | {
|
|
5910
|
-
type: "source";
|
|
5911
|
-
source: {
|
|
5912
|
-
title?: string | undefined;
|
|
5913
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5914
|
-
url?: string | undefined;
|
|
5915
|
-
id: string;
|
|
5916
|
-
sourceType: "url";
|
|
5917
|
-
};
|
|
5918
|
-
} | {
|
|
5919
|
-
type: "tool-call-streaming-start";
|
|
5920
|
-
toolCallId: string;
|
|
5921
|
-
toolName: string;
|
|
5922
|
-
} | {
|
|
5923
|
-
type: "tool-call-delta";
|
|
5924
|
-
toolCallId: string;
|
|
5925
|
-
toolName: string;
|
|
5926
|
-
argsTextDelta: string;
|
|
5927
|
-
} | {
|
|
5928
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5929
|
-
id: string;
|
|
5930
|
-
type: "text-delta";
|
|
5931
|
-
text: string;
|
|
5932
|
-
} | {
|
|
5933
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5934
|
-
id: string;
|
|
5935
|
-
type: "reasoning-delta";
|
|
5936
|
-
text: string;
|
|
5937
|
-
} | {
|
|
5938
|
-
providerExecuted?: boolean | undefined;
|
|
5939
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5940
|
-
dynamic?: boolean | undefined;
|
|
5941
|
-
type: "tool-call";
|
|
5942
|
-
toolCallId: string;
|
|
5943
|
-
toolName: string;
|
|
5944
|
-
input: any;
|
|
5945
|
-
} | {
|
|
5946
|
-
providerExecuted?: boolean | undefined;
|
|
5947
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5948
|
-
dynamic?: boolean | undefined;
|
|
5949
|
-
id: string;
|
|
5950
|
-
type: "tool-input-start";
|
|
5951
|
-
toolName: string;
|
|
5952
|
-
} | {
|
|
5953
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5954
|
-
id: string;
|
|
5955
|
-
type: "tool-input-delta";
|
|
5956
|
-
delta: string;
|
|
5957
|
-
} | {
|
|
5958
|
-
providerExecuted?: boolean | undefined;
|
|
5959
|
-
input?: any;
|
|
5960
|
-
dynamic?: boolean | undefined;
|
|
5961
|
-
output?: any;
|
|
5962
|
-
type: "tool-result";
|
|
5963
|
-
toolCallId: string;
|
|
5964
|
-
toolName: string;
|
|
5965
|
-
} | {
|
|
5966
|
-
type: "raw";
|
|
5967
|
-
rawValue: any;
|
|
5968
|
-
})[], import("convex/values").VUnion<{
|
|
5969
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5970
|
-
providerExecuted?: boolean | undefined;
|
|
5971
|
-
type: "tool-call";
|
|
5972
|
-
toolCallId: string;
|
|
5973
|
-
toolName: string;
|
|
5974
|
-
args: any;
|
|
5975
|
-
} | {
|
|
5976
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5977
|
-
args?: any;
|
|
5978
|
-
providerExecuted?: boolean | undefined;
|
|
5979
|
-
isError?: boolean | undefined;
|
|
5980
|
-
experimental_content?: ({
|
|
5981
|
-
type: "text";
|
|
5982
|
-
text: string;
|
|
5983
|
-
} | {
|
|
5984
|
-
mimeType?: string | undefined;
|
|
5985
|
-
type: "image";
|
|
5986
|
-
data: string;
|
|
5987
|
-
})[] | undefined;
|
|
5988
|
-
type: "tool-result";
|
|
5989
|
-
toolCallId: string;
|
|
5990
|
-
toolName: string;
|
|
5991
|
-
result: any;
|
|
5992
|
-
} | {
|
|
5993
|
-
title?: string | undefined;
|
|
5994
|
-
type?: "source" | undefined;
|
|
5995
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5996
|
-
url?: string | undefined;
|
|
5997
|
-
id: string;
|
|
5998
|
-
sourceType: "url";
|
|
5999
|
-
} | {
|
|
6000
|
-
filename?: string | undefined;
|
|
6001
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6002
|
-
id: string;
|
|
6003
|
-
title: string;
|
|
6004
|
-
type: "source";
|
|
6005
|
-
sourceType: "document";
|
|
6006
|
-
mediaType: string;
|
|
6007
|
-
} | {
|
|
6008
|
-
type: "text-delta";
|
|
6009
|
-
textDelta: string;
|
|
6010
|
-
} | {
|
|
6011
|
-
type: "reasoning";
|
|
6012
|
-
textDelta: string;
|
|
6013
|
-
} | {
|
|
6014
|
-
type: "source";
|
|
6015
|
-
source: {
|
|
6016
|
-
title?: string | undefined;
|
|
6017
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6018
|
-
url?: string | undefined;
|
|
6019
|
-
id: string;
|
|
6020
|
-
sourceType: "url";
|
|
6021
|
-
};
|
|
6022
|
-
} | {
|
|
6023
|
-
type: "tool-call-streaming-start";
|
|
6024
|
-
toolCallId: string;
|
|
6025
|
-
toolName: string;
|
|
6026
|
-
} | {
|
|
6027
|
-
type: "tool-call-delta";
|
|
6028
|
-
toolCallId: string;
|
|
6029
|
-
toolName: string;
|
|
6030
|
-
argsTextDelta: string;
|
|
6031
|
-
} | {
|
|
6032
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6033
|
-
id: string;
|
|
6034
|
-
type: "text-delta";
|
|
6035
|
-
text: string;
|
|
6036
|
-
} | {
|
|
6037
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6038
|
-
id: string;
|
|
6039
|
-
type: "reasoning-delta";
|
|
6040
|
-
text: string;
|
|
6041
|
-
} | {
|
|
6042
|
-
providerExecuted?: boolean | undefined;
|
|
6043
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6044
|
-
dynamic?: boolean | undefined;
|
|
6045
|
-
type: "tool-call";
|
|
6046
|
-
toolCallId: string;
|
|
6047
|
-
toolName: string;
|
|
6048
|
-
input: any;
|
|
6049
|
-
} | {
|
|
6050
|
-
providerExecuted?: boolean | undefined;
|
|
6051
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6052
|
-
dynamic?: boolean | undefined;
|
|
6053
|
-
id: string;
|
|
6054
|
-
type: "tool-input-start";
|
|
6055
|
-
toolName: string;
|
|
6056
|
-
} | {
|
|
6057
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6058
|
-
id: string;
|
|
6059
|
-
type: "tool-input-delta";
|
|
6060
|
-
delta: string;
|
|
6061
|
-
} | {
|
|
6062
|
-
providerExecuted?: boolean | undefined;
|
|
6063
|
-
input?: any;
|
|
6064
|
-
dynamic?: boolean | undefined;
|
|
6065
|
-
output?: any;
|
|
6066
|
-
type: "tool-result";
|
|
6067
|
-
toolCallId: string;
|
|
6068
|
-
toolName: string;
|
|
6069
|
-
} | {
|
|
6070
|
-
type: "raw";
|
|
6071
|
-
rawValue: any;
|
|
6072
|
-
}, [import("convex/values").VUnion<{
|
|
6073
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6074
|
-
providerExecuted?: boolean | undefined;
|
|
6075
|
-
type: "tool-call";
|
|
6076
|
-
toolCallId: string;
|
|
6077
|
-
toolName: string;
|
|
6078
|
-
args: any;
|
|
6079
|
-
} | {
|
|
6080
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6081
|
-
args?: any;
|
|
6082
|
-
providerExecuted?: boolean | undefined;
|
|
6083
|
-
isError?: boolean | undefined;
|
|
6084
|
-
experimental_content?: ({
|
|
6085
|
-
type: "text";
|
|
6086
|
-
text: string;
|
|
6087
|
-
} | {
|
|
6088
|
-
mimeType?: string | undefined;
|
|
6089
|
-
type: "image";
|
|
6090
|
-
data: string;
|
|
6091
|
-
})[] | undefined;
|
|
6092
|
-
type: "tool-result";
|
|
6093
|
-
toolCallId: string;
|
|
6094
|
-
toolName: string;
|
|
6095
|
-
result: any;
|
|
6096
|
-
} | {
|
|
6097
|
-
type: "text-delta";
|
|
6098
|
-
textDelta: string;
|
|
6099
|
-
} | {
|
|
6100
|
-
type: "reasoning";
|
|
6101
|
-
textDelta: string;
|
|
6102
|
-
} | {
|
|
6103
|
-
type: "source";
|
|
6104
|
-
source: {
|
|
6105
|
-
title?: string | undefined;
|
|
6106
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6107
|
-
url?: string | undefined;
|
|
6108
|
-
id: string;
|
|
6109
|
-
sourceType: "url";
|
|
6110
|
-
};
|
|
6111
|
-
} | {
|
|
6112
|
-
type: "tool-call-streaming-start";
|
|
6113
|
-
toolCallId: string;
|
|
6114
|
-
toolName: string;
|
|
6115
|
-
} | {
|
|
6116
|
-
type: "tool-call-delta";
|
|
6117
|
-
toolCallId: string;
|
|
6118
|
-
toolName: string;
|
|
6119
|
-
argsTextDelta: string;
|
|
6120
|
-
}, [import("convex/values").VObject<{
|
|
6121
|
-
type: "text-delta";
|
|
6122
|
-
textDelta: string;
|
|
6123
|
-
}, {
|
|
6124
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
6125
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
6126
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
6127
|
-
type: "reasoning";
|
|
6128
|
-
textDelta: string;
|
|
6129
|
-
}, {
|
|
6130
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
6131
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
6132
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
6133
|
-
type: "source";
|
|
6134
|
-
source: {
|
|
6135
|
-
title?: string | undefined;
|
|
6136
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6137
|
-
url?: string | undefined;
|
|
6138
|
-
id: string;
|
|
6139
|
-
sourceType: "url";
|
|
6140
|
-
};
|
|
6141
|
-
}, {
|
|
6142
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
6143
|
-
source: import("convex/values").VObject<{
|
|
6144
|
-
title?: string | undefined;
|
|
6145
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6146
|
-
url?: string | undefined;
|
|
6147
|
-
id: string;
|
|
6148
|
-
sourceType: "url";
|
|
6149
|
-
}, {
|
|
6150
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
6151
|
-
id: import("convex/values").VString<string, "required">;
|
|
6152
|
-
url: import("convex/values").VString<string | undefined, "optional">;
|
|
6153
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
6154
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6155
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
6156
|
-
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
6157
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6158
|
-
providerExecuted?: boolean | undefined;
|
|
6159
|
-
type: "tool-call";
|
|
6160
|
-
toolCallId: string;
|
|
6161
|
-
toolName: string;
|
|
6162
|
-
args: any;
|
|
6163
|
-
}, {
|
|
6164
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
6165
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6166
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6167
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
6168
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6169
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6170
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
6171
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6172
|
-
args?: any;
|
|
6173
|
-
providerExecuted?: boolean | undefined;
|
|
6174
|
-
isError?: boolean | undefined;
|
|
6175
|
-
experimental_content?: ({
|
|
6176
|
-
type: "text";
|
|
6177
|
-
text: string;
|
|
6178
|
-
} | {
|
|
6179
|
-
mimeType?: string | undefined;
|
|
6180
|
-
type: "image";
|
|
6181
|
-
data: string;
|
|
6182
|
-
})[] | undefined;
|
|
6183
|
-
type: "tool-result";
|
|
6184
|
-
toolCallId: string;
|
|
6185
|
-
toolName: string;
|
|
6186
|
-
result: any;
|
|
6187
|
-
}, {
|
|
6188
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
6189
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6190
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6191
|
-
result: import("convex/values").VAny<any, "required", string>;
|
|
6192
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6193
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6194
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6195
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
6196
|
-
experimental_content: import("convex/values").VArray<({
|
|
6197
|
-
type: "text";
|
|
6198
|
-
text: string;
|
|
6199
|
-
} | {
|
|
6200
|
-
mimeType?: string | undefined;
|
|
6201
|
-
type: "image";
|
|
6202
|
-
data: string;
|
|
6203
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
6204
|
-
type: "text";
|
|
6205
|
-
text: string;
|
|
6206
|
-
} | {
|
|
6207
|
-
mimeType?: string | undefined;
|
|
6208
|
-
type: "image";
|
|
6209
|
-
data: string;
|
|
6210
|
-
}, [import("convex/values").VObject<{
|
|
6211
|
-
type: "text";
|
|
6212
|
-
text: string;
|
|
6213
|
-
}, {
|
|
6214
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6215
|
-
text: import("convex/values").VString<string, "required">;
|
|
6216
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
6217
|
-
mimeType?: string | undefined;
|
|
6218
|
-
type: "image";
|
|
6219
|
-
data: string;
|
|
6220
|
-
}, {
|
|
6221
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
6222
|
-
data: import("convex/values").VString<string, "required">;
|
|
6223
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
6224
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
6225
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VObject<{
|
|
6226
|
-
type: "tool-call-streaming-start";
|
|
6227
|
-
toolCallId: string;
|
|
6228
|
-
toolName: string;
|
|
6229
|
-
}, {
|
|
6230
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
6231
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6232
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6233
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
6234
|
-
type: "tool-call-delta";
|
|
6235
|
-
toolCallId: string;
|
|
6236
|
-
toolName: string;
|
|
6237
|
-
argsTextDelta: string;
|
|
6238
|
-
}, {
|
|
6239
|
-
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
6240
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6241
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6242
|
-
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
6243
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "source" | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, import("convex/values").VUnion<{
|
|
6244
|
-
title?: string | undefined;
|
|
6245
|
-
type?: "source" | undefined;
|
|
6246
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6247
|
-
url?: string | undefined;
|
|
6248
|
-
id: string;
|
|
6249
|
-
sourceType: "url";
|
|
6250
|
-
} | {
|
|
6251
|
-
filename?: string | undefined;
|
|
6252
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6253
|
-
id: string;
|
|
6254
|
-
title: string;
|
|
6255
|
-
type: "source";
|
|
6256
|
-
sourceType: "document";
|
|
6257
|
-
mediaType: string;
|
|
6258
|
-
} | {
|
|
6259
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6260
|
-
id: string;
|
|
6261
|
-
type: "text-delta";
|
|
6262
|
-
text: string;
|
|
6263
|
-
} | {
|
|
6264
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6265
|
-
id: string;
|
|
6266
|
-
type: "reasoning-delta";
|
|
6267
|
-
text: string;
|
|
6268
|
-
} | {
|
|
6269
|
-
providerExecuted?: boolean | undefined;
|
|
6270
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6271
|
-
dynamic?: boolean | undefined;
|
|
6272
|
-
type: "tool-call";
|
|
6273
|
-
toolCallId: string;
|
|
6274
|
-
toolName: string;
|
|
6275
|
-
input: any;
|
|
6276
|
-
} | {
|
|
6277
|
-
providerExecuted?: boolean | undefined;
|
|
6278
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6279
|
-
dynamic?: boolean | undefined;
|
|
6280
|
-
id: string;
|
|
6281
|
-
type: "tool-input-start";
|
|
6282
|
-
toolName: string;
|
|
6283
|
-
} | {
|
|
6284
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6285
|
-
id: string;
|
|
6286
|
-
type: "tool-input-delta";
|
|
6287
|
-
delta: string;
|
|
6288
|
-
} | {
|
|
6289
|
-
providerExecuted?: boolean | undefined;
|
|
6290
|
-
input?: any;
|
|
6291
|
-
dynamic?: boolean | undefined;
|
|
6292
|
-
output?: any;
|
|
6293
|
-
type: "tool-result";
|
|
6294
|
-
toolCallId: string;
|
|
6295
|
-
toolName: string;
|
|
6296
|
-
} | {
|
|
6297
|
-
type: "raw";
|
|
6298
|
-
rawValue: any;
|
|
6299
|
-
}, [import("convex/values").VObject<{
|
|
6300
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6301
|
-
id: string;
|
|
6302
|
-
type: "text-delta";
|
|
6303
|
-
text: string;
|
|
6304
|
-
}, {
|
|
6305
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
6306
|
-
id: import("convex/values").VString<string, "required">;
|
|
6307
|
-
text: import("convex/values").VString<string, "required">;
|
|
6308
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6309
|
-
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
6310
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6311
|
-
id: string;
|
|
6312
|
-
type: "reasoning-delta";
|
|
6313
|
-
text: string;
|
|
6314
|
-
}, {
|
|
6315
|
-
type: import("convex/values").VLiteral<"reasoning-delta", "required">;
|
|
6316
|
-
id: import("convex/values").VString<string, "required">;
|
|
6317
|
-
text: import("convex/values").VString<string, "required">;
|
|
6318
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6319
|
-
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VUnion<{
|
|
6320
|
-
title?: string | undefined;
|
|
6321
|
-
type?: "source" | undefined;
|
|
6322
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6323
|
-
url?: string | undefined;
|
|
6324
|
-
id: string;
|
|
6325
|
-
sourceType: "url";
|
|
6326
|
-
} | {
|
|
6327
|
-
filename?: string | undefined;
|
|
6328
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6329
|
-
id: string;
|
|
6330
|
-
title: string;
|
|
6331
|
-
type: "source";
|
|
6332
|
-
sourceType: "document";
|
|
6333
|
-
mediaType: string;
|
|
6334
|
-
}, [import("convex/values").VObject<{
|
|
6335
|
-
title?: string | undefined;
|
|
6336
|
-
type?: "source" | undefined;
|
|
6337
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6338
|
-
url?: string | undefined;
|
|
6339
|
-
id: string;
|
|
6340
|
-
sourceType: "url";
|
|
6341
|
-
}, {
|
|
6342
|
-
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
6343
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
6344
|
-
id: import("convex/values").VString<string, "required">;
|
|
6345
|
-
url: import("convex/values").VString<string | undefined, "optional">;
|
|
6346
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
6347
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6348
|
-
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
6349
|
-
filename?: string | undefined;
|
|
6350
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6351
|
-
id: string;
|
|
6352
|
-
title: string;
|
|
6353
|
-
type: "source";
|
|
6354
|
-
sourceType: "document";
|
|
6355
|
-
mediaType: string;
|
|
6356
|
-
}, {
|
|
6357
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
6358
|
-
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
6359
|
-
id: import("convex/values").VString<string, "required">;
|
|
6360
|
-
mediaType: import("convex/values").VString<string, "required">;
|
|
6361
|
-
title: import("convex/values").VString<string, "required">;
|
|
6362
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
6363
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6364
|
-
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
6365
|
-
providerExecuted?: boolean | undefined;
|
|
6366
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6367
|
-
dynamic?: boolean | undefined;
|
|
6368
|
-
type: "tool-call";
|
|
6369
|
-
toolCallId: string;
|
|
6370
|
-
toolName: string;
|
|
6371
|
-
input: any;
|
|
6372
|
-
}, {
|
|
6373
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
6374
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6375
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6376
|
-
input: import("convex/values").VAny<any, "required", string>;
|
|
6377
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6378
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6379
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6380
|
-
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}`>, import("convex/values").VObject<{
|
|
6381
|
-
providerExecuted?: boolean | undefined;
|
|
6382
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6383
|
-
dynamic?: boolean | undefined;
|
|
6384
|
-
id: string;
|
|
6385
|
-
type: "tool-input-start";
|
|
6386
|
-
toolName: string;
|
|
6387
|
-
}, {
|
|
6388
|
-
type: import("convex/values").VLiteral<"tool-input-start", "required">;
|
|
6389
|
-
id: import("convex/values").VString<string, "required">;
|
|
6390
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6391
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6392
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6393
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6394
|
-
}, "required", "id" | "type" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "dynamic">, import("convex/values").VObject<{
|
|
6395
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6396
|
-
id: string;
|
|
6397
|
-
type: "tool-input-delta";
|
|
6398
|
-
delta: string;
|
|
6399
|
-
}, {
|
|
6400
|
-
type: import("convex/values").VLiteral<"tool-input-delta", "required">;
|
|
6401
|
-
id: import("convex/values").VString<string, "required">;
|
|
6402
|
-
delta: import("convex/values").VString<string, "required">;
|
|
6403
|
-
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6404
|
-
}, "required", "id" | "type" | "providerMetadata" | `providerMetadata.${string}` | "delta">, import("convex/values").VObject<{
|
|
6405
|
-
providerExecuted?: boolean | undefined;
|
|
6406
|
-
input?: any;
|
|
6407
|
-
dynamic?: boolean | undefined;
|
|
6408
|
-
output?: any;
|
|
6409
|
-
type: "tool-result";
|
|
6410
|
-
toolCallId: string;
|
|
6411
|
-
toolName: string;
|
|
6412
|
-
}, {
|
|
6413
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
6414
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6415
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6416
|
-
input: import("convex/values").VAny<any, "optional", string>;
|
|
6417
|
-
output: import("convex/values").VAny<any, "optional", string>;
|
|
6418
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6419
|
-
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6420
|
-
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "input" | "dynamic" | `input.${string}` | "output" | `output.${string}`>, import("convex/values").VObject<{
|
|
6421
|
-
type: "raw";
|
|
6422
|
-
rawValue: any;
|
|
6423
|
-
}, {
|
|
6424
|
-
type: import("convex/values").VLiteral<"raw", "required">;
|
|
6425
|
-
rawValue: import("convex/values").VAny<any, "required", string>;
|
|
6426
|
-
}, "required", "type" | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "providerMetadata" | "source" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta" | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>, "required">;
|
|
4942
|
+
streamId: import("convex/values").VString<string, "required">;
|
|
4943
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
4944
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
4945
|
+
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
6427
4946
|
}, "required", "streamId" | "start" | "end" | "parts">;
|
|
6428
4947
|
export type StreamDelta = Infer<typeof vStreamDelta>;
|
|
6429
4948
|
export {};
|