@convex-dev/agent 0.6.4 → 0.7.0-alpha.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/MIGRATION.md +60 -116
- package/dist/client/messages.d.ts +1 -398
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +3 -47
- package/dist/client/messages.js.map +1 -1
- package/dist/client/types.d.ts +1 -455
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +805 -45
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/messages.d.ts +1252 -201
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +49 -23
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +2593 -332
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/streams.d.ts +7 -1
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/component/streams.js +24 -30
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts.map +1 -1
- package/dist/component/threads.js +1 -2
- package/dist/component/threads.js.map +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +5 -5
- package/dist/react/index.js.map +1 -1
- package/dist/shared.d.ts +19 -7
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +4 -4
- package/dist/shared.js.map +1 -1
- package/dist/streaming/materializePersistedUIMessageChunks.d.ts +16 -0
- package/dist/streaming/materializePersistedUIMessageChunks.d.ts.map +1 -0
- package/dist/streaming/materializePersistedUIMessageChunks.js +302 -0
- package/dist/streaming/materializePersistedUIMessageChunks.js.map +1 -0
- package/dist/streaming/persistedUIMessageChunks.d.ts +106 -0
- package/dist/streaming/persistedUIMessageChunks.d.ts.map +1 -0
- package/dist/streaming/persistedUIMessageChunks.js +475 -0
- package/dist/streaming/persistedUIMessageChunks.js.map +1 -0
- package/dist/validators.d.ts +10026 -1055
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +71 -9
- package/dist/validators.js.map +1 -1
- package/dist/{UIMessages.d.ts → vercel/UIMessages.d.ts} +1 -1
- package/dist/vercel/UIMessages.d.ts.map +1 -0
- package/dist/{UIMessages.js → vercel/UIMessages.js} +63 -1
- package/dist/vercel/UIMessages.js.map +1 -0
- package/dist/{client → vercel/client}/createTool.d.ts +23 -16
- package/dist/vercel/client/createTool.d.ts.map +1 -0
- package/dist/{client → vercel/client}/createTool.js +2 -0
- package/dist/vercel/client/createTool.js.map +1 -0
- package/dist/{client → vercel/client}/definePlaygroundAPI.d.ts +533 -79
- package/dist/{client → vercel/client}/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/{client → vercel/client}/definePlaygroundAPI.js +8 -7
- package/dist/vercel/client/definePlaygroundAPI.js.map +1 -0
- package/dist/{client → vercel/client}/files.d.ts +2 -2
- package/dist/vercel/client/files.d.ts.map +1 -0
- package/dist/vercel/client/files.js.map +1 -0
- package/dist/vercel/client/messages.d.ts +542 -0
- package/dist/vercel/client/messages.d.ts.map +1 -0
- package/dist/vercel/client/messages.js +66 -0
- package/dist/vercel/client/messages.js.map +1 -0
- package/dist/{client → vercel/client}/mockModel.d.ts +17 -17
- package/dist/vercel/client/mockModel.d.ts.map +1 -0
- package/dist/{client → vercel/client}/mockModel.js +12 -13
- package/dist/vercel/client/mockModel.js.map +1 -0
- package/dist/{client → vercel/client}/saveInputMessages.d.ts +2 -2
- package/dist/vercel/client/saveInputMessages.d.ts.map +1 -0
- package/dist/vercel/client/saveInputMessages.js.map +1 -0
- package/dist/{client → vercel/client}/search.d.ts +119 -22
- package/dist/vercel/client/search.d.ts.map +1 -0
- package/dist/{client → vercel/client}/search.js +2 -2
- package/dist/vercel/client/search.js.map +1 -0
- package/dist/{client → vercel/client}/start.d.ts +26 -11
- package/dist/vercel/client/start.d.ts.map +1 -0
- package/dist/{client → vercel/client}/start.js +64 -22
- package/dist/vercel/client/start.js.map +1 -0
- package/dist/{client → vercel/client}/streamText.d.ts +13 -12
- package/dist/vercel/client/streamText.d.ts.map +1 -0
- package/dist/{client → vercel/client}/streamText.js +43 -9
- package/dist/vercel/client/streamText.js.map +1 -0
- package/dist/{client → vercel/client}/streaming.d.ts +1410 -183
- package/dist/vercel/client/streaming.d.ts.map +1 -0
- package/dist/{client → vercel/client}/streaming.js +120 -52
- package/dist/vercel/client/streaming.js.map +1 -0
- package/dist/vercel/client/types.d.ts +456 -0
- package/dist/vercel/client/types.d.ts.map +1 -0
- package/dist/vercel/client/types.js +3 -0
- package/dist/vercel/client/types.js.map +1 -0
- package/dist/{client → vercel/client}/utils.d.ts +3 -2
- package/dist/vercel/client/utils.d.ts.map +1 -0
- package/dist/{client → vercel/client}/utils.js +2 -2
- package/dist/vercel/client/utils.js.map +1 -0
- package/dist/{deltas.d.ts → vercel/deltas.d.ts} +3 -4
- package/dist/vercel/deltas.d.ts.map +1 -0
- package/dist/{deltas.js → vercel/deltas.js} +195 -99
- package/dist/vercel/deltas.js.map +1 -0
- package/dist/{client → vercel}/index.d.ts +482 -106
- package/dist/vercel/index.d.ts.map +1 -0
- package/dist/{client → vercel}/index.js +64 -46
- package/dist/vercel/index.js.map +1 -0
- package/dist/{mapping.d.ts → vercel/mapping.d.ts} +5 -19
- package/dist/vercel/mapping.d.ts.map +1 -0
- package/dist/{mapping.js → vercel/mapping.js} +411 -114
- package/dist/vercel/mapping.js.map +1 -0
- package/dist/{react → vercel/react}/optimisticallySendMessage.d.ts +2 -2
- package/dist/vercel/react/optimisticallySendMessage.d.ts.map +1 -0
- package/dist/vercel/react/optimisticallySendMessage.js.map +1 -0
- package/dist/{react → vercel/react}/types.d.ts +1 -1
- package/dist/vercel/react/types.d.ts.map +1 -0
- package/dist/{react → vercel/react}/types.js.map +1 -1
- package/dist/{react → vercel/react}/useDeltaStreams.d.ts +1 -1
- package/dist/vercel/react/useDeltaStreams.d.ts.map +1 -0
- package/dist/{react → vercel/react}/useDeltaStreams.js +1 -1
- package/dist/vercel/react/useDeltaStreams.js.map +1 -0
- package/dist/{react → vercel/react}/useStreamingUIMessages.d.ts +1 -1
- package/dist/vercel/react/useStreamingUIMessages.d.ts.map +1 -0
- package/dist/{react → vercel/react}/useStreamingUIMessages.js +7 -3
- package/dist/vercel/react/useStreamingUIMessages.js.map +1 -0
- package/dist/{react → vercel/react}/useThreadMessages.d.ts +1 -1
- package/dist/vercel/react/useThreadMessages.d.ts.map +1 -0
- package/dist/{react → vercel/react}/useThreadMessages.js +1 -1
- package/dist/vercel/react/useThreadMessages.js.map +1 -0
- package/dist/{react → vercel/react}/useUIMessages.d.ts +1 -1
- package/dist/vercel/react/useUIMessages.d.ts.map +1 -0
- package/dist/{react → vercel/react}/useUIMessages.js +1 -1
- package/dist/vercel/react/useUIMessages.js.map +1 -0
- package/package.json +29 -22
- package/src/client/messages.ts +5 -107
- package/src/client/types.ts +0 -608
- package/src/component/_generated/component.ts +1089 -48
- package/src/component/messages.test.ts +273 -1
- package/src/component/messages.ts +62 -32
- package/src/component/streams.ts +47 -47
- package/src/component/threads.ts +5 -2
- package/src/eslintConfig.test.ts +44 -0
- package/src/react/index.ts +8 -5
- package/src/shared.ts +26 -36
- package/src/streaming/materializePersistedUIMessageChunks.test.ts +513 -0
- package/src/streaming/materializePersistedUIMessageChunks.ts +398 -0
- package/src/streaming/persistedUIMessageChunks.test.ts +205 -0
- package/src/streaming/persistedUIMessageChunks.ts +658 -0
- package/src/validators.test.ts +4 -1
- package/src/validators.ts +89 -8
- package/src/{UIMessages.combineUIMessages.test.ts → vercel/UIMessages.combineUIMessages.test.ts} +4 -1
- package/src/{UIMessages.ts → vercel/UIMessages.ts} +95 -3
- package/src/{client → vercel/client}/approval.test.ts +23 -13
- package/src/{client → vercel/client}/createTool.ts +62 -22
- package/src/{client → vercel/client}/definePlaygroundAPI.ts +15 -16
- package/src/{client → vercel/client}/files.ts +2 -2
- package/src/{client → vercel/client}/index.test.ts +99 -31
- package/src/vercel/client/messages.ts +182 -0
- package/src/{client → vercel/client}/mockModel.ts +38 -39
- package/src/{client → vercel/client}/saveInputMessages.test.ts +1 -1
- package/src/{client → vercel/client}/saveInputMessages.ts +3 -3
- package/src/{client → vercel/client}/search.test.ts +3 -3
- package/src/{client → vercel/client}/search.ts +4 -4
- package/src/{client → vercel/client}/setup.test.ts +6 -3
- package/src/vercel/client/start.test.ts +14 -0
- package/src/{client → vercel/client}/start.ts +147 -36
- package/src/vercel/client/streamText.test.ts +223 -0
- package/src/{client → vercel/client}/streamText.ts +102 -31
- package/src/{client → vercel/client}/streaming.integration.test.ts +6 -3
- package/src/{client → vercel/client}/streaming.test.ts +178 -4
- package/src/{client → vercel/client}/streaming.ts +114 -52
- package/src/vercel/client/types.test.ts +13 -0
- package/src/vercel/client/types.ts +679 -0
- package/src/{client → vercel/client}/utils.ts +13 -7
- package/src/{deltas.test.ts → vercel/deltas.test.ts} +384 -93
- package/src/{deltas.ts → vercel/deltas.ts} +218 -115
- package/src/{fromUIMessages.test.ts → vercel/fromUIMessages.test.ts} +17 -1
- package/src/{client → vercel}/index.ts +167 -84
- package/src/{mapping.test.ts → vercel/mapping.test.ts} +377 -92
- package/src/{mapping.ts → vercel/mapping.ts} +501 -137
- package/src/{react → vercel/react}/optimisticallySendMessage.ts +2 -2
- package/src/{react → vercel/react}/types.ts +1 -1
- package/src/{react → vercel/react}/useDeltaStreams.ts +6 -2
- package/src/{react → vercel/react}/useStreamingUIMessages.ts +7 -3
- package/src/{react → vercel/react}/useThreadMessages.ts +2 -2
- package/src/{react → vercel/react}/useUIMessages.ts +2 -2
- package/src/{toUIMessages.test.ts → vercel/toUIMessages.test.ts} +49 -2
- package/dist/UIMessages.d.ts.map +0 -1
- package/dist/UIMessages.js.map +0 -1
- package/dist/client/createTool.d.ts.map +0 -1
- package/dist/client/createTool.js.map +0 -1
- package/dist/client/definePlaygroundAPI.js.map +0 -1
- package/dist/client/files.d.ts.map +0 -1
- package/dist/client/files.js.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js.map +0 -1
- package/dist/client/mockModel.d.ts.map +0 -1
- package/dist/client/mockModel.js.map +0 -1
- package/dist/client/saveInputMessages.d.ts.map +0 -1
- package/dist/client/saveInputMessages.js.map +0 -1
- package/dist/client/search.d.ts.map +0 -1
- package/dist/client/search.js.map +0 -1
- package/dist/client/start.d.ts.map +0 -1
- package/dist/client/start.js.map +0 -1
- package/dist/client/streamText.d.ts.map +0 -1
- package/dist/client/streamText.js.map +0 -1
- package/dist/client/streaming.d.ts.map +0 -1
- package/dist/client/streaming.js.map +0 -1
- package/dist/client/utils.d.ts.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/deltas.d.ts.map +0 -1
- package/dist/deltas.js.map +0 -1
- package/dist/mapping.d.ts.map +0 -1
- package/dist/mapping.js.map +0 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +0 -1
- package/dist/react/optimisticallySendMessage.js.map +0 -1
- package/dist/react/types.d.ts.map +0 -1
- package/dist/react/useDeltaStreams.d.ts.map +0 -1
- package/dist/react/useDeltaStreams.js.map +0 -1
- package/dist/react/useStreamingUIMessages.d.ts.map +0 -1
- package/dist/react/useStreamingUIMessages.js.map +0 -1
- package/dist/react/useThreadMessages.d.ts.map +0 -1
- package/dist/react/useThreadMessages.js.map +0 -1
- package/dist/react/useUIMessages.d.ts.map +0 -1
- package/dist/react/useUIMessages.js.map +0 -1
- package/src/client/streamText.test.ts +0 -102
- /package/dist/{client → vercel/client}/files.js +0 -0
- /package/dist/{client → vercel/client}/saveInputMessages.js +0 -0
- /package/dist/{react → vercel/react}/optimisticallySendMessage.js +0 -0
- /package/dist/{react → vercel/react}/types.js +0 -0
- /package/src/{UIMessages.test.ts → vercel/UIMessages.test.ts} +0 -0
- /package/src/{react → vercel/react}/useUIMessages.test.ts +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type AsyncIterableStream, type ChunkDetector, type StreamTextTransform, type TextStreamPart, type ToolSet, type UIMessageChunk } from "ai";
|
|
2
|
-
import { type ProviderOptions, type StreamArgs, type StreamMessage } from "
|
|
2
|
+
import { type ProviderOptions, type StreamArgs, type StreamMessage } from "../../validators.js";
|
|
3
3
|
import type { ActionCtx, AgentComponent, MutationCtx, QueryCtx, SyncStreamsReturnValue } from "./types.js";
|
|
4
4
|
export declare const vStreamMessagesReturnValue: import("convex/values").VObject<{
|
|
5
5
|
splitCursor?: string | null | undefined;
|
|
6
6
|
pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
|
|
7
7
|
streams?: {
|
|
8
|
+
kind: "list";
|
|
8
9
|
messages: {
|
|
9
10
|
userId?: string | undefined;
|
|
10
11
|
agentName?: string | undefined;
|
|
@@ -17,7 +18,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
17
18
|
stepOrder: number;
|
|
18
19
|
streamId: string;
|
|
19
20
|
}[];
|
|
20
|
-
kind: "list";
|
|
21
21
|
} | {
|
|
22
22
|
kind: "deltas";
|
|
23
23
|
deltas: {
|
|
@@ -28,6 +28,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
28
28
|
}[];
|
|
29
29
|
} | undefined;
|
|
30
30
|
page: {
|
|
31
|
+
text?: string | undefined;
|
|
32
|
+
reasoning?: string | undefined;
|
|
31
33
|
id?: string | undefined;
|
|
32
34
|
userId?: string | undefined;
|
|
33
35
|
embeddingId?: string | undefined;
|
|
@@ -43,14 +45,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
43
45
|
content: string | ({
|
|
44
46
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
45
47
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
46
|
-
type: "text";
|
|
47
48
|
text: string;
|
|
49
|
+
type: "text";
|
|
48
50
|
} | {
|
|
49
51
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
50
52
|
mediaType?: string | undefined;
|
|
51
53
|
mimeType?: string | undefined;
|
|
52
54
|
type: "image";
|
|
53
|
-
image: string | ArrayBuffer
|
|
55
|
+
image: string | ArrayBuffer | {
|
|
56
|
+
type: "reference";
|
|
57
|
+
reference: Record<string, string>;
|
|
58
|
+
};
|
|
54
59
|
} | {
|
|
55
60
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
56
61
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -58,7 +63,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
58
63
|
mimeType?: string | undefined;
|
|
59
64
|
filename?: string | undefined;
|
|
60
65
|
type: "file";
|
|
61
|
-
data: string | ArrayBuffer
|
|
66
|
+
data: string | ArrayBuffer | {
|
|
67
|
+
type: "reference";
|
|
68
|
+
reference: Record<string, string>;
|
|
69
|
+
};
|
|
62
70
|
})[];
|
|
63
71
|
} | {
|
|
64
72
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -66,8 +74,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
66
74
|
content: string | ({
|
|
67
75
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
68
76
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
69
|
-
type: "text";
|
|
70
77
|
text: string;
|
|
78
|
+
type: "text";
|
|
71
79
|
} | {
|
|
72
80
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
73
81
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -75,32 +83,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
75
83
|
mimeType?: string | undefined;
|
|
76
84
|
filename?: string | undefined;
|
|
77
85
|
type: "file";
|
|
78
|
-
data: string | ArrayBuffer
|
|
86
|
+
data: string | ArrayBuffer | {
|
|
87
|
+
type: "reference";
|
|
88
|
+
reference: Record<string, string>;
|
|
89
|
+
};
|
|
79
90
|
} | {
|
|
80
91
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
81
92
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
82
93
|
signature?: string | undefined;
|
|
83
|
-
type: "reasoning";
|
|
84
94
|
text: string;
|
|
95
|
+
type: "reasoning";
|
|
96
|
+
} | {
|
|
97
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
98
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
99
|
+
data?: string | ArrayBuffer | undefined;
|
|
100
|
+
url?: string | undefined;
|
|
101
|
+
type: "reasoning-file";
|
|
102
|
+
mediaType: string;
|
|
103
|
+
} | {
|
|
104
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
105
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
106
|
+
type: "custom";
|
|
107
|
+
kind: string;
|
|
85
108
|
} | {
|
|
86
109
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
87
110
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
88
111
|
type: "redacted-reasoning";
|
|
89
112
|
data: string;
|
|
90
113
|
} | {
|
|
114
|
+
title?: string | undefined;
|
|
91
115
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
92
116
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
93
117
|
args?: any;
|
|
94
118
|
providerExecuted?: boolean | undefined;
|
|
119
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
95
120
|
type: "tool-call";
|
|
96
121
|
toolCallId: string;
|
|
97
122
|
toolName: string;
|
|
98
123
|
input: any;
|
|
99
124
|
} | {
|
|
125
|
+
title?: string | undefined;
|
|
100
126
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
101
127
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
102
128
|
input?: any;
|
|
103
129
|
providerExecuted?: boolean | undefined;
|
|
130
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
104
131
|
type: "tool-call";
|
|
105
132
|
toolCallId: string;
|
|
106
133
|
toolName: string;
|
|
@@ -134,8 +161,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
134
161
|
type: "content";
|
|
135
162
|
value: ({
|
|
136
163
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
137
|
-
type: "text";
|
|
138
164
|
text: string;
|
|
165
|
+
type: "text";
|
|
166
|
+
} | {
|
|
167
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
168
|
+
filename?: string | undefined;
|
|
169
|
+
type: "file";
|
|
170
|
+
mediaType: string;
|
|
171
|
+
data: {
|
|
172
|
+
type: "reference";
|
|
173
|
+
reference: Record<string, string>;
|
|
174
|
+
} | {
|
|
175
|
+
type: "url";
|
|
176
|
+
url: string;
|
|
177
|
+
} | {
|
|
178
|
+
type: "data";
|
|
179
|
+
data: string | ArrayBuffer;
|
|
180
|
+
} | {
|
|
181
|
+
text: string;
|
|
182
|
+
type: "text";
|
|
183
|
+
};
|
|
139
184
|
} | {
|
|
140
185
|
type: "media";
|
|
141
186
|
mediaType: string;
|
|
@@ -148,17 +193,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
148
193
|
data: string;
|
|
149
194
|
} | {
|
|
150
195
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
196
|
+
mediaType?: string | undefined;
|
|
151
197
|
type: "file-url";
|
|
152
198
|
url: string;
|
|
153
199
|
} | {
|
|
154
200
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
155
201
|
type: "file-id";
|
|
156
202
|
fileId: string | Record<string, string>;
|
|
203
|
+
} | {
|
|
204
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
205
|
+
type: "file-reference";
|
|
206
|
+
providerReference: Record<string, string>;
|
|
157
207
|
} | {
|
|
158
208
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
159
209
|
type: "image-data";
|
|
160
210
|
mediaType: string;
|
|
161
211
|
data: string;
|
|
212
|
+
} | {
|
|
213
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
214
|
+
type: "image-file-reference";
|
|
215
|
+
providerReference: Record<string, string>;
|
|
162
216
|
} | {
|
|
163
217
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
164
218
|
type: "image-url";
|
|
@@ -175,8 +229,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
175
229
|
result?: any;
|
|
176
230
|
isError?: boolean | undefined;
|
|
177
231
|
experimental_content?: ({
|
|
178
|
-
type: "text";
|
|
179
232
|
text: string;
|
|
233
|
+
type: "text";
|
|
180
234
|
} | {
|
|
181
235
|
mimeType?: string | undefined;
|
|
182
236
|
type: "image";
|
|
@@ -205,6 +259,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
205
259
|
} | {
|
|
206
260
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
207
261
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
262
|
+
signature?: string | undefined;
|
|
263
|
+
isAutomatic?: boolean | undefined;
|
|
208
264
|
type: "tool-approval-request";
|
|
209
265
|
toolCallId: string;
|
|
210
266
|
approvalId: string;
|
|
@@ -241,8 +297,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
241
297
|
type: "content";
|
|
242
298
|
value: ({
|
|
243
299
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
244
|
-
type: "text";
|
|
245
300
|
text: string;
|
|
301
|
+
type: "text";
|
|
302
|
+
} | {
|
|
303
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
304
|
+
filename?: string | undefined;
|
|
305
|
+
type: "file";
|
|
306
|
+
mediaType: string;
|
|
307
|
+
data: {
|
|
308
|
+
type: "reference";
|
|
309
|
+
reference: Record<string, string>;
|
|
310
|
+
} | {
|
|
311
|
+
type: "url";
|
|
312
|
+
url: string;
|
|
313
|
+
} | {
|
|
314
|
+
type: "data";
|
|
315
|
+
data: string | ArrayBuffer;
|
|
316
|
+
} | {
|
|
317
|
+
text: string;
|
|
318
|
+
type: "text";
|
|
319
|
+
};
|
|
246
320
|
} | {
|
|
247
321
|
type: "media";
|
|
248
322
|
mediaType: string;
|
|
@@ -255,17 +329,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
255
329
|
data: string;
|
|
256
330
|
} | {
|
|
257
331
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
332
|
+
mediaType?: string | undefined;
|
|
258
333
|
type: "file-url";
|
|
259
334
|
url: string;
|
|
260
335
|
} | {
|
|
261
336
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
262
337
|
type: "file-id";
|
|
263
338
|
fileId: string | Record<string, string>;
|
|
339
|
+
} | {
|
|
340
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
341
|
+
type: "file-reference";
|
|
342
|
+
providerReference: Record<string, string>;
|
|
264
343
|
} | {
|
|
265
344
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
266
345
|
type: "image-data";
|
|
267
346
|
mediaType: string;
|
|
268
347
|
data: string;
|
|
348
|
+
} | {
|
|
349
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
350
|
+
type: "image-file-reference";
|
|
351
|
+
providerReference: Record<string, string>;
|
|
269
352
|
} | {
|
|
270
353
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
271
354
|
type: "image-url";
|
|
@@ -282,8 +365,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
282
365
|
result?: any;
|
|
283
366
|
isError?: boolean | undefined;
|
|
284
367
|
experimental_content?: ({
|
|
285
|
-
type: "text";
|
|
286
368
|
text: string;
|
|
369
|
+
type: "text";
|
|
287
370
|
} | {
|
|
288
371
|
mimeType?: string | undefined;
|
|
289
372
|
type: "image";
|
|
@@ -306,15 +389,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
306
389
|
role: "system";
|
|
307
390
|
content: string;
|
|
308
391
|
} | undefined;
|
|
309
|
-
text?: string | undefined;
|
|
310
392
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
311
|
-
reasoning?: string | undefined;
|
|
312
393
|
usage?: {
|
|
394
|
+
promptTokens?: number | undefined;
|
|
395
|
+
completionTokens?: number | undefined;
|
|
396
|
+
totalTokens?: number | undefined;
|
|
313
397
|
reasoningTokens?: number | undefined;
|
|
314
398
|
cachedInputTokens?: number | undefined;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
399
|
+
nonCachedInputTokens?: number | undefined;
|
|
400
|
+
cacheWriteInputTokens?: number | undefined;
|
|
401
|
+
textOutputTokens?: number | undefined;
|
|
402
|
+
raw?: Record<string, any> | undefined;
|
|
318
403
|
} | undefined;
|
|
319
404
|
sources?: ({
|
|
320
405
|
title?: string | undefined;
|
|
@@ -335,13 +420,25 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
335
420
|
sourceType: "document";
|
|
336
421
|
})[] | undefined;
|
|
337
422
|
warnings?: ({
|
|
423
|
+
details?: string | undefined;
|
|
424
|
+
type: "unsupported";
|
|
425
|
+
feature: string;
|
|
426
|
+
} | {
|
|
427
|
+
details?: string | undefined;
|
|
428
|
+
type: "compatibility";
|
|
429
|
+
feature: string;
|
|
430
|
+
} | {
|
|
431
|
+
type: "deprecated";
|
|
432
|
+
message: string;
|
|
433
|
+
setting: string;
|
|
434
|
+
} | {
|
|
338
435
|
details?: string | undefined;
|
|
339
436
|
type: "unsupported-setting";
|
|
340
437
|
setting: string;
|
|
341
438
|
} | {
|
|
342
439
|
details?: string | undefined;
|
|
343
|
-
type: "unsupported-tool";
|
|
344
440
|
tool: any;
|
|
441
|
+
type: "unsupported-tool";
|
|
345
442
|
} | {
|
|
346
443
|
type: "other";
|
|
347
444
|
message: string;
|
|
@@ -351,28 +448,29 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
351
448
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
352
449
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
353
450
|
signature?: string | undefined;
|
|
354
|
-
type: "reasoning";
|
|
355
451
|
text: string;
|
|
452
|
+
type: "reasoning";
|
|
356
453
|
} | {
|
|
357
454
|
signature?: string | undefined;
|
|
358
|
-
type: "text";
|
|
359
455
|
text: string;
|
|
456
|
+
type: "text";
|
|
360
457
|
} | {
|
|
361
458
|
type: "redacted";
|
|
362
459
|
data: string;
|
|
363
460
|
})[] | undefined;
|
|
461
|
+
tool: boolean;
|
|
364
462
|
status: "pending" | "success" | "failed";
|
|
365
463
|
order: number;
|
|
366
464
|
_creationTime: number;
|
|
367
465
|
threadId: string;
|
|
368
466
|
stepOrder: number;
|
|
369
|
-
tool: boolean;
|
|
370
467
|
_id: string;
|
|
371
468
|
}[];
|
|
372
469
|
continueCursor: string;
|
|
373
470
|
isDone: boolean;
|
|
374
471
|
}, {
|
|
375
472
|
streams: import("convex/values").VUnion<{
|
|
473
|
+
kind: "list";
|
|
376
474
|
messages: {
|
|
377
475
|
userId?: string | undefined;
|
|
378
476
|
agentName?: string | undefined;
|
|
@@ -385,7 +483,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
385
483
|
stepOrder: number;
|
|
386
484
|
streamId: string;
|
|
387
485
|
}[];
|
|
388
|
-
kind: "list";
|
|
389
486
|
} | {
|
|
390
487
|
kind: "deltas";
|
|
391
488
|
deltas: {
|
|
@@ -395,6 +492,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
395
492
|
parts: any[];
|
|
396
493
|
}[];
|
|
397
494
|
} | undefined, [import("convex/values").VObject<{
|
|
495
|
+
kind: "list";
|
|
398
496
|
messages: {
|
|
399
497
|
userId?: string | undefined;
|
|
400
498
|
agentName?: string | undefined;
|
|
@@ -407,7 +505,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
407
505
|
stepOrder: number;
|
|
408
506
|
streamId: string;
|
|
409
507
|
}[];
|
|
410
|
-
kind: "list";
|
|
411
508
|
}, {
|
|
412
509
|
kind: import("convex/values").VLiteral<"list", "required">;
|
|
413
510
|
messages: import("convex/values").VArray<{
|
|
@@ -444,7 +541,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
444
541
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
445
542
|
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>;
|
|
446
543
|
}, "required", "status" | "userId" | "order" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "streamId">, "required">;
|
|
447
|
-
}, "required", "
|
|
544
|
+
}, "required", "kind" | "messages">, import("convex/values").VObject<{
|
|
448
545
|
kind: "deltas";
|
|
449
546
|
deltas: {
|
|
450
547
|
streamId: string;
|
|
@@ -470,8 +567,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
470
567
|
end: import("convex/values").VFloat64<number, "required">;
|
|
471
568
|
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
472
569
|
}, "required", "streamId" | "start" | "end" | "parts">, "required">;
|
|
473
|
-
}, "required", "kind" | "deltas">], "optional", "
|
|
570
|
+
}, "required", "kind" | "deltas">], "optional", "kind" | "messages" | "deltas">;
|
|
474
571
|
page: import("convex/values").VArray<{
|
|
572
|
+
text?: string | undefined;
|
|
573
|
+
reasoning?: string | undefined;
|
|
475
574
|
id?: string | undefined;
|
|
476
575
|
userId?: string | undefined;
|
|
477
576
|
embeddingId?: string | undefined;
|
|
@@ -487,14 +586,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
487
586
|
content: string | ({
|
|
488
587
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
489
588
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
490
|
-
type: "text";
|
|
491
589
|
text: string;
|
|
590
|
+
type: "text";
|
|
492
591
|
} | {
|
|
493
592
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
494
593
|
mediaType?: string | undefined;
|
|
495
594
|
mimeType?: string | undefined;
|
|
496
595
|
type: "image";
|
|
497
|
-
image: string | ArrayBuffer
|
|
596
|
+
image: string | ArrayBuffer | {
|
|
597
|
+
type: "reference";
|
|
598
|
+
reference: Record<string, string>;
|
|
599
|
+
};
|
|
498
600
|
} | {
|
|
499
601
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
500
602
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -502,7 +604,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
502
604
|
mimeType?: string | undefined;
|
|
503
605
|
filename?: string | undefined;
|
|
504
606
|
type: "file";
|
|
505
|
-
data: string | ArrayBuffer
|
|
607
|
+
data: string | ArrayBuffer | {
|
|
608
|
+
type: "reference";
|
|
609
|
+
reference: Record<string, string>;
|
|
610
|
+
};
|
|
506
611
|
})[];
|
|
507
612
|
} | {
|
|
508
613
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -510,8 +615,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
510
615
|
content: string | ({
|
|
511
616
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
512
617
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
513
|
-
type: "text";
|
|
514
618
|
text: string;
|
|
619
|
+
type: "text";
|
|
515
620
|
} | {
|
|
516
621
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
517
622
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -519,32 +624,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
519
624
|
mimeType?: string | undefined;
|
|
520
625
|
filename?: string | undefined;
|
|
521
626
|
type: "file";
|
|
522
|
-
data: string | ArrayBuffer
|
|
627
|
+
data: string | ArrayBuffer | {
|
|
628
|
+
type: "reference";
|
|
629
|
+
reference: Record<string, string>;
|
|
630
|
+
};
|
|
523
631
|
} | {
|
|
524
632
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
525
633
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
526
634
|
signature?: string | undefined;
|
|
527
|
-
type: "reasoning";
|
|
528
635
|
text: string;
|
|
636
|
+
type: "reasoning";
|
|
637
|
+
} | {
|
|
638
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
639
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
640
|
+
data?: string | ArrayBuffer | undefined;
|
|
641
|
+
url?: string | undefined;
|
|
642
|
+
type: "reasoning-file";
|
|
643
|
+
mediaType: string;
|
|
644
|
+
} | {
|
|
645
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
646
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
647
|
+
type: "custom";
|
|
648
|
+
kind: string;
|
|
529
649
|
} | {
|
|
530
650
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
531
651
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
532
652
|
type: "redacted-reasoning";
|
|
533
653
|
data: string;
|
|
534
654
|
} | {
|
|
655
|
+
title?: string | undefined;
|
|
535
656
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
536
657
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
537
658
|
args?: any;
|
|
538
659
|
providerExecuted?: boolean | undefined;
|
|
660
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
539
661
|
type: "tool-call";
|
|
540
662
|
toolCallId: string;
|
|
541
663
|
toolName: string;
|
|
542
664
|
input: any;
|
|
543
665
|
} | {
|
|
666
|
+
title?: string | undefined;
|
|
544
667
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
545
668
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
546
669
|
input?: any;
|
|
547
670
|
providerExecuted?: boolean | undefined;
|
|
671
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
548
672
|
type: "tool-call";
|
|
549
673
|
toolCallId: string;
|
|
550
674
|
toolName: string;
|
|
@@ -578,8 +702,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
578
702
|
type: "content";
|
|
579
703
|
value: ({
|
|
580
704
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
581
|
-
type: "text";
|
|
582
705
|
text: string;
|
|
706
|
+
type: "text";
|
|
707
|
+
} | {
|
|
708
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
709
|
+
filename?: string | undefined;
|
|
710
|
+
type: "file";
|
|
711
|
+
mediaType: string;
|
|
712
|
+
data: {
|
|
713
|
+
type: "reference";
|
|
714
|
+
reference: Record<string, string>;
|
|
715
|
+
} | {
|
|
716
|
+
type: "url";
|
|
717
|
+
url: string;
|
|
718
|
+
} | {
|
|
719
|
+
type: "data";
|
|
720
|
+
data: string | ArrayBuffer;
|
|
721
|
+
} | {
|
|
722
|
+
text: string;
|
|
723
|
+
type: "text";
|
|
724
|
+
};
|
|
583
725
|
} | {
|
|
584
726
|
type: "media";
|
|
585
727
|
mediaType: string;
|
|
@@ -592,17 +734,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
592
734
|
data: string;
|
|
593
735
|
} | {
|
|
594
736
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
737
|
+
mediaType?: string | undefined;
|
|
595
738
|
type: "file-url";
|
|
596
739
|
url: string;
|
|
597
740
|
} | {
|
|
598
741
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
599
742
|
type: "file-id";
|
|
600
743
|
fileId: string | Record<string, string>;
|
|
744
|
+
} | {
|
|
745
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
746
|
+
type: "file-reference";
|
|
747
|
+
providerReference: Record<string, string>;
|
|
601
748
|
} | {
|
|
602
749
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
603
750
|
type: "image-data";
|
|
604
751
|
mediaType: string;
|
|
605
752
|
data: string;
|
|
753
|
+
} | {
|
|
754
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
755
|
+
type: "image-file-reference";
|
|
756
|
+
providerReference: Record<string, string>;
|
|
606
757
|
} | {
|
|
607
758
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
608
759
|
type: "image-url";
|
|
@@ -619,8 +770,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
619
770
|
result?: any;
|
|
620
771
|
isError?: boolean | undefined;
|
|
621
772
|
experimental_content?: ({
|
|
622
|
-
type: "text";
|
|
623
773
|
text: string;
|
|
774
|
+
type: "text";
|
|
624
775
|
} | {
|
|
625
776
|
mimeType?: string | undefined;
|
|
626
777
|
type: "image";
|
|
@@ -649,6 +800,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
649
800
|
} | {
|
|
650
801
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
651
802
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
803
|
+
signature?: string | undefined;
|
|
804
|
+
isAutomatic?: boolean | undefined;
|
|
652
805
|
type: "tool-approval-request";
|
|
653
806
|
toolCallId: string;
|
|
654
807
|
approvalId: string;
|
|
@@ -685,8 +838,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
685
838
|
type: "content";
|
|
686
839
|
value: ({
|
|
687
840
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
688
|
-
type: "text";
|
|
689
841
|
text: string;
|
|
842
|
+
type: "text";
|
|
843
|
+
} | {
|
|
844
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
845
|
+
filename?: string | undefined;
|
|
846
|
+
type: "file";
|
|
847
|
+
mediaType: string;
|
|
848
|
+
data: {
|
|
849
|
+
type: "reference";
|
|
850
|
+
reference: Record<string, string>;
|
|
851
|
+
} | {
|
|
852
|
+
type: "url";
|
|
853
|
+
url: string;
|
|
854
|
+
} | {
|
|
855
|
+
type: "data";
|
|
856
|
+
data: string | ArrayBuffer;
|
|
857
|
+
} | {
|
|
858
|
+
text: string;
|
|
859
|
+
type: "text";
|
|
860
|
+
};
|
|
690
861
|
} | {
|
|
691
862
|
type: "media";
|
|
692
863
|
mediaType: string;
|
|
@@ -699,17 +870,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
699
870
|
data: string;
|
|
700
871
|
} | {
|
|
701
872
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
873
|
+
mediaType?: string | undefined;
|
|
702
874
|
type: "file-url";
|
|
703
875
|
url: string;
|
|
704
876
|
} | {
|
|
705
877
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
706
878
|
type: "file-id";
|
|
707
879
|
fileId: string | Record<string, string>;
|
|
880
|
+
} | {
|
|
881
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
882
|
+
type: "file-reference";
|
|
883
|
+
providerReference: Record<string, string>;
|
|
708
884
|
} | {
|
|
709
885
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
710
886
|
type: "image-data";
|
|
711
887
|
mediaType: string;
|
|
712
888
|
data: string;
|
|
889
|
+
} | {
|
|
890
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
891
|
+
type: "image-file-reference";
|
|
892
|
+
providerReference: Record<string, string>;
|
|
713
893
|
} | {
|
|
714
894
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
715
895
|
type: "image-url";
|
|
@@ -726,8 +906,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
726
906
|
result?: any;
|
|
727
907
|
isError?: boolean | undefined;
|
|
728
908
|
experimental_content?: ({
|
|
729
|
-
type: "text";
|
|
730
909
|
text: string;
|
|
910
|
+
type: "text";
|
|
731
911
|
} | {
|
|
732
912
|
mimeType?: string | undefined;
|
|
733
913
|
type: "image";
|
|
@@ -750,15 +930,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
750
930
|
role: "system";
|
|
751
931
|
content: string;
|
|
752
932
|
} | undefined;
|
|
753
|
-
text?: string | undefined;
|
|
754
933
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
755
|
-
reasoning?: string | undefined;
|
|
756
934
|
usage?: {
|
|
935
|
+
promptTokens?: number | undefined;
|
|
936
|
+
completionTokens?: number | undefined;
|
|
937
|
+
totalTokens?: number | undefined;
|
|
757
938
|
reasoningTokens?: number | undefined;
|
|
758
939
|
cachedInputTokens?: number | undefined;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
940
|
+
nonCachedInputTokens?: number | undefined;
|
|
941
|
+
cacheWriteInputTokens?: number | undefined;
|
|
942
|
+
textOutputTokens?: number | undefined;
|
|
943
|
+
raw?: Record<string, any> | undefined;
|
|
762
944
|
} | undefined;
|
|
763
945
|
sources?: ({
|
|
764
946
|
title?: string | undefined;
|
|
@@ -779,13 +961,25 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
779
961
|
sourceType: "document";
|
|
780
962
|
})[] | undefined;
|
|
781
963
|
warnings?: ({
|
|
964
|
+
details?: string | undefined;
|
|
965
|
+
type: "unsupported";
|
|
966
|
+
feature: string;
|
|
967
|
+
} | {
|
|
968
|
+
details?: string | undefined;
|
|
969
|
+
type: "compatibility";
|
|
970
|
+
feature: string;
|
|
971
|
+
} | {
|
|
972
|
+
type: "deprecated";
|
|
973
|
+
message: string;
|
|
974
|
+
setting: string;
|
|
975
|
+
} | {
|
|
782
976
|
details?: string | undefined;
|
|
783
977
|
type: "unsupported-setting";
|
|
784
978
|
setting: string;
|
|
785
979
|
} | {
|
|
786
980
|
details?: string | undefined;
|
|
787
|
-
type: "unsupported-tool";
|
|
788
981
|
tool: any;
|
|
982
|
+
type: "unsupported-tool";
|
|
789
983
|
} | {
|
|
790
984
|
type: "other";
|
|
791
985
|
message: string;
|
|
@@ -795,24 +989,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
795
989
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
796
990
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
797
991
|
signature?: string | undefined;
|
|
798
|
-
type: "reasoning";
|
|
799
992
|
text: string;
|
|
993
|
+
type: "reasoning";
|
|
800
994
|
} | {
|
|
801
995
|
signature?: string | undefined;
|
|
802
|
-
type: "text";
|
|
803
996
|
text: string;
|
|
997
|
+
type: "text";
|
|
804
998
|
} | {
|
|
805
999
|
type: "redacted";
|
|
806
1000
|
data: string;
|
|
807
1001
|
})[] | undefined;
|
|
1002
|
+
tool: boolean;
|
|
808
1003
|
status: "pending" | "success" | "failed";
|
|
809
1004
|
order: number;
|
|
810
1005
|
_creationTime: number;
|
|
811
1006
|
threadId: string;
|
|
812
1007
|
stepOrder: number;
|
|
813
|
-
tool: boolean;
|
|
814
1008
|
_id: string;
|
|
815
1009
|
}[], import("convex/values").VObject<{
|
|
1010
|
+
text?: string | undefined;
|
|
1011
|
+
reasoning?: string | undefined;
|
|
816
1012
|
id?: string | undefined;
|
|
817
1013
|
userId?: string | undefined;
|
|
818
1014
|
embeddingId?: string | undefined;
|
|
@@ -828,14 +1024,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
828
1024
|
content: string | ({
|
|
829
1025
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
830
1026
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
831
|
-
type: "text";
|
|
832
1027
|
text: string;
|
|
1028
|
+
type: "text";
|
|
833
1029
|
} | {
|
|
834
1030
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
835
1031
|
mediaType?: string | undefined;
|
|
836
1032
|
mimeType?: string | undefined;
|
|
837
1033
|
type: "image";
|
|
838
|
-
image: string | ArrayBuffer
|
|
1034
|
+
image: string | ArrayBuffer | {
|
|
1035
|
+
type: "reference";
|
|
1036
|
+
reference: Record<string, string>;
|
|
1037
|
+
};
|
|
839
1038
|
} | {
|
|
840
1039
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
841
1040
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -843,7 +1042,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
843
1042
|
mimeType?: string | undefined;
|
|
844
1043
|
filename?: string | undefined;
|
|
845
1044
|
type: "file";
|
|
846
|
-
data: string | ArrayBuffer
|
|
1045
|
+
data: string | ArrayBuffer | {
|
|
1046
|
+
type: "reference";
|
|
1047
|
+
reference: Record<string, string>;
|
|
1048
|
+
};
|
|
847
1049
|
})[];
|
|
848
1050
|
} | {
|
|
849
1051
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -851,8 +1053,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
851
1053
|
content: string | ({
|
|
852
1054
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
853
1055
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
854
|
-
type: "text";
|
|
855
1056
|
text: string;
|
|
1057
|
+
type: "text";
|
|
856
1058
|
} | {
|
|
857
1059
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
858
1060
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -860,32 +1062,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
860
1062
|
mimeType?: string | undefined;
|
|
861
1063
|
filename?: string | undefined;
|
|
862
1064
|
type: "file";
|
|
863
|
-
data: string | ArrayBuffer
|
|
1065
|
+
data: string | ArrayBuffer | {
|
|
1066
|
+
type: "reference";
|
|
1067
|
+
reference: Record<string, string>;
|
|
1068
|
+
};
|
|
864
1069
|
} | {
|
|
865
1070
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
866
1071
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
867
1072
|
signature?: string | undefined;
|
|
868
|
-
type: "reasoning";
|
|
869
1073
|
text: string;
|
|
1074
|
+
type: "reasoning";
|
|
1075
|
+
} | {
|
|
1076
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1077
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1078
|
+
data?: string | ArrayBuffer | undefined;
|
|
1079
|
+
url?: string | undefined;
|
|
1080
|
+
type: "reasoning-file";
|
|
1081
|
+
mediaType: string;
|
|
1082
|
+
} | {
|
|
1083
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1084
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1085
|
+
type: "custom";
|
|
1086
|
+
kind: string;
|
|
870
1087
|
} | {
|
|
871
1088
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
872
1089
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
873
1090
|
type: "redacted-reasoning";
|
|
874
1091
|
data: string;
|
|
875
1092
|
} | {
|
|
1093
|
+
title?: string | undefined;
|
|
876
1094
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
877
1095
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
878
1096
|
args?: any;
|
|
879
1097
|
providerExecuted?: boolean | undefined;
|
|
1098
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
880
1099
|
type: "tool-call";
|
|
881
1100
|
toolCallId: string;
|
|
882
1101
|
toolName: string;
|
|
883
1102
|
input: any;
|
|
884
1103
|
} | {
|
|
1104
|
+
title?: string | undefined;
|
|
885
1105
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
886
1106
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
887
1107
|
input?: any;
|
|
888
1108
|
providerExecuted?: boolean | undefined;
|
|
1109
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
889
1110
|
type: "tool-call";
|
|
890
1111
|
toolCallId: string;
|
|
891
1112
|
toolName: string;
|
|
@@ -919,8 +1140,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
919
1140
|
type: "content";
|
|
920
1141
|
value: ({
|
|
921
1142
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
922
|
-
type: "text";
|
|
923
1143
|
text: string;
|
|
1144
|
+
type: "text";
|
|
1145
|
+
} | {
|
|
1146
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1147
|
+
filename?: string | undefined;
|
|
1148
|
+
type: "file";
|
|
1149
|
+
mediaType: string;
|
|
1150
|
+
data: {
|
|
1151
|
+
type: "reference";
|
|
1152
|
+
reference: Record<string, string>;
|
|
1153
|
+
} | {
|
|
1154
|
+
type: "url";
|
|
1155
|
+
url: string;
|
|
1156
|
+
} | {
|
|
1157
|
+
type: "data";
|
|
1158
|
+
data: string | ArrayBuffer;
|
|
1159
|
+
} | {
|
|
1160
|
+
text: string;
|
|
1161
|
+
type: "text";
|
|
1162
|
+
};
|
|
924
1163
|
} | {
|
|
925
1164
|
type: "media";
|
|
926
1165
|
mediaType: string;
|
|
@@ -933,17 +1172,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
933
1172
|
data: string;
|
|
934
1173
|
} | {
|
|
935
1174
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1175
|
+
mediaType?: string | undefined;
|
|
936
1176
|
type: "file-url";
|
|
937
1177
|
url: string;
|
|
938
1178
|
} | {
|
|
939
1179
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
940
1180
|
type: "file-id";
|
|
941
1181
|
fileId: string | Record<string, string>;
|
|
1182
|
+
} | {
|
|
1183
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1184
|
+
type: "file-reference";
|
|
1185
|
+
providerReference: Record<string, string>;
|
|
942
1186
|
} | {
|
|
943
1187
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
944
1188
|
type: "image-data";
|
|
945
1189
|
mediaType: string;
|
|
946
1190
|
data: string;
|
|
1191
|
+
} | {
|
|
1192
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1193
|
+
type: "image-file-reference";
|
|
1194
|
+
providerReference: Record<string, string>;
|
|
947
1195
|
} | {
|
|
948
1196
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
949
1197
|
type: "image-url";
|
|
@@ -960,8 +1208,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
960
1208
|
result?: any;
|
|
961
1209
|
isError?: boolean | undefined;
|
|
962
1210
|
experimental_content?: ({
|
|
963
|
-
type: "text";
|
|
964
1211
|
text: string;
|
|
1212
|
+
type: "text";
|
|
965
1213
|
} | {
|
|
966
1214
|
mimeType?: string | undefined;
|
|
967
1215
|
type: "image";
|
|
@@ -990,6 +1238,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
990
1238
|
} | {
|
|
991
1239
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
992
1240
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1241
|
+
signature?: string | undefined;
|
|
1242
|
+
isAutomatic?: boolean | undefined;
|
|
993
1243
|
type: "tool-approval-request";
|
|
994
1244
|
toolCallId: string;
|
|
995
1245
|
approvalId: string;
|
|
@@ -1026,8 +1276,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1026
1276
|
type: "content";
|
|
1027
1277
|
value: ({
|
|
1028
1278
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1029
|
-
type: "text";
|
|
1030
1279
|
text: string;
|
|
1280
|
+
type: "text";
|
|
1281
|
+
} | {
|
|
1282
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1283
|
+
filename?: string | undefined;
|
|
1284
|
+
type: "file";
|
|
1285
|
+
mediaType: string;
|
|
1286
|
+
data: {
|
|
1287
|
+
type: "reference";
|
|
1288
|
+
reference: Record<string, string>;
|
|
1289
|
+
} | {
|
|
1290
|
+
type: "url";
|
|
1291
|
+
url: string;
|
|
1292
|
+
} | {
|
|
1293
|
+
type: "data";
|
|
1294
|
+
data: string | ArrayBuffer;
|
|
1295
|
+
} | {
|
|
1296
|
+
text: string;
|
|
1297
|
+
type: "text";
|
|
1298
|
+
};
|
|
1031
1299
|
} | {
|
|
1032
1300
|
type: "media";
|
|
1033
1301
|
mediaType: string;
|
|
@@ -1040,17 +1308,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1040
1308
|
data: string;
|
|
1041
1309
|
} | {
|
|
1042
1310
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1311
|
+
mediaType?: string | undefined;
|
|
1043
1312
|
type: "file-url";
|
|
1044
1313
|
url: string;
|
|
1045
1314
|
} | {
|
|
1046
1315
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1047
1316
|
type: "file-id";
|
|
1048
1317
|
fileId: string | Record<string, string>;
|
|
1318
|
+
} | {
|
|
1319
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1320
|
+
type: "file-reference";
|
|
1321
|
+
providerReference: Record<string, string>;
|
|
1049
1322
|
} | {
|
|
1050
1323
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1051
1324
|
type: "image-data";
|
|
1052
1325
|
mediaType: string;
|
|
1053
1326
|
data: string;
|
|
1327
|
+
} | {
|
|
1328
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1329
|
+
type: "image-file-reference";
|
|
1330
|
+
providerReference: Record<string, string>;
|
|
1054
1331
|
} | {
|
|
1055
1332
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1056
1333
|
type: "image-url";
|
|
@@ -1067,8 +1344,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1067
1344
|
result?: any;
|
|
1068
1345
|
isError?: boolean | undefined;
|
|
1069
1346
|
experimental_content?: ({
|
|
1070
|
-
type: "text";
|
|
1071
1347
|
text: string;
|
|
1348
|
+
type: "text";
|
|
1072
1349
|
} | {
|
|
1073
1350
|
mimeType?: string | undefined;
|
|
1074
1351
|
type: "image";
|
|
@@ -1091,15 +1368,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1091
1368
|
role: "system";
|
|
1092
1369
|
content: string;
|
|
1093
1370
|
} | undefined;
|
|
1094
|
-
text?: string | undefined;
|
|
1095
1371
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1096
|
-
reasoning?: string | undefined;
|
|
1097
1372
|
usage?: {
|
|
1373
|
+
promptTokens?: number | undefined;
|
|
1374
|
+
completionTokens?: number | undefined;
|
|
1375
|
+
totalTokens?: number | undefined;
|
|
1098
1376
|
reasoningTokens?: number | undefined;
|
|
1099
1377
|
cachedInputTokens?: number | undefined;
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1378
|
+
nonCachedInputTokens?: number | undefined;
|
|
1379
|
+
cacheWriteInputTokens?: number | undefined;
|
|
1380
|
+
textOutputTokens?: number | undefined;
|
|
1381
|
+
raw?: Record<string, any> | undefined;
|
|
1103
1382
|
} | undefined;
|
|
1104
1383
|
sources?: ({
|
|
1105
1384
|
title?: string | undefined;
|
|
@@ -1120,13 +1399,25 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1120
1399
|
sourceType: "document";
|
|
1121
1400
|
})[] | undefined;
|
|
1122
1401
|
warnings?: ({
|
|
1402
|
+
details?: string | undefined;
|
|
1403
|
+
type: "unsupported";
|
|
1404
|
+
feature: string;
|
|
1405
|
+
} | {
|
|
1406
|
+
details?: string | undefined;
|
|
1407
|
+
type: "compatibility";
|
|
1408
|
+
feature: string;
|
|
1409
|
+
} | {
|
|
1410
|
+
type: "deprecated";
|
|
1411
|
+
message: string;
|
|
1412
|
+
setting: string;
|
|
1413
|
+
} | {
|
|
1123
1414
|
details?: string | undefined;
|
|
1124
1415
|
type: "unsupported-setting";
|
|
1125
1416
|
setting: string;
|
|
1126
1417
|
} | {
|
|
1127
1418
|
details?: string | undefined;
|
|
1128
|
-
type: "unsupported-tool";
|
|
1129
1419
|
tool: any;
|
|
1420
|
+
type: "unsupported-tool";
|
|
1130
1421
|
} | {
|
|
1131
1422
|
type: "other";
|
|
1132
1423
|
message: string;
|
|
@@ -1136,22 +1427,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1136
1427
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1137
1428
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1138
1429
|
signature?: string | undefined;
|
|
1139
|
-
type: "reasoning";
|
|
1140
1430
|
text: string;
|
|
1431
|
+
type: "reasoning";
|
|
1141
1432
|
} | {
|
|
1142
1433
|
signature?: string | undefined;
|
|
1143
|
-
type: "text";
|
|
1144
1434
|
text: string;
|
|
1435
|
+
type: "text";
|
|
1145
1436
|
} | {
|
|
1146
1437
|
type: "redacted";
|
|
1147
1438
|
data: string;
|
|
1148
1439
|
})[] | undefined;
|
|
1440
|
+
tool: boolean;
|
|
1149
1441
|
status: "pending" | "success" | "failed";
|
|
1150
1442
|
order: number;
|
|
1151
1443
|
_creationTime: number;
|
|
1152
1444
|
threadId: string;
|
|
1153
1445
|
stepOrder: number;
|
|
1154
|
-
tool: boolean;
|
|
1155
1446
|
_id: string;
|
|
1156
1447
|
}, {
|
|
1157
1448
|
_id: import("convex/values").VString<string, "required">;
|
|
@@ -1174,14 +1465,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1174
1465
|
content: string | ({
|
|
1175
1466
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1176
1467
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1177
|
-
type: "text";
|
|
1178
1468
|
text: string;
|
|
1469
|
+
type: "text";
|
|
1179
1470
|
} | {
|
|
1180
1471
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1181
1472
|
mediaType?: string | undefined;
|
|
1182
1473
|
mimeType?: string | undefined;
|
|
1183
1474
|
type: "image";
|
|
1184
|
-
image: string | ArrayBuffer
|
|
1475
|
+
image: string | ArrayBuffer | {
|
|
1476
|
+
type: "reference";
|
|
1477
|
+
reference: Record<string, string>;
|
|
1478
|
+
};
|
|
1185
1479
|
} | {
|
|
1186
1480
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1187
1481
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1189,7 +1483,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1189
1483
|
mimeType?: string | undefined;
|
|
1190
1484
|
filename?: string | undefined;
|
|
1191
1485
|
type: "file";
|
|
1192
|
-
data: string | ArrayBuffer
|
|
1486
|
+
data: string | ArrayBuffer | {
|
|
1487
|
+
type: "reference";
|
|
1488
|
+
reference: Record<string, string>;
|
|
1489
|
+
};
|
|
1193
1490
|
})[];
|
|
1194
1491
|
} | {
|
|
1195
1492
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1197,8 +1494,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1197
1494
|
content: string | ({
|
|
1198
1495
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1199
1496
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1200
|
-
type: "text";
|
|
1201
1497
|
text: string;
|
|
1498
|
+
type: "text";
|
|
1202
1499
|
} | {
|
|
1203
1500
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1204
1501
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1206,32 +1503,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1206
1503
|
mimeType?: string | undefined;
|
|
1207
1504
|
filename?: string | undefined;
|
|
1208
1505
|
type: "file";
|
|
1209
|
-
data: string | ArrayBuffer
|
|
1506
|
+
data: string | ArrayBuffer | {
|
|
1507
|
+
type: "reference";
|
|
1508
|
+
reference: Record<string, string>;
|
|
1509
|
+
};
|
|
1210
1510
|
} | {
|
|
1211
1511
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1212
1512
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1213
1513
|
signature?: string | undefined;
|
|
1214
|
-
type: "reasoning";
|
|
1215
1514
|
text: string;
|
|
1515
|
+
type: "reasoning";
|
|
1516
|
+
} | {
|
|
1517
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1518
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1519
|
+
data?: string | ArrayBuffer | undefined;
|
|
1520
|
+
url?: string | undefined;
|
|
1521
|
+
type: "reasoning-file";
|
|
1522
|
+
mediaType: string;
|
|
1523
|
+
} | {
|
|
1524
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1525
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1526
|
+
type: "custom";
|
|
1527
|
+
kind: string;
|
|
1216
1528
|
} | {
|
|
1217
1529
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1218
1530
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1219
1531
|
type: "redacted-reasoning";
|
|
1220
1532
|
data: string;
|
|
1221
1533
|
} | {
|
|
1534
|
+
title?: string | undefined;
|
|
1222
1535
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1223
1536
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1224
1537
|
args?: any;
|
|
1225
1538
|
providerExecuted?: boolean | undefined;
|
|
1539
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1226
1540
|
type: "tool-call";
|
|
1227
1541
|
toolCallId: string;
|
|
1228
1542
|
toolName: string;
|
|
1229
1543
|
input: any;
|
|
1230
1544
|
} | {
|
|
1545
|
+
title?: string | undefined;
|
|
1231
1546
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1232
1547
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1233
1548
|
input?: any;
|
|
1234
1549
|
providerExecuted?: boolean | undefined;
|
|
1550
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1235
1551
|
type: "tool-call";
|
|
1236
1552
|
toolCallId: string;
|
|
1237
1553
|
toolName: string;
|
|
@@ -1265,8 +1581,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1265
1581
|
type: "content";
|
|
1266
1582
|
value: ({
|
|
1267
1583
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1268
|
-
type: "text";
|
|
1269
1584
|
text: string;
|
|
1585
|
+
type: "text";
|
|
1586
|
+
} | {
|
|
1587
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1588
|
+
filename?: string | undefined;
|
|
1589
|
+
type: "file";
|
|
1590
|
+
mediaType: string;
|
|
1591
|
+
data: {
|
|
1592
|
+
type: "reference";
|
|
1593
|
+
reference: Record<string, string>;
|
|
1594
|
+
} | {
|
|
1595
|
+
type: "url";
|
|
1596
|
+
url: string;
|
|
1597
|
+
} | {
|
|
1598
|
+
type: "data";
|
|
1599
|
+
data: string | ArrayBuffer;
|
|
1600
|
+
} | {
|
|
1601
|
+
text: string;
|
|
1602
|
+
type: "text";
|
|
1603
|
+
};
|
|
1270
1604
|
} | {
|
|
1271
1605
|
type: "media";
|
|
1272
1606
|
mediaType: string;
|
|
@@ -1279,17 +1613,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1279
1613
|
data: string;
|
|
1280
1614
|
} | {
|
|
1281
1615
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1616
|
+
mediaType?: string | undefined;
|
|
1282
1617
|
type: "file-url";
|
|
1283
1618
|
url: string;
|
|
1284
1619
|
} | {
|
|
1285
1620
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1286
1621
|
type: "file-id";
|
|
1287
1622
|
fileId: string | Record<string, string>;
|
|
1623
|
+
} | {
|
|
1624
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1625
|
+
type: "file-reference";
|
|
1626
|
+
providerReference: Record<string, string>;
|
|
1288
1627
|
} | {
|
|
1289
1628
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1290
1629
|
type: "image-data";
|
|
1291
1630
|
mediaType: string;
|
|
1292
1631
|
data: string;
|
|
1632
|
+
} | {
|
|
1633
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1634
|
+
type: "image-file-reference";
|
|
1635
|
+
providerReference: Record<string, string>;
|
|
1293
1636
|
} | {
|
|
1294
1637
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1295
1638
|
type: "image-url";
|
|
@@ -1306,8 +1649,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1306
1649
|
result?: any;
|
|
1307
1650
|
isError?: boolean | undefined;
|
|
1308
1651
|
experimental_content?: ({
|
|
1309
|
-
type: "text";
|
|
1310
1652
|
text: string;
|
|
1653
|
+
type: "text";
|
|
1311
1654
|
} | {
|
|
1312
1655
|
mimeType?: string | undefined;
|
|
1313
1656
|
type: "image";
|
|
@@ -1336,6 +1679,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1336
1679
|
} | {
|
|
1337
1680
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1338
1681
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1682
|
+
signature?: string | undefined;
|
|
1683
|
+
isAutomatic?: boolean | undefined;
|
|
1339
1684
|
type: "tool-approval-request";
|
|
1340
1685
|
toolCallId: string;
|
|
1341
1686
|
approvalId: string;
|
|
@@ -1372,8 +1717,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1372
1717
|
type: "content";
|
|
1373
1718
|
value: ({
|
|
1374
1719
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1375
|
-
type: "text";
|
|
1376
1720
|
text: string;
|
|
1721
|
+
type: "text";
|
|
1722
|
+
} | {
|
|
1723
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1724
|
+
filename?: string | undefined;
|
|
1725
|
+
type: "file";
|
|
1726
|
+
mediaType: string;
|
|
1727
|
+
data: {
|
|
1728
|
+
type: "reference";
|
|
1729
|
+
reference: Record<string, string>;
|
|
1730
|
+
} | {
|
|
1731
|
+
type: "url";
|
|
1732
|
+
url: string;
|
|
1733
|
+
} | {
|
|
1734
|
+
type: "data";
|
|
1735
|
+
data: string | ArrayBuffer;
|
|
1736
|
+
} | {
|
|
1737
|
+
text: string;
|
|
1738
|
+
type: "text";
|
|
1739
|
+
};
|
|
1377
1740
|
} | {
|
|
1378
1741
|
type: "media";
|
|
1379
1742
|
mediaType: string;
|
|
@@ -1386,17 +1749,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1386
1749
|
data: string;
|
|
1387
1750
|
} | {
|
|
1388
1751
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1752
|
+
mediaType?: string | undefined;
|
|
1389
1753
|
type: "file-url";
|
|
1390
1754
|
url: string;
|
|
1391
1755
|
} | {
|
|
1392
1756
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1393
1757
|
type: "file-id";
|
|
1394
1758
|
fileId: string | Record<string, string>;
|
|
1759
|
+
} | {
|
|
1760
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1761
|
+
type: "file-reference";
|
|
1762
|
+
providerReference: Record<string, string>;
|
|
1395
1763
|
} | {
|
|
1396
1764
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1397
1765
|
type: "image-data";
|
|
1398
1766
|
mediaType: string;
|
|
1399
1767
|
data: string;
|
|
1768
|
+
} | {
|
|
1769
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1770
|
+
type: "image-file-reference";
|
|
1771
|
+
providerReference: Record<string, string>;
|
|
1400
1772
|
} | {
|
|
1401
1773
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1402
1774
|
type: "image-url";
|
|
@@ -1413,8 +1785,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1413
1785
|
result?: any;
|
|
1414
1786
|
isError?: boolean | undefined;
|
|
1415
1787
|
experimental_content?: ({
|
|
1416
|
-
type: "text";
|
|
1417
1788
|
text: string;
|
|
1789
|
+
type: "text";
|
|
1418
1790
|
} | {
|
|
1419
1791
|
mimeType?: string | undefined;
|
|
1420
1792
|
type: "image";
|
|
@@ -1442,14 +1814,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1442
1814
|
content: string | ({
|
|
1443
1815
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1444
1816
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1445
|
-
type: "text";
|
|
1446
1817
|
text: string;
|
|
1818
|
+
type: "text";
|
|
1447
1819
|
} | {
|
|
1448
1820
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1449
1821
|
mediaType?: string | undefined;
|
|
1450
1822
|
mimeType?: string | undefined;
|
|
1451
1823
|
type: "image";
|
|
1452
|
-
image: string | ArrayBuffer
|
|
1824
|
+
image: string | ArrayBuffer | {
|
|
1825
|
+
type: "reference";
|
|
1826
|
+
reference: Record<string, string>;
|
|
1827
|
+
};
|
|
1453
1828
|
} | {
|
|
1454
1829
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1455
1830
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1457,21 +1832,27 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1457
1832
|
mimeType?: string | undefined;
|
|
1458
1833
|
filename?: string | undefined;
|
|
1459
1834
|
type: "file";
|
|
1460
|
-
data: string | ArrayBuffer
|
|
1835
|
+
data: string | ArrayBuffer | {
|
|
1836
|
+
type: "reference";
|
|
1837
|
+
reference: Record<string, string>;
|
|
1838
|
+
};
|
|
1461
1839
|
})[];
|
|
1462
1840
|
}, {
|
|
1463
1841
|
role: import("convex/values").VLiteral<"user", "required">;
|
|
1464
1842
|
content: import("convex/values").VUnion<string | ({
|
|
1465
1843
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1466
1844
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1467
|
-
type: "text";
|
|
1468
1845
|
text: string;
|
|
1846
|
+
type: "text";
|
|
1469
1847
|
} | {
|
|
1470
1848
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1471
1849
|
mediaType?: string | undefined;
|
|
1472
1850
|
mimeType?: string | undefined;
|
|
1473
1851
|
type: "image";
|
|
1474
|
-
image: string | ArrayBuffer
|
|
1852
|
+
image: string | ArrayBuffer | {
|
|
1853
|
+
type: "reference";
|
|
1854
|
+
reference: Record<string, string>;
|
|
1855
|
+
};
|
|
1475
1856
|
} | {
|
|
1476
1857
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1477
1858
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1479,18 +1860,24 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1479
1860
|
mimeType?: string | undefined;
|
|
1480
1861
|
filename?: string | undefined;
|
|
1481
1862
|
type: "file";
|
|
1482
|
-
data: string | ArrayBuffer
|
|
1863
|
+
data: string | ArrayBuffer | {
|
|
1864
|
+
type: "reference";
|
|
1865
|
+
reference: Record<string, string>;
|
|
1866
|
+
};
|
|
1483
1867
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
1484
1868
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1485
1869
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1486
|
-
type: "text";
|
|
1487
1870
|
text: string;
|
|
1871
|
+
type: "text";
|
|
1488
1872
|
} | {
|
|
1489
1873
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1490
1874
|
mediaType?: string | undefined;
|
|
1491
1875
|
mimeType?: string | undefined;
|
|
1492
1876
|
type: "image";
|
|
1493
|
-
image: string | ArrayBuffer
|
|
1877
|
+
image: string | ArrayBuffer | {
|
|
1878
|
+
type: "reference";
|
|
1879
|
+
reference: Record<string, string>;
|
|
1880
|
+
};
|
|
1494
1881
|
} | {
|
|
1495
1882
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1496
1883
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1498,18 +1885,24 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1498
1885
|
mimeType?: string | undefined;
|
|
1499
1886
|
filename?: string | undefined;
|
|
1500
1887
|
type: "file";
|
|
1501
|
-
data: string | ArrayBuffer
|
|
1888
|
+
data: string | ArrayBuffer | {
|
|
1889
|
+
type: "reference";
|
|
1890
|
+
reference: Record<string, string>;
|
|
1891
|
+
};
|
|
1502
1892
|
})[], import("convex/values").VUnion<{
|
|
1503
1893
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1504
1894
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1505
|
-
type: "text";
|
|
1506
1895
|
text: string;
|
|
1896
|
+
type: "text";
|
|
1507
1897
|
} | {
|
|
1508
1898
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1509
1899
|
mediaType?: string | undefined;
|
|
1510
1900
|
mimeType?: string | undefined;
|
|
1511
1901
|
type: "image";
|
|
1512
|
-
image: string | ArrayBuffer
|
|
1902
|
+
image: string | ArrayBuffer | {
|
|
1903
|
+
type: "reference";
|
|
1904
|
+
reference: Record<string, string>;
|
|
1905
|
+
};
|
|
1513
1906
|
} | {
|
|
1514
1907
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1515
1908
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1517,46 +1910,73 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1517
1910
|
mimeType?: string | undefined;
|
|
1518
1911
|
filename?: string | undefined;
|
|
1519
1912
|
type: "file";
|
|
1520
|
-
data: string | ArrayBuffer
|
|
1913
|
+
data: string | ArrayBuffer | {
|
|
1914
|
+
type: "reference";
|
|
1915
|
+
reference: Record<string, string>;
|
|
1916
|
+
};
|
|
1521
1917
|
}, [import("convex/values").VObject<{
|
|
1522
1918
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1523
1919
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1524
|
-
type: "text";
|
|
1525
1920
|
text: string;
|
|
1921
|
+
type: "text";
|
|
1526
1922
|
}, {
|
|
1527
1923
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
1528
1924
|
text: import("convex/values").VString<string, "required">;
|
|
1529
1925
|
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>;
|
|
1530
1926
|
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>;
|
|
1531
|
-
}, "required", "
|
|
1927
|
+
}, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
1532
1928
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1533
1929
|
mediaType?: string | undefined;
|
|
1534
1930
|
mimeType?: string | undefined;
|
|
1535
1931
|
type: "image";
|
|
1536
|
-
image: string | ArrayBuffer
|
|
1932
|
+
image: string | ArrayBuffer | {
|
|
1933
|
+
type: "reference";
|
|
1934
|
+
reference: Record<string, string>;
|
|
1935
|
+
};
|
|
1537
1936
|
}, {
|
|
1538
1937
|
type: import("convex/values").VLiteral<"image", "required">;
|
|
1539
|
-
image: import("convex/values").VUnion<string | ArrayBuffer
|
|
1938
|
+
image: import("convex/values").VUnion<string | ArrayBuffer | {
|
|
1939
|
+
type: "reference";
|
|
1940
|
+
reference: Record<string, string>;
|
|
1941
|
+
}, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">, import("convex/values").VObject<{
|
|
1942
|
+
type: "reference";
|
|
1943
|
+
reference: Record<string, string>;
|
|
1944
|
+
}, {
|
|
1945
|
+
type: import("convex/values").VLiteral<"reference", "required">;
|
|
1946
|
+
reference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
1947
|
+
}, "required", "type" | "reference" | `reference.${string}`>], "required", "type" | "reference" | `reference.${string}`>;
|
|
1540
1948
|
mediaType: import("convex/values").VString<string | undefined, "optional">;
|
|
1541
1949
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1542
1950
|
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>;
|
|
1543
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mediaType" | "mimeType"
|
|
1951
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mediaType" | "mimeType" | "image.type" | "image.reference" | `image.reference.${string}`>, import("convex/values").VObject<{
|
|
1544
1952
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1545
1953
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1546
1954
|
mediaType?: string | undefined;
|
|
1547
1955
|
mimeType?: string | undefined;
|
|
1548
1956
|
filename?: string | undefined;
|
|
1549
1957
|
type: "file";
|
|
1550
|
-
data: string | ArrayBuffer
|
|
1958
|
+
data: string | ArrayBuffer | {
|
|
1959
|
+
type: "reference";
|
|
1960
|
+
reference: Record<string, string>;
|
|
1961
|
+
};
|
|
1551
1962
|
}, {
|
|
1552
1963
|
type: import("convex/values").VLiteral<"file", "required">;
|
|
1553
|
-
data: import("convex/values").VUnion<string | ArrayBuffer
|
|
1964
|
+
data: import("convex/values").VUnion<string | ArrayBuffer | {
|
|
1965
|
+
type: "reference";
|
|
1966
|
+
reference: Record<string, string>;
|
|
1967
|
+
}, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">, import("convex/values").VObject<{
|
|
1968
|
+
type: "reference";
|
|
1969
|
+
reference: Record<string, string>;
|
|
1970
|
+
}, {
|
|
1971
|
+
type: import("convex/values").VLiteral<"reference", "required">;
|
|
1972
|
+
reference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
1973
|
+
}, "required", "type" | "reference" | `reference.${string}`>], "required", "type" | "reference" | `reference.${string}`>;
|
|
1554
1974
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1555
1975
|
mediaType: import("convex/values").VString<string | undefined, "optional">;
|
|
1556
1976
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1557
1977
|
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>;
|
|
1558
1978
|
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>;
|
|
1559
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename"
|
|
1979
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}`>], "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "image" | "mediaType" | "mimeType" | "image.type" | "image.reference" | `image.reference.${string}` | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}`>, "required">], "required", never>;
|
|
1560
1980
|
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>;
|
|
1561
1981
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1562
1982
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1564,8 +1984,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1564
1984
|
content: string | ({
|
|
1565
1985
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1566
1986
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1567
|
-
type: "text";
|
|
1568
1987
|
text: string;
|
|
1988
|
+
type: "text";
|
|
1569
1989
|
} | {
|
|
1570
1990
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1571
1991
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1573,32 +1993,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1573
1993
|
mimeType?: string | undefined;
|
|
1574
1994
|
filename?: string | undefined;
|
|
1575
1995
|
type: "file";
|
|
1576
|
-
data: string | ArrayBuffer
|
|
1996
|
+
data: string | ArrayBuffer | {
|
|
1997
|
+
type: "reference";
|
|
1998
|
+
reference: Record<string, string>;
|
|
1999
|
+
};
|
|
1577
2000
|
} | {
|
|
1578
2001
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1579
2002
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1580
2003
|
signature?: string | undefined;
|
|
1581
|
-
type: "reasoning";
|
|
1582
2004
|
text: string;
|
|
2005
|
+
type: "reasoning";
|
|
2006
|
+
} | {
|
|
2007
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2008
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2009
|
+
data?: string | ArrayBuffer | undefined;
|
|
2010
|
+
url?: string | undefined;
|
|
2011
|
+
type: "reasoning-file";
|
|
2012
|
+
mediaType: string;
|
|
2013
|
+
} | {
|
|
2014
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2015
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2016
|
+
type: "custom";
|
|
2017
|
+
kind: string;
|
|
1583
2018
|
} | {
|
|
1584
2019
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1585
2020
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1586
2021
|
type: "redacted-reasoning";
|
|
1587
2022
|
data: string;
|
|
1588
2023
|
} | {
|
|
2024
|
+
title?: string | undefined;
|
|
1589
2025
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1590
2026
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1591
2027
|
args?: any;
|
|
1592
2028
|
providerExecuted?: boolean | undefined;
|
|
2029
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1593
2030
|
type: "tool-call";
|
|
1594
2031
|
toolCallId: string;
|
|
1595
2032
|
toolName: string;
|
|
1596
2033
|
input: any;
|
|
1597
2034
|
} | {
|
|
2035
|
+
title?: string | undefined;
|
|
1598
2036
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1599
2037
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1600
2038
|
input?: any;
|
|
1601
2039
|
providerExecuted?: boolean | undefined;
|
|
2040
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1602
2041
|
type: "tool-call";
|
|
1603
2042
|
toolCallId: string;
|
|
1604
2043
|
toolName: string;
|
|
@@ -1632,8 +2071,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1632
2071
|
type: "content";
|
|
1633
2072
|
value: ({
|
|
1634
2073
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1635
|
-
type: "text";
|
|
1636
2074
|
text: string;
|
|
2075
|
+
type: "text";
|
|
2076
|
+
} | {
|
|
2077
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2078
|
+
filename?: string | undefined;
|
|
2079
|
+
type: "file";
|
|
2080
|
+
mediaType: string;
|
|
2081
|
+
data: {
|
|
2082
|
+
type: "reference";
|
|
2083
|
+
reference: Record<string, string>;
|
|
2084
|
+
} | {
|
|
2085
|
+
type: "url";
|
|
2086
|
+
url: string;
|
|
2087
|
+
} | {
|
|
2088
|
+
type: "data";
|
|
2089
|
+
data: string | ArrayBuffer;
|
|
2090
|
+
} | {
|
|
2091
|
+
text: string;
|
|
2092
|
+
type: "text";
|
|
2093
|
+
};
|
|
1637
2094
|
} | {
|
|
1638
2095
|
type: "media";
|
|
1639
2096
|
mediaType: string;
|
|
@@ -1646,17 +2103,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1646
2103
|
data: string;
|
|
1647
2104
|
} | {
|
|
1648
2105
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2106
|
+
mediaType?: string | undefined;
|
|
1649
2107
|
type: "file-url";
|
|
1650
2108
|
url: string;
|
|
1651
2109
|
} | {
|
|
1652
2110
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1653
2111
|
type: "file-id";
|
|
1654
2112
|
fileId: string | Record<string, string>;
|
|
2113
|
+
} | {
|
|
2114
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2115
|
+
type: "file-reference";
|
|
2116
|
+
providerReference: Record<string, string>;
|
|
1655
2117
|
} | {
|
|
1656
2118
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1657
2119
|
type: "image-data";
|
|
1658
2120
|
mediaType: string;
|
|
1659
2121
|
data: string;
|
|
2122
|
+
} | {
|
|
2123
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2124
|
+
type: "image-file-reference";
|
|
2125
|
+
providerReference: Record<string, string>;
|
|
1660
2126
|
} | {
|
|
1661
2127
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1662
2128
|
type: "image-url";
|
|
@@ -1673,8 +2139,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1673
2139
|
result?: any;
|
|
1674
2140
|
isError?: boolean | undefined;
|
|
1675
2141
|
experimental_content?: ({
|
|
1676
|
-
type: "text";
|
|
1677
2142
|
text: string;
|
|
2143
|
+
type: "text";
|
|
1678
2144
|
} | {
|
|
1679
2145
|
mimeType?: string | undefined;
|
|
1680
2146
|
type: "image";
|
|
@@ -1703,6 +2169,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1703
2169
|
} | {
|
|
1704
2170
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1705
2171
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2172
|
+
signature?: string | undefined;
|
|
2173
|
+
isAutomatic?: boolean | undefined;
|
|
1706
2174
|
type: "tool-approval-request";
|
|
1707
2175
|
toolCallId: string;
|
|
1708
2176
|
approvalId: string;
|
|
@@ -1712,8 +2180,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1712
2180
|
content: import("convex/values").VUnion<string | ({
|
|
1713
2181
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1714
2182
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1715
|
-
type: "text";
|
|
1716
2183
|
text: string;
|
|
2184
|
+
type: "text";
|
|
1717
2185
|
} | {
|
|
1718
2186
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1719
2187
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1721,32 +2189,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1721
2189
|
mimeType?: string | undefined;
|
|
1722
2190
|
filename?: string | undefined;
|
|
1723
2191
|
type: "file";
|
|
1724
|
-
data: string | ArrayBuffer
|
|
2192
|
+
data: string | ArrayBuffer | {
|
|
2193
|
+
type: "reference";
|
|
2194
|
+
reference: Record<string, string>;
|
|
2195
|
+
};
|
|
1725
2196
|
} | {
|
|
1726
2197
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1727
2198
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1728
2199
|
signature?: string | undefined;
|
|
1729
|
-
type: "reasoning";
|
|
1730
2200
|
text: string;
|
|
2201
|
+
type: "reasoning";
|
|
2202
|
+
} | {
|
|
2203
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2204
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2205
|
+
data?: string | ArrayBuffer | undefined;
|
|
2206
|
+
url?: string | undefined;
|
|
2207
|
+
type: "reasoning-file";
|
|
2208
|
+
mediaType: string;
|
|
2209
|
+
} | {
|
|
2210
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2211
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2212
|
+
type: "custom";
|
|
2213
|
+
kind: string;
|
|
1731
2214
|
} | {
|
|
1732
2215
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1733
2216
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1734
2217
|
type: "redacted-reasoning";
|
|
1735
2218
|
data: string;
|
|
1736
2219
|
} | {
|
|
2220
|
+
title?: string | undefined;
|
|
1737
2221
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1738
2222
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1739
2223
|
args?: any;
|
|
1740
2224
|
providerExecuted?: boolean | undefined;
|
|
2225
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1741
2226
|
type: "tool-call";
|
|
1742
2227
|
toolCallId: string;
|
|
1743
2228
|
toolName: string;
|
|
1744
2229
|
input: any;
|
|
1745
2230
|
} | {
|
|
2231
|
+
title?: string | undefined;
|
|
1746
2232
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1747
2233
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1748
2234
|
input?: any;
|
|
1749
2235
|
providerExecuted?: boolean | undefined;
|
|
2236
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1750
2237
|
type: "tool-call";
|
|
1751
2238
|
toolCallId: string;
|
|
1752
2239
|
toolName: string;
|
|
@@ -1780,8 +2267,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1780
2267
|
type: "content";
|
|
1781
2268
|
value: ({
|
|
1782
2269
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1783
|
-
type: "text";
|
|
1784
2270
|
text: string;
|
|
2271
|
+
type: "text";
|
|
2272
|
+
} | {
|
|
2273
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2274
|
+
filename?: string | undefined;
|
|
2275
|
+
type: "file";
|
|
2276
|
+
mediaType: string;
|
|
2277
|
+
data: {
|
|
2278
|
+
type: "reference";
|
|
2279
|
+
reference: Record<string, string>;
|
|
2280
|
+
} | {
|
|
2281
|
+
type: "url";
|
|
2282
|
+
url: string;
|
|
2283
|
+
} | {
|
|
2284
|
+
type: "data";
|
|
2285
|
+
data: string | ArrayBuffer;
|
|
2286
|
+
} | {
|
|
2287
|
+
text: string;
|
|
2288
|
+
type: "text";
|
|
2289
|
+
};
|
|
1785
2290
|
} | {
|
|
1786
2291
|
type: "media";
|
|
1787
2292
|
mediaType: string;
|
|
@@ -1794,17 +2299,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1794
2299
|
data: string;
|
|
1795
2300
|
} | {
|
|
1796
2301
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2302
|
+
mediaType?: string | undefined;
|
|
1797
2303
|
type: "file-url";
|
|
1798
2304
|
url: string;
|
|
1799
2305
|
} | {
|
|
1800
2306
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1801
2307
|
type: "file-id";
|
|
1802
2308
|
fileId: string | Record<string, string>;
|
|
2309
|
+
} | {
|
|
2310
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2311
|
+
type: "file-reference";
|
|
2312
|
+
providerReference: Record<string, string>;
|
|
1803
2313
|
} | {
|
|
1804
2314
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1805
2315
|
type: "image-data";
|
|
1806
2316
|
mediaType: string;
|
|
1807
2317
|
data: string;
|
|
2318
|
+
} | {
|
|
2319
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2320
|
+
type: "image-file-reference";
|
|
2321
|
+
providerReference: Record<string, string>;
|
|
1808
2322
|
} | {
|
|
1809
2323
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1810
2324
|
type: "image-url";
|
|
@@ -1821,8 +2335,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1821
2335
|
result?: any;
|
|
1822
2336
|
isError?: boolean | undefined;
|
|
1823
2337
|
experimental_content?: ({
|
|
1824
|
-
type: "text";
|
|
1825
2338
|
text: string;
|
|
2339
|
+
type: "text";
|
|
1826
2340
|
} | {
|
|
1827
2341
|
mimeType?: string | undefined;
|
|
1828
2342
|
type: "image";
|
|
@@ -1851,14 +2365,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1851
2365
|
} | {
|
|
1852
2366
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1853
2367
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2368
|
+
signature?: string | undefined;
|
|
2369
|
+
isAutomatic?: boolean | undefined;
|
|
1854
2370
|
type: "tool-approval-request";
|
|
1855
2371
|
toolCallId: string;
|
|
1856
2372
|
approvalId: string;
|
|
1857
2373
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
1858
2374
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1859
2375
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1860
|
-
type: "text";
|
|
1861
2376
|
text: string;
|
|
2377
|
+
type: "text";
|
|
1862
2378
|
} | {
|
|
1863
2379
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1864
2380
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1866,32 +2382,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1866
2382
|
mimeType?: string | undefined;
|
|
1867
2383
|
filename?: string | undefined;
|
|
1868
2384
|
type: "file";
|
|
1869
|
-
data: string | ArrayBuffer
|
|
2385
|
+
data: string | ArrayBuffer | {
|
|
2386
|
+
type: "reference";
|
|
2387
|
+
reference: Record<string, string>;
|
|
2388
|
+
};
|
|
1870
2389
|
} | {
|
|
1871
2390
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1872
2391
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1873
2392
|
signature?: string | undefined;
|
|
1874
|
-
type: "reasoning";
|
|
1875
2393
|
text: string;
|
|
2394
|
+
type: "reasoning";
|
|
2395
|
+
} | {
|
|
2396
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2397
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2398
|
+
data?: string | ArrayBuffer | undefined;
|
|
2399
|
+
url?: string | undefined;
|
|
2400
|
+
type: "reasoning-file";
|
|
2401
|
+
mediaType: string;
|
|
2402
|
+
} | {
|
|
2403
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2404
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2405
|
+
type: "custom";
|
|
2406
|
+
kind: string;
|
|
1876
2407
|
} | {
|
|
1877
2408
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1878
2409
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1879
2410
|
type: "redacted-reasoning";
|
|
1880
2411
|
data: string;
|
|
1881
2412
|
} | {
|
|
2413
|
+
title?: string | undefined;
|
|
1882
2414
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1883
2415
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1884
2416
|
args?: any;
|
|
1885
2417
|
providerExecuted?: boolean | undefined;
|
|
2418
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1886
2419
|
type: "tool-call";
|
|
1887
2420
|
toolCallId: string;
|
|
1888
2421
|
toolName: string;
|
|
1889
2422
|
input: any;
|
|
1890
2423
|
} | {
|
|
2424
|
+
title?: string | undefined;
|
|
1891
2425
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1892
2426
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1893
2427
|
input?: any;
|
|
1894
2428
|
providerExecuted?: boolean | undefined;
|
|
2429
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
1895
2430
|
type: "tool-call";
|
|
1896
2431
|
toolCallId: string;
|
|
1897
2432
|
toolName: string;
|
|
@@ -1925,8 +2460,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1925
2460
|
type: "content";
|
|
1926
2461
|
value: ({
|
|
1927
2462
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1928
|
-
type: "text";
|
|
1929
2463
|
text: string;
|
|
2464
|
+
type: "text";
|
|
2465
|
+
} | {
|
|
2466
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2467
|
+
filename?: string | undefined;
|
|
2468
|
+
type: "file";
|
|
2469
|
+
mediaType: string;
|
|
2470
|
+
data: {
|
|
2471
|
+
type: "reference";
|
|
2472
|
+
reference: Record<string, string>;
|
|
2473
|
+
} | {
|
|
2474
|
+
type: "url";
|
|
2475
|
+
url: string;
|
|
2476
|
+
} | {
|
|
2477
|
+
type: "data";
|
|
2478
|
+
data: string | ArrayBuffer;
|
|
2479
|
+
} | {
|
|
2480
|
+
text: string;
|
|
2481
|
+
type: "text";
|
|
2482
|
+
};
|
|
1930
2483
|
} | {
|
|
1931
2484
|
type: "media";
|
|
1932
2485
|
mediaType: string;
|
|
@@ -1939,17 +2492,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1939
2492
|
data: string;
|
|
1940
2493
|
} | {
|
|
1941
2494
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2495
|
+
mediaType?: string | undefined;
|
|
1942
2496
|
type: "file-url";
|
|
1943
2497
|
url: string;
|
|
1944
2498
|
} | {
|
|
1945
2499
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1946
2500
|
type: "file-id";
|
|
1947
2501
|
fileId: string | Record<string, string>;
|
|
2502
|
+
} | {
|
|
2503
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2504
|
+
type: "file-reference";
|
|
2505
|
+
providerReference: Record<string, string>;
|
|
1948
2506
|
} | {
|
|
1949
2507
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1950
2508
|
type: "image-data";
|
|
1951
2509
|
mediaType: string;
|
|
1952
2510
|
data: string;
|
|
2511
|
+
} | {
|
|
2512
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2513
|
+
type: "image-file-reference";
|
|
2514
|
+
providerReference: Record<string, string>;
|
|
1953
2515
|
} | {
|
|
1954
2516
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1955
2517
|
type: "image-url";
|
|
@@ -1966,8 +2528,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1966
2528
|
result?: any;
|
|
1967
2529
|
isError?: boolean | undefined;
|
|
1968
2530
|
experimental_content?: ({
|
|
1969
|
-
type: "text";
|
|
1970
2531
|
text: string;
|
|
2532
|
+
type: "text";
|
|
1971
2533
|
} | {
|
|
1972
2534
|
mimeType?: string | undefined;
|
|
1973
2535
|
type: "image";
|
|
@@ -1996,14 +2558,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1996
2558
|
} | {
|
|
1997
2559
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1998
2560
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2561
|
+
signature?: string | undefined;
|
|
2562
|
+
isAutomatic?: boolean | undefined;
|
|
1999
2563
|
type: "tool-approval-request";
|
|
2000
2564
|
toolCallId: string;
|
|
2001
2565
|
approvalId: string;
|
|
2002
2566
|
})[], import("convex/values").VUnion<{
|
|
2003
2567
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2004
2568
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2005
|
-
type: "text";
|
|
2006
2569
|
text: string;
|
|
2570
|
+
type: "text";
|
|
2007
2571
|
} | {
|
|
2008
2572
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2009
2573
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2011,32 +2575,51 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2011
2575
|
mimeType?: string | undefined;
|
|
2012
2576
|
filename?: string | undefined;
|
|
2013
2577
|
type: "file";
|
|
2014
|
-
data: string | ArrayBuffer
|
|
2578
|
+
data: string | ArrayBuffer | {
|
|
2579
|
+
type: "reference";
|
|
2580
|
+
reference: Record<string, string>;
|
|
2581
|
+
};
|
|
2015
2582
|
} | {
|
|
2016
2583
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2017
2584
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2018
2585
|
signature?: string | undefined;
|
|
2019
|
-
type: "reasoning";
|
|
2020
2586
|
text: string;
|
|
2587
|
+
type: "reasoning";
|
|
2588
|
+
} | {
|
|
2589
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2590
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2591
|
+
data?: string | ArrayBuffer | undefined;
|
|
2592
|
+
url?: string | undefined;
|
|
2593
|
+
type: "reasoning-file";
|
|
2594
|
+
mediaType: string;
|
|
2595
|
+
} | {
|
|
2596
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2597
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2598
|
+
type: "custom";
|
|
2599
|
+
kind: string;
|
|
2021
2600
|
} | {
|
|
2022
2601
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2023
2602
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2024
2603
|
type: "redacted-reasoning";
|
|
2025
2604
|
data: string;
|
|
2026
2605
|
} | {
|
|
2606
|
+
title?: string | undefined;
|
|
2027
2607
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2028
2608
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2029
2609
|
args?: any;
|
|
2030
2610
|
providerExecuted?: boolean | undefined;
|
|
2611
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
2031
2612
|
type: "tool-call";
|
|
2032
2613
|
toolCallId: string;
|
|
2033
2614
|
toolName: string;
|
|
2034
2615
|
input: any;
|
|
2035
2616
|
} | {
|
|
2617
|
+
title?: string | undefined;
|
|
2036
2618
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2037
2619
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2038
2620
|
input?: any;
|
|
2039
2621
|
providerExecuted?: boolean | undefined;
|
|
2622
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
2040
2623
|
type: "tool-call";
|
|
2041
2624
|
toolCallId: string;
|
|
2042
2625
|
toolName: string;
|
|
@@ -2070,8 +2653,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2070
2653
|
type: "content";
|
|
2071
2654
|
value: ({
|
|
2072
2655
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2073
|
-
type: "text";
|
|
2074
2656
|
text: string;
|
|
2657
|
+
type: "text";
|
|
2658
|
+
} | {
|
|
2659
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2660
|
+
filename?: string | undefined;
|
|
2661
|
+
type: "file";
|
|
2662
|
+
mediaType: string;
|
|
2663
|
+
data: {
|
|
2664
|
+
type: "reference";
|
|
2665
|
+
reference: Record<string, string>;
|
|
2666
|
+
} | {
|
|
2667
|
+
type: "url";
|
|
2668
|
+
url: string;
|
|
2669
|
+
} | {
|
|
2670
|
+
type: "data";
|
|
2671
|
+
data: string | ArrayBuffer;
|
|
2672
|
+
} | {
|
|
2673
|
+
text: string;
|
|
2674
|
+
type: "text";
|
|
2675
|
+
};
|
|
2075
2676
|
} | {
|
|
2076
2677
|
type: "media";
|
|
2077
2678
|
mediaType: string;
|
|
@@ -2084,17 +2685,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2084
2685
|
data: string;
|
|
2085
2686
|
} | {
|
|
2086
2687
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2688
|
+
mediaType?: string | undefined;
|
|
2087
2689
|
type: "file-url";
|
|
2088
2690
|
url: string;
|
|
2089
2691
|
} | {
|
|
2090
2692
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2091
2693
|
type: "file-id";
|
|
2092
2694
|
fileId: string | Record<string, string>;
|
|
2695
|
+
} | {
|
|
2696
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2697
|
+
type: "file-reference";
|
|
2698
|
+
providerReference: Record<string, string>;
|
|
2093
2699
|
} | {
|
|
2094
2700
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2095
2701
|
type: "image-data";
|
|
2096
2702
|
mediaType: string;
|
|
2097
2703
|
data: string;
|
|
2704
|
+
} | {
|
|
2705
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2706
|
+
type: "image-file-reference";
|
|
2707
|
+
providerReference: Record<string, string>;
|
|
2098
2708
|
} | {
|
|
2099
2709
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2100
2710
|
type: "image-url";
|
|
@@ -2111,8 +2721,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2111
2721
|
result?: any;
|
|
2112
2722
|
isError?: boolean | undefined;
|
|
2113
2723
|
experimental_content?: ({
|
|
2114
|
-
type: "text";
|
|
2115
2724
|
text: string;
|
|
2725
|
+
type: "text";
|
|
2116
2726
|
} | {
|
|
2117
2727
|
mimeType?: string | undefined;
|
|
2118
2728
|
type: "image";
|
|
@@ -2141,48 +2751,86 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2141
2751
|
} | {
|
|
2142
2752
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2143
2753
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2754
|
+
signature?: string | undefined;
|
|
2755
|
+
isAutomatic?: boolean | undefined;
|
|
2144
2756
|
type: "tool-approval-request";
|
|
2145
2757
|
toolCallId: string;
|
|
2146
2758
|
approvalId: string;
|
|
2147
2759
|
}, [import("convex/values").VObject<{
|
|
2148
2760
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2149
2761
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2150
|
-
type: "text";
|
|
2151
2762
|
text: string;
|
|
2763
|
+
type: "text";
|
|
2152
2764
|
}, {
|
|
2153
2765
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
2154
2766
|
text: import("convex/values").VString<string, "required">;
|
|
2155
2767
|
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>;
|
|
2156
2768
|
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>;
|
|
2157
|
-
}, "required", "
|
|
2769
|
+
}, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
2158
2770
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2159
2771
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2160
2772
|
mediaType?: string | undefined;
|
|
2161
2773
|
mimeType?: string | undefined;
|
|
2162
2774
|
filename?: string | undefined;
|
|
2163
2775
|
type: "file";
|
|
2164
|
-
data: string | ArrayBuffer
|
|
2776
|
+
data: string | ArrayBuffer | {
|
|
2777
|
+
type: "reference";
|
|
2778
|
+
reference: Record<string, string>;
|
|
2779
|
+
};
|
|
2165
2780
|
}, {
|
|
2166
2781
|
type: import("convex/values").VLiteral<"file", "required">;
|
|
2167
|
-
data: import("convex/values").VUnion<string | ArrayBuffer
|
|
2782
|
+
data: import("convex/values").VUnion<string | ArrayBuffer | {
|
|
2783
|
+
type: "reference";
|
|
2784
|
+
reference: Record<string, string>;
|
|
2785
|
+
}, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">, import("convex/values").VObject<{
|
|
2786
|
+
type: "reference";
|
|
2787
|
+
reference: Record<string, string>;
|
|
2788
|
+
}, {
|
|
2789
|
+
type: import("convex/values").VLiteral<"reference", "required">;
|
|
2790
|
+
reference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
2791
|
+
}, "required", "type" | "reference" | `reference.${string}`>], "required", "type" | "reference" | `reference.${string}`>;
|
|
2168
2792
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
2169
2793
|
mediaType: import("convex/values").VString<string | undefined, "optional">;
|
|
2170
2794
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
2171
2795
|
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>;
|
|
2172
2796
|
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>;
|
|
2173
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename"
|
|
2797
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}`>, import("convex/values").VObject<{
|
|
2174
2798
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2175
2799
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2176
2800
|
signature?: string | undefined;
|
|
2177
|
-
type: "reasoning";
|
|
2178
2801
|
text: string;
|
|
2802
|
+
type: "reasoning";
|
|
2179
2803
|
}, {
|
|
2180
2804
|
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
2181
2805
|
text: import("convex/values").VString<string, "required">;
|
|
2182
2806
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
2183
2807
|
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>;
|
|
2184
2808
|
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>;
|
|
2185
|
-
}, "required", "
|
|
2809
|
+
}, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
|
|
2810
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2811
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2812
|
+
data?: string | ArrayBuffer | undefined;
|
|
2813
|
+
url?: string | undefined;
|
|
2814
|
+
type: "reasoning-file";
|
|
2815
|
+
mediaType: string;
|
|
2816
|
+
}, {
|
|
2817
|
+
type: import("convex/values").VLiteral<"reasoning-file", "required">;
|
|
2818
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
2819
|
+
data: import("convex/values").VUnion<string | ArrayBuffer | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "optional", never>;
|
|
2820
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
2821
|
+
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>;
|
|
2822
|
+
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>;
|
|
2823
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "data" | "url">, import("convex/values").VObject<{
|
|
2824
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2825
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2826
|
+
type: "custom";
|
|
2827
|
+
kind: string;
|
|
2828
|
+
}, {
|
|
2829
|
+
type: import("convex/values").VLiteral<"custom", "required">;
|
|
2830
|
+
kind: import("convex/values").VString<string, "required">;
|
|
2831
|
+
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>;
|
|
2832
|
+
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>;
|
|
2833
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "kind">, import("convex/values").VObject<{
|
|
2186
2834
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2187
2835
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2188
2836
|
type: "redacted-reasoning";
|
|
@@ -2193,28 +2841,34 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2193
2841
|
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>;
|
|
2194
2842
|
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>;
|
|
2195
2843
|
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data">, import("convex/values").VUnion<{
|
|
2844
|
+
title?: string | undefined;
|
|
2196
2845
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2197
2846
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2198
2847
|
args?: any;
|
|
2199
2848
|
providerExecuted?: boolean | undefined;
|
|
2849
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
2200
2850
|
type: "tool-call";
|
|
2201
2851
|
toolCallId: string;
|
|
2202
2852
|
toolName: string;
|
|
2203
2853
|
input: any;
|
|
2204
2854
|
} | {
|
|
2855
|
+
title?: string | undefined;
|
|
2205
2856
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2206
2857
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2207
2858
|
input?: any;
|
|
2208
2859
|
providerExecuted?: boolean | undefined;
|
|
2860
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
2209
2861
|
type: "tool-call";
|
|
2210
2862
|
toolCallId: string;
|
|
2211
2863
|
toolName: string;
|
|
2212
2864
|
args: any;
|
|
2213
2865
|
}, [import("convex/values").VObject<{
|
|
2866
|
+
title?: string | undefined;
|
|
2214
2867
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2215
2868
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2216
2869
|
args?: any;
|
|
2217
2870
|
providerExecuted?: boolean | undefined;
|
|
2871
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
2218
2872
|
type: "tool-call";
|
|
2219
2873
|
toolCallId: string;
|
|
2220
2874
|
toolName: string;
|
|
@@ -2226,13 +2880,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2226
2880
|
input: import("convex/values").VAny<any, "required", string>;
|
|
2227
2881
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
2228
2882
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2883
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2884
|
+
toolMetadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
2229
2885
|
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>;
|
|
2230
2886
|
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>;
|
|
2231
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>, import("convex/values").VObject<{
|
|
2887
|
+
}, "required", "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | "toolMetadata" | `input.${string}` | `args.${string}` | `toolMetadata.${string}`>, import("convex/values").VObject<{
|
|
2888
|
+
title?: string | undefined;
|
|
2232
2889
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2233
2890
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2234
2891
|
input?: any;
|
|
2235
2892
|
providerExecuted?: boolean | undefined;
|
|
2893
|
+
toolMetadata?: Record<string, any> | undefined;
|
|
2236
2894
|
type: "tool-call";
|
|
2237
2895
|
toolCallId: string;
|
|
2238
2896
|
toolName: string;
|
|
@@ -2244,9 +2902,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2244
2902
|
args: import("convex/values").VAny<any, "required", string>;
|
|
2245
2903
|
input: import("convex/values").VAny<any, "optional", string>;
|
|
2246
2904
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2905
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2906
|
+
toolMetadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
2247
2907
|
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>;
|
|
2248
2908
|
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>;
|
|
2249
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>], "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}`>, import("convex/values").VObject<{
|
|
2909
|
+
}, "required", "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | "toolMetadata" | `input.${string}` | `args.${string}` | `toolMetadata.${string}`>], "required", "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | "toolMetadata" | `input.${string}` | `args.${string}` | `toolMetadata.${string}`>, import("convex/values").VObject<{
|
|
2250
2910
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2251
2911
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2252
2912
|
args?: any;
|
|
@@ -2275,8 +2935,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2275
2935
|
type: "content";
|
|
2276
2936
|
value: ({
|
|
2277
2937
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2278
|
-
type: "text";
|
|
2279
2938
|
text: string;
|
|
2939
|
+
type: "text";
|
|
2940
|
+
} | {
|
|
2941
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2942
|
+
filename?: string | undefined;
|
|
2943
|
+
type: "file";
|
|
2944
|
+
mediaType: string;
|
|
2945
|
+
data: {
|
|
2946
|
+
type: "reference";
|
|
2947
|
+
reference: Record<string, string>;
|
|
2948
|
+
} | {
|
|
2949
|
+
type: "url";
|
|
2950
|
+
url: string;
|
|
2951
|
+
} | {
|
|
2952
|
+
type: "data";
|
|
2953
|
+
data: string | ArrayBuffer;
|
|
2954
|
+
} | {
|
|
2955
|
+
text: string;
|
|
2956
|
+
type: "text";
|
|
2957
|
+
};
|
|
2280
2958
|
} | {
|
|
2281
2959
|
type: "media";
|
|
2282
2960
|
mediaType: string;
|
|
@@ -2289,17 +2967,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2289
2967
|
data: string;
|
|
2290
2968
|
} | {
|
|
2291
2969
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2970
|
+
mediaType?: string | undefined;
|
|
2292
2971
|
type: "file-url";
|
|
2293
2972
|
url: string;
|
|
2294
2973
|
} | {
|
|
2295
2974
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2296
2975
|
type: "file-id";
|
|
2297
2976
|
fileId: string | Record<string, string>;
|
|
2977
|
+
} | {
|
|
2978
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2979
|
+
type: "file-reference";
|
|
2980
|
+
providerReference: Record<string, string>;
|
|
2298
2981
|
} | {
|
|
2299
2982
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2300
2983
|
type: "image-data";
|
|
2301
2984
|
mediaType: string;
|
|
2302
2985
|
data: string;
|
|
2986
|
+
} | {
|
|
2987
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2988
|
+
type: "image-file-reference";
|
|
2989
|
+
providerReference: Record<string, string>;
|
|
2303
2990
|
} | {
|
|
2304
2991
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2305
2992
|
type: "image-url";
|
|
@@ -2316,8 +3003,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2316
3003
|
result?: any;
|
|
2317
3004
|
isError?: boolean | undefined;
|
|
2318
3005
|
experimental_content?: ({
|
|
2319
|
-
type: "text";
|
|
2320
3006
|
text: string;
|
|
3007
|
+
type: "text";
|
|
2321
3008
|
} | {
|
|
2322
3009
|
mimeType?: string | undefined;
|
|
2323
3010
|
type: "image";
|
|
@@ -2354,8 +3041,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2354
3041
|
type: "content";
|
|
2355
3042
|
value: ({
|
|
2356
3043
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2357
|
-
type: "text";
|
|
2358
3044
|
text: string;
|
|
3045
|
+
type: "text";
|
|
3046
|
+
} | {
|
|
3047
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3048
|
+
filename?: string | undefined;
|
|
3049
|
+
type: "file";
|
|
3050
|
+
mediaType: string;
|
|
3051
|
+
data: {
|
|
3052
|
+
type: "reference";
|
|
3053
|
+
reference: Record<string, string>;
|
|
3054
|
+
} | {
|
|
3055
|
+
type: "url";
|
|
3056
|
+
url: string;
|
|
3057
|
+
} | {
|
|
3058
|
+
type: "data";
|
|
3059
|
+
data: string | ArrayBuffer;
|
|
3060
|
+
} | {
|
|
3061
|
+
text: string;
|
|
3062
|
+
type: "text";
|
|
3063
|
+
};
|
|
2359
3064
|
} | {
|
|
2360
3065
|
type: "media";
|
|
2361
3066
|
mediaType: string;
|
|
@@ -2368,17 +3073,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2368
3073
|
data: string;
|
|
2369
3074
|
} | {
|
|
2370
3075
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3076
|
+
mediaType?: string | undefined;
|
|
2371
3077
|
type: "file-url";
|
|
2372
3078
|
url: string;
|
|
2373
3079
|
} | {
|
|
2374
3080
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2375
3081
|
type: "file-id";
|
|
2376
3082
|
fileId: string | Record<string, string>;
|
|
3083
|
+
} | {
|
|
3084
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3085
|
+
type: "file-reference";
|
|
3086
|
+
providerReference: Record<string, string>;
|
|
2377
3087
|
} | {
|
|
2378
3088
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2379
3089
|
type: "image-data";
|
|
2380
3090
|
mediaType: string;
|
|
2381
3091
|
data: string;
|
|
3092
|
+
} | {
|
|
3093
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3094
|
+
type: "image-file-reference";
|
|
3095
|
+
providerReference: Record<string, string>;
|
|
2382
3096
|
} | {
|
|
2383
3097
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2384
3098
|
type: "image-url";
|
|
@@ -2435,8 +3149,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2435
3149
|
type: "content";
|
|
2436
3150
|
value: ({
|
|
2437
3151
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2438
|
-
type: "text";
|
|
2439
3152
|
text: string;
|
|
3153
|
+
type: "text";
|
|
3154
|
+
} | {
|
|
3155
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3156
|
+
filename?: string | undefined;
|
|
3157
|
+
type: "file";
|
|
3158
|
+
mediaType: string;
|
|
3159
|
+
data: {
|
|
3160
|
+
type: "reference";
|
|
3161
|
+
reference: Record<string, string>;
|
|
3162
|
+
} | {
|
|
3163
|
+
type: "url";
|
|
3164
|
+
url: string;
|
|
3165
|
+
} | {
|
|
3166
|
+
type: "data";
|
|
3167
|
+
data: string | ArrayBuffer;
|
|
3168
|
+
} | {
|
|
3169
|
+
text: string;
|
|
3170
|
+
type: "text";
|
|
3171
|
+
};
|
|
2440
3172
|
} | {
|
|
2441
3173
|
type: "media";
|
|
2442
3174
|
mediaType: string;
|
|
@@ -2449,17 +3181,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2449
3181
|
data: string;
|
|
2450
3182
|
} | {
|
|
2451
3183
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3184
|
+
mediaType?: string | undefined;
|
|
2452
3185
|
type: "file-url";
|
|
2453
3186
|
url: string;
|
|
2454
3187
|
} | {
|
|
2455
3188
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2456
3189
|
type: "file-id";
|
|
2457
3190
|
fileId: string | Record<string, string>;
|
|
3191
|
+
} | {
|
|
3192
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3193
|
+
type: "file-reference";
|
|
3194
|
+
providerReference: Record<string, string>;
|
|
2458
3195
|
} | {
|
|
2459
3196
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2460
3197
|
type: "image-data";
|
|
2461
3198
|
mediaType: string;
|
|
2462
3199
|
data: string;
|
|
3200
|
+
} | {
|
|
3201
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3202
|
+
type: "image-file-reference";
|
|
3203
|
+
providerReference: Record<string, string>;
|
|
2463
3204
|
} | {
|
|
2464
3205
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2465
3206
|
type: "image-url";
|
|
@@ -2476,8 +3217,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2476
3217
|
type: import("convex/values").VLiteral<"content", "required">;
|
|
2477
3218
|
value: import("convex/values").VArray<({
|
|
2478
3219
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2479
|
-
type: "text";
|
|
2480
3220
|
text: string;
|
|
3221
|
+
type: "text";
|
|
3222
|
+
} | {
|
|
3223
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3224
|
+
filename?: string | undefined;
|
|
3225
|
+
type: "file";
|
|
3226
|
+
mediaType: string;
|
|
3227
|
+
data: {
|
|
3228
|
+
type: "reference";
|
|
3229
|
+
reference: Record<string, string>;
|
|
3230
|
+
} | {
|
|
3231
|
+
type: "url";
|
|
3232
|
+
url: string;
|
|
3233
|
+
} | {
|
|
3234
|
+
type: "data";
|
|
3235
|
+
data: string | ArrayBuffer;
|
|
3236
|
+
} | {
|
|
3237
|
+
text: string;
|
|
3238
|
+
type: "text";
|
|
3239
|
+
};
|
|
2481
3240
|
} | {
|
|
2482
3241
|
type: "media";
|
|
2483
3242
|
mediaType: string;
|
|
@@ -2490,17 +3249,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2490
3249
|
data: string;
|
|
2491
3250
|
} | {
|
|
2492
3251
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3252
|
+
mediaType?: string | undefined;
|
|
2493
3253
|
type: "file-url";
|
|
2494
3254
|
url: string;
|
|
2495
3255
|
} | {
|
|
2496
3256
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2497
3257
|
type: "file-id";
|
|
2498
3258
|
fileId: string | Record<string, string>;
|
|
3259
|
+
} | {
|
|
3260
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3261
|
+
type: "file-reference";
|
|
3262
|
+
providerReference: Record<string, string>;
|
|
2499
3263
|
} | {
|
|
2500
3264
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2501
3265
|
type: "image-data";
|
|
2502
3266
|
mediaType: string;
|
|
2503
3267
|
data: string;
|
|
3268
|
+
} | {
|
|
3269
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3270
|
+
type: "image-file-reference";
|
|
3271
|
+
providerReference: Record<string, string>;
|
|
2504
3272
|
} | {
|
|
2505
3273
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2506
3274
|
type: "image-url";
|
|
@@ -2514,8 +3282,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2514
3282
|
type: "custom";
|
|
2515
3283
|
})[], import("convex/values").VUnion<{
|
|
2516
3284
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2517
|
-
type: "text";
|
|
2518
3285
|
text: string;
|
|
3286
|
+
type: "text";
|
|
3287
|
+
} | {
|
|
3288
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3289
|
+
filename?: string | undefined;
|
|
3290
|
+
type: "file";
|
|
3291
|
+
mediaType: string;
|
|
3292
|
+
data: {
|
|
3293
|
+
type: "reference";
|
|
3294
|
+
reference: Record<string, string>;
|
|
3295
|
+
} | {
|
|
3296
|
+
type: "url";
|
|
3297
|
+
url: string;
|
|
3298
|
+
} | {
|
|
3299
|
+
type: "data";
|
|
3300
|
+
data: string | ArrayBuffer;
|
|
3301
|
+
} | {
|
|
3302
|
+
text: string;
|
|
3303
|
+
type: "text";
|
|
3304
|
+
};
|
|
2519
3305
|
} | {
|
|
2520
3306
|
type: "media";
|
|
2521
3307
|
mediaType: string;
|
|
@@ -2528,17 +3314,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2528
3314
|
data: string;
|
|
2529
3315
|
} | {
|
|
2530
3316
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3317
|
+
mediaType?: string | undefined;
|
|
2531
3318
|
type: "file-url";
|
|
2532
3319
|
url: string;
|
|
2533
3320
|
} | {
|
|
2534
3321
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2535
3322
|
type: "file-id";
|
|
2536
3323
|
fileId: string | Record<string, string>;
|
|
3324
|
+
} | {
|
|
3325
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3326
|
+
type: "file-reference";
|
|
3327
|
+
providerReference: Record<string, string>;
|
|
2537
3328
|
} | {
|
|
2538
3329
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2539
3330
|
type: "image-data";
|
|
2540
3331
|
mediaType: string;
|
|
2541
3332
|
data: string;
|
|
3333
|
+
} | {
|
|
3334
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3335
|
+
type: "image-file-reference";
|
|
3336
|
+
providerReference: Record<string, string>;
|
|
2542
3337
|
} | {
|
|
2543
3338
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2544
3339
|
type: "image-url";
|
|
@@ -2552,13 +3347,73 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2552
3347
|
type: "custom";
|
|
2553
3348
|
}, [import("convex/values").VObject<{
|
|
2554
3349
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2555
|
-
type: "text";
|
|
2556
3350
|
text: string;
|
|
3351
|
+
type: "text";
|
|
2557
3352
|
}, {
|
|
2558
3353
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
2559
3354
|
text: import("convex/values").VString<string, "required">;
|
|
2560
3355
|
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>;
|
|
2561
|
-
}, "required", "
|
|
3356
|
+
}, "required", "text" | "type" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
|
|
3357
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3358
|
+
filename?: string | undefined;
|
|
3359
|
+
type: "file";
|
|
3360
|
+
mediaType: string;
|
|
3361
|
+
data: {
|
|
3362
|
+
type: "reference";
|
|
3363
|
+
reference: Record<string, string>;
|
|
3364
|
+
} | {
|
|
3365
|
+
type: "url";
|
|
3366
|
+
url: string;
|
|
3367
|
+
} | {
|
|
3368
|
+
type: "data";
|
|
3369
|
+
data: string | ArrayBuffer;
|
|
3370
|
+
} | {
|
|
3371
|
+
text: string;
|
|
3372
|
+
type: "text";
|
|
3373
|
+
};
|
|
3374
|
+
}, {
|
|
3375
|
+
type: import("convex/values").VLiteral<"file", "required">;
|
|
3376
|
+
data: import("convex/values").VUnion<{
|
|
3377
|
+
type: "reference";
|
|
3378
|
+
reference: Record<string, string>;
|
|
3379
|
+
} | {
|
|
3380
|
+
type: "url";
|
|
3381
|
+
url: string;
|
|
3382
|
+
} | {
|
|
3383
|
+
type: "data";
|
|
3384
|
+
data: string | ArrayBuffer;
|
|
3385
|
+
} | {
|
|
3386
|
+
text: string;
|
|
3387
|
+
type: "text";
|
|
3388
|
+
}, [import("convex/values").VObject<{
|
|
3389
|
+
type: "url";
|
|
3390
|
+
url: string;
|
|
3391
|
+
}, {
|
|
3392
|
+
type: import("convex/values").VLiteral<"url", "required">;
|
|
3393
|
+
url: import("convex/values").VString<string, "required">;
|
|
3394
|
+
}, "required", "type" | "url">, import("convex/values").VObject<{
|
|
3395
|
+
type: "reference";
|
|
3396
|
+
reference: Record<string, string>;
|
|
3397
|
+
}, {
|
|
3398
|
+
type: import("convex/values").VLiteral<"reference", "required">;
|
|
3399
|
+
reference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
3400
|
+
}, "required", "type" | "reference" | `reference.${string}`>, import("convex/values").VObject<{
|
|
3401
|
+
type: "data";
|
|
3402
|
+
data: string | ArrayBuffer;
|
|
3403
|
+
}, {
|
|
3404
|
+
type: import("convex/values").VLiteral<"data", "required">;
|
|
3405
|
+
data: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
3406
|
+
}, "required", "type" | "data">, import("convex/values").VObject<{
|
|
3407
|
+
text: string;
|
|
3408
|
+
type: "text";
|
|
3409
|
+
}, {
|
|
3410
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
3411
|
+
text: import("convex/values").VString<string, "required">;
|
|
3412
|
+
}, "required", "text" | "type">], "required", "text" | "type" | "reference" | `reference.${string}` | "data" | "url">;
|
|
3413
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
3414
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
3415
|
+
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>;
|
|
3416
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}` | "data.text" | "data.data" | "data.url">, import("convex/values").VObject<{
|
|
2562
3417
|
type: "media";
|
|
2563
3418
|
mediaType: string;
|
|
2564
3419
|
data: string;
|
|
@@ -2580,13 +3435,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2580
3435
|
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>;
|
|
2581
3436
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename">, import("convex/values").VObject<{
|
|
2582
3437
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3438
|
+
mediaType?: string | undefined;
|
|
2583
3439
|
type: "file-url";
|
|
2584
3440
|
url: string;
|
|
2585
3441
|
}, {
|
|
2586
3442
|
type: import("convex/values").VLiteral<"file-url", "required">;
|
|
2587
3443
|
url: import("convex/values").VString<string, "required">;
|
|
3444
|
+
mediaType: import("convex/values").VString<string | undefined, "optional">;
|
|
2588
3445
|
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>;
|
|
2589
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{
|
|
3446
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "url">, import("convex/values").VObject<{
|
|
2590
3447
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2591
3448
|
type: "file-id";
|
|
2592
3449
|
fileId: string | Record<string, string>;
|
|
@@ -2595,6 +3452,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2595
3452
|
fileId: import("convex/values").VUnion<string | Record<string, string>, [import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>], "required", string>;
|
|
2596
3453
|
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>;
|
|
2597
3454
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{
|
|
3455
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3456
|
+
type: "file-reference";
|
|
3457
|
+
providerReference: Record<string, string>;
|
|
3458
|
+
}, {
|
|
3459
|
+
type: import("convex/values").VLiteral<"file-reference", "required">;
|
|
3460
|
+
providerReference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
3461
|
+
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>;
|
|
3462
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "providerReference" | `providerReference.${string}`>, import("convex/values").VObject<{
|
|
2598
3463
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2599
3464
|
type: "image-data";
|
|
2600
3465
|
mediaType: string;
|
|
@@ -2605,6 +3470,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2605
3470
|
mediaType: import("convex/values").VString<string, "required">;
|
|
2606
3471
|
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>;
|
|
2607
3472
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data">, import("convex/values").VObject<{
|
|
3473
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3474
|
+
type: "image-file-reference";
|
|
3475
|
+
providerReference: Record<string, string>;
|
|
3476
|
+
}, {
|
|
3477
|
+
type: import("convex/values").VLiteral<"image-file-reference", "required">;
|
|
3478
|
+
providerReference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
3479
|
+
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>;
|
|
3480
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "providerReference" | `providerReference.${string}`>, import("convex/values").VObject<{
|
|
2608
3481
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2609
3482
|
type: "image-url";
|
|
2610
3483
|
url: string;
|
|
@@ -2626,7 +3499,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2626
3499
|
}, {
|
|
2627
3500
|
type: import("convex/values").VLiteral<"custom", "required">;
|
|
2628
3501
|
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>;
|
|
2629
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "
|
|
3502
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "text" | "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}` | "url" | "data.text" | "data.data" | "data.url" | "fileId" | `fileId.${string}` | "providerReference" | `providerReference.${string}`>, "required">;
|
|
2630
3503
|
}, "required", "type" | "value">], "optional", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}` | "reason">;
|
|
2631
3504
|
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>;
|
|
2632
3505
|
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>;
|
|
@@ -2635,26 +3508,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2635
3508
|
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2636
3509
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
2637
3510
|
experimental_content: import("convex/values").VArray<({
|
|
2638
|
-
type: "text";
|
|
2639
3511
|
text: string;
|
|
3512
|
+
type: "text";
|
|
2640
3513
|
} | {
|
|
2641
3514
|
mimeType?: string | undefined;
|
|
2642
3515
|
type: "image";
|
|
2643
3516
|
data: string;
|
|
2644
3517
|
})[] | undefined, import("convex/values").VUnion<{
|
|
2645
|
-
type: "text";
|
|
2646
3518
|
text: string;
|
|
3519
|
+
type: "text";
|
|
2647
3520
|
} | {
|
|
2648
3521
|
mimeType?: string | undefined;
|
|
2649
3522
|
type: "image";
|
|
2650
3523
|
data: string;
|
|
2651
3524
|
}, [import("convex/values").VObject<{
|
|
2652
|
-
type: "text";
|
|
2653
3525
|
text: string;
|
|
3526
|
+
type: "text";
|
|
2654
3527
|
}, {
|
|
2655
3528
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
2656
3529
|
text: import("convex/values").VString<string, "required">;
|
|
2657
|
-
}, "required", "
|
|
3530
|
+
}, "required", "text" | "type">, import("convex/values").VObject<{
|
|
2658
3531
|
mimeType?: string | undefined;
|
|
2659
3532
|
type: "image";
|
|
2660
3533
|
data: string;
|
|
@@ -2662,7 +3535,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2662
3535
|
type: import("convex/values").VLiteral<"image", "required">;
|
|
2663
3536
|
data: import("convex/values").VString<string, "required">;
|
|
2664
3537
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
2665
|
-
}, "required", "type" | "mimeType" | "data">], "required", "
|
|
3538
|
+
}, "required", "type" | "mimeType" | "data">], "required", "text" | "type" | "mimeType" | "data">, "optional">;
|
|
2666
3539
|
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}`>, import("convex/values").VUnion<{
|
|
2667
3540
|
title?: string | undefined;
|
|
2668
3541
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2717,6 +3590,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2717
3590
|
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, import("convex/values").VObject<{
|
|
2718
3591
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2719
3592
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3593
|
+
signature?: string | undefined;
|
|
3594
|
+
isAutomatic?: boolean | undefined;
|
|
2720
3595
|
type: "tool-approval-request";
|
|
2721
3596
|
toolCallId: string;
|
|
2722
3597
|
approvalId: string;
|
|
@@ -2724,9 +3599,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2724
3599
|
type: import("convex/values").VLiteral<"tool-approval-request", "required">;
|
|
2725
3600
|
approvalId: import("convex/values").VString<string, "required">;
|
|
2726
3601
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
3602
|
+
isAutomatic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3603
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
2727
3604
|
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>;
|
|
2728
3605
|
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>;
|
|
2729
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "
|
|
3606
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature" | "toolCallId" | "approvalId" | "isAutomatic">], "required", "text" | "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}` | "signature" | "url" | "kind" | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | "toolMetadata" | `input.${string}` | `args.${string}` | `toolMetadata.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}` | "sourceType" | "approvalId" | "isAutomatic">, "required">], "required", never>;
|
|
2730
3607
|
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>;
|
|
2731
3608
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
2732
3609
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2760,8 +3637,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2760
3637
|
type: "content";
|
|
2761
3638
|
value: ({
|
|
2762
3639
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2763
|
-
type: "text";
|
|
2764
3640
|
text: string;
|
|
3641
|
+
type: "text";
|
|
3642
|
+
} | {
|
|
3643
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3644
|
+
filename?: string | undefined;
|
|
3645
|
+
type: "file";
|
|
3646
|
+
mediaType: string;
|
|
3647
|
+
data: {
|
|
3648
|
+
type: "reference";
|
|
3649
|
+
reference: Record<string, string>;
|
|
3650
|
+
} | {
|
|
3651
|
+
type: "url";
|
|
3652
|
+
url: string;
|
|
3653
|
+
} | {
|
|
3654
|
+
type: "data";
|
|
3655
|
+
data: string | ArrayBuffer;
|
|
3656
|
+
} | {
|
|
3657
|
+
text: string;
|
|
3658
|
+
type: "text";
|
|
3659
|
+
};
|
|
2765
3660
|
} | {
|
|
2766
3661
|
type: "media";
|
|
2767
3662
|
mediaType: string;
|
|
@@ -2774,17 +3669,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2774
3669
|
data: string;
|
|
2775
3670
|
} | {
|
|
2776
3671
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3672
|
+
mediaType?: string | undefined;
|
|
2777
3673
|
type: "file-url";
|
|
2778
3674
|
url: string;
|
|
2779
3675
|
} | {
|
|
2780
3676
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2781
3677
|
type: "file-id";
|
|
2782
3678
|
fileId: string | Record<string, string>;
|
|
3679
|
+
} | {
|
|
3680
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3681
|
+
type: "file-reference";
|
|
3682
|
+
providerReference: Record<string, string>;
|
|
2783
3683
|
} | {
|
|
2784
3684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2785
3685
|
type: "image-data";
|
|
2786
3686
|
mediaType: string;
|
|
2787
3687
|
data: string;
|
|
3688
|
+
} | {
|
|
3689
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3690
|
+
type: "image-file-reference";
|
|
3691
|
+
providerReference: Record<string, string>;
|
|
2788
3692
|
} | {
|
|
2789
3693
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2790
3694
|
type: "image-url";
|
|
@@ -2801,8 +3705,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2801
3705
|
result?: any;
|
|
2802
3706
|
isError?: boolean | undefined;
|
|
2803
3707
|
experimental_content?: ({
|
|
2804
|
-
type: "text";
|
|
2805
3708
|
text: string;
|
|
3709
|
+
type: "text";
|
|
2806
3710
|
} | {
|
|
2807
3711
|
mimeType?: string | undefined;
|
|
2808
3712
|
type: "image";
|
|
@@ -2851,8 +3755,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2851
3755
|
type: "content";
|
|
2852
3756
|
value: ({
|
|
2853
3757
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2854
|
-
type: "text";
|
|
2855
3758
|
text: string;
|
|
3759
|
+
type: "text";
|
|
3760
|
+
} | {
|
|
3761
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3762
|
+
filename?: string | undefined;
|
|
3763
|
+
type: "file";
|
|
3764
|
+
mediaType: string;
|
|
3765
|
+
data: {
|
|
3766
|
+
type: "reference";
|
|
3767
|
+
reference: Record<string, string>;
|
|
3768
|
+
} | {
|
|
3769
|
+
type: "url";
|
|
3770
|
+
url: string;
|
|
3771
|
+
} | {
|
|
3772
|
+
type: "data";
|
|
3773
|
+
data: string | ArrayBuffer;
|
|
3774
|
+
} | {
|
|
3775
|
+
text: string;
|
|
3776
|
+
type: "text";
|
|
3777
|
+
};
|
|
2856
3778
|
} | {
|
|
2857
3779
|
type: "media";
|
|
2858
3780
|
mediaType: string;
|
|
@@ -2865,17 +3787,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2865
3787
|
data: string;
|
|
2866
3788
|
} | {
|
|
2867
3789
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3790
|
+
mediaType?: string | undefined;
|
|
2868
3791
|
type: "file-url";
|
|
2869
3792
|
url: string;
|
|
2870
3793
|
} | {
|
|
2871
3794
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2872
3795
|
type: "file-id";
|
|
2873
3796
|
fileId: string | Record<string, string>;
|
|
3797
|
+
} | {
|
|
3798
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3799
|
+
type: "file-reference";
|
|
3800
|
+
providerReference: Record<string, string>;
|
|
2874
3801
|
} | {
|
|
2875
3802
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2876
3803
|
type: "image-data";
|
|
2877
3804
|
mediaType: string;
|
|
2878
3805
|
data: string;
|
|
3806
|
+
} | {
|
|
3807
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3808
|
+
type: "image-file-reference";
|
|
3809
|
+
providerReference: Record<string, string>;
|
|
2879
3810
|
} | {
|
|
2880
3811
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2881
3812
|
type: "image-url";
|
|
@@ -2892,8 +3823,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2892
3823
|
result?: any;
|
|
2893
3824
|
isError?: boolean | undefined;
|
|
2894
3825
|
experimental_content?: ({
|
|
2895
|
-
type: "text";
|
|
2896
3826
|
text: string;
|
|
3827
|
+
type: "text";
|
|
2897
3828
|
} | {
|
|
2898
3829
|
mimeType?: string | undefined;
|
|
2899
3830
|
type: "image";
|
|
@@ -2939,8 +3870,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2939
3870
|
type: "content";
|
|
2940
3871
|
value: ({
|
|
2941
3872
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2942
|
-
type: "text";
|
|
2943
3873
|
text: string;
|
|
3874
|
+
type: "text";
|
|
3875
|
+
} | {
|
|
3876
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3877
|
+
filename?: string | undefined;
|
|
3878
|
+
type: "file";
|
|
3879
|
+
mediaType: string;
|
|
3880
|
+
data: {
|
|
3881
|
+
type: "reference";
|
|
3882
|
+
reference: Record<string, string>;
|
|
3883
|
+
} | {
|
|
3884
|
+
type: "url";
|
|
3885
|
+
url: string;
|
|
3886
|
+
} | {
|
|
3887
|
+
type: "data";
|
|
3888
|
+
data: string | ArrayBuffer;
|
|
3889
|
+
} | {
|
|
3890
|
+
text: string;
|
|
3891
|
+
type: "text";
|
|
3892
|
+
};
|
|
2944
3893
|
} | {
|
|
2945
3894
|
type: "media";
|
|
2946
3895
|
mediaType: string;
|
|
@@ -2953,17 +3902,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2953
3902
|
data: string;
|
|
2954
3903
|
} | {
|
|
2955
3904
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3905
|
+
mediaType?: string | undefined;
|
|
2956
3906
|
type: "file-url";
|
|
2957
3907
|
url: string;
|
|
2958
3908
|
} | {
|
|
2959
3909
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2960
3910
|
type: "file-id";
|
|
2961
3911
|
fileId: string | Record<string, string>;
|
|
3912
|
+
} | {
|
|
3913
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3914
|
+
type: "file-reference";
|
|
3915
|
+
providerReference: Record<string, string>;
|
|
2962
3916
|
} | {
|
|
2963
3917
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2964
3918
|
type: "image-data";
|
|
2965
3919
|
mediaType: string;
|
|
2966
3920
|
data: string;
|
|
3921
|
+
} | {
|
|
3922
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3923
|
+
type: "image-file-reference";
|
|
3924
|
+
providerReference: Record<string, string>;
|
|
2967
3925
|
} | {
|
|
2968
3926
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2969
3927
|
type: "image-url";
|
|
@@ -2980,8 +3938,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2980
3938
|
result?: any;
|
|
2981
3939
|
isError?: boolean | undefined;
|
|
2982
3940
|
experimental_content?: ({
|
|
2983
|
-
type: "text";
|
|
2984
3941
|
text: string;
|
|
3942
|
+
type: "text";
|
|
2985
3943
|
} | {
|
|
2986
3944
|
mimeType?: string | undefined;
|
|
2987
3945
|
type: "image";
|
|
@@ -3027,8 +3985,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3027
3985
|
type: "content";
|
|
3028
3986
|
value: ({
|
|
3029
3987
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3030
|
-
type: "text";
|
|
3031
3988
|
text: string;
|
|
3989
|
+
type: "text";
|
|
3990
|
+
} | {
|
|
3991
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3992
|
+
filename?: string | undefined;
|
|
3993
|
+
type: "file";
|
|
3994
|
+
mediaType: string;
|
|
3995
|
+
data: {
|
|
3996
|
+
type: "reference";
|
|
3997
|
+
reference: Record<string, string>;
|
|
3998
|
+
} | {
|
|
3999
|
+
type: "url";
|
|
4000
|
+
url: string;
|
|
4001
|
+
} | {
|
|
4002
|
+
type: "data";
|
|
4003
|
+
data: string | ArrayBuffer;
|
|
4004
|
+
} | {
|
|
4005
|
+
text: string;
|
|
4006
|
+
type: "text";
|
|
4007
|
+
};
|
|
3032
4008
|
} | {
|
|
3033
4009
|
type: "media";
|
|
3034
4010
|
mediaType: string;
|
|
@@ -3041,17 +4017,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3041
4017
|
data: string;
|
|
3042
4018
|
} | {
|
|
3043
4019
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4020
|
+
mediaType?: string | undefined;
|
|
3044
4021
|
type: "file-url";
|
|
3045
4022
|
url: string;
|
|
3046
4023
|
} | {
|
|
3047
4024
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3048
4025
|
type: "file-id";
|
|
3049
4026
|
fileId: string | Record<string, string>;
|
|
4027
|
+
} | {
|
|
4028
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4029
|
+
type: "file-reference";
|
|
4030
|
+
providerReference: Record<string, string>;
|
|
3050
4031
|
} | {
|
|
3051
4032
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3052
4033
|
type: "image-data";
|
|
3053
4034
|
mediaType: string;
|
|
3054
4035
|
data: string;
|
|
4036
|
+
} | {
|
|
4037
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4038
|
+
type: "image-file-reference";
|
|
4039
|
+
providerReference: Record<string, string>;
|
|
3055
4040
|
} | {
|
|
3056
4041
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3057
4042
|
type: "image-url";
|
|
@@ -3068,8 +4053,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3068
4053
|
result?: any;
|
|
3069
4054
|
isError?: boolean | undefined;
|
|
3070
4055
|
experimental_content?: ({
|
|
3071
|
-
type: "text";
|
|
3072
4056
|
text: string;
|
|
4057
|
+
type: "text";
|
|
3073
4058
|
} | {
|
|
3074
4059
|
mimeType?: string | undefined;
|
|
3075
4060
|
type: "image";
|
|
@@ -3106,8 +4091,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3106
4091
|
type: "content";
|
|
3107
4092
|
value: ({
|
|
3108
4093
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3109
|
-
type: "text";
|
|
3110
4094
|
text: string;
|
|
4095
|
+
type: "text";
|
|
4096
|
+
} | {
|
|
4097
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4098
|
+
filename?: string | undefined;
|
|
4099
|
+
type: "file";
|
|
4100
|
+
mediaType: string;
|
|
4101
|
+
data: {
|
|
4102
|
+
type: "reference";
|
|
4103
|
+
reference: Record<string, string>;
|
|
4104
|
+
} | {
|
|
4105
|
+
type: "url";
|
|
4106
|
+
url: string;
|
|
4107
|
+
} | {
|
|
4108
|
+
type: "data";
|
|
4109
|
+
data: string | ArrayBuffer;
|
|
4110
|
+
} | {
|
|
4111
|
+
text: string;
|
|
4112
|
+
type: "text";
|
|
4113
|
+
};
|
|
3111
4114
|
} | {
|
|
3112
4115
|
type: "media";
|
|
3113
4116
|
mediaType: string;
|
|
@@ -3120,17 +4123,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3120
4123
|
data: string;
|
|
3121
4124
|
} | {
|
|
3122
4125
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4126
|
+
mediaType?: string | undefined;
|
|
3123
4127
|
type: "file-url";
|
|
3124
4128
|
url: string;
|
|
3125
4129
|
} | {
|
|
3126
4130
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3127
4131
|
type: "file-id";
|
|
3128
4132
|
fileId: string | Record<string, string>;
|
|
4133
|
+
} | {
|
|
4134
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4135
|
+
type: "file-reference";
|
|
4136
|
+
providerReference: Record<string, string>;
|
|
3129
4137
|
} | {
|
|
3130
4138
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3131
4139
|
type: "image-data";
|
|
3132
4140
|
mediaType: string;
|
|
3133
4141
|
data: string;
|
|
4142
|
+
} | {
|
|
4143
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4144
|
+
type: "image-file-reference";
|
|
4145
|
+
providerReference: Record<string, string>;
|
|
3134
4146
|
} | {
|
|
3135
4147
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3136
4148
|
type: "image-url";
|
|
@@ -3187,8 +4199,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3187
4199
|
type: "content";
|
|
3188
4200
|
value: ({
|
|
3189
4201
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3190
|
-
type: "text";
|
|
3191
4202
|
text: string;
|
|
4203
|
+
type: "text";
|
|
4204
|
+
} | {
|
|
4205
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4206
|
+
filename?: string | undefined;
|
|
4207
|
+
type: "file";
|
|
4208
|
+
mediaType: string;
|
|
4209
|
+
data: {
|
|
4210
|
+
type: "reference";
|
|
4211
|
+
reference: Record<string, string>;
|
|
4212
|
+
} | {
|
|
4213
|
+
type: "url";
|
|
4214
|
+
url: string;
|
|
4215
|
+
} | {
|
|
4216
|
+
type: "data";
|
|
4217
|
+
data: string | ArrayBuffer;
|
|
4218
|
+
} | {
|
|
4219
|
+
text: string;
|
|
4220
|
+
type: "text";
|
|
4221
|
+
};
|
|
3192
4222
|
} | {
|
|
3193
4223
|
type: "media";
|
|
3194
4224
|
mediaType: string;
|
|
@@ -3201,17 +4231,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3201
4231
|
data: string;
|
|
3202
4232
|
} | {
|
|
3203
4233
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4234
|
+
mediaType?: string | undefined;
|
|
3204
4235
|
type: "file-url";
|
|
3205
4236
|
url: string;
|
|
3206
4237
|
} | {
|
|
3207
4238
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3208
4239
|
type: "file-id";
|
|
3209
4240
|
fileId: string | Record<string, string>;
|
|
4241
|
+
} | {
|
|
4242
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4243
|
+
type: "file-reference";
|
|
4244
|
+
providerReference: Record<string, string>;
|
|
3210
4245
|
} | {
|
|
3211
4246
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3212
4247
|
type: "image-data";
|
|
3213
4248
|
mediaType: string;
|
|
3214
4249
|
data: string;
|
|
4250
|
+
} | {
|
|
4251
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4252
|
+
type: "image-file-reference";
|
|
4253
|
+
providerReference: Record<string, string>;
|
|
3215
4254
|
} | {
|
|
3216
4255
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3217
4256
|
type: "image-url";
|
|
@@ -3228,8 +4267,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3228
4267
|
type: import("convex/values").VLiteral<"content", "required">;
|
|
3229
4268
|
value: import("convex/values").VArray<({
|
|
3230
4269
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3231
|
-
type: "text";
|
|
3232
4270
|
text: string;
|
|
4271
|
+
type: "text";
|
|
4272
|
+
} | {
|
|
4273
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4274
|
+
filename?: string | undefined;
|
|
4275
|
+
type: "file";
|
|
4276
|
+
mediaType: string;
|
|
4277
|
+
data: {
|
|
4278
|
+
type: "reference";
|
|
4279
|
+
reference: Record<string, string>;
|
|
4280
|
+
} | {
|
|
4281
|
+
type: "url";
|
|
4282
|
+
url: string;
|
|
4283
|
+
} | {
|
|
4284
|
+
type: "data";
|
|
4285
|
+
data: string | ArrayBuffer;
|
|
4286
|
+
} | {
|
|
4287
|
+
text: string;
|
|
4288
|
+
type: "text";
|
|
4289
|
+
};
|
|
3233
4290
|
} | {
|
|
3234
4291
|
type: "media";
|
|
3235
4292
|
mediaType: string;
|
|
@@ -3242,17 +4299,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3242
4299
|
data: string;
|
|
3243
4300
|
} | {
|
|
3244
4301
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4302
|
+
mediaType?: string | undefined;
|
|
3245
4303
|
type: "file-url";
|
|
3246
4304
|
url: string;
|
|
3247
4305
|
} | {
|
|
3248
4306
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3249
4307
|
type: "file-id";
|
|
3250
4308
|
fileId: string | Record<string, string>;
|
|
4309
|
+
} | {
|
|
4310
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4311
|
+
type: "file-reference";
|
|
4312
|
+
providerReference: Record<string, string>;
|
|
3251
4313
|
} | {
|
|
3252
4314
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3253
4315
|
type: "image-data";
|
|
3254
4316
|
mediaType: string;
|
|
3255
4317
|
data: string;
|
|
4318
|
+
} | {
|
|
4319
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4320
|
+
type: "image-file-reference";
|
|
4321
|
+
providerReference: Record<string, string>;
|
|
3256
4322
|
} | {
|
|
3257
4323
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3258
4324
|
type: "image-url";
|
|
@@ -3266,8 +4332,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3266
4332
|
type: "custom";
|
|
3267
4333
|
})[], import("convex/values").VUnion<{
|
|
3268
4334
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3269
|
-
type: "text";
|
|
3270
4335
|
text: string;
|
|
4336
|
+
type: "text";
|
|
4337
|
+
} | {
|
|
4338
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4339
|
+
filename?: string | undefined;
|
|
4340
|
+
type: "file";
|
|
4341
|
+
mediaType: string;
|
|
4342
|
+
data: {
|
|
4343
|
+
type: "reference";
|
|
4344
|
+
reference: Record<string, string>;
|
|
4345
|
+
} | {
|
|
4346
|
+
type: "url";
|
|
4347
|
+
url: string;
|
|
4348
|
+
} | {
|
|
4349
|
+
type: "data";
|
|
4350
|
+
data: string | ArrayBuffer;
|
|
4351
|
+
} | {
|
|
4352
|
+
text: string;
|
|
4353
|
+
type: "text";
|
|
4354
|
+
};
|
|
3271
4355
|
} | {
|
|
3272
4356
|
type: "media";
|
|
3273
4357
|
mediaType: string;
|
|
@@ -3280,17 +4364,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3280
4364
|
data: string;
|
|
3281
4365
|
} | {
|
|
3282
4366
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4367
|
+
mediaType?: string | undefined;
|
|
3283
4368
|
type: "file-url";
|
|
3284
4369
|
url: string;
|
|
3285
4370
|
} | {
|
|
3286
4371
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3287
4372
|
type: "file-id";
|
|
3288
4373
|
fileId: string | Record<string, string>;
|
|
4374
|
+
} | {
|
|
4375
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4376
|
+
type: "file-reference";
|
|
4377
|
+
providerReference: Record<string, string>;
|
|
3289
4378
|
} | {
|
|
3290
4379
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3291
4380
|
type: "image-data";
|
|
3292
4381
|
mediaType: string;
|
|
3293
4382
|
data: string;
|
|
4383
|
+
} | {
|
|
4384
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4385
|
+
type: "image-file-reference";
|
|
4386
|
+
providerReference: Record<string, string>;
|
|
3294
4387
|
} | {
|
|
3295
4388
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3296
4389
|
type: "image-url";
|
|
@@ -3304,13 +4397,73 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3304
4397
|
type: "custom";
|
|
3305
4398
|
}, [import("convex/values").VObject<{
|
|
3306
4399
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3307
|
-
type: "text";
|
|
3308
4400
|
text: string;
|
|
4401
|
+
type: "text";
|
|
3309
4402
|
}, {
|
|
3310
4403
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
3311
4404
|
text: import("convex/values").VString<string, "required">;
|
|
3312
4405
|
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>;
|
|
3313
|
-
}, "required", "
|
|
4406
|
+
}, "required", "text" | "type" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
|
|
4407
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4408
|
+
filename?: string | undefined;
|
|
4409
|
+
type: "file";
|
|
4410
|
+
mediaType: string;
|
|
4411
|
+
data: {
|
|
4412
|
+
type: "reference";
|
|
4413
|
+
reference: Record<string, string>;
|
|
4414
|
+
} | {
|
|
4415
|
+
type: "url";
|
|
4416
|
+
url: string;
|
|
4417
|
+
} | {
|
|
4418
|
+
type: "data";
|
|
4419
|
+
data: string | ArrayBuffer;
|
|
4420
|
+
} | {
|
|
4421
|
+
text: string;
|
|
4422
|
+
type: "text";
|
|
4423
|
+
};
|
|
4424
|
+
}, {
|
|
4425
|
+
type: import("convex/values").VLiteral<"file", "required">;
|
|
4426
|
+
data: import("convex/values").VUnion<{
|
|
4427
|
+
type: "reference";
|
|
4428
|
+
reference: Record<string, string>;
|
|
4429
|
+
} | {
|
|
4430
|
+
type: "url";
|
|
4431
|
+
url: string;
|
|
4432
|
+
} | {
|
|
4433
|
+
type: "data";
|
|
4434
|
+
data: string | ArrayBuffer;
|
|
4435
|
+
} | {
|
|
4436
|
+
text: string;
|
|
4437
|
+
type: "text";
|
|
4438
|
+
}, [import("convex/values").VObject<{
|
|
4439
|
+
type: "url";
|
|
4440
|
+
url: string;
|
|
4441
|
+
}, {
|
|
4442
|
+
type: import("convex/values").VLiteral<"url", "required">;
|
|
4443
|
+
url: import("convex/values").VString<string, "required">;
|
|
4444
|
+
}, "required", "type" | "url">, import("convex/values").VObject<{
|
|
4445
|
+
type: "reference";
|
|
4446
|
+
reference: Record<string, string>;
|
|
4447
|
+
}, {
|
|
4448
|
+
type: import("convex/values").VLiteral<"reference", "required">;
|
|
4449
|
+
reference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
4450
|
+
}, "required", "type" | "reference" | `reference.${string}`>, import("convex/values").VObject<{
|
|
4451
|
+
type: "data";
|
|
4452
|
+
data: string | ArrayBuffer;
|
|
4453
|
+
}, {
|
|
4454
|
+
type: import("convex/values").VLiteral<"data", "required">;
|
|
4455
|
+
data: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
4456
|
+
}, "required", "type" | "data">, import("convex/values").VObject<{
|
|
4457
|
+
text: string;
|
|
4458
|
+
type: "text";
|
|
4459
|
+
}, {
|
|
4460
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
4461
|
+
text: import("convex/values").VString<string, "required">;
|
|
4462
|
+
}, "required", "text" | "type">], "required", "text" | "type" | "reference" | `reference.${string}` | "data" | "url">;
|
|
4463
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
4464
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
4465
|
+
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>;
|
|
4466
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}` | "data.text" | "data.data" | "data.url">, import("convex/values").VObject<{
|
|
3314
4467
|
type: "media";
|
|
3315
4468
|
mediaType: string;
|
|
3316
4469
|
data: string;
|
|
@@ -3332,13 +4485,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3332
4485
|
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>;
|
|
3333
4486
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename">, import("convex/values").VObject<{
|
|
3334
4487
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4488
|
+
mediaType?: string | undefined;
|
|
3335
4489
|
type: "file-url";
|
|
3336
4490
|
url: string;
|
|
3337
4491
|
}, {
|
|
3338
4492
|
type: import("convex/values").VLiteral<"file-url", "required">;
|
|
3339
4493
|
url: import("convex/values").VString<string, "required">;
|
|
4494
|
+
mediaType: import("convex/values").VString<string | undefined, "optional">;
|
|
3340
4495
|
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>;
|
|
3341
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "url">, import("convex/values").VObject<{
|
|
4496
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "url">, import("convex/values").VObject<{
|
|
3342
4497
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3343
4498
|
type: "file-id";
|
|
3344
4499
|
fileId: string | Record<string, string>;
|
|
@@ -3347,6 +4502,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3347
4502
|
fileId: import("convex/values").VUnion<string | Record<string, string>, [import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>], "required", string>;
|
|
3348
4503
|
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>;
|
|
3349
4504
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "fileId" | `fileId.${string}`>, import("convex/values").VObject<{
|
|
4505
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4506
|
+
type: "file-reference";
|
|
4507
|
+
providerReference: Record<string, string>;
|
|
4508
|
+
}, {
|
|
4509
|
+
type: import("convex/values").VLiteral<"file-reference", "required">;
|
|
4510
|
+
providerReference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
4511
|
+
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>;
|
|
4512
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "providerReference" | `providerReference.${string}`>, import("convex/values").VObject<{
|
|
3350
4513
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3351
4514
|
type: "image-data";
|
|
3352
4515
|
mediaType: string;
|
|
@@ -3357,6 +4520,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3357
4520
|
mediaType: import("convex/values").VString<string, "required">;
|
|
3358
4521
|
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>;
|
|
3359
4522
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data">, import("convex/values").VObject<{
|
|
4523
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4524
|
+
type: "image-file-reference";
|
|
4525
|
+
providerReference: Record<string, string>;
|
|
4526
|
+
}, {
|
|
4527
|
+
type: import("convex/values").VLiteral<"image-file-reference", "required">;
|
|
4528
|
+
providerReference: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
4529
|
+
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>;
|
|
4530
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "providerReference" | `providerReference.${string}`>, import("convex/values").VObject<{
|
|
3360
4531
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3361
4532
|
type: "image-url";
|
|
3362
4533
|
url: string;
|
|
@@ -3378,7 +4549,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3378
4549
|
}, {
|
|
3379
4550
|
type: import("convex/values").VLiteral<"custom", "required">;
|
|
3380
4551
|
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>;
|
|
3381
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "
|
|
4552
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}`>], "required", "text" | "type" | "providerOptions" | `providerOptions.${string}` | "mediaType" | "data" | "filename" | "data.type" | "data.reference" | `data.reference.${string}` | "url" | "data.text" | "data.data" | "data.url" | "fileId" | `fileId.${string}` | "providerReference" | `providerReference.${string}`>, "required">;
|
|
3382
4553
|
}, "required", "type" | "value">], "optional", "type" | "providerOptions" | `providerOptions.${string}` | "value" | `value.${string}` | "reason">;
|
|
3383
4554
|
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>;
|
|
3384
4555
|
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>;
|
|
@@ -3387,26 +4558,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3387
4558
|
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3388
4559
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
3389
4560
|
experimental_content: import("convex/values").VArray<({
|
|
3390
|
-
type: "text";
|
|
3391
4561
|
text: string;
|
|
4562
|
+
type: "text";
|
|
3392
4563
|
} | {
|
|
3393
4564
|
mimeType?: string | undefined;
|
|
3394
4565
|
type: "image";
|
|
3395
4566
|
data: string;
|
|
3396
4567
|
})[] | undefined, import("convex/values").VUnion<{
|
|
3397
|
-
type: "text";
|
|
3398
4568
|
text: string;
|
|
4569
|
+
type: "text";
|
|
3399
4570
|
} | {
|
|
3400
4571
|
mimeType?: string | undefined;
|
|
3401
4572
|
type: "image";
|
|
3402
4573
|
data: string;
|
|
3403
4574
|
}, [import("convex/values").VObject<{
|
|
3404
|
-
type: "text";
|
|
3405
4575
|
text: string;
|
|
4576
|
+
type: "text";
|
|
3406
4577
|
}, {
|
|
3407
4578
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
3408
4579
|
text: import("convex/values").VString<string, "required">;
|
|
3409
|
-
}, "required", "
|
|
4580
|
+
}, "required", "text" | "type">, import("convex/values").VObject<{
|
|
3410
4581
|
mimeType?: string | undefined;
|
|
3411
4582
|
type: "image";
|
|
3412
4583
|
data: string;
|
|
@@ -3414,7 +4585,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3414
4585
|
type: import("convex/values").VLiteral<"image", "required">;
|
|
3415
4586
|
data: import("convex/values").VString<string, "required">;
|
|
3416
4587
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3417
|
-
}, "required", "type" | "mimeType" | "data">], "required", "
|
|
4588
|
+
}, "required", "type" | "mimeType" | "data">], "required", "text" | "type" | "mimeType" | "data">, "optional">;
|
|
3418
4589
|
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}`>, import("convex/values").VObject<{
|
|
3419
4590
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3420
4591
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3445,18 +4616,26 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3445
4616
|
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
3446
4617
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
3447
4618
|
usage: import("convex/values").VObject<{
|
|
4619
|
+
promptTokens?: number | undefined;
|
|
4620
|
+
completionTokens?: number | undefined;
|
|
4621
|
+
totalTokens?: number | undefined;
|
|
3448
4622
|
reasoningTokens?: number | undefined;
|
|
3449
4623
|
cachedInputTokens?: number | undefined;
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
4624
|
+
nonCachedInputTokens?: number | undefined;
|
|
4625
|
+
cacheWriteInputTokens?: number | undefined;
|
|
4626
|
+
textOutputTokens?: number | undefined;
|
|
4627
|
+
raw?: Record<string, any> | undefined;
|
|
3453
4628
|
} | undefined, {
|
|
3454
|
-
promptTokens: import("convex/values").VFloat64<number, "
|
|
3455
|
-
completionTokens: import("convex/values").VFloat64<number, "
|
|
3456
|
-
totalTokens: import("convex/values").VFloat64<number, "
|
|
4629
|
+
promptTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4630
|
+
completionTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4631
|
+
totalTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3457
4632
|
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3458
4633
|
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3459
|
-
|
|
4634
|
+
nonCachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4635
|
+
cacheWriteInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4636
|
+
textOutputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4637
|
+
raw: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
4638
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens" | "nonCachedInputTokens" | "cacheWriteInputTokens" | "textOutputTokens" | "raw" | `raw.${string}`>;
|
|
3460
4639
|
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>;
|
|
3461
4640
|
sources: import("convex/values").VArray<({
|
|
3462
4641
|
title?: string | undefined;
|
|
@@ -3528,28 +4707,76 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3528
4707
|
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>;
|
|
3529
4708
|
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, "optional">;
|
|
3530
4709
|
warnings: import("convex/values").VArray<({
|
|
4710
|
+
details?: string | undefined;
|
|
4711
|
+
type: "unsupported";
|
|
4712
|
+
feature: string;
|
|
4713
|
+
} | {
|
|
4714
|
+
details?: string | undefined;
|
|
4715
|
+
type: "compatibility";
|
|
4716
|
+
feature: string;
|
|
4717
|
+
} | {
|
|
4718
|
+
type: "deprecated";
|
|
4719
|
+
message: string;
|
|
4720
|
+
setting: string;
|
|
4721
|
+
} | {
|
|
3531
4722
|
details?: string | undefined;
|
|
3532
4723
|
type: "unsupported-setting";
|
|
3533
4724
|
setting: string;
|
|
3534
4725
|
} | {
|
|
3535
4726
|
details?: string | undefined;
|
|
3536
|
-
type: "unsupported-tool";
|
|
3537
4727
|
tool: any;
|
|
4728
|
+
type: "unsupported-tool";
|
|
3538
4729
|
} | {
|
|
3539
4730
|
type: "other";
|
|
3540
4731
|
message: string;
|
|
3541
4732
|
})[] | undefined, import("convex/values").VUnion<{
|
|
4733
|
+
details?: string | undefined;
|
|
4734
|
+
type: "unsupported";
|
|
4735
|
+
feature: string;
|
|
4736
|
+
} | {
|
|
4737
|
+
details?: string | undefined;
|
|
4738
|
+
type: "compatibility";
|
|
4739
|
+
feature: string;
|
|
4740
|
+
} | {
|
|
4741
|
+
type: "deprecated";
|
|
4742
|
+
message: string;
|
|
4743
|
+
setting: string;
|
|
4744
|
+
} | {
|
|
3542
4745
|
details?: string | undefined;
|
|
3543
4746
|
type: "unsupported-setting";
|
|
3544
4747
|
setting: string;
|
|
3545
4748
|
} | {
|
|
3546
4749
|
details?: string | undefined;
|
|
3547
|
-
type: "unsupported-tool";
|
|
3548
4750
|
tool: any;
|
|
4751
|
+
type: "unsupported-tool";
|
|
3549
4752
|
} | {
|
|
3550
4753
|
type: "other";
|
|
3551
4754
|
message: string;
|
|
3552
4755
|
}, [import("convex/values").VObject<{
|
|
4756
|
+
details?: string | undefined;
|
|
4757
|
+
type: "unsupported";
|
|
4758
|
+
feature: string;
|
|
4759
|
+
}, {
|
|
4760
|
+
type: import("convex/values").VLiteral<"unsupported", "required">;
|
|
4761
|
+
feature: import("convex/values").VString<string, "required">;
|
|
4762
|
+
details: import("convex/values").VString<string | undefined, "optional">;
|
|
4763
|
+
}, "required", "type" | "feature" | "details">, import("convex/values").VObject<{
|
|
4764
|
+
details?: string | undefined;
|
|
4765
|
+
type: "compatibility";
|
|
4766
|
+
feature: string;
|
|
4767
|
+
}, {
|
|
4768
|
+
type: import("convex/values").VLiteral<"compatibility", "required">;
|
|
4769
|
+
feature: import("convex/values").VString<string, "required">;
|
|
4770
|
+
details: import("convex/values").VString<string | undefined, "optional">;
|
|
4771
|
+
}, "required", "type" | "feature" | "details">, import("convex/values").VObject<{
|
|
4772
|
+
type: "deprecated";
|
|
4773
|
+
message: string;
|
|
4774
|
+
setting: string;
|
|
4775
|
+
}, {
|
|
4776
|
+
type: import("convex/values").VLiteral<"deprecated", "required">;
|
|
4777
|
+
setting: import("convex/values").VString<string, "required">;
|
|
4778
|
+
message: import("convex/values").VString<string, "required">;
|
|
4779
|
+
}, "required", "type" | "message" | "setting">, import("convex/values").VObject<{
|
|
3553
4780
|
details?: string | undefined;
|
|
3554
4781
|
type: "unsupported-setting";
|
|
3555
4782
|
setting: string;
|
|
@@ -3557,33 +4784,33 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3557
4784
|
type: import("convex/values").VLiteral<"unsupported-setting", "required">;
|
|
3558
4785
|
setting: import("convex/values").VString<string, "required">;
|
|
3559
4786
|
details: import("convex/values").VString<string | undefined, "optional">;
|
|
3560
|
-
}, "required", "type" | "
|
|
4787
|
+
}, "required", "type" | "details" | "setting">, import("convex/values").VObject<{
|
|
3561
4788
|
details?: string | undefined;
|
|
3562
|
-
type: "unsupported-tool";
|
|
3563
4789
|
tool: any;
|
|
4790
|
+
type: "unsupported-tool";
|
|
3564
4791
|
}, {
|
|
3565
4792
|
type: import("convex/values").VLiteral<"unsupported-tool", "required">;
|
|
3566
4793
|
tool: import("convex/values").VAny<any, "required", string>;
|
|
3567
4794
|
details: import("convex/values").VString<string | undefined, "optional">;
|
|
3568
|
-
}, "required", "
|
|
4795
|
+
}, "required", "tool" | "type" | "details" | `tool.${string}`>, import("convex/values").VObject<{
|
|
3569
4796
|
type: "other";
|
|
3570
4797
|
message: string;
|
|
3571
4798
|
}, {
|
|
3572
4799
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
3573
4800
|
message: import("convex/values").VString<string, "required">;
|
|
3574
|
-
}, "required", "type" | "message">], "required", "type" | "message" | "
|
|
4801
|
+
}, "required", "type" | "message">], "required", "tool" | "type" | "message" | "feature" | "details" | "setting" | `tool.${string}`>, "optional">;
|
|
3575
4802
|
finishReason: import("convex/values").VUnion<"error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
3576
4803
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
3577
4804
|
reasoningDetails: import("convex/values").VArray<({
|
|
3578
4805
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3579
4806
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3580
4807
|
signature?: string | undefined;
|
|
3581
|
-
type: "reasoning";
|
|
3582
4808
|
text: string;
|
|
4809
|
+
type: "reasoning";
|
|
3583
4810
|
} | {
|
|
3584
4811
|
signature?: string | undefined;
|
|
3585
|
-
type: "text";
|
|
3586
4812
|
text: string;
|
|
4813
|
+
type: "text";
|
|
3587
4814
|
} | {
|
|
3588
4815
|
type: "redacted";
|
|
3589
4816
|
data: string;
|
|
@@ -3591,12 +4818,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3591
4818
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3592
4819
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3593
4820
|
signature?: string | undefined;
|
|
3594
|
-
type: "reasoning";
|
|
3595
4821
|
text: string;
|
|
4822
|
+
type: "reasoning";
|
|
3596
4823
|
} | {
|
|
3597
4824
|
signature?: string | undefined;
|
|
3598
|
-
type: "text";
|
|
3599
4825
|
text: string;
|
|
4826
|
+
type: "text";
|
|
3600
4827
|
} | {
|
|
3601
4828
|
type: "redacted";
|
|
3602
4829
|
data: string;
|
|
@@ -3604,36 +4831,36 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3604
4831
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3605
4832
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3606
4833
|
signature?: string | undefined;
|
|
3607
|
-
type: "reasoning";
|
|
3608
4834
|
text: string;
|
|
4835
|
+
type: "reasoning";
|
|
3609
4836
|
}, {
|
|
3610
4837
|
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
3611
4838
|
text: import("convex/values").VString<string, "required">;
|
|
3612
4839
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3613
4840
|
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>;
|
|
3614
4841
|
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>;
|
|
3615
|
-
}, "required", "
|
|
4842
|
+
}, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
|
|
3616
4843
|
signature?: string | undefined;
|
|
3617
|
-
type: "text";
|
|
3618
4844
|
text: string;
|
|
4845
|
+
type: "text";
|
|
3619
4846
|
}, {
|
|
3620
4847
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
3621
4848
|
text: import("convex/values").VString<string, "required">;
|
|
3622
4849
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3623
|
-
}, "required", "
|
|
4850
|
+
}, "required", "text" | "type" | "signature">, import("convex/values").VObject<{
|
|
3624
4851
|
type: "redacted";
|
|
3625
4852
|
data: string;
|
|
3626
4853
|
}, {
|
|
3627
4854
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
3628
4855
|
data: import("convex/values").VString<string, "required">;
|
|
3629
|
-
}, "required", "type" | "data">], "required", "
|
|
4856
|
+
}, "required", "type" | "data">], "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">;
|
|
3630
4857
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
3631
|
-
}, "required", "id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "
|
|
4858
|
+
}, "required", "tool" | "text" | "reasoning" | "id" | "status" | "userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens" | "usage.nonCachedInputTokens" | "usage.cacheWriteInputTokens" | "usage.textOutputTokens" | "usage.raw" | `usage.raw.${string}` | "_id">, "required">;
|
|
3632
4859
|
continueCursor: import("convex/values").VString<string, "required">;
|
|
3633
4860
|
isDone: import("convex/values").VBoolean<boolean, "required">;
|
|
3634
4861
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
3635
4862
|
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>;
|
|
3636
|
-
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus" | "streams" | "streams.
|
|
4863
|
+
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus" | "streams" | "streams.kind" | "streams.messages" | "streams.deltas">;
|
|
3637
4864
|
/**
|
|
3638
4865
|
* A function that handles fetching stream deltas, used with the React hooks
|
|
3639
4866
|
* `useThreadMessages` or `useStreamingThreadMessages`.
|