@convex-dev/agent 0.1.18 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/createTool.d.ts +30 -11
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +24 -10
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/defaultComponent.d.ts +11 -0
- package/dist/client/defaultComponent.d.ts.map +1 -0
- package/dist/client/defaultComponent.js +7 -0
- package/dist/client/defaultComponent.js.map +1 -0
- package/dist/client/definePlaygroundAPI.d.ts +68 -23
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/definePlaygroundAPI.js +7 -20
- package/dist/client/definePlaygroundAPI.js.map +1 -1
- package/dist/client/files.d.ts +14 -4
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js +66 -11
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +323 -780
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +445 -543
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +256 -0
- package/dist/client/messages.d.ts.map +1 -0
- package/dist/client/messages.js +97 -0
- package/dist/client/messages.js.map +1 -0
- package/dist/client/search.d.ts +35 -12
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +21 -4
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +21 -21
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +35 -40
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/threads.d.ts +46 -0
- package/dist/client/threads.d.ts.map +1 -0
- package/dist/client/threads.js +49 -0
- package/dist/client/threads.js.map +1 -0
- package/dist/client/types.d.ts +159 -75
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +261 -209
- package/dist/component/messages.d.ts +314 -105
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +141 -83
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +631 -870
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +11 -16
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.d.ts +29 -149
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/component/streams.js +104 -60
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts +4 -4
- package/dist/component/users.d.ts +3 -3
- package/dist/mapping.d.ts +15 -16
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +208 -62
- package/dist/mapping.js.map +1 -1
- package/dist/parts.d.ts +3 -0
- package/dist/parts.d.ts.map +1 -0
- package/dist/parts.js +34 -0
- package/dist/parts.js.map +1 -0
- package/dist/react/SmoothText.d.ts +5 -0
- package/dist/react/SmoothText.d.ts.map +1 -0
- package/dist/react/SmoothText.js +6 -0
- package/dist/react/SmoothText.js.map +1 -0
- package/dist/react/deltas.d.ts +3 -5
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +89 -53
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +31 -11
- package/dist/react/index.js.map +1 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +1 -1
- package/dist/react/optimisticallySendMessage.js +2 -8
- package/dist/react/optimisticallySendMessage.js.map +1 -1
- package/dist/react/toUIMessages.d.ts +5 -4
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +103 -40
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/react/useSmoothText.d.ts +13 -12
- package/dist/react/useSmoothText.d.ts.map +1 -1
- package/dist/react/useSmoothText.js +1 -1
- package/dist/react/useSmoothText.js.map +1 -1
- package/dist/validators.d.ts +751 -1464
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +39 -80
- package/dist/validators.js.map +1 -1
- package/package.json +34 -30
- package/src/client/createTool.ts +66 -40
- package/src/client/defaultComponent.ts +17 -0
- package/src/client/definePlaygroundAPI.ts +17 -31
- package/src/client/files.ts +94 -17
- package/src/client/index.test.ts +28 -38
- package/src/client/index.ts +785 -977
- package/src/client/messages.ts +205 -0
- package/src/client/search.ts +37 -10
- package/src/client/streaming.ts +53 -56
- package/src/client/threads.ts +78 -0
- package/src/client/types.ts +239 -131
- package/src/component/_generated/api.d.ts +261 -209
- package/src/component/messages.test.ts +182 -40
- package/src/component/messages.ts +165 -108
- package/src/component/schema.ts +11 -17
- package/src/component/streams.ts +180 -69
- package/src/mapping.ts +253 -96
- package/src/parts.ts +39 -0
- package/src/react/SmoothText.tsx +9 -0
- package/src/react/deltas.test.ts +38 -42
- package/src/react/deltas.ts +116 -65
- package/src/react/index.ts +35 -13
- package/src/react/optimisticallySendMessage.ts +2 -8
- package/src/react/toUIMessages.test.ts +154 -36
- package/src/react/toUIMessages.ts +136 -57
- package/src/react/useSmoothText.ts +14 -15
- package/src/validators.test.ts +1 -117
- package/src/validators.ts +57 -107
- package/dist/client/listMessages.d.ts +0 -22
- package/dist/client/listMessages.d.ts.map +0 -1
- package/dist/client/listMessages.js +0 -25
- package/dist/client/listMessages.js.map +0 -1
- package/src/client/listMessages.ts +0 -38
package/dist/validators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Infer, type
|
|
1
|
+
import { type Infer, type Validator, type Value } from "convex/values";
|
|
2
2
|
export declare const vProviderOptions: import("convex/values").VRecord<Record<string, Record<string, any>>, 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>, "required", string>;
|
|
3
3
|
declare const 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>;
|
|
4
4
|
export type ProviderOptions = Infer<typeof providerOptions>;
|
|
@@ -121,6 +121,7 @@ export declare const vUserContent: import("convex/values").VUnion<string | ({
|
|
|
121
121
|
export declare const vReasoningPart: import("convex/values").VObject<{
|
|
122
122
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
123
123
|
signature?: string | undefined;
|
|
124
|
+
state?: "streaming" | "done" | undefined;
|
|
124
125
|
type: "reasoning";
|
|
125
126
|
text: string;
|
|
126
127
|
}, {
|
|
@@ -128,7 +129,8 @@ export declare const vReasoningPart: import("convex/values").VObject<{
|
|
|
128
129
|
text: import("convex/values").VString<string, "required">;
|
|
129
130
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
130
131
|
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>;
|
|
131
|
-
|
|
132
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
133
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">;
|
|
132
134
|
export declare const vRedactedReasoningPart: import("convex/values").VObject<{
|
|
133
135
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
134
136
|
type: "redacted-reasoning";
|
|
@@ -139,6 +141,12 @@ export declare const vRedactedReasoningPart: import("convex/values").VObject<{
|
|
|
139
141
|
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>;
|
|
140
142
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">;
|
|
141
143
|
export declare const vReasoningDetails: import("convex/values").VArray<({
|
|
144
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
145
|
+
signature?: string | undefined;
|
|
146
|
+
state?: "streaming" | "done" | undefined;
|
|
147
|
+
type: "reasoning";
|
|
148
|
+
text: string;
|
|
149
|
+
} | {
|
|
142
150
|
signature?: string | undefined;
|
|
143
151
|
type: "text";
|
|
144
152
|
text: string;
|
|
@@ -146,6 +154,12 @@ export declare const vReasoningDetails: import("convex/values").VArray<({
|
|
|
146
154
|
type: "redacted";
|
|
147
155
|
data: string;
|
|
148
156
|
})[], import("convex/values").VUnion<{
|
|
157
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
158
|
+
signature?: string | undefined;
|
|
159
|
+
state?: "streaming" | "done" | undefined;
|
|
160
|
+
type: "reasoning";
|
|
161
|
+
text: string;
|
|
162
|
+
} | {
|
|
149
163
|
signature?: string | undefined;
|
|
150
164
|
type: "text";
|
|
151
165
|
text: string;
|
|
@@ -153,6 +167,18 @@ export declare const vReasoningDetails: import("convex/values").VArray<({
|
|
|
153
167
|
type: "redacted";
|
|
154
168
|
data: string;
|
|
155
169
|
}, [import("convex/values").VObject<{
|
|
170
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
171
|
+
signature?: string | undefined;
|
|
172
|
+
state?: "streaming" | "done" | undefined;
|
|
173
|
+
type: "reasoning";
|
|
174
|
+
text: string;
|
|
175
|
+
}, {
|
|
176
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
177
|
+
text: import("convex/values").VString<string, "required">;
|
|
178
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
179
|
+
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>;
|
|
180
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
181
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
156
182
|
signature?: string | undefined;
|
|
157
183
|
type: "text";
|
|
158
184
|
text: string;
|
|
@@ -166,9 +192,10 @@ export declare const vReasoningDetails: import("convex/values").VArray<({
|
|
|
166
192
|
}, {
|
|
167
193
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
168
194
|
data: import("convex/values").VString<string, "required">;
|
|
169
|
-
}, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "required">;
|
|
195
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "required">;
|
|
170
196
|
export declare const vToolCallPart: import("convex/values").VObject<{
|
|
171
197
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
198
|
+
providerExecuted?: boolean | undefined;
|
|
172
199
|
type: "tool-call";
|
|
173
200
|
toolCallId: string;
|
|
174
201
|
toolName: string;
|
|
@@ -179,7 +206,8 @@ export declare const vToolCallPart: import("convex/values").VObject<{
|
|
|
179
206
|
toolName: import("convex/values").VString<string, "required">;
|
|
180
207
|
args: import("convex/values").VAny<any, "required", string>;
|
|
181
208
|
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>;
|
|
182
|
-
|
|
209
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
210
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>;
|
|
183
211
|
export declare const vAssistantContent: import("convex/values").VUnion<string | ({
|
|
184
212
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
185
213
|
type: "text";
|
|
@@ -193,6 +221,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
193
221
|
} | {
|
|
194
222
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
195
223
|
signature?: string | undefined;
|
|
224
|
+
state?: "streaming" | "done" | undefined;
|
|
196
225
|
type: "reasoning";
|
|
197
226
|
text: string;
|
|
198
227
|
} | {
|
|
@@ -201,6 +230,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
201
230
|
data: string;
|
|
202
231
|
} | {
|
|
203
232
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
233
|
+
providerExecuted?: boolean | undefined;
|
|
204
234
|
type: "tool-call";
|
|
205
235
|
toolCallId: string;
|
|
206
236
|
toolName: string;
|
|
@@ -218,6 +248,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
218
248
|
} | {
|
|
219
249
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
220
250
|
signature?: string | undefined;
|
|
251
|
+
state?: "streaming" | "done" | undefined;
|
|
221
252
|
type: "reasoning";
|
|
222
253
|
text: string;
|
|
223
254
|
} | {
|
|
@@ -226,6 +257,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
226
257
|
data: string;
|
|
227
258
|
} | {
|
|
228
259
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
260
|
+
providerExecuted?: boolean | undefined;
|
|
229
261
|
type: "tool-call";
|
|
230
262
|
toolCallId: string;
|
|
231
263
|
toolName: string;
|
|
@@ -243,6 +275,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
243
275
|
} | {
|
|
244
276
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
245
277
|
signature?: string | undefined;
|
|
278
|
+
state?: "streaming" | "done" | undefined;
|
|
246
279
|
type: "reasoning";
|
|
247
280
|
text: string;
|
|
248
281
|
} | {
|
|
@@ -251,6 +284,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
251
284
|
data: string;
|
|
252
285
|
} | {
|
|
253
286
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
287
|
+
providerExecuted?: boolean | undefined;
|
|
254
288
|
type: "tool-call";
|
|
255
289
|
toolCallId: string;
|
|
256
290
|
toolName: string;
|
|
@@ -278,6 +312,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
278
312
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
279
313
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
280
314
|
signature?: string | undefined;
|
|
315
|
+
state?: "streaming" | "done" | undefined;
|
|
281
316
|
type: "reasoning";
|
|
282
317
|
text: string;
|
|
283
318
|
}, {
|
|
@@ -285,7 +320,8 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
285
320
|
text: import("convex/values").VString<string, "required">;
|
|
286
321
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
287
322
|
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>;
|
|
288
|
-
|
|
323
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
324
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
289
325
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
290
326
|
type: "redacted-reasoning";
|
|
291
327
|
data: string;
|
|
@@ -295,6 +331,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
295
331
|
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>;
|
|
296
332
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
297
333
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
334
|
+
providerExecuted?: boolean | undefined;
|
|
298
335
|
type: "tool-call";
|
|
299
336
|
toolCallId: string;
|
|
300
337
|
toolName: string;
|
|
@@ -305,10 +342,13 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
305
342
|
toolName: import("convex/values").VString<string, "required">;
|
|
306
343
|
args: import("convex/values").VAny<any, "required", string>;
|
|
307
344
|
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>;
|
|
308
|
-
|
|
309
|
-
|
|
345
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
346
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
347
|
+
export declare const vToolResultPart: import("convex/values").VObject<{
|
|
310
348
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
311
349
|
args?: any;
|
|
350
|
+
providerExecuted?: boolean | undefined;
|
|
351
|
+
isError?: boolean | undefined;
|
|
312
352
|
experimental_content?: ({
|
|
313
353
|
type: "text";
|
|
314
354
|
text: string;
|
|
@@ -317,7 +357,62 @@ export declare const vToolContent: import("convex/values").VArray<{
|
|
|
317
357
|
type: "image";
|
|
318
358
|
data: string;
|
|
319
359
|
})[] | undefined;
|
|
360
|
+
type: "tool-result";
|
|
361
|
+
toolCallId: string;
|
|
362
|
+
toolName: string;
|
|
363
|
+
result: any;
|
|
364
|
+
}, {
|
|
365
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
366
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
367
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
368
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
369
|
+
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>;
|
|
370
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
371
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
372
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
373
|
+
experimental_content: import("convex/values").VArray<({
|
|
374
|
+
type: "text";
|
|
375
|
+
text: string;
|
|
376
|
+
} | {
|
|
377
|
+
mimeType?: string | undefined;
|
|
378
|
+
type: "image";
|
|
379
|
+
data: string;
|
|
380
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
381
|
+
type: "text";
|
|
382
|
+
text: string;
|
|
383
|
+
} | {
|
|
384
|
+
mimeType?: string | undefined;
|
|
385
|
+
type: "image";
|
|
386
|
+
data: string;
|
|
387
|
+
}, [import("convex/values").VObject<{
|
|
388
|
+
type: "text";
|
|
389
|
+
text: string;
|
|
390
|
+
}, {
|
|
391
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
392
|
+
text: import("convex/values").VString<string, "required">;
|
|
393
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
394
|
+
mimeType?: string | undefined;
|
|
395
|
+
type: "image";
|
|
396
|
+
data: string;
|
|
397
|
+
}, {
|
|
398
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
399
|
+
data: import("convex/values").VString<string, "required">;
|
|
400
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
401
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
402
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>;
|
|
403
|
+
export declare const vToolContent: import("convex/values").VArray<{
|
|
404
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
405
|
+
args?: any;
|
|
406
|
+
providerExecuted?: boolean | undefined;
|
|
320
407
|
isError?: boolean | undefined;
|
|
408
|
+
experimental_content?: ({
|
|
409
|
+
type: "text";
|
|
410
|
+
text: string;
|
|
411
|
+
} | {
|
|
412
|
+
mimeType?: string | undefined;
|
|
413
|
+
type: "image";
|
|
414
|
+
data: string;
|
|
415
|
+
})[] | undefined;
|
|
321
416
|
type: "tool-result";
|
|
322
417
|
toolCallId: string;
|
|
323
418
|
toolName: string;
|
|
@@ -325,6 +420,8 @@ export declare const vToolContent: import("convex/values").VArray<{
|
|
|
325
420
|
}[], import("convex/values").VObject<{
|
|
326
421
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
327
422
|
args?: any;
|
|
423
|
+
providerExecuted?: boolean | undefined;
|
|
424
|
+
isError?: boolean | undefined;
|
|
328
425
|
experimental_content?: ({
|
|
329
426
|
type: "text";
|
|
330
427
|
text: string;
|
|
@@ -333,7 +430,6 @@ export declare const vToolContent: import("convex/values").VArray<{
|
|
|
333
430
|
type: "image";
|
|
334
431
|
data: string;
|
|
335
432
|
})[] | undefined;
|
|
336
|
-
isError?: boolean | undefined;
|
|
337
433
|
type: "tool-result";
|
|
338
434
|
toolCallId: string;
|
|
339
435
|
toolName: string;
|
|
@@ -343,6 +439,9 @@ export declare const vToolContent: import("convex/values").VArray<{
|
|
|
343
439
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
344
440
|
toolName: import("convex/values").VString<string, "required">;
|
|
345
441
|
result: import("convex/values").VAny<any, "required", string>;
|
|
442
|
+
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>;
|
|
443
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
444
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
346
445
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
347
446
|
experimental_content: import("convex/values").VArray<({
|
|
348
447
|
type: "text";
|
|
@@ -373,9 +472,7 @@ export declare const vToolContent: import("convex/values").VArray<{
|
|
|
373
472
|
data: import("convex/values").VString<string, "required">;
|
|
374
473
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
375
474
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
376
|
-
|
|
377
|
-
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>;
|
|
378
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
475
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
379
476
|
export declare const vContent: import("convex/values").VUnion<string | ({
|
|
380
477
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
381
478
|
type: "text";
|
|
@@ -404,6 +501,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
404
501
|
} | {
|
|
405
502
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
406
503
|
signature?: string | undefined;
|
|
504
|
+
state?: "streaming" | "done" | undefined;
|
|
407
505
|
type: "reasoning";
|
|
408
506
|
text: string;
|
|
409
507
|
} | {
|
|
@@ -412,6 +510,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
412
510
|
data: string;
|
|
413
511
|
} | {
|
|
414
512
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
513
|
+
providerExecuted?: boolean | undefined;
|
|
415
514
|
type: "tool-call";
|
|
416
515
|
toolCallId: string;
|
|
417
516
|
toolName: string;
|
|
@@ -419,6 +518,8 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
419
518
|
})[] | {
|
|
420
519
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
421
520
|
args?: any;
|
|
521
|
+
providerExecuted?: boolean | undefined;
|
|
522
|
+
isError?: boolean | undefined;
|
|
422
523
|
experimental_content?: ({
|
|
423
524
|
type: "text";
|
|
424
525
|
text: string;
|
|
@@ -427,7 +528,6 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
427
528
|
type: "image";
|
|
428
529
|
data: string;
|
|
429
530
|
})[] | undefined;
|
|
430
|
-
isError?: boolean | undefined;
|
|
431
531
|
type: "tool-result";
|
|
432
532
|
toolCallId: string;
|
|
433
533
|
toolName: string;
|
|
@@ -520,6 +620,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
520
620
|
} | {
|
|
521
621
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
522
622
|
signature?: string | undefined;
|
|
623
|
+
state?: "streaming" | "done" | undefined;
|
|
523
624
|
type: "reasoning";
|
|
524
625
|
text: string;
|
|
525
626
|
} | {
|
|
@@ -528,6 +629,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
528
629
|
data: string;
|
|
529
630
|
} | {
|
|
530
631
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
632
|
+
providerExecuted?: boolean | undefined;
|
|
531
633
|
type: "tool-call";
|
|
532
634
|
toolCallId: string;
|
|
533
635
|
toolName: string;
|
|
@@ -545,6 +647,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
545
647
|
} | {
|
|
546
648
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
547
649
|
signature?: string | undefined;
|
|
650
|
+
state?: "streaming" | "done" | undefined;
|
|
548
651
|
type: "reasoning";
|
|
549
652
|
text: string;
|
|
550
653
|
} | {
|
|
@@ -553,6 +656,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
553
656
|
data: string;
|
|
554
657
|
} | {
|
|
555
658
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
659
|
+
providerExecuted?: boolean | undefined;
|
|
556
660
|
type: "tool-call";
|
|
557
661
|
toolCallId: string;
|
|
558
662
|
toolName: string;
|
|
@@ -570,6 +674,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
570
674
|
} | {
|
|
571
675
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
572
676
|
signature?: string | undefined;
|
|
677
|
+
state?: "streaming" | "done" | undefined;
|
|
573
678
|
type: "reasoning";
|
|
574
679
|
text: string;
|
|
575
680
|
} | {
|
|
@@ -578,6 +683,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
578
683
|
data: string;
|
|
579
684
|
} | {
|
|
580
685
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
686
|
+
providerExecuted?: boolean | undefined;
|
|
581
687
|
type: "tool-call";
|
|
582
688
|
toolCallId: string;
|
|
583
689
|
toolName: string;
|
|
@@ -605,6 +711,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
605
711
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
606
712
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
607
713
|
signature?: string | undefined;
|
|
714
|
+
state?: "streaming" | "done" | undefined;
|
|
608
715
|
type: "reasoning";
|
|
609
716
|
text: string;
|
|
610
717
|
}, {
|
|
@@ -612,7 +719,8 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
612
719
|
text: import("convex/values").VString<string, "required">;
|
|
613
720
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
614
721
|
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>;
|
|
615
|
-
|
|
722
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
723
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
616
724
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
617
725
|
type: "redacted-reasoning";
|
|
618
726
|
data: string;
|
|
@@ -622,6 +730,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
622
730
|
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>;
|
|
623
731
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
624
732
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
733
|
+
providerExecuted?: boolean | undefined;
|
|
625
734
|
type: "tool-call";
|
|
626
735
|
toolCallId: string;
|
|
627
736
|
toolName: string;
|
|
@@ -632,9 +741,12 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
632
741
|
toolName: import("convex/values").VString<string, "required">;
|
|
633
742
|
args: import("convex/values").VAny<any, "required", string>;
|
|
634
743
|
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>;
|
|
635
|
-
|
|
744
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
745
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>, import("convex/values").VArray<{
|
|
636
746
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
637
747
|
args?: any;
|
|
748
|
+
providerExecuted?: boolean | undefined;
|
|
749
|
+
isError?: boolean | undefined;
|
|
638
750
|
experimental_content?: ({
|
|
639
751
|
type: "text";
|
|
640
752
|
text: string;
|
|
@@ -643,7 +755,6 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
643
755
|
type: "image";
|
|
644
756
|
data: string;
|
|
645
757
|
})[] | undefined;
|
|
646
|
-
isError?: boolean | undefined;
|
|
647
758
|
type: "tool-result";
|
|
648
759
|
toolCallId: string;
|
|
649
760
|
toolName: string;
|
|
@@ -651,6 +762,8 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
651
762
|
}[], import("convex/values").VObject<{
|
|
652
763
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
653
764
|
args?: any;
|
|
765
|
+
providerExecuted?: boolean | undefined;
|
|
766
|
+
isError?: boolean | undefined;
|
|
654
767
|
experimental_content?: ({
|
|
655
768
|
type: "text";
|
|
656
769
|
text: string;
|
|
@@ -659,7 +772,6 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
659
772
|
type: "image";
|
|
660
773
|
data: string;
|
|
661
774
|
})[] | undefined;
|
|
662
|
-
isError?: boolean | undefined;
|
|
663
775
|
type: "tool-result";
|
|
664
776
|
toolCallId: string;
|
|
665
777
|
toolName: string;
|
|
@@ -669,6 +781,9 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
669
781
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
670
782
|
toolName: import("convex/values").VString<string, "required">;
|
|
671
783
|
result: import("convex/values").VAny<any, "required", string>;
|
|
784
|
+
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>;
|
|
785
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
786
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
672
787
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
673
788
|
experimental_content: import("convex/values").VArray<({
|
|
674
789
|
type: "text";
|
|
@@ -699,9 +814,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
699
814
|
data: import("convex/values").VString<string, "required">;
|
|
700
815
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
701
816
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
702
|
-
|
|
703
|
-
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>;
|
|
704
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">], "required", never>;
|
|
817
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">], "required", never>;
|
|
705
818
|
export type Content = Infer<typeof vContent>;
|
|
706
819
|
export declare const vUserMessage: import("convex/values").VObject<{
|
|
707
820
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -818,6 +931,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
818
931
|
} | {
|
|
819
932
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
820
933
|
signature?: string | undefined;
|
|
934
|
+
state?: "streaming" | "done" | undefined;
|
|
821
935
|
type: "reasoning";
|
|
822
936
|
text: string;
|
|
823
937
|
} | {
|
|
@@ -826,6 +940,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
826
940
|
data: string;
|
|
827
941
|
} | {
|
|
828
942
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
943
|
+
providerExecuted?: boolean | undefined;
|
|
829
944
|
type: "tool-call";
|
|
830
945
|
toolCallId: string;
|
|
831
946
|
toolName: string;
|
|
@@ -846,6 +961,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
846
961
|
} | {
|
|
847
962
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
848
963
|
signature?: string | undefined;
|
|
964
|
+
state?: "streaming" | "done" | undefined;
|
|
849
965
|
type: "reasoning";
|
|
850
966
|
text: string;
|
|
851
967
|
} | {
|
|
@@ -854,6 +970,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
854
970
|
data: string;
|
|
855
971
|
} | {
|
|
856
972
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
973
|
+
providerExecuted?: boolean | undefined;
|
|
857
974
|
type: "tool-call";
|
|
858
975
|
toolCallId: string;
|
|
859
976
|
toolName: string;
|
|
@@ -871,6 +988,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
871
988
|
} | {
|
|
872
989
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
873
990
|
signature?: string | undefined;
|
|
991
|
+
state?: "streaming" | "done" | undefined;
|
|
874
992
|
type: "reasoning";
|
|
875
993
|
text: string;
|
|
876
994
|
} | {
|
|
@@ -879,6 +997,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
879
997
|
data: string;
|
|
880
998
|
} | {
|
|
881
999
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1000
|
+
providerExecuted?: boolean | undefined;
|
|
882
1001
|
type: "tool-call";
|
|
883
1002
|
toolCallId: string;
|
|
884
1003
|
toolName: string;
|
|
@@ -896,6 +1015,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
896
1015
|
} | {
|
|
897
1016
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
898
1017
|
signature?: string | undefined;
|
|
1018
|
+
state?: "streaming" | "done" | undefined;
|
|
899
1019
|
type: "reasoning";
|
|
900
1020
|
text: string;
|
|
901
1021
|
} | {
|
|
@@ -904,6 +1024,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
904
1024
|
data: string;
|
|
905
1025
|
} | {
|
|
906
1026
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1027
|
+
providerExecuted?: boolean | undefined;
|
|
907
1028
|
type: "tool-call";
|
|
908
1029
|
toolCallId: string;
|
|
909
1030
|
toolName: string;
|
|
@@ -931,6 +1052,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
931
1052
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
932
1053
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
933
1054
|
signature?: string | undefined;
|
|
1055
|
+
state?: "streaming" | "done" | undefined;
|
|
934
1056
|
type: "reasoning";
|
|
935
1057
|
text: string;
|
|
936
1058
|
}, {
|
|
@@ -938,7 +1060,8 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
938
1060
|
text: import("convex/values").VString<string, "required">;
|
|
939
1061
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
940
1062
|
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>;
|
|
941
|
-
|
|
1063
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
1064
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
942
1065
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
943
1066
|
type: "redacted-reasoning";
|
|
944
1067
|
data: string;
|
|
@@ -948,6 +1071,7 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
948
1071
|
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>;
|
|
949
1072
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
950
1073
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1074
|
+
providerExecuted?: boolean | undefined;
|
|
951
1075
|
type: "tool-call";
|
|
952
1076
|
toolCallId: string;
|
|
953
1077
|
toolName: string;
|
|
@@ -958,7 +1082,8 @@ export declare const vAssistantMessage: import("convex/values").VObject<{
|
|
|
958
1082
|
toolName: import("convex/values").VString<string, "required">;
|
|
959
1083
|
args: import("convex/values").VAny<any, "required", string>;
|
|
960
1084
|
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>;
|
|
961
|
-
|
|
1085
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1086
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
962
1087
|
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>;
|
|
963
1088
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
|
|
964
1089
|
export declare const vToolMessage: import("convex/values").VObject<{
|
|
@@ -967,6 +1092,8 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
967
1092
|
content: {
|
|
968
1093
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
969
1094
|
args?: any;
|
|
1095
|
+
providerExecuted?: boolean | undefined;
|
|
1096
|
+
isError?: boolean | undefined;
|
|
970
1097
|
experimental_content?: ({
|
|
971
1098
|
type: "text";
|
|
972
1099
|
text: string;
|
|
@@ -975,7 +1102,6 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
975
1102
|
type: "image";
|
|
976
1103
|
data: string;
|
|
977
1104
|
})[] | undefined;
|
|
978
|
-
isError?: boolean | undefined;
|
|
979
1105
|
type: "tool-result";
|
|
980
1106
|
toolCallId: string;
|
|
981
1107
|
toolName: string;
|
|
@@ -986,6 +1112,8 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
986
1112
|
content: import("convex/values").VArray<{
|
|
987
1113
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
988
1114
|
args?: any;
|
|
1115
|
+
providerExecuted?: boolean | undefined;
|
|
1116
|
+
isError?: boolean | undefined;
|
|
989
1117
|
experimental_content?: ({
|
|
990
1118
|
type: "text";
|
|
991
1119
|
text: string;
|
|
@@ -994,7 +1122,6 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
994
1122
|
type: "image";
|
|
995
1123
|
data: string;
|
|
996
1124
|
})[] | undefined;
|
|
997
|
-
isError?: boolean | undefined;
|
|
998
1125
|
type: "tool-result";
|
|
999
1126
|
toolCallId: string;
|
|
1000
1127
|
toolName: string;
|
|
@@ -1002,6 +1129,8 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
1002
1129
|
}[], import("convex/values").VObject<{
|
|
1003
1130
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1004
1131
|
args?: any;
|
|
1132
|
+
providerExecuted?: boolean | undefined;
|
|
1133
|
+
isError?: boolean | undefined;
|
|
1005
1134
|
experimental_content?: ({
|
|
1006
1135
|
type: "text";
|
|
1007
1136
|
text: string;
|
|
@@ -1010,7 +1139,6 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
1010
1139
|
type: "image";
|
|
1011
1140
|
data: string;
|
|
1012
1141
|
})[] | undefined;
|
|
1013
|
-
isError?: boolean | undefined;
|
|
1014
1142
|
type: "tool-result";
|
|
1015
1143
|
toolCallId: string;
|
|
1016
1144
|
toolName: string;
|
|
@@ -1020,6 +1148,9 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
1020
1148
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
1021
1149
|
toolName: import("convex/values").VString<string, "required">;
|
|
1022
1150
|
result: import("convex/values").VAny<any, "required", string>;
|
|
1151
|
+
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>;
|
|
1152
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1153
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1023
1154
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
1024
1155
|
experimental_content: import("convex/values").VArray<({
|
|
1025
1156
|
type: "text";
|
|
@@ -1050,9 +1181,7 @@ export declare const vToolMessage: import("convex/values").VObject<{
|
|
|
1050
1181
|
data: import("convex/values").VString<string, "required">;
|
|
1051
1182
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1052
1183
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1053
|
-
|
|
1054
|
-
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>;
|
|
1055
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
1184
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
1056
1185
|
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>;
|
|
1057
1186
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
|
|
1058
1187
|
export declare const vSystemMessage: import("convex/values").VObject<{
|
|
@@ -1099,6 +1228,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1099
1228
|
} | {
|
|
1100
1229
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1101
1230
|
signature?: string | undefined;
|
|
1231
|
+
state?: "streaming" | "done" | undefined;
|
|
1102
1232
|
type: "reasoning";
|
|
1103
1233
|
text: string;
|
|
1104
1234
|
} | {
|
|
@@ -1107,6 +1237,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1107
1237
|
data: string;
|
|
1108
1238
|
} | {
|
|
1109
1239
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1240
|
+
providerExecuted?: boolean | undefined;
|
|
1110
1241
|
type: "tool-call";
|
|
1111
1242
|
toolCallId: string;
|
|
1112
1243
|
toolName: string;
|
|
@@ -1118,6 +1249,8 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1118
1249
|
content: {
|
|
1119
1250
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1120
1251
|
args?: any;
|
|
1252
|
+
providerExecuted?: boolean | undefined;
|
|
1253
|
+
isError?: boolean | undefined;
|
|
1121
1254
|
experimental_content?: ({
|
|
1122
1255
|
type: "text";
|
|
1123
1256
|
text: string;
|
|
@@ -1126,7 +1259,6 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1126
1259
|
type: "image";
|
|
1127
1260
|
data: string;
|
|
1128
1261
|
})[] | undefined;
|
|
1129
|
-
isError?: boolean | undefined;
|
|
1130
1262
|
type: "tool-result";
|
|
1131
1263
|
toolCallId: string;
|
|
1132
1264
|
toolName: string;
|
|
@@ -1250,6 +1382,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1250
1382
|
} | {
|
|
1251
1383
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1252
1384
|
signature?: string | undefined;
|
|
1385
|
+
state?: "streaming" | "done" | undefined;
|
|
1253
1386
|
type: "reasoning";
|
|
1254
1387
|
text: string;
|
|
1255
1388
|
} | {
|
|
@@ -1258,6 +1391,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1258
1391
|
data: string;
|
|
1259
1392
|
} | {
|
|
1260
1393
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1394
|
+
providerExecuted?: boolean | undefined;
|
|
1261
1395
|
type: "tool-call";
|
|
1262
1396
|
toolCallId: string;
|
|
1263
1397
|
toolName: string;
|
|
@@ -1278,6 +1412,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1278
1412
|
} | {
|
|
1279
1413
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1280
1414
|
signature?: string | undefined;
|
|
1415
|
+
state?: "streaming" | "done" | undefined;
|
|
1281
1416
|
type: "reasoning";
|
|
1282
1417
|
text: string;
|
|
1283
1418
|
} | {
|
|
@@ -1286,6 +1421,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1286
1421
|
data: string;
|
|
1287
1422
|
} | {
|
|
1288
1423
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1424
|
+
providerExecuted?: boolean | undefined;
|
|
1289
1425
|
type: "tool-call";
|
|
1290
1426
|
toolCallId: string;
|
|
1291
1427
|
toolName: string;
|
|
@@ -1303,6 +1439,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1303
1439
|
} | {
|
|
1304
1440
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1305
1441
|
signature?: string | undefined;
|
|
1442
|
+
state?: "streaming" | "done" | undefined;
|
|
1306
1443
|
type: "reasoning";
|
|
1307
1444
|
text: string;
|
|
1308
1445
|
} | {
|
|
@@ -1311,6 +1448,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1311
1448
|
data: string;
|
|
1312
1449
|
} | {
|
|
1313
1450
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1451
|
+
providerExecuted?: boolean | undefined;
|
|
1314
1452
|
type: "tool-call";
|
|
1315
1453
|
toolCallId: string;
|
|
1316
1454
|
toolName: string;
|
|
@@ -1328,6 +1466,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1328
1466
|
} | {
|
|
1329
1467
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1330
1468
|
signature?: string | undefined;
|
|
1469
|
+
state?: "streaming" | "done" | undefined;
|
|
1331
1470
|
type: "reasoning";
|
|
1332
1471
|
text: string;
|
|
1333
1472
|
} | {
|
|
@@ -1336,6 +1475,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1336
1475
|
data: string;
|
|
1337
1476
|
} | {
|
|
1338
1477
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1478
|
+
providerExecuted?: boolean | undefined;
|
|
1339
1479
|
type: "tool-call";
|
|
1340
1480
|
toolCallId: string;
|
|
1341
1481
|
toolName: string;
|
|
@@ -1363,6 +1503,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1363
1503
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
1364
1504
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1365
1505
|
signature?: string | undefined;
|
|
1506
|
+
state?: "streaming" | "done" | undefined;
|
|
1366
1507
|
type: "reasoning";
|
|
1367
1508
|
text: string;
|
|
1368
1509
|
}, {
|
|
@@ -1370,7 +1511,8 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1370
1511
|
text: import("convex/values").VString<string, "required">;
|
|
1371
1512
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1372
1513
|
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>;
|
|
1373
|
-
|
|
1514
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
1515
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
1374
1516
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1375
1517
|
type: "redacted-reasoning";
|
|
1376
1518
|
data: string;
|
|
@@ -1380,6 +1522,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1380
1522
|
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>;
|
|
1381
1523
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
1382
1524
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1525
|
+
providerExecuted?: boolean | undefined;
|
|
1383
1526
|
type: "tool-call";
|
|
1384
1527
|
toolCallId: string;
|
|
1385
1528
|
toolName: string;
|
|
@@ -1390,7 +1533,8 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1390
1533
|
toolName: import("convex/values").VString<string, "required">;
|
|
1391
1534
|
args: import("convex/values").VAny<any, "required", string>;
|
|
1392
1535
|
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>;
|
|
1393
|
-
|
|
1536
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1537
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
1394
1538
|
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>;
|
|
1395
1539
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1396
1540
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1398,6 +1542,8 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1398
1542
|
content: {
|
|
1399
1543
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1400
1544
|
args?: any;
|
|
1545
|
+
providerExecuted?: boolean | undefined;
|
|
1546
|
+
isError?: boolean | undefined;
|
|
1401
1547
|
experimental_content?: ({
|
|
1402
1548
|
type: "text";
|
|
1403
1549
|
text: string;
|
|
@@ -1406,7 +1552,6 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1406
1552
|
type: "image";
|
|
1407
1553
|
data: string;
|
|
1408
1554
|
})[] | undefined;
|
|
1409
|
-
isError?: boolean | undefined;
|
|
1410
1555
|
type: "tool-result";
|
|
1411
1556
|
toolCallId: string;
|
|
1412
1557
|
toolName: string;
|
|
@@ -1417,6 +1562,8 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1417
1562
|
content: import("convex/values").VArray<{
|
|
1418
1563
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1419
1564
|
args?: any;
|
|
1565
|
+
providerExecuted?: boolean | undefined;
|
|
1566
|
+
isError?: boolean | undefined;
|
|
1420
1567
|
experimental_content?: ({
|
|
1421
1568
|
type: "text";
|
|
1422
1569
|
text: string;
|
|
@@ -1425,7 +1572,6 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1425
1572
|
type: "image";
|
|
1426
1573
|
data: string;
|
|
1427
1574
|
})[] | undefined;
|
|
1428
|
-
isError?: boolean | undefined;
|
|
1429
1575
|
type: "tool-result";
|
|
1430
1576
|
toolCallId: string;
|
|
1431
1577
|
toolName: string;
|
|
@@ -1433,6 +1579,8 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1433
1579
|
}[], import("convex/values").VObject<{
|
|
1434
1580
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1435
1581
|
args?: any;
|
|
1582
|
+
providerExecuted?: boolean | undefined;
|
|
1583
|
+
isError?: boolean | undefined;
|
|
1436
1584
|
experimental_content?: ({
|
|
1437
1585
|
type: "text";
|
|
1438
1586
|
text: string;
|
|
@@ -1441,7 +1589,6 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1441
1589
|
type: "image";
|
|
1442
1590
|
data: string;
|
|
1443
1591
|
})[] | undefined;
|
|
1444
|
-
isError?: boolean | undefined;
|
|
1445
1592
|
type: "tool-result";
|
|
1446
1593
|
toolCallId: string;
|
|
1447
1594
|
toolName: string;
|
|
@@ -1451,6 +1598,9 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1451
1598
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
1452
1599
|
toolName: import("convex/values").VString<string, "required">;
|
|
1453
1600
|
result: import("convex/values").VAny<any, "required", string>;
|
|
1601
|
+
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>;
|
|
1602
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1603
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1454
1604
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
1455
1605
|
experimental_content: import("convex/values").VArray<({
|
|
1456
1606
|
type: "text";
|
|
@@ -1481,9 +1631,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1481
1631
|
data: import("convex/values").VString<string, "required">;
|
|
1482
1632
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1483
1633
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1484
|
-
|
|
1485
|
-
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>;
|
|
1486
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
1634
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
1487
1635
|
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>;
|
|
1488
1636
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1489
1637
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1495,19 +1643,52 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1495
1643
|
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>;
|
|
1496
1644
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
|
|
1497
1645
|
export type Message = Infer<typeof vMessage>;
|
|
1498
|
-
export declare const vSource: import("convex/values").
|
|
1646
|
+
export declare const vSource: import("convex/values").VUnion<{
|
|
1647
|
+
title?: string | undefined;
|
|
1648
|
+
type?: "source" | undefined;
|
|
1649
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1650
|
+
id: string;
|
|
1651
|
+
sourceType: "url";
|
|
1652
|
+
url: string;
|
|
1653
|
+
} | {
|
|
1654
|
+
filename?: string | undefined;
|
|
1655
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1656
|
+
id: string;
|
|
1657
|
+
title: string;
|
|
1658
|
+
type: "source";
|
|
1659
|
+
sourceType: "document";
|
|
1660
|
+
mediaType: string;
|
|
1661
|
+
}, [import("convex/values").VObject<{
|
|
1499
1662
|
title?: string | undefined;
|
|
1663
|
+
type?: "source" | undefined;
|
|
1500
1664
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1501
1665
|
id: string;
|
|
1502
1666
|
sourceType: "url";
|
|
1503
1667
|
url: string;
|
|
1504
1668
|
}, {
|
|
1669
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
1505
1670
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
1506
1671
|
id: import("convex/values").VString<string, "required">;
|
|
1507
1672
|
url: import("convex/values").VString<string, "required">;
|
|
1508
1673
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1509
1674
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1510
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url"
|
|
1675
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
1676
|
+
filename?: string | undefined;
|
|
1677
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1678
|
+
id: string;
|
|
1679
|
+
title: string;
|
|
1680
|
+
type: "source";
|
|
1681
|
+
sourceType: "document";
|
|
1682
|
+
mediaType: string;
|
|
1683
|
+
}, {
|
|
1684
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
1685
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
1686
|
+
id: import("convex/values").VString<string, "required">;
|
|
1687
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
1688
|
+
title: import("convex/values").VString<string, "required">;
|
|
1689
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1690
|
+
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>;
|
|
1691
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>;
|
|
1511
1692
|
export declare const vRequest: import("convex/values").VObject<{
|
|
1512
1693
|
url?: string | undefined;
|
|
1513
1694
|
body?: any;
|
|
@@ -1519,786 +1700,118 @@ export declare const vRequest: import("convex/values").VObject<{
|
|
|
1519
1700
|
method: import("convex/values").VString<string | undefined, "optional">;
|
|
1520
1701
|
url: import("convex/values").VString<string | undefined, "optional">;
|
|
1521
1702
|
}, "required", "url" | "body" | "headers" | "method" | `body.${string}` | `headers.${string}`>;
|
|
1522
|
-
export declare const
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
message: {
|
|
1530
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1531
|
-
role: "user";
|
|
1532
|
-
content: string | ({
|
|
1533
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1534
|
-
type: "text";
|
|
1535
|
-
text: string;
|
|
1536
|
-
} | {
|
|
1537
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1538
|
-
mimeType?: string | undefined;
|
|
1539
|
-
type: "image";
|
|
1540
|
-
image: string | ArrayBuffer;
|
|
1541
|
-
} | {
|
|
1542
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1543
|
-
filename?: string | undefined;
|
|
1544
|
-
type: "file";
|
|
1545
|
-
mimeType: string;
|
|
1546
|
-
data: string | ArrayBuffer;
|
|
1547
|
-
})[];
|
|
1548
|
-
} | {
|
|
1549
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1550
|
-
role: "assistant";
|
|
1551
|
-
content: string | ({
|
|
1552
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1553
|
-
type: "text";
|
|
1554
|
-
text: string;
|
|
1555
|
-
} | {
|
|
1556
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1557
|
-
filename?: string | undefined;
|
|
1558
|
-
type: "file";
|
|
1559
|
-
mimeType: string;
|
|
1560
|
-
data: string | ArrayBuffer;
|
|
1561
|
-
} | {
|
|
1562
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1563
|
-
signature?: string | undefined;
|
|
1564
|
-
type: "reasoning";
|
|
1565
|
-
text: string;
|
|
1566
|
-
} | {
|
|
1567
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1568
|
-
type: "redacted-reasoning";
|
|
1569
|
-
data: string;
|
|
1570
|
-
} | {
|
|
1571
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1572
|
-
type: "tool-call";
|
|
1573
|
-
toolCallId: string;
|
|
1574
|
-
toolName: string;
|
|
1575
|
-
args: any;
|
|
1576
|
-
})[];
|
|
1577
|
-
} | {
|
|
1578
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1579
|
-
role: "tool";
|
|
1580
|
-
content: {
|
|
1581
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1582
|
-
args?: any;
|
|
1583
|
-
experimental_content?: ({
|
|
1584
|
-
type: "text";
|
|
1585
|
-
text: string;
|
|
1586
|
-
} | {
|
|
1587
|
-
mimeType?: string | undefined;
|
|
1588
|
-
type: "image";
|
|
1589
|
-
data: string;
|
|
1590
|
-
})[] | undefined;
|
|
1591
|
-
isError?: boolean | undefined;
|
|
1592
|
-
type: "tool-result";
|
|
1593
|
-
toolCallId: string;
|
|
1594
|
-
toolName: string;
|
|
1595
|
-
result: any;
|
|
1596
|
-
}[];
|
|
1597
|
-
} | {
|
|
1598
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1599
|
-
role: "system";
|
|
1600
|
-
content: string;
|
|
1601
|
-
};
|
|
1602
|
-
}[];
|
|
1603
|
-
timestamp: number;
|
|
1604
|
-
modelId: string;
|
|
1703
|
+
export declare const vFinishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown", [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">], "required", never>;
|
|
1704
|
+
export declare const vUsage: import("convex/values").VObject<{
|
|
1705
|
+
reasoningTokens?: number | undefined;
|
|
1706
|
+
cachedInputTokens?: number | undefined;
|
|
1707
|
+
promptTokens: number;
|
|
1708
|
+
completionTokens: number;
|
|
1709
|
+
totalTokens: number;
|
|
1605
1710
|
}, {
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
message:
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
role: "assistant";
|
|
1711
|
-
content: string | ({
|
|
1712
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1713
|
-
type: "text";
|
|
1714
|
-
text: string;
|
|
1715
|
-
} | {
|
|
1716
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1717
|
-
filename?: string | undefined;
|
|
1718
|
-
type: "file";
|
|
1719
|
-
mimeType: string;
|
|
1720
|
-
data: string | ArrayBuffer;
|
|
1721
|
-
} | {
|
|
1722
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1723
|
-
signature?: string | undefined;
|
|
1724
|
-
type: "reasoning";
|
|
1725
|
-
text: string;
|
|
1726
|
-
} | {
|
|
1727
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1728
|
-
type: "redacted-reasoning";
|
|
1729
|
-
data: string;
|
|
1730
|
-
} | {
|
|
1731
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1732
|
-
type: "tool-call";
|
|
1733
|
-
toolCallId: string;
|
|
1734
|
-
toolName: string;
|
|
1735
|
-
args: any;
|
|
1736
|
-
})[];
|
|
1737
|
-
} | {
|
|
1738
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1739
|
-
role: "tool";
|
|
1740
|
-
content: {
|
|
1741
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1742
|
-
args?: any;
|
|
1743
|
-
experimental_content?: ({
|
|
1744
|
-
type: "text";
|
|
1745
|
-
text: string;
|
|
1746
|
-
} | {
|
|
1747
|
-
mimeType?: string | undefined;
|
|
1748
|
-
type: "image";
|
|
1749
|
-
data: string;
|
|
1750
|
-
})[] | undefined;
|
|
1751
|
-
isError?: boolean | undefined;
|
|
1752
|
-
type: "tool-result";
|
|
1753
|
-
toolCallId: string;
|
|
1754
|
-
toolName: string;
|
|
1755
|
-
result: any;
|
|
1756
|
-
}[];
|
|
1757
|
-
} | {
|
|
1758
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1759
|
-
role: "system";
|
|
1760
|
-
content: string;
|
|
1761
|
-
};
|
|
1762
|
-
}, {
|
|
1763
|
-
id: import("convex/values").VString<string | undefined, "optional">;
|
|
1764
|
-
message: import("convex/values").VUnion<{
|
|
1765
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1766
|
-
role: "user";
|
|
1767
|
-
content: string | ({
|
|
1768
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1769
|
-
type: "text";
|
|
1770
|
-
text: string;
|
|
1771
|
-
} | {
|
|
1772
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1773
|
-
mimeType?: string | undefined;
|
|
1774
|
-
type: "image";
|
|
1775
|
-
image: string | ArrayBuffer;
|
|
1776
|
-
} | {
|
|
1777
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1778
|
-
filename?: string | undefined;
|
|
1779
|
-
type: "file";
|
|
1780
|
-
mimeType: string;
|
|
1781
|
-
data: string | ArrayBuffer;
|
|
1782
|
-
})[];
|
|
1783
|
-
} | {
|
|
1784
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1785
|
-
role: "assistant";
|
|
1786
|
-
content: string | ({
|
|
1787
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1788
|
-
type: "text";
|
|
1789
|
-
text: string;
|
|
1790
|
-
} | {
|
|
1791
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1792
|
-
filename?: string | undefined;
|
|
1793
|
-
type: "file";
|
|
1794
|
-
mimeType: string;
|
|
1795
|
-
data: string | ArrayBuffer;
|
|
1796
|
-
} | {
|
|
1797
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1798
|
-
signature?: string | undefined;
|
|
1799
|
-
type: "reasoning";
|
|
1800
|
-
text: string;
|
|
1801
|
-
} | {
|
|
1802
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1803
|
-
type: "redacted-reasoning";
|
|
1804
|
-
data: string;
|
|
1805
|
-
} | {
|
|
1806
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1807
|
-
type: "tool-call";
|
|
1808
|
-
toolCallId: string;
|
|
1809
|
-
toolName: string;
|
|
1810
|
-
args: any;
|
|
1811
|
-
})[];
|
|
1812
|
-
} | {
|
|
1813
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1814
|
-
role: "tool";
|
|
1815
|
-
content: {
|
|
1816
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1817
|
-
args?: any;
|
|
1818
|
-
experimental_content?: ({
|
|
1819
|
-
type: "text";
|
|
1820
|
-
text: string;
|
|
1821
|
-
} | {
|
|
1822
|
-
mimeType?: string | undefined;
|
|
1823
|
-
type: "image";
|
|
1824
|
-
data: string;
|
|
1825
|
-
})[] | undefined;
|
|
1826
|
-
isError?: boolean | undefined;
|
|
1827
|
-
type: "tool-result";
|
|
1828
|
-
toolCallId: string;
|
|
1829
|
-
toolName: string;
|
|
1830
|
-
result: any;
|
|
1831
|
-
}[];
|
|
1832
|
-
} | {
|
|
1833
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1834
|
-
role: "system";
|
|
1835
|
-
content: string;
|
|
1836
|
-
}, [import("convex/values").VObject<{
|
|
1837
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1838
|
-
role: "user";
|
|
1839
|
-
content: string | ({
|
|
1840
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1841
|
-
type: "text";
|
|
1842
|
-
text: string;
|
|
1843
|
-
} | {
|
|
1844
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1845
|
-
mimeType?: string | undefined;
|
|
1846
|
-
type: "image";
|
|
1847
|
-
image: string | ArrayBuffer;
|
|
1848
|
-
} | {
|
|
1849
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1850
|
-
filename?: string | undefined;
|
|
1851
|
-
type: "file";
|
|
1852
|
-
mimeType: string;
|
|
1853
|
-
data: string | ArrayBuffer;
|
|
1854
|
-
})[];
|
|
1855
|
-
}, {
|
|
1856
|
-
role: import("convex/values").VLiteral<"user", "required">;
|
|
1857
|
-
content: import("convex/values").VUnion<string | ({
|
|
1858
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1859
|
-
type: "text";
|
|
1860
|
-
text: string;
|
|
1861
|
-
} | {
|
|
1862
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1863
|
-
mimeType?: string | undefined;
|
|
1864
|
-
type: "image";
|
|
1865
|
-
image: string | ArrayBuffer;
|
|
1866
|
-
} | {
|
|
1867
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1868
|
-
filename?: string | undefined;
|
|
1869
|
-
type: "file";
|
|
1870
|
-
mimeType: string;
|
|
1871
|
-
data: string | ArrayBuffer;
|
|
1872
|
-
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
1873
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1874
|
-
type: "text";
|
|
1875
|
-
text: string;
|
|
1876
|
-
} | {
|
|
1877
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1878
|
-
mimeType?: string | undefined;
|
|
1879
|
-
type: "image";
|
|
1880
|
-
image: string | ArrayBuffer;
|
|
1881
|
-
} | {
|
|
1882
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1883
|
-
filename?: string | undefined;
|
|
1884
|
-
type: "file";
|
|
1885
|
-
mimeType: string;
|
|
1886
|
-
data: string | ArrayBuffer;
|
|
1887
|
-
})[], import("convex/values").VUnion<{
|
|
1888
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1889
|
-
type: "text";
|
|
1890
|
-
text: string;
|
|
1891
|
-
} | {
|
|
1892
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1893
|
-
mimeType?: string | undefined;
|
|
1894
|
-
type: "image";
|
|
1895
|
-
image: string | ArrayBuffer;
|
|
1896
|
-
} | {
|
|
1897
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1898
|
-
filename?: string | undefined;
|
|
1899
|
-
type: "file";
|
|
1900
|
-
mimeType: string;
|
|
1901
|
-
data: string | ArrayBuffer;
|
|
1902
|
-
}, [import("convex/values").VObject<{
|
|
1903
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1904
|
-
type: "text";
|
|
1905
|
-
text: string;
|
|
1906
|
-
}, {
|
|
1907
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
1908
|
-
text: import("convex/values").VString<string, "required">;
|
|
1909
|
-
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>;
|
|
1910
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
|
|
1911
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1912
|
-
mimeType?: string | undefined;
|
|
1913
|
-
type: "image";
|
|
1914
|
-
image: string | ArrayBuffer;
|
|
1915
|
-
}, {
|
|
1916
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
1917
|
-
image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
1918
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1919
|
-
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>;
|
|
1920
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
|
|
1921
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1922
|
-
filename?: string | undefined;
|
|
1923
|
-
type: "file";
|
|
1924
|
-
mimeType: string;
|
|
1925
|
-
data: string | ArrayBuffer;
|
|
1926
|
-
}, {
|
|
1927
|
-
type: import("convex/values").VLiteral<"file", "required">;
|
|
1928
|
-
data: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
1929
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1930
|
-
mimeType: import("convex/values").VString<string, "required">;
|
|
1931
|
-
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>;
|
|
1932
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
1933
|
-
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>;
|
|
1934
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1935
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1936
|
-
role: "assistant";
|
|
1937
|
-
content: string | ({
|
|
1938
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1939
|
-
type: "text";
|
|
1940
|
-
text: string;
|
|
1941
|
-
} | {
|
|
1942
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1943
|
-
filename?: string | undefined;
|
|
1944
|
-
type: "file";
|
|
1945
|
-
mimeType: string;
|
|
1946
|
-
data: string | ArrayBuffer;
|
|
1947
|
-
} | {
|
|
1948
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1949
|
-
signature?: string | undefined;
|
|
1950
|
-
type: "reasoning";
|
|
1951
|
-
text: string;
|
|
1952
|
-
} | {
|
|
1953
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1954
|
-
type: "redacted-reasoning";
|
|
1955
|
-
data: string;
|
|
1956
|
-
} | {
|
|
1957
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1958
|
-
type: "tool-call";
|
|
1959
|
-
toolCallId: string;
|
|
1960
|
-
toolName: string;
|
|
1961
|
-
args: any;
|
|
1962
|
-
})[];
|
|
1963
|
-
}, {
|
|
1964
|
-
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
1965
|
-
content: import("convex/values").VUnion<string | ({
|
|
1966
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1967
|
-
type: "text";
|
|
1968
|
-
text: string;
|
|
1969
|
-
} | {
|
|
1970
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1971
|
-
filename?: string | undefined;
|
|
1972
|
-
type: "file";
|
|
1973
|
-
mimeType: string;
|
|
1974
|
-
data: string | ArrayBuffer;
|
|
1975
|
-
} | {
|
|
1976
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1977
|
-
signature?: string | undefined;
|
|
1978
|
-
type: "reasoning";
|
|
1979
|
-
text: string;
|
|
1980
|
-
} | {
|
|
1981
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1982
|
-
type: "redacted-reasoning";
|
|
1983
|
-
data: string;
|
|
1984
|
-
} | {
|
|
1985
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1986
|
-
type: "tool-call";
|
|
1987
|
-
toolCallId: string;
|
|
1988
|
-
toolName: string;
|
|
1989
|
-
args: any;
|
|
1990
|
-
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
1991
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1992
|
-
type: "text";
|
|
1993
|
-
text: string;
|
|
1994
|
-
} | {
|
|
1995
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1996
|
-
filename?: string | undefined;
|
|
1997
|
-
type: "file";
|
|
1998
|
-
mimeType: string;
|
|
1999
|
-
data: string | ArrayBuffer;
|
|
2000
|
-
} | {
|
|
2001
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2002
|
-
signature?: string | undefined;
|
|
2003
|
-
type: "reasoning";
|
|
2004
|
-
text: string;
|
|
2005
|
-
} | {
|
|
2006
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2007
|
-
type: "redacted-reasoning";
|
|
2008
|
-
data: string;
|
|
2009
|
-
} | {
|
|
2010
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2011
|
-
type: "tool-call";
|
|
2012
|
-
toolCallId: string;
|
|
2013
|
-
toolName: string;
|
|
2014
|
-
args: any;
|
|
2015
|
-
})[], import("convex/values").VUnion<{
|
|
2016
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2017
|
-
type: "text";
|
|
2018
|
-
text: string;
|
|
2019
|
-
} | {
|
|
2020
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2021
|
-
filename?: string | undefined;
|
|
2022
|
-
type: "file";
|
|
2023
|
-
mimeType: string;
|
|
2024
|
-
data: string | ArrayBuffer;
|
|
2025
|
-
} | {
|
|
2026
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2027
|
-
signature?: string | undefined;
|
|
2028
|
-
type: "reasoning";
|
|
2029
|
-
text: string;
|
|
2030
|
-
} | {
|
|
2031
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2032
|
-
type: "redacted-reasoning";
|
|
2033
|
-
data: string;
|
|
2034
|
-
} | {
|
|
2035
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2036
|
-
type: "tool-call";
|
|
2037
|
-
toolCallId: string;
|
|
2038
|
-
toolName: string;
|
|
2039
|
-
args: any;
|
|
2040
|
-
}, [import("convex/values").VObject<{
|
|
2041
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2042
|
-
type: "text";
|
|
2043
|
-
text: string;
|
|
2044
|
-
}, {
|
|
2045
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
2046
|
-
text: import("convex/values").VString<string, "required">;
|
|
2047
|
-
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>;
|
|
2048
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
|
|
2049
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2050
|
-
filename?: string | undefined;
|
|
2051
|
-
type: "file";
|
|
2052
|
-
mimeType: string;
|
|
2053
|
-
data: string | ArrayBuffer;
|
|
2054
|
-
}, {
|
|
2055
|
-
type: import("convex/values").VLiteral<"file", "required">;
|
|
2056
|
-
data: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
2057
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
2058
|
-
mimeType: import("convex/values").VString<string, "required">;
|
|
2059
|
-
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>;
|
|
2060
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
2061
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2062
|
-
signature?: string | undefined;
|
|
2063
|
-
type: "reasoning";
|
|
2064
|
-
text: string;
|
|
2065
|
-
}, {
|
|
2066
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
2067
|
-
text: import("convex/values").VString<string, "required">;
|
|
2068
|
-
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
2069
|
-
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>;
|
|
2070
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
2071
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2072
|
-
type: "redacted-reasoning";
|
|
2073
|
-
data: string;
|
|
2074
|
-
}, {
|
|
2075
|
-
type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
|
|
2076
|
-
data: import("convex/values").VString<string, "required">;
|
|
2077
|
-
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>;
|
|
2078
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
2079
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2080
|
-
type: "tool-call";
|
|
2081
|
-
toolCallId: string;
|
|
2082
|
-
toolName: string;
|
|
2083
|
-
args: any;
|
|
2084
|
-
}, {
|
|
2085
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
2086
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
2087
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
2088
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
2089
|
-
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>;
|
|
2090
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
2091
|
-
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>;
|
|
2092
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
2093
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2094
|
-
role: "tool";
|
|
2095
|
-
content: {
|
|
2096
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2097
|
-
args?: any;
|
|
2098
|
-
experimental_content?: ({
|
|
2099
|
-
type: "text";
|
|
2100
|
-
text: string;
|
|
2101
|
-
} | {
|
|
2102
|
-
mimeType?: string | undefined;
|
|
2103
|
-
type: "image";
|
|
2104
|
-
data: string;
|
|
2105
|
-
})[] | undefined;
|
|
2106
|
-
isError?: boolean | undefined;
|
|
2107
|
-
type: "tool-result";
|
|
2108
|
-
toolCallId: string;
|
|
2109
|
-
toolName: string;
|
|
2110
|
-
result: any;
|
|
2111
|
-
}[];
|
|
2112
|
-
}, {
|
|
2113
|
-
role: import("convex/values").VLiteral<"tool", "required">;
|
|
2114
|
-
content: import("convex/values").VArray<{
|
|
2115
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2116
|
-
args?: any;
|
|
2117
|
-
experimental_content?: ({
|
|
2118
|
-
type: "text";
|
|
2119
|
-
text: string;
|
|
2120
|
-
} | {
|
|
2121
|
-
mimeType?: string | undefined;
|
|
2122
|
-
type: "image";
|
|
2123
|
-
data: string;
|
|
2124
|
-
})[] | undefined;
|
|
2125
|
-
isError?: boolean | undefined;
|
|
2126
|
-
type: "tool-result";
|
|
2127
|
-
toolCallId: string;
|
|
2128
|
-
toolName: string;
|
|
2129
|
-
result: any;
|
|
2130
|
-
}[], import("convex/values").VObject<{
|
|
2131
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2132
|
-
args?: any;
|
|
2133
|
-
experimental_content?: ({
|
|
2134
|
-
type: "text";
|
|
2135
|
-
text: string;
|
|
2136
|
-
} | {
|
|
2137
|
-
mimeType?: string | undefined;
|
|
2138
|
-
type: "image";
|
|
2139
|
-
data: string;
|
|
2140
|
-
})[] | undefined;
|
|
2141
|
-
isError?: boolean | undefined;
|
|
2142
|
-
type: "tool-result";
|
|
2143
|
-
toolCallId: string;
|
|
2144
|
-
toolName: string;
|
|
2145
|
-
result: any;
|
|
2146
|
-
}, {
|
|
2147
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
2148
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
2149
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
2150
|
-
result: import("convex/values").VAny<any, "required", string>;
|
|
2151
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
2152
|
-
experimental_content: import("convex/values").VArray<({
|
|
2153
|
-
type: "text";
|
|
2154
|
-
text: string;
|
|
2155
|
-
} | {
|
|
2156
|
-
mimeType?: string | undefined;
|
|
2157
|
-
type: "image";
|
|
2158
|
-
data: string;
|
|
2159
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
2160
|
-
type: "text";
|
|
2161
|
-
text: string;
|
|
2162
|
-
} | {
|
|
2163
|
-
mimeType?: string | undefined;
|
|
2164
|
-
type: "image";
|
|
2165
|
-
data: string;
|
|
2166
|
-
}, [import("convex/values").VObject<{
|
|
2167
|
-
type: "text";
|
|
2168
|
-
text: string;
|
|
2169
|
-
}, {
|
|
2170
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
2171
|
-
text: import("convex/values").VString<string, "required">;
|
|
2172
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
2173
|
-
mimeType?: string | undefined;
|
|
2174
|
-
type: "image";
|
|
2175
|
-
data: string;
|
|
2176
|
-
}, {
|
|
2177
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
2178
|
-
data: import("convex/values").VString<string, "required">;
|
|
2179
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
2180
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
2181
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2182
|
-
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>;
|
|
2183
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
2184
|
-
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>;
|
|
2185
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
2186
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2187
|
-
role: "system";
|
|
2188
|
-
content: string;
|
|
2189
|
-
}, {
|
|
2190
|
-
role: import("convex/values").VLiteral<"system", "required">;
|
|
2191
|
-
content: import("convex/values").VString<string, "required">;
|
|
2192
|
-
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>;
|
|
2193
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
|
|
2194
|
-
fileId: import("convex/values").VId<import("convex/values").GenericId<"files"> | undefined, "optional">;
|
|
2195
|
-
}, "required", "id" | "message" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "fileId">, "required">;
|
|
2196
|
-
body: import("convex/values").VAny<any, "optional", string>;
|
|
2197
|
-
}, "required", "id" | "messages" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId">;
|
|
2198
|
-
export declare const vResponseWithoutMessages: import("convex/values").VObject<{
|
|
2199
|
-
body?: any;
|
|
2200
|
-
headers?: Record<string, string> | undefined;
|
|
2201
|
-
id: string;
|
|
2202
|
-
timestamp: number;
|
|
2203
|
-
modelId: string;
|
|
2204
|
-
}, {
|
|
2205
|
-
id: import("convex/values").VString<string, "required">;
|
|
2206
|
-
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
2207
|
-
modelId: import("convex/values").VString<string, "required">;
|
|
2208
|
-
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
2209
|
-
body: import("convex/values").VAny<any, "optional", string>;
|
|
2210
|
-
}, "required", "id" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId">;
|
|
2211
|
-
export declare const vFinishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown", [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">], "required", never>;
|
|
2212
|
-
export declare const vUsage: import("convex/values").VObject<{
|
|
2213
|
-
promptTokens: number;
|
|
2214
|
-
completionTokens: number;
|
|
2215
|
-
totalTokens: number;
|
|
2216
|
-
}, {
|
|
2217
|
-
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
2218
|
-
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
2219
|
-
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
2220
|
-
}, "required", "promptTokens" | "completionTokens" | "totalTokens">;
|
|
2221
|
-
export type Usage = Infer<typeof vUsage>;
|
|
2222
|
-
export declare const vLanguageModelV1CallWarning: import("convex/values").VUnion<{
|
|
2223
|
-
details?: string | undefined;
|
|
2224
|
-
type: "unsupported-setting";
|
|
2225
|
-
setting: string;
|
|
2226
|
-
} | {
|
|
2227
|
-
details?: string | undefined;
|
|
2228
|
-
type: "unsupported-tool";
|
|
2229
|
-
tool: any;
|
|
2230
|
-
} | {
|
|
2231
|
-
type: "other";
|
|
2232
|
-
message: string;
|
|
2233
|
-
}, [import("convex/values").VObject<{
|
|
2234
|
-
details?: string | undefined;
|
|
2235
|
-
type: "unsupported-setting";
|
|
2236
|
-
setting: string;
|
|
2237
|
-
}, {
|
|
2238
|
-
type: import("convex/values").VLiteral<"unsupported-setting", "required">;
|
|
2239
|
-
setting: import("convex/values").VString<string, "required">;
|
|
2240
|
-
details: import("convex/values").VString<string | undefined, "optional">;
|
|
2241
|
-
}, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
|
|
2242
|
-
details?: string | undefined;
|
|
2243
|
-
type: "unsupported-tool";
|
|
2244
|
-
tool: any;
|
|
2245
|
-
}, {
|
|
2246
|
-
type: import("convex/values").VLiteral<"unsupported-tool", "required">;
|
|
2247
|
-
tool: import("convex/values").VAny<any, "required", string>;
|
|
2248
|
-
details: import("convex/values").VString<string | undefined, "optional">;
|
|
2249
|
-
}, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
|
|
2250
|
-
type: "other";
|
|
2251
|
-
message: string;
|
|
2252
|
-
}, {
|
|
2253
|
-
type: import("convex/values").VLiteral<"other", "required">;
|
|
2254
|
-
message: import("convex/values").VString<string, "required">;
|
|
2255
|
-
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>;
|
|
2256
|
-
export declare const vMessageWithMetadataInternal: import("convex/values").VObject<{
|
|
2257
|
-
id?: string | undefined;
|
|
2258
|
-
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
2259
|
-
error?: string | undefined;
|
|
2260
|
-
model?: string | undefined;
|
|
2261
|
-
provider?: string | undefined;
|
|
2262
|
-
text?: string | undefined;
|
|
2263
|
-
reasoning?: string | undefined;
|
|
2264
|
-
usage?: {
|
|
2265
|
-
promptTokens: number;
|
|
2266
|
-
completionTokens: number;
|
|
2267
|
-
totalTokens: number;
|
|
2268
|
-
} | undefined;
|
|
2269
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2270
|
-
sources?: {
|
|
2271
|
-
title?: string | undefined;
|
|
2272
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2273
|
-
id: string;
|
|
2274
|
-
sourceType: "url";
|
|
2275
|
-
url: string;
|
|
2276
|
-
}[] | undefined;
|
|
2277
|
-
reasoningDetails?: ({
|
|
2278
|
-
signature?: string | undefined;
|
|
2279
|
-
type: "text";
|
|
2280
|
-
text: string;
|
|
2281
|
-
} | {
|
|
2282
|
-
type: "redacted";
|
|
2283
|
-
data: string;
|
|
2284
|
-
})[] | undefined;
|
|
2285
|
-
warnings?: ({
|
|
2286
|
-
details?: string | undefined;
|
|
2287
|
-
type: "unsupported-setting";
|
|
2288
|
-
setting: string;
|
|
2289
|
-
} | {
|
|
2290
|
-
details?: string | undefined;
|
|
2291
|
-
type: "unsupported-tool";
|
|
2292
|
-
tool: any;
|
|
2293
|
-
} | {
|
|
2294
|
-
type: "other";
|
|
2295
|
-
message: string;
|
|
2296
|
-
})[] | undefined;
|
|
2297
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2298
|
-
message: {
|
|
2299
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2300
|
-
role: "user";
|
|
2301
|
-
content: string | ({
|
|
1711
|
+
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
1712
|
+
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
1713
|
+
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
1714
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1715
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1716
|
+
}, "required", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
1717
|
+
export type Usage = Infer<typeof vUsage>;
|
|
1718
|
+
export declare const vLanguageModelCallWarning: import("convex/values").VUnion<{
|
|
1719
|
+
details?: string | undefined;
|
|
1720
|
+
type: "unsupported-setting";
|
|
1721
|
+
setting: string;
|
|
1722
|
+
} | {
|
|
1723
|
+
details?: string | undefined;
|
|
1724
|
+
type: "unsupported-tool";
|
|
1725
|
+
tool: any;
|
|
1726
|
+
} | {
|
|
1727
|
+
type: "other";
|
|
1728
|
+
message: string;
|
|
1729
|
+
}, [import("convex/values").VObject<{
|
|
1730
|
+
details?: string | undefined;
|
|
1731
|
+
type: "unsupported-setting";
|
|
1732
|
+
setting: string;
|
|
1733
|
+
}, {
|
|
1734
|
+
type: import("convex/values").VLiteral<"unsupported-setting", "required">;
|
|
1735
|
+
setting: import("convex/values").VString<string, "required">;
|
|
1736
|
+
details: import("convex/values").VString<string | undefined, "optional">;
|
|
1737
|
+
}, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
|
|
1738
|
+
details?: string | undefined;
|
|
1739
|
+
type: "unsupported-tool";
|
|
1740
|
+
tool: any;
|
|
1741
|
+
}, {
|
|
1742
|
+
type: import("convex/values").VLiteral<"unsupported-tool", "required">;
|
|
1743
|
+
tool: import("convex/values").VAny<any, "required", string>;
|
|
1744
|
+
details: import("convex/values").VString<string | undefined, "optional">;
|
|
1745
|
+
}, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
|
|
1746
|
+
type: "other";
|
|
1747
|
+
message: string;
|
|
1748
|
+
}, {
|
|
1749
|
+
type: import("convex/values").VLiteral<"other", "required">;
|
|
1750
|
+
message: import("convex/values").VString<string, "required">;
|
|
1751
|
+
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>;
|
|
1752
|
+
export declare const vMessageWithMetadataInternal: import("convex/values").VObject<{
|
|
1753
|
+
status?: "pending" | "success" | "failed" | undefined;
|
|
1754
|
+
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
1755
|
+
error?: string | undefined;
|
|
1756
|
+
model?: string | undefined;
|
|
1757
|
+
provider?: string | undefined;
|
|
1758
|
+
text?: string | undefined;
|
|
1759
|
+
reasoning?: string | undefined;
|
|
1760
|
+
usage?: {
|
|
1761
|
+
reasoningTokens?: number | undefined;
|
|
1762
|
+
cachedInputTokens?: number | undefined;
|
|
1763
|
+
promptTokens: number;
|
|
1764
|
+
completionTokens: number;
|
|
1765
|
+
totalTokens: number;
|
|
1766
|
+
} | undefined;
|
|
1767
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1768
|
+
sources?: ({
|
|
1769
|
+
title?: string | undefined;
|
|
1770
|
+
type?: "source" | undefined;
|
|
1771
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1772
|
+
id: string;
|
|
1773
|
+
sourceType: "url";
|
|
1774
|
+
url: string;
|
|
1775
|
+
} | {
|
|
1776
|
+
filename?: string | undefined;
|
|
1777
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1778
|
+
id: string;
|
|
1779
|
+
title: string;
|
|
1780
|
+
type: "source";
|
|
1781
|
+
sourceType: "document";
|
|
1782
|
+
mediaType: string;
|
|
1783
|
+
})[] | undefined;
|
|
1784
|
+
warnings?: ({
|
|
1785
|
+
details?: string | undefined;
|
|
1786
|
+
type: "unsupported-setting";
|
|
1787
|
+
setting: string;
|
|
1788
|
+
} | {
|
|
1789
|
+
details?: string | undefined;
|
|
1790
|
+
type: "unsupported-tool";
|
|
1791
|
+
tool: any;
|
|
1792
|
+
} | {
|
|
1793
|
+
type: "other";
|
|
1794
|
+
message: string;
|
|
1795
|
+
})[] | undefined;
|
|
1796
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1797
|
+
reasoningDetails?: ({
|
|
1798
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1799
|
+
signature?: string | undefined;
|
|
1800
|
+
state?: "streaming" | "done" | undefined;
|
|
1801
|
+
type: "reasoning";
|
|
1802
|
+
text: string;
|
|
1803
|
+
} | {
|
|
1804
|
+
signature?: string | undefined;
|
|
1805
|
+
type: "text";
|
|
1806
|
+
text: string;
|
|
1807
|
+
} | {
|
|
1808
|
+
type: "redacted";
|
|
1809
|
+
data: string;
|
|
1810
|
+
})[] | undefined;
|
|
1811
|
+
message: {
|
|
1812
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1813
|
+
role: "user";
|
|
1814
|
+
content: string | ({
|
|
2302
1815
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2303
1816
|
type: "text";
|
|
2304
1817
|
text: string;
|
|
@@ -2330,6 +1843,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2330
1843
|
} | {
|
|
2331
1844
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2332
1845
|
signature?: string | undefined;
|
|
1846
|
+
state?: "streaming" | "done" | undefined;
|
|
2333
1847
|
type: "reasoning";
|
|
2334
1848
|
text: string;
|
|
2335
1849
|
} | {
|
|
@@ -2338,6 +1852,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2338
1852
|
data: string;
|
|
2339
1853
|
} | {
|
|
2340
1854
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1855
|
+
providerExecuted?: boolean | undefined;
|
|
2341
1856
|
type: "tool-call";
|
|
2342
1857
|
toolCallId: string;
|
|
2343
1858
|
toolName: string;
|
|
@@ -2349,6 +1864,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2349
1864
|
content: {
|
|
2350
1865
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2351
1866
|
args?: any;
|
|
1867
|
+
providerExecuted?: boolean | undefined;
|
|
1868
|
+
isError?: boolean | undefined;
|
|
2352
1869
|
experimental_content?: ({
|
|
2353
1870
|
type: "text";
|
|
2354
1871
|
text: string;
|
|
@@ -2357,7 +1874,6 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2357
1874
|
type: "image";
|
|
2358
1875
|
data: string;
|
|
2359
1876
|
})[] | undefined;
|
|
2360
|
-
isError?: boolean | undefined;
|
|
2361
1877
|
type: "tool-result";
|
|
2362
1878
|
toolCallId: string;
|
|
2363
1879
|
toolName: string;
|
|
@@ -2369,7 +1885,6 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2369
1885
|
content: string;
|
|
2370
1886
|
};
|
|
2371
1887
|
}, {
|
|
2372
|
-
id: import("convex/values").VString<string | undefined, "optional">;
|
|
2373
1888
|
message: import("convex/values").VUnion<{
|
|
2374
1889
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2375
1890
|
role: "user";
|
|
@@ -2405,6 +1920,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2405
1920
|
} | {
|
|
2406
1921
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2407
1922
|
signature?: string | undefined;
|
|
1923
|
+
state?: "streaming" | "done" | undefined;
|
|
2408
1924
|
type: "reasoning";
|
|
2409
1925
|
text: string;
|
|
2410
1926
|
} | {
|
|
@@ -2413,6 +1929,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2413
1929
|
data: string;
|
|
2414
1930
|
} | {
|
|
2415
1931
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1932
|
+
providerExecuted?: boolean | undefined;
|
|
2416
1933
|
type: "tool-call";
|
|
2417
1934
|
toolCallId: string;
|
|
2418
1935
|
toolName: string;
|
|
@@ -2424,6 +1941,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2424
1941
|
content: {
|
|
2425
1942
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2426
1943
|
args?: any;
|
|
1944
|
+
providerExecuted?: boolean | undefined;
|
|
1945
|
+
isError?: boolean | undefined;
|
|
2427
1946
|
experimental_content?: ({
|
|
2428
1947
|
type: "text";
|
|
2429
1948
|
text: string;
|
|
@@ -2432,7 +1951,6 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2432
1951
|
type: "image";
|
|
2433
1952
|
data: string;
|
|
2434
1953
|
})[] | undefined;
|
|
2435
|
-
isError?: boolean | undefined;
|
|
2436
1954
|
type: "tool-result";
|
|
2437
1955
|
toolCallId: string;
|
|
2438
1956
|
toolName: string;
|
|
@@ -2556,6 +2074,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2556
2074
|
} | {
|
|
2557
2075
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2558
2076
|
signature?: string | undefined;
|
|
2077
|
+
state?: "streaming" | "done" | undefined;
|
|
2559
2078
|
type: "reasoning";
|
|
2560
2079
|
text: string;
|
|
2561
2080
|
} | {
|
|
@@ -2564,6 +2083,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2564
2083
|
data: string;
|
|
2565
2084
|
} | {
|
|
2566
2085
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2086
|
+
providerExecuted?: boolean | undefined;
|
|
2567
2087
|
type: "tool-call";
|
|
2568
2088
|
toolCallId: string;
|
|
2569
2089
|
toolName: string;
|
|
@@ -2584,6 +2104,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2584
2104
|
} | {
|
|
2585
2105
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2586
2106
|
signature?: string | undefined;
|
|
2107
|
+
state?: "streaming" | "done" | undefined;
|
|
2587
2108
|
type: "reasoning";
|
|
2588
2109
|
text: string;
|
|
2589
2110
|
} | {
|
|
@@ -2592,6 +2113,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2592
2113
|
data: string;
|
|
2593
2114
|
} | {
|
|
2594
2115
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2116
|
+
providerExecuted?: boolean | undefined;
|
|
2595
2117
|
type: "tool-call";
|
|
2596
2118
|
toolCallId: string;
|
|
2597
2119
|
toolName: string;
|
|
@@ -2609,6 +2131,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2609
2131
|
} | {
|
|
2610
2132
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2611
2133
|
signature?: string | undefined;
|
|
2134
|
+
state?: "streaming" | "done" | undefined;
|
|
2612
2135
|
type: "reasoning";
|
|
2613
2136
|
text: string;
|
|
2614
2137
|
} | {
|
|
@@ -2617,6 +2140,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2617
2140
|
data: string;
|
|
2618
2141
|
} | {
|
|
2619
2142
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2143
|
+
providerExecuted?: boolean | undefined;
|
|
2620
2144
|
type: "tool-call";
|
|
2621
2145
|
toolCallId: string;
|
|
2622
2146
|
toolName: string;
|
|
@@ -2634,6 +2158,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2634
2158
|
} | {
|
|
2635
2159
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2636
2160
|
signature?: string | undefined;
|
|
2161
|
+
state?: "streaming" | "done" | undefined;
|
|
2637
2162
|
type: "reasoning";
|
|
2638
2163
|
text: string;
|
|
2639
2164
|
} | {
|
|
@@ -2642,6 +2167,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2642
2167
|
data: string;
|
|
2643
2168
|
} | {
|
|
2644
2169
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2170
|
+
providerExecuted?: boolean | undefined;
|
|
2645
2171
|
type: "tool-call";
|
|
2646
2172
|
toolCallId: string;
|
|
2647
2173
|
toolName: string;
|
|
@@ -2669,6 +2195,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2669
2195
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
2670
2196
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2671
2197
|
signature?: string | undefined;
|
|
2198
|
+
state?: "streaming" | "done" | undefined;
|
|
2672
2199
|
type: "reasoning";
|
|
2673
2200
|
text: string;
|
|
2674
2201
|
}, {
|
|
@@ -2676,7 +2203,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2676
2203
|
text: import("convex/values").VString<string, "required">;
|
|
2677
2204
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
2678
2205
|
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>;
|
|
2679
|
-
|
|
2206
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
2207
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
2680
2208
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2681
2209
|
type: "redacted-reasoning";
|
|
2682
2210
|
data: string;
|
|
@@ -2686,6 +2214,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2686
2214
|
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>;
|
|
2687
2215
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
2688
2216
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2217
|
+
providerExecuted?: boolean | undefined;
|
|
2689
2218
|
type: "tool-call";
|
|
2690
2219
|
toolCallId: string;
|
|
2691
2220
|
toolName: string;
|
|
@@ -2696,7 +2225,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2696
2225
|
toolName: import("convex/values").VString<string, "required">;
|
|
2697
2226
|
args: import("convex/values").VAny<any, "required", string>;
|
|
2698
2227
|
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>;
|
|
2699
|
-
|
|
2228
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2229
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
2700
2230
|
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>;
|
|
2701
2231
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
2702
2232
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2704,6 +2234,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2704
2234
|
content: {
|
|
2705
2235
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2706
2236
|
args?: any;
|
|
2237
|
+
providerExecuted?: boolean | undefined;
|
|
2238
|
+
isError?: boolean | undefined;
|
|
2707
2239
|
experimental_content?: ({
|
|
2708
2240
|
type: "text";
|
|
2709
2241
|
text: string;
|
|
@@ -2712,7 +2244,6 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2712
2244
|
type: "image";
|
|
2713
2245
|
data: string;
|
|
2714
2246
|
})[] | undefined;
|
|
2715
|
-
isError?: boolean | undefined;
|
|
2716
2247
|
type: "tool-result";
|
|
2717
2248
|
toolCallId: string;
|
|
2718
2249
|
toolName: string;
|
|
@@ -2723,6 +2254,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2723
2254
|
content: import("convex/values").VArray<{
|
|
2724
2255
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2725
2256
|
args?: any;
|
|
2257
|
+
providerExecuted?: boolean | undefined;
|
|
2258
|
+
isError?: boolean | undefined;
|
|
2726
2259
|
experimental_content?: ({
|
|
2727
2260
|
type: "text";
|
|
2728
2261
|
text: string;
|
|
@@ -2731,7 +2264,6 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2731
2264
|
type: "image";
|
|
2732
2265
|
data: string;
|
|
2733
2266
|
})[] | undefined;
|
|
2734
|
-
isError?: boolean | undefined;
|
|
2735
2267
|
type: "tool-result";
|
|
2736
2268
|
toolCallId: string;
|
|
2737
2269
|
toolName: string;
|
|
@@ -2739,6 +2271,8 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2739
2271
|
}[], import("convex/values").VObject<{
|
|
2740
2272
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2741
2273
|
args?: any;
|
|
2274
|
+
providerExecuted?: boolean | undefined;
|
|
2275
|
+
isError?: boolean | undefined;
|
|
2742
2276
|
experimental_content?: ({
|
|
2743
2277
|
type: "text";
|
|
2744
2278
|
text: string;
|
|
@@ -2747,7 +2281,6 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2747
2281
|
type: "image";
|
|
2748
2282
|
data: string;
|
|
2749
2283
|
})[] | undefined;
|
|
2750
|
-
isError?: boolean | undefined;
|
|
2751
2284
|
type: "tool-result";
|
|
2752
2285
|
toolCallId: string;
|
|
2753
2286
|
toolName: string;
|
|
@@ -2757,6 +2290,9 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2757
2290
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
2758
2291
|
toolName: import("convex/values").VString<string, "required">;
|
|
2759
2292
|
result: import("convex/values").VAny<any, "required", string>;
|
|
2293
|
+
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>;
|
|
2294
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2295
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2760
2296
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
2761
2297
|
experimental_content: import("convex/values").VArray<({
|
|
2762
2298
|
type: "text";
|
|
@@ -2787,9 +2323,7 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2787
2323
|
data: import("convex/values").VString<string, "required">;
|
|
2788
2324
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
2789
2325
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
2790
|
-
|
|
2791
|
-
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>;
|
|
2792
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
2326
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
2793
2327
|
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>;
|
|
2794
2328
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
2795
2329
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2802,31 +2336,80 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2802
2336
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
|
|
2803
2337
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
2804
2338
|
fileIds: import("convex/values").VArray<import("convex/values").GenericId<"files">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"files">, "required">, "optional">;
|
|
2339
|
+
status: import("convex/values").VUnion<"pending" | "success" | "failed" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "optional", never>;
|
|
2805
2340
|
finishReason: import("convex/values").VUnion<"length" | "error" | "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>;
|
|
2806
2341
|
model: import("convex/values").VString<string | undefined, "optional">;
|
|
2807
2342
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
2808
2343
|
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>;
|
|
2809
|
-
sources: import("convex/values").VArray<{
|
|
2344
|
+
sources: import("convex/values").VArray<({
|
|
2810
2345
|
title?: string | undefined;
|
|
2346
|
+
type?: "source" | undefined;
|
|
2811
2347
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2812
2348
|
id: string;
|
|
2813
2349
|
sourceType: "url";
|
|
2814
2350
|
url: string;
|
|
2815
|
-
}
|
|
2351
|
+
} | {
|
|
2352
|
+
filename?: string | undefined;
|
|
2353
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2354
|
+
id: string;
|
|
2355
|
+
title: string;
|
|
2356
|
+
type: "source";
|
|
2357
|
+
sourceType: "document";
|
|
2358
|
+
mediaType: string;
|
|
2359
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
2816
2360
|
title?: string | undefined;
|
|
2361
|
+
type?: "source" | undefined;
|
|
2817
2362
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2818
2363
|
id: string;
|
|
2819
2364
|
sourceType: "url";
|
|
2820
2365
|
url: string;
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2366
|
+
} | {
|
|
2367
|
+
filename?: string | undefined;
|
|
2368
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2369
|
+
id: string;
|
|
2370
|
+
title: string;
|
|
2371
|
+
type: "source";
|
|
2372
|
+
sourceType: "document";
|
|
2373
|
+
mediaType: string;
|
|
2374
|
+
}, [import("convex/values").VObject<{
|
|
2375
|
+
title?: string | undefined;
|
|
2376
|
+
type?: "source" | undefined;
|
|
2377
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2378
|
+
id: string;
|
|
2379
|
+
sourceType: "url";
|
|
2380
|
+
url: string;
|
|
2381
|
+
}, {
|
|
2382
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
2383
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
2384
|
+
id: import("convex/values").VString<string, "required">;
|
|
2385
|
+
url: import("convex/values").VString<string, "required">;
|
|
2825
2386
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2826
2387
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2827
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
2388
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
2389
|
+
filename?: string | undefined;
|
|
2390
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2391
|
+
id: string;
|
|
2392
|
+
title: string;
|
|
2393
|
+
type: "source";
|
|
2394
|
+
sourceType: "document";
|
|
2395
|
+
mediaType: string;
|
|
2396
|
+
}, {
|
|
2397
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
2398
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
2399
|
+
id: import("convex/values").VString<string, "required">;
|
|
2400
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
2401
|
+
title: import("convex/values").VString<string, "required">;
|
|
2402
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
2403
|
+
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>;
|
|
2404
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
2828
2405
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
2829
2406
|
reasoningDetails: import("convex/values").VArray<({
|
|
2407
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2408
|
+
signature?: string | undefined;
|
|
2409
|
+
state?: "streaming" | "done" | undefined;
|
|
2410
|
+
type: "reasoning";
|
|
2411
|
+
text: string;
|
|
2412
|
+
} | {
|
|
2830
2413
|
signature?: string | undefined;
|
|
2831
2414
|
type: "text";
|
|
2832
2415
|
text: string;
|
|
@@ -2834,6 +2417,12 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2834
2417
|
type: "redacted";
|
|
2835
2418
|
data: string;
|
|
2836
2419
|
})[] | undefined, import("convex/values").VUnion<{
|
|
2420
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2421
|
+
signature?: string | undefined;
|
|
2422
|
+
state?: "streaming" | "done" | undefined;
|
|
2423
|
+
type: "reasoning";
|
|
2424
|
+
text: string;
|
|
2425
|
+
} | {
|
|
2837
2426
|
signature?: string | undefined;
|
|
2838
2427
|
type: "text";
|
|
2839
2428
|
text: string;
|
|
@@ -2841,6 +2430,18 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2841
2430
|
type: "redacted";
|
|
2842
2431
|
data: string;
|
|
2843
2432
|
}, [import("convex/values").VObject<{
|
|
2433
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2434
|
+
signature?: string | undefined;
|
|
2435
|
+
state?: "streaming" | "done" | undefined;
|
|
2436
|
+
type: "reasoning";
|
|
2437
|
+
text: string;
|
|
2438
|
+
}, {
|
|
2439
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
2440
|
+
text: import("convex/values").VString<string, "required">;
|
|
2441
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
2442
|
+
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>;
|
|
2443
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
2444
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
2844
2445
|
signature?: string | undefined;
|
|
2845
2446
|
type: "text";
|
|
2846
2447
|
text: string;
|
|
@@ -2854,8 +2455,10 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2854
2455
|
}, {
|
|
2855
2456
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
2856
2457
|
data: import("convex/values").VString<string, "required">;
|
|
2857
|
-
}, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "optional">;
|
|
2458
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
2858
2459
|
usage: import("convex/values").VObject<{
|
|
2460
|
+
reasoningTokens?: number | undefined;
|
|
2461
|
+
cachedInputTokens?: number | undefined;
|
|
2859
2462
|
promptTokens: number;
|
|
2860
2463
|
completionTokens: number;
|
|
2861
2464
|
totalTokens: number;
|
|
@@ -2863,7 +2466,9 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2863
2466
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
2864
2467
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
2865
2468
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
2866
|
-
|
|
2469
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2470
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
2471
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
2867
2472
|
warnings: import("convex/values").VArray<({
|
|
2868
2473
|
details?: string | undefined;
|
|
2869
2474
|
type: "unsupported-setting";
|
|
@@ -2910,9 +2515,10 @@ export declare const vMessageWithMetadataInternal: import("convex/values").VObje
|
|
|
2910
2515
|
message: import("convex/values").VString<string, "required">;
|
|
2911
2516
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
2912
2517
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
2913
|
-
}, "required", "
|
|
2518
|
+
}, "required", "status" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
|
|
2519
|
+
export type MessageWithMetadataInternal = Infer<typeof vMessageWithMetadataInternal>;
|
|
2914
2520
|
export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
2915
|
-
|
|
2521
|
+
status?: "pending" | "success" | "failed" | undefined;
|
|
2916
2522
|
fileIds?: string[] | undefined;
|
|
2917
2523
|
error?: string | undefined;
|
|
2918
2524
|
model?: string | undefined;
|
|
@@ -2920,25 +2526,28 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2920
2526
|
text?: string | undefined;
|
|
2921
2527
|
reasoning?: string | undefined;
|
|
2922
2528
|
usage?: {
|
|
2529
|
+
reasoningTokens?: number | undefined;
|
|
2530
|
+
cachedInputTokens?: number | undefined;
|
|
2923
2531
|
promptTokens: number;
|
|
2924
2532
|
completionTokens: number;
|
|
2925
2533
|
totalTokens: number;
|
|
2926
2534
|
} | undefined;
|
|
2927
2535
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2928
|
-
sources?: {
|
|
2536
|
+
sources?: ({
|
|
2929
2537
|
title?: string | undefined;
|
|
2538
|
+
type?: "source" | undefined;
|
|
2930
2539
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2931
2540
|
id: string;
|
|
2932
2541
|
sourceType: "url";
|
|
2933
2542
|
url: string;
|
|
2934
|
-
}[] | undefined;
|
|
2935
|
-
reasoningDetails?: ({
|
|
2936
|
-
signature?: string | undefined;
|
|
2937
|
-
type: "text";
|
|
2938
|
-
text: string;
|
|
2939
2543
|
} | {
|
|
2940
|
-
|
|
2941
|
-
|
|
2544
|
+
filename?: string | undefined;
|
|
2545
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2546
|
+
id: string;
|
|
2547
|
+
title: string;
|
|
2548
|
+
type: "source";
|
|
2549
|
+
sourceType: "document";
|
|
2550
|
+
mediaType: string;
|
|
2942
2551
|
})[] | undefined;
|
|
2943
2552
|
warnings?: ({
|
|
2944
2553
|
details?: string | undefined;
|
|
@@ -2953,6 +2562,20 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2953
2562
|
message: string;
|
|
2954
2563
|
})[] | undefined;
|
|
2955
2564
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2565
|
+
reasoningDetails?: ({
|
|
2566
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2567
|
+
signature?: string | undefined;
|
|
2568
|
+
state?: "streaming" | "done" | undefined;
|
|
2569
|
+
type: "reasoning";
|
|
2570
|
+
text: string;
|
|
2571
|
+
} | {
|
|
2572
|
+
signature?: string | undefined;
|
|
2573
|
+
type: "text";
|
|
2574
|
+
text: string;
|
|
2575
|
+
} | {
|
|
2576
|
+
type: "redacted";
|
|
2577
|
+
data: string;
|
|
2578
|
+
})[] | undefined;
|
|
2956
2579
|
message: {
|
|
2957
2580
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2958
2581
|
role: "user";
|
|
@@ -2988,6 +2611,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2988
2611
|
} | {
|
|
2989
2612
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2990
2613
|
signature?: string | undefined;
|
|
2614
|
+
state?: "streaming" | "done" | undefined;
|
|
2991
2615
|
type: "reasoning";
|
|
2992
2616
|
text: string;
|
|
2993
2617
|
} | {
|
|
@@ -2996,6 +2620,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2996
2620
|
data: string;
|
|
2997
2621
|
} | {
|
|
2998
2622
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2623
|
+
providerExecuted?: boolean | undefined;
|
|
2999
2624
|
type: "tool-call";
|
|
3000
2625
|
toolCallId: string;
|
|
3001
2626
|
toolName: string;
|
|
@@ -3007,6 +2632,8 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3007
2632
|
content: {
|
|
3008
2633
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3009
2634
|
args?: any;
|
|
2635
|
+
providerExecuted?: boolean | undefined;
|
|
2636
|
+
isError?: boolean | undefined;
|
|
3010
2637
|
experimental_content?: ({
|
|
3011
2638
|
type: "text";
|
|
3012
2639
|
text: string;
|
|
@@ -3015,7 +2642,6 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3015
2642
|
type: "image";
|
|
3016
2643
|
data: string;
|
|
3017
2644
|
})[] | undefined;
|
|
3018
|
-
isError?: boolean | undefined;
|
|
3019
2645
|
type: "tool-result";
|
|
3020
2646
|
toolCallId: string;
|
|
3021
2647
|
toolName: string;
|
|
@@ -3028,7 +2654,6 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3028
2654
|
};
|
|
3029
2655
|
}, {
|
|
3030
2656
|
fileIds: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3031
|
-
id: import("convex/values").VString<string | undefined, "optional">;
|
|
3032
2657
|
message: import("convex/values").VUnion<{
|
|
3033
2658
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3034
2659
|
role: "user";
|
|
@@ -3064,6 +2689,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3064
2689
|
} | {
|
|
3065
2690
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3066
2691
|
signature?: string | undefined;
|
|
2692
|
+
state?: "streaming" | "done" | undefined;
|
|
3067
2693
|
type: "reasoning";
|
|
3068
2694
|
text: string;
|
|
3069
2695
|
} | {
|
|
@@ -3072,6 +2698,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3072
2698
|
data: string;
|
|
3073
2699
|
} | {
|
|
3074
2700
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2701
|
+
providerExecuted?: boolean | undefined;
|
|
3075
2702
|
type: "tool-call";
|
|
3076
2703
|
toolCallId: string;
|
|
3077
2704
|
toolName: string;
|
|
@@ -3083,6 +2710,8 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3083
2710
|
content: {
|
|
3084
2711
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3085
2712
|
args?: any;
|
|
2713
|
+
providerExecuted?: boolean | undefined;
|
|
2714
|
+
isError?: boolean | undefined;
|
|
3086
2715
|
experimental_content?: ({
|
|
3087
2716
|
type: "text";
|
|
3088
2717
|
text: string;
|
|
@@ -3091,7 +2720,6 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3091
2720
|
type: "image";
|
|
3092
2721
|
data: string;
|
|
3093
2722
|
})[] | undefined;
|
|
3094
|
-
isError?: boolean | undefined;
|
|
3095
2723
|
type: "tool-result";
|
|
3096
2724
|
toolCallId: string;
|
|
3097
2725
|
toolName: string;
|
|
@@ -3215,6 +2843,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3215
2843
|
} | {
|
|
3216
2844
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3217
2845
|
signature?: string | undefined;
|
|
2846
|
+
state?: "streaming" | "done" | undefined;
|
|
3218
2847
|
type: "reasoning";
|
|
3219
2848
|
text: string;
|
|
3220
2849
|
} | {
|
|
@@ -3223,6 +2852,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3223
2852
|
data: string;
|
|
3224
2853
|
} | {
|
|
3225
2854
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2855
|
+
providerExecuted?: boolean | undefined;
|
|
3226
2856
|
type: "tool-call";
|
|
3227
2857
|
toolCallId: string;
|
|
3228
2858
|
toolName: string;
|
|
@@ -3243,6 +2873,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3243
2873
|
} | {
|
|
3244
2874
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3245
2875
|
signature?: string | undefined;
|
|
2876
|
+
state?: "streaming" | "done" | undefined;
|
|
3246
2877
|
type: "reasoning";
|
|
3247
2878
|
text: string;
|
|
3248
2879
|
} | {
|
|
@@ -3251,6 +2882,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3251
2882
|
data: string;
|
|
3252
2883
|
} | {
|
|
3253
2884
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2885
|
+
providerExecuted?: boolean | undefined;
|
|
3254
2886
|
type: "tool-call";
|
|
3255
2887
|
toolCallId: string;
|
|
3256
2888
|
toolName: string;
|
|
@@ -3268,6 +2900,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3268
2900
|
} | {
|
|
3269
2901
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3270
2902
|
signature?: string | undefined;
|
|
2903
|
+
state?: "streaming" | "done" | undefined;
|
|
3271
2904
|
type: "reasoning";
|
|
3272
2905
|
text: string;
|
|
3273
2906
|
} | {
|
|
@@ -3276,6 +2909,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3276
2909
|
data: string;
|
|
3277
2910
|
} | {
|
|
3278
2911
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2912
|
+
providerExecuted?: boolean | undefined;
|
|
3279
2913
|
type: "tool-call";
|
|
3280
2914
|
toolCallId: string;
|
|
3281
2915
|
toolName: string;
|
|
@@ -3293,6 +2927,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3293
2927
|
} | {
|
|
3294
2928
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3295
2929
|
signature?: string | undefined;
|
|
2930
|
+
state?: "streaming" | "done" | undefined;
|
|
3296
2931
|
type: "reasoning";
|
|
3297
2932
|
text: string;
|
|
3298
2933
|
} | {
|
|
@@ -3301,6 +2936,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3301
2936
|
data: string;
|
|
3302
2937
|
} | {
|
|
3303
2938
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2939
|
+
providerExecuted?: boolean | undefined;
|
|
3304
2940
|
type: "tool-call";
|
|
3305
2941
|
toolCallId: string;
|
|
3306
2942
|
toolName: string;
|
|
@@ -3328,6 +2964,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3328
2964
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
3329
2965
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3330
2966
|
signature?: string | undefined;
|
|
2967
|
+
state?: "streaming" | "done" | undefined;
|
|
3331
2968
|
type: "reasoning";
|
|
3332
2969
|
text: string;
|
|
3333
2970
|
}, {
|
|
@@ -3335,7 +2972,8 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3335
2972
|
text: import("convex/values").VString<string, "required">;
|
|
3336
2973
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3337
2974
|
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>;
|
|
3338
|
-
|
|
2975
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
2976
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3339
2977
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3340
2978
|
type: "redacted-reasoning";
|
|
3341
2979
|
data: string;
|
|
@@ -3345,6 +2983,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3345
2983
|
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>;
|
|
3346
2984
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
3347
2985
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2986
|
+
providerExecuted?: boolean | undefined;
|
|
3348
2987
|
type: "tool-call";
|
|
3349
2988
|
toolCallId: string;
|
|
3350
2989
|
toolName: string;
|
|
@@ -3355,7 +2994,8 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3355
2994
|
toolName: import("convex/values").VString<string, "required">;
|
|
3356
2995
|
args: import("convex/values").VAny<any, "required", string>;
|
|
3357
2996
|
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>;
|
|
3358
|
-
|
|
2997
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2998
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
3359
2999
|
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>;
|
|
3360
3000
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3361
3001
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3363,6 +3003,8 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3363
3003
|
content: {
|
|
3364
3004
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3365
3005
|
args?: any;
|
|
3006
|
+
providerExecuted?: boolean | undefined;
|
|
3007
|
+
isError?: boolean | undefined;
|
|
3366
3008
|
experimental_content?: ({
|
|
3367
3009
|
type: "text";
|
|
3368
3010
|
text: string;
|
|
@@ -3371,7 +3013,6 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3371
3013
|
type: "image";
|
|
3372
3014
|
data: string;
|
|
3373
3015
|
})[] | undefined;
|
|
3374
|
-
isError?: boolean | undefined;
|
|
3375
3016
|
type: "tool-result";
|
|
3376
3017
|
toolCallId: string;
|
|
3377
3018
|
toolName: string;
|
|
@@ -3382,6 +3023,8 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3382
3023
|
content: import("convex/values").VArray<{
|
|
3383
3024
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3384
3025
|
args?: any;
|
|
3026
|
+
providerExecuted?: boolean | undefined;
|
|
3027
|
+
isError?: boolean | undefined;
|
|
3385
3028
|
experimental_content?: ({
|
|
3386
3029
|
type: "text";
|
|
3387
3030
|
text: string;
|
|
@@ -3390,7 +3033,6 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3390
3033
|
type: "image";
|
|
3391
3034
|
data: string;
|
|
3392
3035
|
})[] | undefined;
|
|
3393
|
-
isError?: boolean | undefined;
|
|
3394
3036
|
type: "tool-result";
|
|
3395
3037
|
toolCallId: string;
|
|
3396
3038
|
toolName: string;
|
|
@@ -3398,6 +3040,8 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3398
3040
|
}[], import("convex/values").VObject<{
|
|
3399
3041
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3400
3042
|
args?: any;
|
|
3043
|
+
providerExecuted?: boolean | undefined;
|
|
3044
|
+
isError?: boolean | undefined;
|
|
3401
3045
|
experimental_content?: ({
|
|
3402
3046
|
type: "text";
|
|
3403
3047
|
text: string;
|
|
@@ -3406,7 +3050,6 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3406
3050
|
type: "image";
|
|
3407
3051
|
data: string;
|
|
3408
3052
|
})[] | undefined;
|
|
3409
|
-
isError?: boolean | undefined;
|
|
3410
3053
|
type: "tool-result";
|
|
3411
3054
|
toolCallId: string;
|
|
3412
3055
|
toolName: string;
|
|
@@ -3416,6 +3059,9 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3416
3059
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
3417
3060
|
toolName: import("convex/values").VString<string, "required">;
|
|
3418
3061
|
result: import("convex/values").VAny<any, "required", string>;
|
|
3062
|
+
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>;
|
|
3063
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3064
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3419
3065
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
3420
3066
|
experimental_content: import("convex/values").VArray<({
|
|
3421
3067
|
type: "text";
|
|
@@ -3446,9 +3092,7 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3446
3092
|
data: import("convex/values").VString<string, "required">;
|
|
3447
3093
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3448
3094
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
3449
|
-
|
|
3450
|
-
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>;
|
|
3451
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
3095
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
3452
3096
|
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>;
|
|
3453
3097
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3454
3098
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3460,31 +3104,80 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3460
3104
|
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>;
|
|
3461
3105
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
|
|
3462
3106
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
3107
|
+
status: import("convex/values").VUnion<"pending" | "success" | "failed" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "optional", never>;
|
|
3463
3108
|
finishReason: import("convex/values").VUnion<"length" | "error" | "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>;
|
|
3464
3109
|
model: import("convex/values").VString<string | undefined, "optional">;
|
|
3465
3110
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
3466
3111
|
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>;
|
|
3467
|
-
sources: import("convex/values").VArray<{
|
|
3112
|
+
sources: import("convex/values").VArray<({
|
|
3113
|
+
title?: string | undefined;
|
|
3114
|
+
type?: "source" | undefined;
|
|
3115
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3116
|
+
id: string;
|
|
3117
|
+
sourceType: "url";
|
|
3118
|
+
url: string;
|
|
3119
|
+
} | {
|
|
3120
|
+
filename?: string | undefined;
|
|
3121
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3122
|
+
id: string;
|
|
3123
|
+
title: string;
|
|
3124
|
+
type: "source";
|
|
3125
|
+
sourceType: "document";
|
|
3126
|
+
mediaType: string;
|
|
3127
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
3468
3128
|
title?: string | undefined;
|
|
3129
|
+
type?: "source" | undefined;
|
|
3469
3130
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3470
3131
|
id: string;
|
|
3471
3132
|
sourceType: "url";
|
|
3472
3133
|
url: string;
|
|
3473
|
-
}
|
|
3134
|
+
} | {
|
|
3135
|
+
filename?: string | undefined;
|
|
3136
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3137
|
+
id: string;
|
|
3138
|
+
title: string;
|
|
3139
|
+
type: "source";
|
|
3140
|
+
sourceType: "document";
|
|
3141
|
+
mediaType: string;
|
|
3142
|
+
}, [import("convex/values").VObject<{
|
|
3474
3143
|
title?: string | undefined;
|
|
3144
|
+
type?: "source" | undefined;
|
|
3475
3145
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3476
3146
|
id: string;
|
|
3477
3147
|
sourceType: "url";
|
|
3478
3148
|
url: string;
|
|
3479
3149
|
}, {
|
|
3150
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
3480
3151
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
3481
3152
|
id: import("convex/values").VString<string, "required">;
|
|
3482
3153
|
url: import("convex/values").VString<string, "required">;
|
|
3483
3154
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3484
3155
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
3485
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
3156
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
3157
|
+
filename?: string | undefined;
|
|
3158
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3159
|
+
id: string;
|
|
3160
|
+
title: string;
|
|
3161
|
+
type: "source";
|
|
3162
|
+
sourceType: "document";
|
|
3163
|
+
mediaType: string;
|
|
3164
|
+
}, {
|
|
3165
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
3166
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
3167
|
+
id: import("convex/values").VString<string, "required">;
|
|
3168
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
3169
|
+
title: import("convex/values").VString<string, "required">;
|
|
3170
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
3171
|
+
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>;
|
|
3172
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
3486
3173
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
3487
3174
|
reasoningDetails: import("convex/values").VArray<({
|
|
3175
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3176
|
+
signature?: string | undefined;
|
|
3177
|
+
state?: "streaming" | "done" | undefined;
|
|
3178
|
+
type: "reasoning";
|
|
3179
|
+
text: string;
|
|
3180
|
+
} | {
|
|
3488
3181
|
signature?: string | undefined;
|
|
3489
3182
|
type: "text";
|
|
3490
3183
|
text: string;
|
|
@@ -3492,6 +3185,12 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3492
3185
|
type: "redacted";
|
|
3493
3186
|
data: string;
|
|
3494
3187
|
})[] | undefined, import("convex/values").VUnion<{
|
|
3188
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3189
|
+
signature?: string | undefined;
|
|
3190
|
+
state?: "streaming" | "done" | undefined;
|
|
3191
|
+
type: "reasoning";
|
|
3192
|
+
text: string;
|
|
3193
|
+
} | {
|
|
3495
3194
|
signature?: string | undefined;
|
|
3496
3195
|
type: "text";
|
|
3497
3196
|
text: string;
|
|
@@ -3499,6 +3198,18 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3499
3198
|
type: "redacted";
|
|
3500
3199
|
data: string;
|
|
3501
3200
|
}, [import("convex/values").VObject<{
|
|
3201
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3202
|
+
signature?: string | undefined;
|
|
3203
|
+
state?: "streaming" | "done" | undefined;
|
|
3204
|
+
type: "reasoning";
|
|
3205
|
+
text: string;
|
|
3206
|
+
}, {
|
|
3207
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
3208
|
+
text: import("convex/values").VString<string, "required">;
|
|
3209
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3210
|
+
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>;
|
|
3211
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
3212
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3502
3213
|
signature?: string | undefined;
|
|
3503
3214
|
type: "text";
|
|
3504
3215
|
text: string;
|
|
@@ -3512,8 +3223,10 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3512
3223
|
}, {
|
|
3513
3224
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
3514
3225
|
data: import("convex/values").VString<string, "required">;
|
|
3515
|
-
}, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "optional">;
|
|
3226
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
3516
3227
|
usage: import("convex/values").VObject<{
|
|
3228
|
+
reasoningTokens?: number | undefined;
|
|
3229
|
+
cachedInputTokens?: number | undefined;
|
|
3517
3230
|
promptTokens: number;
|
|
3518
3231
|
completionTokens: number;
|
|
3519
3232
|
totalTokens: number;
|
|
@@ -3521,7 +3234,9 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3521
3234
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
3522
3235
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
3523
3236
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
3524
|
-
|
|
3237
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3238
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3239
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
3525
3240
|
warnings: import("convex/values").VArray<({
|
|
3526
3241
|
details?: string | undefined;
|
|
3527
3242
|
type: "unsupported-setting";
|
|
@@ -3568,9 +3283,9 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
3568
3283
|
message: import("convex/values").VString<string, "required">;
|
|
3569
3284
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3570
3285
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
3571
|
-
}, "required", "
|
|
3286
|
+
}, "required", "status" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
|
|
3572
3287
|
export type MessageWithMetadata = Infer<typeof vMessageWithMetadata>;
|
|
3573
|
-
export declare const
|
|
3288
|
+
export declare const vMessageEmbeddingsWithDimension: import("convex/values").VObject<{
|
|
3574
3289
|
model: string;
|
|
3575
3290
|
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3576
3291
|
vectors: (number[] | null)[];
|
|
@@ -3579,115 +3294,15 @@ export declare const vMessageEmbeddings: import("convex/values").VObject<{
|
|
|
3579
3294
|
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, import("convex/values").VLiteral<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, "required">[], "required", never>;
|
|
3580
3295
|
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
3581
3296
|
}, "required", "model" | "dimension" | "vectors">;
|
|
3582
|
-
export type
|
|
3583
|
-
export declare const
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3587
|
-
warnings?: ({
|
|
3588
|
-
details?: string | undefined;
|
|
3589
|
-
type: "unsupported-setting";
|
|
3590
|
-
setting: string;
|
|
3591
|
-
} | {
|
|
3592
|
-
details?: string | undefined;
|
|
3593
|
-
type: "unsupported-tool";
|
|
3594
|
-
tool: any;
|
|
3595
|
-
} | {
|
|
3596
|
-
type: "other";
|
|
3597
|
-
message: string;
|
|
3598
|
-
})[] | undefined;
|
|
3599
|
-
object: any;
|
|
3600
|
-
finishReason: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown";
|
|
3601
|
-
request: {
|
|
3602
|
-
url?: string | undefined;
|
|
3603
|
-
body?: any;
|
|
3604
|
-
headers?: Record<string, string> | undefined;
|
|
3605
|
-
method?: string | undefined;
|
|
3606
|
-
};
|
|
3607
|
-
response: {
|
|
3608
|
-
body?: any;
|
|
3609
|
-
headers?: Record<string, string> | undefined;
|
|
3610
|
-
id: string;
|
|
3611
|
-
timestamp: number;
|
|
3612
|
-
modelId: string;
|
|
3613
|
-
};
|
|
3297
|
+
export type MessageEmbeddingsWithDimension = Infer<typeof vMessageEmbeddingsWithDimension>;
|
|
3298
|
+
export declare const vMessageEmbeddings: import("convex/values").VObject<{
|
|
3299
|
+
model: string;
|
|
3300
|
+
vectors: (number[] | null)[];
|
|
3614
3301
|
}, {
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
method?: string | undefined;
|
|
3620
|
-
}, {
|
|
3621
|
-
body: import("convex/values").VAny<any, "optional", string>;
|
|
3622
|
-
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
3623
|
-
method: import("convex/values").VString<string | undefined, "optional">;
|
|
3624
|
-
url: import("convex/values").VString<string | undefined, "optional">;
|
|
3625
|
-
}, "required", "url" | "body" | "headers" | "method" | `body.${string}` | `headers.${string}`>;
|
|
3626
|
-
response: import("convex/values").VObject<{
|
|
3627
|
-
body?: any;
|
|
3628
|
-
headers?: Record<string, string> | undefined;
|
|
3629
|
-
id: string;
|
|
3630
|
-
timestamp: number;
|
|
3631
|
-
modelId: string;
|
|
3632
|
-
}, {
|
|
3633
|
-
id: import("convex/values").VString<string, "required">;
|
|
3634
|
-
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
3635
|
-
modelId: import("convex/values").VString<string, "required">;
|
|
3636
|
-
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
3637
|
-
body: import("convex/values").VAny<any, "optional", string>;
|
|
3638
|
-
}, "required", "id" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId">;
|
|
3639
|
-
finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown", [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">], "required", never>;
|
|
3640
|
-
usage: import("convex/values").VAny<any, "optional", string>;
|
|
3641
|
-
object: import("convex/values").VAny<any, "required", string>;
|
|
3642
|
-
error: import("convex/values").VString<string | undefined, "optional">;
|
|
3643
|
-
warnings: import("convex/values").VArray<({
|
|
3644
|
-
details?: string | undefined;
|
|
3645
|
-
type: "unsupported-setting";
|
|
3646
|
-
setting: string;
|
|
3647
|
-
} | {
|
|
3648
|
-
details?: string | undefined;
|
|
3649
|
-
type: "unsupported-tool";
|
|
3650
|
-
tool: any;
|
|
3651
|
-
} | {
|
|
3652
|
-
type: "other";
|
|
3653
|
-
message: string;
|
|
3654
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
3655
|
-
details?: string | undefined;
|
|
3656
|
-
type: "unsupported-setting";
|
|
3657
|
-
setting: string;
|
|
3658
|
-
} | {
|
|
3659
|
-
details?: string | undefined;
|
|
3660
|
-
type: "unsupported-tool";
|
|
3661
|
-
tool: any;
|
|
3662
|
-
} | {
|
|
3663
|
-
type: "other";
|
|
3664
|
-
message: string;
|
|
3665
|
-
}, [import("convex/values").VObject<{
|
|
3666
|
-
details?: string | undefined;
|
|
3667
|
-
type: "unsupported-setting";
|
|
3668
|
-
setting: string;
|
|
3669
|
-
}, {
|
|
3670
|
-
type: import("convex/values").VLiteral<"unsupported-setting", "required">;
|
|
3671
|
-
setting: import("convex/values").VString<string, "required">;
|
|
3672
|
-
details: import("convex/values").VString<string | undefined, "optional">;
|
|
3673
|
-
}, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
|
|
3674
|
-
details?: string | undefined;
|
|
3675
|
-
type: "unsupported-tool";
|
|
3676
|
-
tool: any;
|
|
3677
|
-
}, {
|
|
3678
|
-
type: import("convex/values").VLiteral<"unsupported-tool", "required">;
|
|
3679
|
-
tool: import("convex/values").VAny<any, "required", string>;
|
|
3680
|
-
details: import("convex/values").VString<string | undefined, "optional">;
|
|
3681
|
-
}, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
|
|
3682
|
-
type: "other";
|
|
3683
|
-
message: string;
|
|
3684
|
-
}, {
|
|
3685
|
-
type: import("convex/values").VLiteral<"other", "required">;
|
|
3686
|
-
message: import("convex/values").VString<string, "required">;
|
|
3687
|
-
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3688
|
-
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>;
|
|
3689
|
-
}, "required", "object" | "error" | "usage" | "providerMetadata" | "warnings" | "finishReason" | `providerMetadata.${string}` | "request" | "response" | `object.${string}` | `usage.${string}` | "request.url" | "request.body" | "request.headers" | "request.method" | `request.body.${string}` | `request.headers.${string}` | "response.id" | "response.body" | "response.headers" | `response.body.${string}` | `response.headers.${string}` | "response.timestamp" | "response.modelId">;
|
|
3690
|
-
export type ObjectResult = Infer<typeof vObjectResult>;
|
|
3302
|
+
model: import("convex/values").VString<string, "required">;
|
|
3303
|
+
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
3304
|
+
}, "required", "model" | "vectors">;
|
|
3305
|
+
export type MessageEmbeddings = Infer<typeof vMessageEmbeddings>;
|
|
3691
3306
|
export declare const vContextOptionsSearchOptions: import("convex/values").VObject<{
|
|
3692
3307
|
textSearch?: boolean | undefined;
|
|
3693
3308
|
vectorSearch?: boolean | undefined;
|
|
@@ -3756,18 +3371,30 @@ export declare const vStorageOptions: import("convex/values").VObject<{
|
|
|
3756
3371
|
}, {
|
|
3757
3372
|
saveMessages: import("convex/values").VUnion<"all" | "none" | "promptAndOutput" | undefined, [import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"promptAndOutput", "required">], "optional", never>;
|
|
3758
3373
|
}, "required", "saveMessages">;
|
|
3759
|
-
export declare const
|
|
3760
|
-
|
|
3374
|
+
export declare const vCallSettings: import("convex/values").VObject<{
|
|
3375
|
+
headers?: Record<string, string> | undefined;
|
|
3376
|
+
maxOutputTokens?: number | undefined;
|
|
3377
|
+
temperature?: number | undefined;
|
|
3378
|
+
topP?: number | undefined;
|
|
3379
|
+
topK?: number | undefined;
|
|
3380
|
+
presencePenalty?: number | undefined;
|
|
3381
|
+
frequencyPenalty?: number | undefined;
|
|
3382
|
+
stopSequences?: string[] | undefined;
|
|
3383
|
+
seed?: number | undefined;
|
|
3384
|
+
maxRetries?: number | undefined;
|
|
3385
|
+
}, {
|
|
3386
|
+
maxOutputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3761
3387
|
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3762
3388
|
topP: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3763
3389
|
topK: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3764
3390
|
presencePenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3765
3391
|
frequencyPenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3392
|
+
stopSequences: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3766
3393
|
seed: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3767
3394
|
maxRetries: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3768
3395
|
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
3769
|
-
}
|
|
3770
|
-
export type CallSettings =
|
|
3396
|
+
}, "required", "headers" | `headers.${string}` | "maxOutputTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "stopSequences" | "seed" | "maxRetries">;
|
|
3397
|
+
export type CallSettings = Infer<typeof vCallSettings>;
|
|
3771
3398
|
export declare const vTextArgs: import("convex/values").VObject<{
|
|
3772
3399
|
userId?: string | undefined;
|
|
3773
3400
|
threadId?: string | undefined;
|
|
@@ -3808,6 +3435,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3808
3435
|
} | {
|
|
3809
3436
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3810
3437
|
signature?: string | undefined;
|
|
3438
|
+
state?: "streaming" | "done" | undefined;
|
|
3811
3439
|
type: "reasoning";
|
|
3812
3440
|
text: string;
|
|
3813
3441
|
} | {
|
|
@@ -3816,6 +3444,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3816
3444
|
data: string;
|
|
3817
3445
|
} | {
|
|
3818
3446
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3447
|
+
providerExecuted?: boolean | undefined;
|
|
3819
3448
|
type: "tool-call";
|
|
3820
3449
|
toolCallId: string;
|
|
3821
3450
|
toolName: string;
|
|
@@ -3827,6 +3456,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3827
3456
|
content: {
|
|
3828
3457
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3829
3458
|
args?: any;
|
|
3459
|
+
providerExecuted?: boolean | undefined;
|
|
3460
|
+
isError?: boolean | undefined;
|
|
3830
3461
|
experimental_content?: ({
|
|
3831
3462
|
type: "text";
|
|
3832
3463
|
text: string;
|
|
@@ -3835,7 +3466,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3835
3466
|
type: "image";
|
|
3836
3467
|
data: string;
|
|
3837
3468
|
})[] | undefined;
|
|
3838
|
-
isError?: boolean | undefined;
|
|
3839
3469
|
type: "tool-result";
|
|
3840
3470
|
toolCallId: string;
|
|
3841
3471
|
toolName: string;
|
|
@@ -3846,15 +3476,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3846
3476
|
role: "system";
|
|
3847
3477
|
content: string;
|
|
3848
3478
|
})[] | undefined;
|
|
3849
|
-
headers?: Record<string, string> | undefined;
|
|
3850
|
-
maxTokens?: number | undefined;
|
|
3851
|
-
temperature?: number | undefined;
|
|
3852
|
-
topP?: number | undefined;
|
|
3853
|
-
topK?: number | undefined;
|
|
3854
|
-
presencePenalty?: number | undefined;
|
|
3855
|
-
frequencyPenalty?: number | undefined;
|
|
3856
|
-
seed?: number | undefined;
|
|
3857
|
-
maxRetries?: number | undefined;
|
|
3858
3479
|
stream?: boolean | undefined;
|
|
3859
3480
|
toolChoice?: "required" | "none" | "auto" | {
|
|
3860
3481
|
type: "tool";
|
|
@@ -3882,6 +3503,18 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3882
3503
|
storageOptions?: {
|
|
3883
3504
|
saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
|
|
3884
3505
|
} | undefined;
|
|
3506
|
+
callSettings?: {
|
|
3507
|
+
headers?: Record<string, string> | undefined;
|
|
3508
|
+
maxOutputTokens?: number | undefined;
|
|
3509
|
+
temperature?: number | undefined;
|
|
3510
|
+
topP?: number | undefined;
|
|
3511
|
+
topK?: number | undefined;
|
|
3512
|
+
presencePenalty?: number | undefined;
|
|
3513
|
+
frequencyPenalty?: number | undefined;
|
|
3514
|
+
stopSequences?: string[] | undefined;
|
|
3515
|
+
seed?: number | undefined;
|
|
3516
|
+
maxRetries?: number | undefined;
|
|
3517
|
+
} | undefined;
|
|
3885
3518
|
}, {
|
|
3886
3519
|
stream: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3887
3520
|
toolChoice: import("convex/values").VUnion<"required" | "none" | "auto" | {
|
|
@@ -3933,6 +3566,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3933
3566
|
} | {
|
|
3934
3567
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3935
3568
|
signature?: string | undefined;
|
|
3569
|
+
state?: "streaming" | "done" | undefined;
|
|
3936
3570
|
type: "reasoning";
|
|
3937
3571
|
text: string;
|
|
3938
3572
|
} | {
|
|
@@ -3941,6 +3575,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3941
3575
|
data: string;
|
|
3942
3576
|
} | {
|
|
3943
3577
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3578
|
+
providerExecuted?: boolean | undefined;
|
|
3944
3579
|
type: "tool-call";
|
|
3945
3580
|
toolCallId: string;
|
|
3946
3581
|
toolName: string;
|
|
@@ -3952,6 +3587,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3952
3587
|
content: {
|
|
3953
3588
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3954
3589
|
args?: any;
|
|
3590
|
+
providerExecuted?: boolean | undefined;
|
|
3591
|
+
isError?: boolean | undefined;
|
|
3955
3592
|
experimental_content?: ({
|
|
3956
3593
|
type: "text";
|
|
3957
3594
|
text: string;
|
|
@@ -3960,7 +3597,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
3960
3597
|
type: "image";
|
|
3961
3598
|
data: string;
|
|
3962
3599
|
})[] | undefined;
|
|
3963
|
-
isError?: boolean | undefined;
|
|
3964
3600
|
type: "tool-result";
|
|
3965
3601
|
toolCallId: string;
|
|
3966
3602
|
toolName: string;
|
|
@@ -4005,6 +3641,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4005
3641
|
} | {
|
|
4006
3642
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4007
3643
|
signature?: string | undefined;
|
|
3644
|
+
state?: "streaming" | "done" | undefined;
|
|
4008
3645
|
type: "reasoning";
|
|
4009
3646
|
text: string;
|
|
4010
3647
|
} | {
|
|
@@ -4013,6 +3650,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4013
3650
|
data: string;
|
|
4014
3651
|
} | {
|
|
4015
3652
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3653
|
+
providerExecuted?: boolean | undefined;
|
|
4016
3654
|
type: "tool-call";
|
|
4017
3655
|
toolCallId: string;
|
|
4018
3656
|
toolName: string;
|
|
@@ -4024,6 +3662,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4024
3662
|
content: {
|
|
4025
3663
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4026
3664
|
args?: any;
|
|
3665
|
+
providerExecuted?: boolean | undefined;
|
|
3666
|
+
isError?: boolean | undefined;
|
|
4027
3667
|
experimental_content?: ({
|
|
4028
3668
|
type: "text";
|
|
4029
3669
|
text: string;
|
|
@@ -4032,7 +3672,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4032
3672
|
type: "image";
|
|
4033
3673
|
data: string;
|
|
4034
3674
|
})[] | undefined;
|
|
4035
|
-
isError?: boolean | undefined;
|
|
4036
3675
|
type: "tool-result";
|
|
4037
3676
|
toolCallId: string;
|
|
4038
3677
|
toolName: string;
|
|
@@ -4156,6 +3795,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4156
3795
|
} | {
|
|
4157
3796
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4158
3797
|
signature?: string | undefined;
|
|
3798
|
+
state?: "streaming" | "done" | undefined;
|
|
4159
3799
|
type: "reasoning";
|
|
4160
3800
|
text: string;
|
|
4161
3801
|
} | {
|
|
@@ -4164,6 +3804,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4164
3804
|
data: string;
|
|
4165
3805
|
} | {
|
|
4166
3806
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3807
|
+
providerExecuted?: boolean | undefined;
|
|
4167
3808
|
type: "tool-call";
|
|
4168
3809
|
toolCallId: string;
|
|
4169
3810
|
toolName: string;
|
|
@@ -4184,6 +3825,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4184
3825
|
} | {
|
|
4185
3826
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4186
3827
|
signature?: string | undefined;
|
|
3828
|
+
state?: "streaming" | "done" | undefined;
|
|
4187
3829
|
type: "reasoning";
|
|
4188
3830
|
text: string;
|
|
4189
3831
|
} | {
|
|
@@ -4192,6 +3834,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4192
3834
|
data: string;
|
|
4193
3835
|
} | {
|
|
4194
3836
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3837
|
+
providerExecuted?: boolean | undefined;
|
|
4195
3838
|
type: "tool-call";
|
|
4196
3839
|
toolCallId: string;
|
|
4197
3840
|
toolName: string;
|
|
@@ -4209,6 +3852,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4209
3852
|
} | {
|
|
4210
3853
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4211
3854
|
signature?: string | undefined;
|
|
3855
|
+
state?: "streaming" | "done" | undefined;
|
|
4212
3856
|
type: "reasoning";
|
|
4213
3857
|
text: string;
|
|
4214
3858
|
} | {
|
|
@@ -4217,6 +3861,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4217
3861
|
data: string;
|
|
4218
3862
|
} | {
|
|
4219
3863
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3864
|
+
providerExecuted?: boolean | undefined;
|
|
4220
3865
|
type: "tool-call";
|
|
4221
3866
|
toolCallId: string;
|
|
4222
3867
|
toolName: string;
|
|
@@ -4234,6 +3879,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4234
3879
|
} | {
|
|
4235
3880
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4236
3881
|
signature?: string | undefined;
|
|
3882
|
+
state?: "streaming" | "done" | undefined;
|
|
4237
3883
|
type: "reasoning";
|
|
4238
3884
|
text: string;
|
|
4239
3885
|
} | {
|
|
@@ -4242,6 +3888,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4242
3888
|
data: string;
|
|
4243
3889
|
} | {
|
|
4244
3890
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3891
|
+
providerExecuted?: boolean | undefined;
|
|
4245
3892
|
type: "tool-call";
|
|
4246
3893
|
toolCallId: string;
|
|
4247
3894
|
toolName: string;
|
|
@@ -4269,6 +3916,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4269
3916
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
4270
3917
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4271
3918
|
signature?: string | undefined;
|
|
3919
|
+
state?: "streaming" | "done" | undefined;
|
|
4272
3920
|
type: "reasoning";
|
|
4273
3921
|
text: string;
|
|
4274
3922
|
}, {
|
|
@@ -4276,7 +3924,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4276
3924
|
text: import("convex/values").VString<string, "required">;
|
|
4277
3925
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4278
3926
|
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>;
|
|
4279
|
-
|
|
3927
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
3928
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4280
3929
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4281
3930
|
type: "redacted-reasoning";
|
|
4282
3931
|
data: string;
|
|
@@ -4286,6 +3935,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4286
3935
|
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>;
|
|
4287
3936
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
4288
3937
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3938
|
+
providerExecuted?: boolean | undefined;
|
|
4289
3939
|
type: "tool-call";
|
|
4290
3940
|
toolCallId: string;
|
|
4291
3941
|
toolName: string;
|
|
@@ -4296,7 +3946,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4296
3946
|
toolName: import("convex/values").VString<string, "required">;
|
|
4297
3947
|
args: import("convex/values").VAny<any, "required", string>;
|
|
4298
3948
|
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>;
|
|
4299
|
-
|
|
3949
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3950
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
4300
3951
|
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>;
|
|
4301
3952
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4302
3953
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4304,6 +3955,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4304
3955
|
content: {
|
|
4305
3956
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4306
3957
|
args?: any;
|
|
3958
|
+
providerExecuted?: boolean | undefined;
|
|
3959
|
+
isError?: boolean | undefined;
|
|
4307
3960
|
experimental_content?: ({
|
|
4308
3961
|
type: "text";
|
|
4309
3962
|
text: string;
|
|
@@ -4312,7 +3965,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4312
3965
|
type: "image";
|
|
4313
3966
|
data: string;
|
|
4314
3967
|
})[] | undefined;
|
|
4315
|
-
isError?: boolean | undefined;
|
|
4316
3968
|
type: "tool-result";
|
|
4317
3969
|
toolCallId: string;
|
|
4318
3970
|
toolName: string;
|
|
@@ -4323,6 +3975,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4323
3975
|
content: import("convex/values").VArray<{
|
|
4324
3976
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4325
3977
|
args?: any;
|
|
3978
|
+
providerExecuted?: boolean | undefined;
|
|
3979
|
+
isError?: boolean | undefined;
|
|
4326
3980
|
experimental_content?: ({
|
|
4327
3981
|
type: "text";
|
|
4328
3982
|
text: string;
|
|
@@ -4331,7 +3985,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4331
3985
|
type: "image";
|
|
4332
3986
|
data: string;
|
|
4333
3987
|
})[] | undefined;
|
|
4334
|
-
isError?: boolean | undefined;
|
|
4335
3988
|
type: "tool-result";
|
|
4336
3989
|
toolCallId: string;
|
|
4337
3990
|
toolName: string;
|
|
@@ -4339,6 +3992,8 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4339
3992
|
}[], import("convex/values").VObject<{
|
|
4340
3993
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4341
3994
|
args?: any;
|
|
3995
|
+
providerExecuted?: boolean | undefined;
|
|
3996
|
+
isError?: boolean | undefined;
|
|
4342
3997
|
experimental_content?: ({
|
|
4343
3998
|
type: "text";
|
|
4344
3999
|
text: string;
|
|
@@ -4347,7 +4002,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4347
4002
|
type: "image";
|
|
4348
4003
|
data: string;
|
|
4349
4004
|
})[] | undefined;
|
|
4350
|
-
isError?: boolean | undefined;
|
|
4351
4005
|
type: "tool-result";
|
|
4352
4006
|
toolCallId: string;
|
|
4353
4007
|
toolName: string;
|
|
@@ -4357,6 +4011,9 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4357
4011
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
4358
4012
|
toolName: import("convex/values").VString<string, "required">;
|
|
4359
4013
|
result: import("convex/values").VAny<any, "required", string>;
|
|
4014
|
+
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>;
|
|
4015
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4016
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4360
4017
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
4361
4018
|
experimental_content: import("convex/values").VArray<({
|
|
4362
4019
|
type: "text";
|
|
@@ -4387,9 +4044,7 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4387
4044
|
data: import("convex/values").VString<string, "required">;
|
|
4388
4045
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
4389
4046
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
4390
|
-
|
|
4391
|
-
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>;
|
|
4392
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
4047
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
4393
4048
|
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>;
|
|
4394
4049
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4395
4050
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4401,15 +4056,6 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4401
4056
|
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>;
|
|
4402
4057
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, "optional">;
|
|
4403
4058
|
promptMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
4404
|
-
maxTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4405
|
-
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4406
|
-
topP: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4407
|
-
topK: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4408
|
-
presencePenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4409
|
-
frequencyPenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4410
|
-
seed: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4411
|
-
maxRetries: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4412
|
-
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
4413
4059
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
4414
4060
|
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
4415
4061
|
contextOptions: import("convex/values").VObject<{
|
|
@@ -4459,7 +4105,30 @@ export declare const vTextArgs: import("convex/values").VObject<{
|
|
|
4459
4105
|
saveMessages: import("convex/values").VUnion<"all" | "none" | "promptAndOutput" | undefined, [import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"promptAndOutput", "required">], "optional", never>;
|
|
4460
4106
|
}, "optional", "saveMessages">;
|
|
4461
4107
|
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>;
|
|
4462
|
-
|
|
4108
|
+
callSettings: import("convex/values").VObject<{
|
|
4109
|
+
headers?: Record<string, string> | undefined;
|
|
4110
|
+
maxOutputTokens?: number | undefined;
|
|
4111
|
+
temperature?: number | undefined;
|
|
4112
|
+
topP?: number | undefined;
|
|
4113
|
+
topK?: number | undefined;
|
|
4114
|
+
presencePenalty?: number | undefined;
|
|
4115
|
+
frequencyPenalty?: number | undefined;
|
|
4116
|
+
stopSequences?: string[] | undefined;
|
|
4117
|
+
seed?: number | undefined;
|
|
4118
|
+
maxRetries?: number | undefined;
|
|
4119
|
+
} | undefined, {
|
|
4120
|
+
maxOutputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4121
|
+
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4122
|
+
topP: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4123
|
+
topK: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4124
|
+
presencePenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4125
|
+
frequencyPenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4126
|
+
stopSequences: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
4127
|
+
seed: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4128
|
+
maxRetries: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4129
|
+
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
4130
|
+
}, "optional", "headers" | `headers.${string}` | "maxOutputTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "stopSequences" | "seed" | "maxRetries">;
|
|
4131
|
+
}, "required", "userId" | "threadId" | "providerOptions" | `providerOptions.${string}` | "system" | "messages" | "stream" | "toolChoice" | "maxSteps" | "experimental_continueSteps" | "prompt" | "promptMessageId" | "contextOptions" | "storageOptions" | "callSettings" | "toolChoice.type" | "toolChoice.toolName" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "contextOptions.searchOptions.vectorScoreThreshold" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "storageOptions.saveMessages" | "callSettings.headers" | `callSettings.headers.${string}` | "callSettings.maxOutputTokens" | "callSettings.temperature" | "callSettings.topP" | "callSettings.topK" | "callSettings.presencePenalty" | "callSettings.frequencyPenalty" | "callSettings.stopSequences" | "callSettings.seed" | "callSettings.maxRetries">;
|
|
4463
4132
|
export type TextArgs = Infer<typeof vTextArgs>;
|
|
4464
4133
|
export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
4465
4134
|
userId?: string | undefined;
|
|
@@ -4501,6 +4170,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4501
4170
|
} | {
|
|
4502
4171
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4503
4172
|
signature?: string | undefined;
|
|
4173
|
+
state?: "streaming" | "done" | undefined;
|
|
4504
4174
|
type: "reasoning";
|
|
4505
4175
|
text: string;
|
|
4506
4176
|
} | {
|
|
@@ -4509,6 +4179,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4509
4179
|
data: string;
|
|
4510
4180
|
} | {
|
|
4511
4181
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4182
|
+
providerExecuted?: boolean | undefined;
|
|
4512
4183
|
type: "tool-call";
|
|
4513
4184
|
toolCallId: string;
|
|
4514
4185
|
toolName: string;
|
|
@@ -4520,6 +4191,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4520
4191
|
content: {
|
|
4521
4192
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4522
4193
|
args?: any;
|
|
4194
|
+
providerExecuted?: boolean | undefined;
|
|
4195
|
+
isError?: boolean | undefined;
|
|
4523
4196
|
experimental_content?: ({
|
|
4524
4197
|
type: "text";
|
|
4525
4198
|
text: string;
|
|
@@ -4528,7 +4201,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4528
4201
|
type: "image";
|
|
4529
4202
|
data: string;
|
|
4530
4203
|
})[] | undefined;
|
|
4531
|
-
isError?: boolean | undefined;
|
|
4532
4204
|
type: "tool-result";
|
|
4533
4205
|
toolCallId: string;
|
|
4534
4206
|
toolName: string;
|
|
@@ -4539,15 +4211,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4539
4211
|
role: "system";
|
|
4540
4212
|
content: string;
|
|
4541
4213
|
})[] | undefined;
|
|
4542
|
-
headers?: Record<string, string> | undefined;
|
|
4543
|
-
maxTokens?: number | undefined;
|
|
4544
|
-
temperature?: number | undefined;
|
|
4545
|
-
topP?: number | undefined;
|
|
4546
|
-
topK?: number | undefined;
|
|
4547
|
-
presencePenalty?: number | undefined;
|
|
4548
|
-
frequencyPenalty?: number | undefined;
|
|
4549
|
-
seed?: number | undefined;
|
|
4550
|
-
maxRetries?: number | undefined;
|
|
4551
4214
|
prompt?: string | undefined;
|
|
4552
4215
|
promptMessageId?: string | undefined;
|
|
4553
4216
|
contextOptions?: {
|
|
@@ -4568,7 +4231,19 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4568
4231
|
storageOptions?: {
|
|
4569
4232
|
saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
|
|
4570
4233
|
} | undefined;
|
|
4571
|
-
|
|
4234
|
+
callSettings?: {
|
|
4235
|
+
headers?: Record<string, string> | undefined;
|
|
4236
|
+
maxOutputTokens?: number | undefined;
|
|
4237
|
+
temperature?: number | undefined;
|
|
4238
|
+
topP?: number | undefined;
|
|
4239
|
+
topK?: number | undefined;
|
|
4240
|
+
presencePenalty?: number | undefined;
|
|
4241
|
+
frequencyPenalty?: number | undefined;
|
|
4242
|
+
stopSequences?: string[] | undefined;
|
|
4243
|
+
seed?: number | undefined;
|
|
4244
|
+
maxRetries?: number | undefined;
|
|
4245
|
+
} | undefined;
|
|
4246
|
+
}, {
|
|
4572
4247
|
system: import("convex/values").VString<string | undefined, "optional">;
|
|
4573
4248
|
prompt: import("convex/values").VString<string | undefined, "optional">;
|
|
4574
4249
|
messages: import("convex/values").VArray<({
|
|
@@ -4606,6 +4281,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4606
4281
|
} | {
|
|
4607
4282
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4608
4283
|
signature?: string | undefined;
|
|
4284
|
+
state?: "streaming" | "done" | undefined;
|
|
4609
4285
|
type: "reasoning";
|
|
4610
4286
|
text: string;
|
|
4611
4287
|
} | {
|
|
@@ -4614,6 +4290,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4614
4290
|
data: string;
|
|
4615
4291
|
} | {
|
|
4616
4292
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4293
|
+
providerExecuted?: boolean | undefined;
|
|
4617
4294
|
type: "tool-call";
|
|
4618
4295
|
toolCallId: string;
|
|
4619
4296
|
toolName: string;
|
|
@@ -4625,6 +4302,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4625
4302
|
content: {
|
|
4626
4303
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4627
4304
|
args?: any;
|
|
4305
|
+
providerExecuted?: boolean | undefined;
|
|
4306
|
+
isError?: boolean | undefined;
|
|
4628
4307
|
experimental_content?: ({
|
|
4629
4308
|
type: "text";
|
|
4630
4309
|
text: string;
|
|
@@ -4633,7 +4312,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4633
4312
|
type: "image";
|
|
4634
4313
|
data: string;
|
|
4635
4314
|
})[] | undefined;
|
|
4636
|
-
isError?: boolean | undefined;
|
|
4637
4315
|
type: "tool-result";
|
|
4638
4316
|
toolCallId: string;
|
|
4639
4317
|
toolName: string;
|
|
@@ -4678,6 +4356,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4678
4356
|
} | {
|
|
4679
4357
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4680
4358
|
signature?: string | undefined;
|
|
4359
|
+
state?: "streaming" | "done" | undefined;
|
|
4681
4360
|
type: "reasoning";
|
|
4682
4361
|
text: string;
|
|
4683
4362
|
} | {
|
|
@@ -4686,6 +4365,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4686
4365
|
data: string;
|
|
4687
4366
|
} | {
|
|
4688
4367
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4368
|
+
providerExecuted?: boolean | undefined;
|
|
4689
4369
|
type: "tool-call";
|
|
4690
4370
|
toolCallId: string;
|
|
4691
4371
|
toolName: string;
|
|
@@ -4697,6 +4377,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4697
4377
|
content: {
|
|
4698
4378
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4699
4379
|
args?: any;
|
|
4380
|
+
providerExecuted?: boolean | undefined;
|
|
4381
|
+
isError?: boolean | undefined;
|
|
4700
4382
|
experimental_content?: ({
|
|
4701
4383
|
type: "text";
|
|
4702
4384
|
text: string;
|
|
@@ -4705,7 +4387,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4705
4387
|
type: "image";
|
|
4706
4388
|
data: string;
|
|
4707
4389
|
})[] | undefined;
|
|
4708
|
-
isError?: boolean | undefined;
|
|
4709
4390
|
type: "tool-result";
|
|
4710
4391
|
toolCallId: string;
|
|
4711
4392
|
toolName: string;
|
|
@@ -4829,6 +4510,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4829
4510
|
} | {
|
|
4830
4511
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4831
4512
|
signature?: string | undefined;
|
|
4513
|
+
state?: "streaming" | "done" | undefined;
|
|
4832
4514
|
type: "reasoning";
|
|
4833
4515
|
text: string;
|
|
4834
4516
|
} | {
|
|
@@ -4837,6 +4519,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4837
4519
|
data: string;
|
|
4838
4520
|
} | {
|
|
4839
4521
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4522
|
+
providerExecuted?: boolean | undefined;
|
|
4840
4523
|
type: "tool-call";
|
|
4841
4524
|
toolCallId: string;
|
|
4842
4525
|
toolName: string;
|
|
@@ -4857,6 +4540,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4857
4540
|
} | {
|
|
4858
4541
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4859
4542
|
signature?: string | undefined;
|
|
4543
|
+
state?: "streaming" | "done" | undefined;
|
|
4860
4544
|
type: "reasoning";
|
|
4861
4545
|
text: string;
|
|
4862
4546
|
} | {
|
|
@@ -4865,6 +4549,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4865
4549
|
data: string;
|
|
4866
4550
|
} | {
|
|
4867
4551
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4552
|
+
providerExecuted?: boolean | undefined;
|
|
4868
4553
|
type: "tool-call";
|
|
4869
4554
|
toolCallId: string;
|
|
4870
4555
|
toolName: string;
|
|
@@ -4882,6 +4567,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4882
4567
|
} | {
|
|
4883
4568
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4884
4569
|
signature?: string | undefined;
|
|
4570
|
+
state?: "streaming" | "done" | undefined;
|
|
4885
4571
|
type: "reasoning";
|
|
4886
4572
|
text: string;
|
|
4887
4573
|
} | {
|
|
@@ -4890,6 +4576,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4890
4576
|
data: string;
|
|
4891
4577
|
} | {
|
|
4892
4578
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4579
|
+
providerExecuted?: boolean | undefined;
|
|
4893
4580
|
type: "tool-call";
|
|
4894
4581
|
toolCallId: string;
|
|
4895
4582
|
toolName: string;
|
|
@@ -4907,6 +4594,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4907
4594
|
} | {
|
|
4908
4595
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4909
4596
|
signature?: string | undefined;
|
|
4597
|
+
state?: "streaming" | "done" | undefined;
|
|
4910
4598
|
type: "reasoning";
|
|
4911
4599
|
text: string;
|
|
4912
4600
|
} | {
|
|
@@ -4915,6 +4603,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4915
4603
|
data: string;
|
|
4916
4604
|
} | {
|
|
4917
4605
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4606
|
+
providerExecuted?: boolean | undefined;
|
|
4918
4607
|
type: "tool-call";
|
|
4919
4608
|
toolCallId: string;
|
|
4920
4609
|
toolName: string;
|
|
@@ -4942,6 +4631,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4942
4631
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
4943
4632
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4944
4633
|
signature?: string | undefined;
|
|
4634
|
+
state?: "streaming" | "done" | undefined;
|
|
4945
4635
|
type: "reasoning";
|
|
4946
4636
|
text: string;
|
|
4947
4637
|
}, {
|
|
@@ -4949,7 +4639,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4949
4639
|
text: import("convex/values").VString<string, "required">;
|
|
4950
4640
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4951
4641
|
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>;
|
|
4952
|
-
|
|
4642
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
4643
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4953
4644
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4954
4645
|
type: "redacted-reasoning";
|
|
4955
4646
|
data: string;
|
|
@@ -4959,6 +4650,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4959
4650
|
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>;
|
|
4960
4651
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
4961
4652
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4653
|
+
providerExecuted?: boolean | undefined;
|
|
4962
4654
|
type: "tool-call";
|
|
4963
4655
|
toolCallId: string;
|
|
4964
4656
|
toolName: string;
|
|
@@ -4969,7 +4661,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4969
4661
|
toolName: import("convex/values").VString<string, "required">;
|
|
4970
4662
|
args: import("convex/values").VAny<any, "required", string>;
|
|
4971
4663
|
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>;
|
|
4972
|
-
|
|
4664
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4665
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
4973
4666
|
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>;
|
|
4974
4667
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4975
4668
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4977,6 +4670,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4977
4670
|
content: {
|
|
4978
4671
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4979
4672
|
args?: any;
|
|
4673
|
+
providerExecuted?: boolean | undefined;
|
|
4674
|
+
isError?: boolean | undefined;
|
|
4980
4675
|
experimental_content?: ({
|
|
4981
4676
|
type: "text";
|
|
4982
4677
|
text: string;
|
|
@@ -4985,7 +4680,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4985
4680
|
type: "image";
|
|
4986
4681
|
data: string;
|
|
4987
4682
|
})[] | undefined;
|
|
4988
|
-
isError?: boolean | undefined;
|
|
4989
4683
|
type: "tool-result";
|
|
4990
4684
|
toolCallId: string;
|
|
4991
4685
|
toolName: string;
|
|
@@ -4996,6 +4690,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
4996
4690
|
content: import("convex/values").VArray<{
|
|
4997
4691
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4998
4692
|
args?: any;
|
|
4693
|
+
providerExecuted?: boolean | undefined;
|
|
4694
|
+
isError?: boolean | undefined;
|
|
4999
4695
|
experimental_content?: ({
|
|
5000
4696
|
type: "text";
|
|
5001
4697
|
text: string;
|
|
@@ -5004,7 +4700,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
5004
4700
|
type: "image";
|
|
5005
4701
|
data: string;
|
|
5006
4702
|
})[] | undefined;
|
|
5007
|
-
isError?: boolean | undefined;
|
|
5008
4703
|
type: "tool-result";
|
|
5009
4704
|
toolCallId: string;
|
|
5010
4705
|
toolName: string;
|
|
@@ -5012,6 +4707,8 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
5012
4707
|
}[], import("convex/values").VObject<{
|
|
5013
4708
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5014
4709
|
args?: any;
|
|
4710
|
+
providerExecuted?: boolean | undefined;
|
|
4711
|
+
isError?: boolean | undefined;
|
|
5015
4712
|
experimental_content?: ({
|
|
5016
4713
|
type: "text";
|
|
5017
4714
|
text: string;
|
|
@@ -5020,7 +4717,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
5020
4717
|
type: "image";
|
|
5021
4718
|
data: string;
|
|
5022
4719
|
})[] | undefined;
|
|
5023
|
-
isError?: boolean | undefined;
|
|
5024
4720
|
type: "tool-result";
|
|
5025
4721
|
toolCallId: string;
|
|
5026
4722
|
toolName: string;
|
|
@@ -5030,6 +4726,9 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
5030
4726
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
5031
4727
|
toolName: import("convex/values").VString<string, "required">;
|
|
5032
4728
|
result: import("convex/values").VAny<any, "required", string>;
|
|
4729
|
+
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>;
|
|
4730
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4731
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5033
4732
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
5034
4733
|
experimental_content: import("convex/values").VArray<({
|
|
5035
4734
|
type: "text";
|
|
@@ -5060,9 +4759,7 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
5060
4759
|
data: import("convex/values").VString<string, "required">;
|
|
5061
4760
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
5062
4761
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
5063
|
-
|
|
5064
|
-
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>;
|
|
5065
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
4762
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
5066
4763
|
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>;
|
|
5067
4764
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
5068
4765
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -5074,15 +4771,6 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
5074
4771
|
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>;
|
|
5075
4772
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, "optional">;
|
|
5076
4773
|
promptMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
5077
|
-
maxTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5078
|
-
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5079
|
-
topP: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5080
|
-
topK: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5081
|
-
presencePenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5082
|
-
frequencyPenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5083
|
-
seed: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5084
|
-
maxRetries: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5085
|
-
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
5086
4774
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
5087
4775
|
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
5088
4776
|
contextOptions: import("convex/values").VObject<{
|
|
@@ -5132,7 +4820,30 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
5132
4820
|
saveMessages: import("convex/values").VUnion<"all" | "none" | "promptAndOutput" | undefined, [import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"promptAndOutput", "required">], "optional", never>;
|
|
5133
4821
|
}, "optional", "saveMessages">;
|
|
5134
4822
|
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>;
|
|
5135
|
-
|
|
4823
|
+
callSettings: import("convex/values").VObject<{
|
|
4824
|
+
headers?: Record<string, string> | undefined;
|
|
4825
|
+
maxOutputTokens?: number | undefined;
|
|
4826
|
+
temperature?: number | undefined;
|
|
4827
|
+
topP?: number | undefined;
|
|
4828
|
+
topK?: number | undefined;
|
|
4829
|
+
presencePenalty?: number | undefined;
|
|
4830
|
+
frequencyPenalty?: number | undefined;
|
|
4831
|
+
stopSequences?: string[] | undefined;
|
|
4832
|
+
seed?: number | undefined;
|
|
4833
|
+
maxRetries?: number | undefined;
|
|
4834
|
+
} | undefined, {
|
|
4835
|
+
maxOutputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4836
|
+
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4837
|
+
topP: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4838
|
+
topK: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4839
|
+
presencePenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4840
|
+
frequencyPenalty: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4841
|
+
stopSequences: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
4842
|
+
seed: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4843
|
+
maxRetries: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4844
|
+
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
4845
|
+
}, "optional", "headers" | `headers.${string}` | "maxOutputTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "stopSequences" | "seed" | "maxRetries">;
|
|
4846
|
+
}, "required", "userId" | "threadId" | "providerOptions" | `providerOptions.${string}` | "system" | "messages" | "prompt" | "promptMessageId" | "contextOptions" | "storageOptions" | "callSettings" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "contextOptions.searchOptions.vectorScoreThreshold" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "storageOptions.saveMessages" | "callSettings.headers" | `callSettings.headers.${string}` | "callSettings.maxOutputTokens" | "callSettings.temperature" | "callSettings.topP" | "callSettings.topK" | "callSettings.presencePenalty" | "callSettings.frequencyPenalty" | "callSettings.stopSequences" | "callSettings.seed" | "callSettings.maxRetries">;
|
|
5136
4847
|
export type SafeObjectArgs = Infer<typeof vSafeObjectArgs>;
|
|
5137
4848
|
export declare const vEmbeddingsWithMetadata: import("convex/values").VObject<{
|
|
5138
4849
|
model: string;
|
|
@@ -5157,173 +4868,6 @@ export declare function vPaginationResult<T extends Validator<Value, "required",
|
|
|
5157
4868
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
5158
4869
|
pageStatus: import("convex/values").VUnion<"SplitRecommended" | "SplitRequired" | null | undefined, [import("convex/values").VLiteral<"SplitRecommended", "required">, import("convex/values").VLiteral<"SplitRequired", "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
5159
4870
|
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus">;
|
|
5160
|
-
export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
5161
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5162
|
-
type: "tool-call";
|
|
5163
|
-
toolCallId: string;
|
|
5164
|
-
toolName: string;
|
|
5165
|
-
args: any;
|
|
5166
|
-
} | {
|
|
5167
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5168
|
-
args?: any;
|
|
5169
|
-
experimental_content?: ({
|
|
5170
|
-
type: "text";
|
|
5171
|
-
text: string;
|
|
5172
|
-
} | {
|
|
5173
|
-
mimeType?: string | undefined;
|
|
5174
|
-
type: "image";
|
|
5175
|
-
data: string;
|
|
5176
|
-
})[] | undefined;
|
|
5177
|
-
isError?: boolean | undefined;
|
|
5178
|
-
type: "tool-result";
|
|
5179
|
-
toolCallId: string;
|
|
5180
|
-
toolName: string;
|
|
5181
|
-
result: any;
|
|
5182
|
-
} | {
|
|
5183
|
-
type: "text-delta";
|
|
5184
|
-
textDelta: string;
|
|
5185
|
-
} | {
|
|
5186
|
-
type: "reasoning";
|
|
5187
|
-
textDelta: string;
|
|
5188
|
-
} | {
|
|
5189
|
-
type: "source";
|
|
5190
|
-
source: {
|
|
5191
|
-
title?: string | undefined;
|
|
5192
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5193
|
-
id: string;
|
|
5194
|
-
sourceType: "url";
|
|
5195
|
-
url: string;
|
|
5196
|
-
};
|
|
5197
|
-
} | {
|
|
5198
|
-
type: "tool-call-streaming-start";
|
|
5199
|
-
toolCallId: string;
|
|
5200
|
-
toolName: string;
|
|
5201
|
-
} | {
|
|
5202
|
-
type: "tool-call-delta";
|
|
5203
|
-
toolCallId: string;
|
|
5204
|
-
toolName: string;
|
|
5205
|
-
argsTextDelta: string;
|
|
5206
|
-
}, [import("convex/values").VObject<{
|
|
5207
|
-
type: "text-delta";
|
|
5208
|
-
textDelta: string;
|
|
5209
|
-
}, {
|
|
5210
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
5211
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
5212
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
5213
|
-
type: "reasoning";
|
|
5214
|
-
textDelta: string;
|
|
5215
|
-
}, {
|
|
5216
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
5217
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
5218
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
5219
|
-
type: "source";
|
|
5220
|
-
source: {
|
|
5221
|
-
title?: string | undefined;
|
|
5222
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5223
|
-
id: string;
|
|
5224
|
-
sourceType: "url";
|
|
5225
|
-
url: string;
|
|
5226
|
-
};
|
|
5227
|
-
}, {
|
|
5228
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
5229
|
-
source: import("convex/values").VObject<{
|
|
5230
|
-
title?: string | undefined;
|
|
5231
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5232
|
-
id: string;
|
|
5233
|
-
sourceType: "url";
|
|
5234
|
-
url: string;
|
|
5235
|
-
}, {
|
|
5236
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
5237
|
-
id: import("convex/values").VString<string, "required">;
|
|
5238
|
-
url: import("convex/values").VString<string, "required">;
|
|
5239
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5240
|
-
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>;
|
|
5241
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
5242
|
-
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
5243
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5244
|
-
type: "tool-call";
|
|
5245
|
-
toolCallId: string;
|
|
5246
|
-
toolName: string;
|
|
5247
|
-
args: any;
|
|
5248
|
-
}, {
|
|
5249
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
5250
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5251
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5252
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
5253
|
-
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>;
|
|
5254
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
5255
|
-
type: "tool-call-streaming-start";
|
|
5256
|
-
toolCallId: string;
|
|
5257
|
-
toolName: string;
|
|
5258
|
-
}, {
|
|
5259
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
5260
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5261
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5262
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
5263
|
-
type: "tool-call-delta";
|
|
5264
|
-
toolCallId: string;
|
|
5265
|
-
toolName: string;
|
|
5266
|
-
argsTextDelta: string;
|
|
5267
|
-
}, {
|
|
5268
|
-
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
5269
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5270
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5271
|
-
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
5272
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
5273
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5274
|
-
args?: any;
|
|
5275
|
-
experimental_content?: ({
|
|
5276
|
-
type: "text";
|
|
5277
|
-
text: string;
|
|
5278
|
-
} | {
|
|
5279
|
-
mimeType?: string | undefined;
|
|
5280
|
-
type: "image";
|
|
5281
|
-
data: string;
|
|
5282
|
-
})[] | undefined;
|
|
5283
|
-
isError?: boolean | undefined;
|
|
5284
|
-
type: "tool-result";
|
|
5285
|
-
toolCallId: string;
|
|
5286
|
-
toolName: string;
|
|
5287
|
-
result: any;
|
|
5288
|
-
}, {
|
|
5289
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
5290
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5291
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5292
|
-
result: import("convex/values").VAny<any, "required", string>;
|
|
5293
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
5294
|
-
experimental_content: import("convex/values").VArray<({
|
|
5295
|
-
type: "text";
|
|
5296
|
-
text: string;
|
|
5297
|
-
} | {
|
|
5298
|
-
mimeType?: string | undefined;
|
|
5299
|
-
type: "image";
|
|
5300
|
-
data: string;
|
|
5301
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
5302
|
-
type: "text";
|
|
5303
|
-
text: string;
|
|
5304
|
-
} | {
|
|
5305
|
-
mimeType?: string | undefined;
|
|
5306
|
-
type: "image";
|
|
5307
|
-
data: string;
|
|
5308
|
-
}, [import("convex/values").VObject<{
|
|
5309
|
-
type: "text";
|
|
5310
|
-
text: string;
|
|
5311
|
-
}, {
|
|
5312
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
5313
|
-
text: import("convex/values").VString<string, "required">;
|
|
5314
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
5315
|
-
mimeType?: string | undefined;
|
|
5316
|
-
type: "image";
|
|
5317
|
-
data: string;
|
|
5318
|
-
}, {
|
|
5319
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
5320
|
-
data: import("convex/values").VString<string, "required">;
|
|
5321
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
5322
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
5323
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5324
|
-
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>;
|
|
5325
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">;
|
|
5326
|
-
export type TextStreamPart = Infer<typeof vTextStreamPart>;
|
|
5327
4871
|
export declare const vStreamCursor: import("convex/values").VObject<{
|
|
5328
4872
|
streamId: string;
|
|
5329
4873
|
cursor: number;
|
|
@@ -5393,269 +4937,12 @@ export declare const vStreamDelta: import("convex/values").VObject<{
|
|
|
5393
4937
|
streamId: string;
|
|
5394
4938
|
start: number;
|
|
5395
4939
|
end: number;
|
|
5396
|
-
parts:
|
|
5397
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5398
|
-
type: "tool-call";
|
|
5399
|
-
toolCallId: string;
|
|
5400
|
-
toolName: string;
|
|
5401
|
-
args: any;
|
|
5402
|
-
} | {
|
|
5403
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5404
|
-
args?: any;
|
|
5405
|
-
experimental_content?: ({
|
|
5406
|
-
type: "text";
|
|
5407
|
-
text: string;
|
|
5408
|
-
} | {
|
|
5409
|
-
mimeType?: string | undefined;
|
|
5410
|
-
type: "image";
|
|
5411
|
-
data: string;
|
|
5412
|
-
})[] | undefined;
|
|
5413
|
-
isError?: boolean | undefined;
|
|
5414
|
-
type: "tool-result";
|
|
5415
|
-
toolCallId: string;
|
|
5416
|
-
toolName: string;
|
|
5417
|
-
result: any;
|
|
5418
|
-
} | {
|
|
5419
|
-
type: "text-delta";
|
|
5420
|
-
textDelta: string;
|
|
5421
|
-
} | {
|
|
5422
|
-
type: "reasoning";
|
|
5423
|
-
textDelta: string;
|
|
5424
|
-
} | {
|
|
5425
|
-
type: "source";
|
|
5426
|
-
source: {
|
|
5427
|
-
title?: string | undefined;
|
|
5428
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5429
|
-
id: string;
|
|
5430
|
-
sourceType: "url";
|
|
5431
|
-
url: string;
|
|
5432
|
-
};
|
|
5433
|
-
} | {
|
|
5434
|
-
type: "tool-call-streaming-start";
|
|
5435
|
-
toolCallId: string;
|
|
5436
|
-
toolName: string;
|
|
5437
|
-
} | {
|
|
5438
|
-
type: "tool-call-delta";
|
|
5439
|
-
toolCallId: string;
|
|
5440
|
-
toolName: string;
|
|
5441
|
-
argsTextDelta: string;
|
|
5442
|
-
})[];
|
|
4940
|
+
parts: any[];
|
|
5443
4941
|
}, {
|
|
5444
4942
|
streamId: import("convex/values").VString<string, "required">;
|
|
5445
4943
|
start: import("convex/values").VFloat64<number, "required">;
|
|
5446
4944
|
end: import("convex/values").VFloat64<number, "required">;
|
|
5447
|
-
parts: import("convex/values").VArray<(
|
|
5448
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5449
|
-
type: "tool-call";
|
|
5450
|
-
toolCallId: string;
|
|
5451
|
-
toolName: string;
|
|
5452
|
-
args: any;
|
|
5453
|
-
} | {
|
|
5454
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5455
|
-
args?: any;
|
|
5456
|
-
experimental_content?: ({
|
|
5457
|
-
type: "text";
|
|
5458
|
-
text: string;
|
|
5459
|
-
} | {
|
|
5460
|
-
mimeType?: string | undefined;
|
|
5461
|
-
type: "image";
|
|
5462
|
-
data: string;
|
|
5463
|
-
})[] | undefined;
|
|
5464
|
-
isError?: boolean | undefined;
|
|
5465
|
-
type: "tool-result";
|
|
5466
|
-
toolCallId: string;
|
|
5467
|
-
toolName: string;
|
|
5468
|
-
result: any;
|
|
5469
|
-
} | {
|
|
5470
|
-
type: "text-delta";
|
|
5471
|
-
textDelta: string;
|
|
5472
|
-
} | {
|
|
5473
|
-
type: "reasoning";
|
|
5474
|
-
textDelta: string;
|
|
5475
|
-
} | {
|
|
5476
|
-
type: "source";
|
|
5477
|
-
source: {
|
|
5478
|
-
title?: string | undefined;
|
|
5479
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5480
|
-
id: string;
|
|
5481
|
-
sourceType: "url";
|
|
5482
|
-
url: string;
|
|
5483
|
-
};
|
|
5484
|
-
} | {
|
|
5485
|
-
type: "tool-call-streaming-start";
|
|
5486
|
-
toolCallId: string;
|
|
5487
|
-
toolName: string;
|
|
5488
|
-
} | {
|
|
5489
|
-
type: "tool-call-delta";
|
|
5490
|
-
toolCallId: string;
|
|
5491
|
-
toolName: string;
|
|
5492
|
-
argsTextDelta: string;
|
|
5493
|
-
})[], import("convex/values").VUnion<{
|
|
5494
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5495
|
-
type: "tool-call";
|
|
5496
|
-
toolCallId: string;
|
|
5497
|
-
toolName: string;
|
|
5498
|
-
args: any;
|
|
5499
|
-
} | {
|
|
5500
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5501
|
-
args?: any;
|
|
5502
|
-
experimental_content?: ({
|
|
5503
|
-
type: "text";
|
|
5504
|
-
text: string;
|
|
5505
|
-
} | {
|
|
5506
|
-
mimeType?: string | undefined;
|
|
5507
|
-
type: "image";
|
|
5508
|
-
data: string;
|
|
5509
|
-
})[] | undefined;
|
|
5510
|
-
isError?: boolean | undefined;
|
|
5511
|
-
type: "tool-result";
|
|
5512
|
-
toolCallId: string;
|
|
5513
|
-
toolName: string;
|
|
5514
|
-
result: any;
|
|
5515
|
-
} | {
|
|
5516
|
-
type: "text-delta";
|
|
5517
|
-
textDelta: string;
|
|
5518
|
-
} | {
|
|
5519
|
-
type: "reasoning";
|
|
5520
|
-
textDelta: string;
|
|
5521
|
-
} | {
|
|
5522
|
-
type: "source";
|
|
5523
|
-
source: {
|
|
5524
|
-
title?: string | undefined;
|
|
5525
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5526
|
-
id: string;
|
|
5527
|
-
sourceType: "url";
|
|
5528
|
-
url: string;
|
|
5529
|
-
};
|
|
5530
|
-
} | {
|
|
5531
|
-
type: "tool-call-streaming-start";
|
|
5532
|
-
toolCallId: string;
|
|
5533
|
-
toolName: string;
|
|
5534
|
-
} | {
|
|
5535
|
-
type: "tool-call-delta";
|
|
5536
|
-
toolCallId: string;
|
|
5537
|
-
toolName: string;
|
|
5538
|
-
argsTextDelta: string;
|
|
5539
|
-
}, [import("convex/values").VObject<{
|
|
5540
|
-
type: "text-delta";
|
|
5541
|
-
textDelta: string;
|
|
5542
|
-
}, {
|
|
5543
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
5544
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
5545
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
5546
|
-
type: "reasoning";
|
|
5547
|
-
textDelta: string;
|
|
5548
|
-
}, {
|
|
5549
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
5550
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
5551
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
5552
|
-
type: "source";
|
|
5553
|
-
source: {
|
|
5554
|
-
title?: string | undefined;
|
|
5555
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5556
|
-
id: string;
|
|
5557
|
-
sourceType: "url";
|
|
5558
|
-
url: string;
|
|
5559
|
-
};
|
|
5560
|
-
}, {
|
|
5561
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
5562
|
-
source: import("convex/values").VObject<{
|
|
5563
|
-
title?: string | undefined;
|
|
5564
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5565
|
-
id: string;
|
|
5566
|
-
sourceType: "url";
|
|
5567
|
-
url: string;
|
|
5568
|
-
}, {
|
|
5569
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
5570
|
-
id: import("convex/values").VString<string, "required">;
|
|
5571
|
-
url: import("convex/values").VString<string, "required">;
|
|
5572
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5573
|
-
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>;
|
|
5574
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
5575
|
-
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
5576
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5577
|
-
type: "tool-call";
|
|
5578
|
-
toolCallId: string;
|
|
5579
|
-
toolName: string;
|
|
5580
|
-
args: any;
|
|
5581
|
-
}, {
|
|
5582
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
5583
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5584
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5585
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
5586
|
-
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>;
|
|
5587
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
5588
|
-
type: "tool-call-streaming-start";
|
|
5589
|
-
toolCallId: string;
|
|
5590
|
-
toolName: string;
|
|
5591
|
-
}, {
|
|
5592
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
5593
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5594
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5595
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
5596
|
-
type: "tool-call-delta";
|
|
5597
|
-
toolCallId: string;
|
|
5598
|
-
toolName: string;
|
|
5599
|
-
argsTextDelta: string;
|
|
5600
|
-
}, {
|
|
5601
|
-
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
5602
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5603
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5604
|
-
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
5605
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
5606
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5607
|
-
args?: any;
|
|
5608
|
-
experimental_content?: ({
|
|
5609
|
-
type: "text";
|
|
5610
|
-
text: string;
|
|
5611
|
-
} | {
|
|
5612
|
-
mimeType?: string | undefined;
|
|
5613
|
-
type: "image";
|
|
5614
|
-
data: string;
|
|
5615
|
-
})[] | undefined;
|
|
5616
|
-
isError?: boolean | undefined;
|
|
5617
|
-
type: "tool-result";
|
|
5618
|
-
toolCallId: string;
|
|
5619
|
-
toolName: string;
|
|
5620
|
-
result: any;
|
|
5621
|
-
}, {
|
|
5622
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
5623
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
5624
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
5625
|
-
result: import("convex/values").VAny<any, "required", string>;
|
|
5626
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
5627
|
-
experimental_content: import("convex/values").VArray<({
|
|
5628
|
-
type: "text";
|
|
5629
|
-
text: string;
|
|
5630
|
-
} | {
|
|
5631
|
-
mimeType?: string | undefined;
|
|
5632
|
-
type: "image";
|
|
5633
|
-
data: string;
|
|
5634
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
5635
|
-
type: "text";
|
|
5636
|
-
text: string;
|
|
5637
|
-
} | {
|
|
5638
|
-
mimeType?: string | undefined;
|
|
5639
|
-
type: "image";
|
|
5640
|
-
data: string;
|
|
5641
|
-
}, [import("convex/values").VObject<{
|
|
5642
|
-
type: "text";
|
|
5643
|
-
text: string;
|
|
5644
|
-
}, {
|
|
5645
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
5646
|
-
text: import("convex/values").VString<string, "required">;
|
|
5647
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
5648
|
-
mimeType?: string | undefined;
|
|
5649
|
-
type: "image";
|
|
5650
|
-
data: string;
|
|
5651
|
-
}, {
|
|
5652
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
5653
|
-
data: import("convex/values").VString<string, "required">;
|
|
5654
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
5655
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
5656
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5657
|
-
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>;
|
|
5658
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, "required">;
|
|
4945
|
+
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
5659
4946
|
}, "required", "streamId" | "start" | "end" | "parts">;
|
|
5660
4947
|
export type StreamDelta = Infer<typeof vStreamDelta>;
|
|
5661
4948
|
export {};
|