@convex-dev/agent 0.1.9-alpha.3 → 0.1.9-alpha.5
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/README.md +3 -3
- package/dist/commonjs/client/index.d.ts +72 -71
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +3 -1
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/streaming.d.ts.map +1 -1
- package/dist/commonjs/client/streaming.js +7 -1
- package/dist/commonjs/client/streaming.js.map +1 -1
- package/dist/commonjs/client/types.d.ts +0 -2
- package/dist/commonjs/client/types.d.ts.map +1 -1
- package/dist/commonjs/component/_generated/api.d.ts +12 -1
- package/dist/commonjs/component/messages.d.ts +210 -210
- package/dist/commonjs/component/schema.d.ts +699 -699
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +2 -2
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/streams.d.ts +17 -10
- package/dist/commonjs/component/streams.d.ts.map +1 -1
- package/dist/commonjs/component/streams.js +42 -12
- package/dist/commonjs/component/streams.js.map +1 -1
- package/dist/commonjs/component/threads.d.ts +18 -18
- package/dist/commonjs/component/vector/index.d.ts +3 -3
- package/dist/commonjs/component/vector/tables.d.ts +2 -2
- package/dist/commonjs/react/deltas.d.ts.map +1 -1
- package/dist/commonjs/react/deltas.js +2 -2
- package/dist/commonjs/react/deltas.js.map +1 -1
- package/dist/commonjs/react/index.d.ts +3 -1
- package/dist/commonjs/react/index.d.ts.map +1 -1
- package/dist/commonjs/react/index.js +14 -3
- package/dist/commonjs/react/index.js.map +1 -1
- package/dist/commonjs/validators.d.ts +167 -162
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +2 -0
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/commonjs.tsbuildinfo +1 -1
- package/dist/esm/client/index.d.ts +20 -19
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +3 -1
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/streaming.d.ts.map +1 -1
- package/dist/esm/client/streaming.js +7 -1
- package/dist/esm/client/streaming.js.map +1 -1
- package/dist/esm/client/types.d.ts +0 -2
- package/dist/esm/client/types.d.ts.map +1 -1
- package/dist/esm/component/_generated/api.d.ts +12 -1
- package/dist/esm/component/messages.d.ts +37 -37
- package/dist/esm/component/schema.d.ts +699 -699
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +2 -2
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/streams.d.ts +7 -0
- package/dist/esm/component/streams.d.ts.map +1 -1
- package/dist/esm/component/streams.js +42 -12
- package/dist/esm/component/streams.js.map +1 -1
- package/dist/esm/component/threads.d.ts +15 -15
- package/dist/esm/component/vector/index.d.ts +3 -3
- package/dist/esm/component/vector/tables.d.ts +2 -2
- package/dist/esm/react/deltas.d.ts.map +1 -1
- package/dist/esm/react/deltas.js +2 -2
- package/dist/esm/react/deltas.js.map +1 -1
- package/dist/esm/react/index.d.ts +3 -1
- package/dist/esm/react/index.d.ts.map +1 -1
- package/dist/esm/react/index.js +14 -3
- package/dist/esm/react/index.js.map +1 -1
- package/dist/esm/validators.d.ts +167 -162
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +2 -0
- package/dist/esm/validators.js.map +1 -1
- package/dist/esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +5 -2
- package/src/client/streaming.ts +7 -1
- package/src/client/types.ts +0 -2
- package/src/component/_generated/api.d.ts +12 -1
- package/src/component/schema.ts +2 -2
- package/src/component/streams.ts +76 -27
- package/src/react/deltas.ts +4 -2
- package/src/react/index.ts +15 -4
- package/src/validators.ts +6 -0
package/dist/esm/validators.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type ProviderMetadata = Infer<typeof providerMetadata>;
|
|
|
8
8
|
export declare const vThreadStatus: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
|
|
9
9
|
export declare const vMessageStatus: import("convex/values").VUnion<"pending" | "success" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
10
10
|
export type MessageStatus = Infer<typeof vMessageStatus>;
|
|
11
|
-
export declare const vRole: import("convex/values").VUnion<"
|
|
11
|
+
export declare const vRole: import("convex/values").VUnion<"system" | "user" | "assistant" | "tool", [import("convex/values").VLiteral<"system", "required">, import("convex/values").VLiteral<"user", "required">, import("convex/values").VLiteral<"assistant", "required">, import("convex/values").VLiteral<"tool", "required">], "required", never>;
|
|
12
12
|
export declare const vTextPart: VObject<{
|
|
13
13
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
14
14
|
type: "text";
|
|
@@ -17,7 +17,7 @@ export declare const vTextPart: VObject<{
|
|
|
17
17
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
18
18
|
text: import("convex/values").VString<string, "required">;
|
|
19
19
|
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>;
|
|
20
|
-
}, "required", "type" | "
|
|
20
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>;
|
|
21
21
|
export declare const vImagePart: VObject<{
|
|
22
22
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
23
23
|
mimeType?: string | undefined;
|
|
@@ -95,7 +95,7 @@ export declare const vUserContent: import("convex/values").VUnion<string | ({
|
|
|
95
95
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
96
96
|
text: import("convex/values").VString<string, "required">;
|
|
97
97
|
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>;
|
|
98
|
-
}, "required", "type" | "
|
|
98
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
99
99
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
100
100
|
mimeType?: string | undefined;
|
|
101
101
|
type: "image";
|
|
@@ -117,7 +117,7 @@ export declare const vUserContent: import("convex/values").VUnion<string | ({
|
|
|
117
117
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
118
118
|
mimeType: import("convex/values").VString<string, "required">;
|
|
119
119
|
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>;
|
|
120
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
120
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
121
121
|
export declare const vReasoningPart: VObject<{
|
|
122
122
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
123
123
|
signature?: string | undefined;
|
|
@@ -128,7 +128,7 @@ export declare const vReasoningPart: VObject<{
|
|
|
128
128
|
text: import("convex/values").VString<string, "required">;
|
|
129
129
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
130
130
|
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
|
-
}, "required", "type" | "
|
|
131
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">;
|
|
132
132
|
export declare const vRedactedReasoningPart: VObject<{
|
|
133
133
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
134
134
|
type: "redacted-reasoning";
|
|
@@ -263,7 +263,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
263
263
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
264
264
|
text: import("convex/values").VString<string, "required">;
|
|
265
265
|
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>;
|
|
266
|
-
}, "required", "type" | "
|
|
266
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
267
267
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
268
268
|
filename?: string | undefined;
|
|
269
269
|
type: "file";
|
|
@@ -285,7 +285,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
285
285
|
text: import("convex/values").VString<string, "required">;
|
|
286
286
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
287
287
|
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
|
-
}, "required", "type" | "
|
|
288
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
289
289
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
290
290
|
type: "redacted-reasoning";
|
|
291
291
|
data: string;
|
|
@@ -305,7 +305,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
|
|
|
305
305
|
toolName: import("convex/values").VString<string, "required">;
|
|
306
306
|
args: import("convex/values").VAny<any, "required", string>;
|
|
307
307
|
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
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
308
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
309
309
|
export declare const vToolContent: import("convex/values").VArray<{
|
|
310
310
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
311
311
|
args?: any;
|
|
@@ -485,7 +485,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
485
485
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
486
486
|
text: import("convex/values").VString<string, "required">;
|
|
487
487
|
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>;
|
|
488
|
-
}, "required", "type" | "
|
|
488
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
489
489
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
490
490
|
mimeType?: string | undefined;
|
|
491
491
|
type: "image";
|
|
@@ -507,7 +507,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
507
507
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
508
508
|
mimeType: import("convex/values").VString<string, "required">;
|
|
509
509
|
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>;
|
|
510
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
510
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>, import("convex/values").VUnion<string | ({
|
|
511
511
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
512
512
|
type: "text";
|
|
513
513
|
text: string;
|
|
@@ -590,7 +590,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
590
590
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
591
591
|
text: import("convex/values").VString<string, "required">;
|
|
592
592
|
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>;
|
|
593
|
-
}, "required", "type" | "
|
|
593
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
594
594
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
595
595
|
filename?: string | undefined;
|
|
596
596
|
type: "file";
|
|
@@ -612,7 +612,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
612
612
|
text: import("convex/values").VString<string, "required">;
|
|
613
613
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
614
614
|
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
|
-
}, "required", "type" | "
|
|
615
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
616
616
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
617
617
|
type: "redacted-reasoning";
|
|
618
618
|
data: string;
|
|
@@ -632,7 +632,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
|
|
|
632
632
|
toolName: import("convex/values").VString<string, "required">;
|
|
633
633
|
args: import("convex/values").VAny<any, "required", string>;
|
|
634
634
|
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
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
635
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>, import("convex/values").VArray<{
|
|
636
636
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
637
637
|
args?: any;
|
|
638
638
|
experimental_content?: ({
|
|
@@ -777,7 +777,7 @@ export declare const vUserMessage: VObject<{
|
|
|
777
777
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
778
778
|
text: import("convex/values").VString<string, "required">;
|
|
779
779
|
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>;
|
|
780
|
-
}, "required", "type" | "
|
|
780
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
781
781
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
782
782
|
mimeType?: string | undefined;
|
|
783
783
|
type: "image";
|
|
@@ -799,9 +799,9 @@ export declare const vUserMessage: VObject<{
|
|
|
799
799
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
800
800
|
mimeType: import("convex/values").VString<string, "required">;
|
|
801
801
|
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>;
|
|
802
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
802
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
803
803
|
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>;
|
|
804
|
-
}, "required", "providerOptions" |
|
|
804
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
805
805
|
export declare const vAssistantMessage: VObject<{
|
|
806
806
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
807
807
|
role: "assistant";
|
|
@@ -916,7 +916,7 @@ export declare const vAssistantMessage: VObject<{
|
|
|
916
916
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
917
917
|
text: import("convex/values").VString<string, "required">;
|
|
918
918
|
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>;
|
|
919
|
-
}, "required", "type" | "
|
|
919
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
920
920
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
921
921
|
filename?: string | undefined;
|
|
922
922
|
type: "file";
|
|
@@ -938,7 +938,7 @@ export declare const vAssistantMessage: VObject<{
|
|
|
938
938
|
text: import("convex/values").VString<string, "required">;
|
|
939
939
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
940
940
|
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
|
-
}, "required", "type" | "
|
|
941
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
942
942
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
943
943
|
type: "redacted-reasoning";
|
|
944
944
|
data: string;
|
|
@@ -958,9 +958,9 @@ export declare const vAssistantMessage: VObject<{
|
|
|
958
958
|
toolName: import("convex/values").VString<string, "required">;
|
|
959
959
|
args: import("convex/values").VAny<any, "required", string>;
|
|
960
960
|
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
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
961
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
962
962
|
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
|
-
}, "required", "providerOptions" |
|
|
963
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
964
964
|
export declare const vToolMessage: VObject<{
|
|
965
965
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
966
966
|
role: "tool";
|
|
@@ -1054,7 +1054,7 @@ export declare const vToolMessage: VObject<{
|
|
|
1054
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
1055
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
1056
1056
|
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
|
-
}, "required", "providerOptions" |
|
|
1057
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
1058
1058
|
export declare const vSystemMessage: VObject<{
|
|
1059
1059
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1060
1060
|
role: "system";
|
|
@@ -1063,7 +1063,7 @@ export declare const vSystemMessage: VObject<{
|
|
|
1063
1063
|
role: import("convex/values").VLiteral<"system", "required">;
|
|
1064
1064
|
content: import("convex/values").VString<string, "required">;
|
|
1065
1065
|
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>;
|
|
1066
|
-
}, "required", "providerOptions" |
|
|
1066
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
1067
1067
|
export declare const vMessage: import("convex/values").VUnion<{
|
|
1068
1068
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1069
1069
|
role: "user";
|
|
@@ -1210,7 +1210,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1210
1210
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
1211
1211
|
text: import("convex/values").VString<string, "required">;
|
|
1212
1212
|
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>;
|
|
1213
|
-
}, "required", "type" | "
|
|
1213
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
1214
1214
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1215
1215
|
mimeType?: string | undefined;
|
|
1216
1216
|
type: "image";
|
|
@@ -1232,9 +1232,9 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1232
1232
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1233
1233
|
mimeType: import("convex/values").VString<string, "required">;
|
|
1234
1234
|
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>;
|
|
1235
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
1235
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
1236
1236
|
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>;
|
|
1237
|
-
}, "required", "providerOptions" |
|
|
1237
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
1238
1238
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1239
1239
|
role: "assistant";
|
|
1240
1240
|
content: string | ({
|
|
@@ -1348,7 +1348,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1348
1348
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
1349
1349
|
text: import("convex/values").VString<string, "required">;
|
|
1350
1350
|
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>;
|
|
1351
|
-
}, "required", "type" | "
|
|
1351
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
1352
1352
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1353
1353
|
filename?: string | undefined;
|
|
1354
1354
|
type: "file";
|
|
@@ -1370,7 +1370,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1370
1370
|
text: import("convex/values").VString<string, "required">;
|
|
1371
1371
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1372
1372
|
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
|
-
}, "required", "type" | "
|
|
1373
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
1374
1374
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1375
1375
|
type: "redacted-reasoning";
|
|
1376
1376
|
data: string;
|
|
@@ -1390,9 +1390,9 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1390
1390
|
toolName: import("convex/values").VString<string, "required">;
|
|
1391
1391
|
args: import("convex/values").VAny<any, "required", string>;
|
|
1392
1392
|
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
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
1393
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
1394
1394
|
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
|
-
}, "required", "providerOptions" |
|
|
1395
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
1396
1396
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1397
1397
|
role: "tool";
|
|
1398
1398
|
content: {
|
|
@@ -1485,7 +1485,7 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1485
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
1486
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
1487
1487
|
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
|
-
}, "required", "providerOptions" |
|
|
1488
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
1489
1489
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1490
1490
|
role: "system";
|
|
1491
1491
|
content: string;
|
|
@@ -1493,11 +1493,11 @@ export declare const vMessage: import("convex/values").VUnion<{
|
|
|
1493
1493
|
role: import("convex/values").VLiteral<"system", "required">;
|
|
1494
1494
|
content: import("convex/values").VString<string, "required">;
|
|
1495
1495
|
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
|
-
}, "required", "providerOptions" |
|
|
1496
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">], "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
1497
1497
|
export type Message = Infer<typeof vMessage>;
|
|
1498
1498
|
export declare const vSource: VObject<{
|
|
1499
|
-
title?: string | undefined;
|
|
1500
1499
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1500
|
+
title?: string | undefined;
|
|
1501
1501
|
id: string;
|
|
1502
1502
|
sourceType: "url";
|
|
1503
1503
|
url: string;
|
|
@@ -1507,7 +1507,7 @@ export declare const vSource: VObject<{
|
|
|
1507
1507
|
url: import("convex/values").VString<string, "required">;
|
|
1508
1508
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1509
1509
|
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" | "
|
|
1510
|
+
}, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">;
|
|
1511
1511
|
export declare const vRequest: VObject<{
|
|
1512
1512
|
url?: string | undefined;
|
|
1513
1513
|
body?: any;
|
|
@@ -1523,6 +1523,8 @@ export declare const vResponse: VObject<{
|
|
|
1523
1523
|
body?: any;
|
|
1524
1524
|
headers?: Record<string, string> | undefined;
|
|
1525
1525
|
id: string;
|
|
1526
|
+
timestamp: number;
|
|
1527
|
+
modelId: string;
|
|
1526
1528
|
messages: {
|
|
1527
1529
|
id?: string | undefined;
|
|
1528
1530
|
fileId?: import("convex/values").GenericId<"files"> | undefined;
|
|
@@ -1600,8 +1602,6 @@ export declare const vResponse: VObject<{
|
|
|
1600
1602
|
content: string;
|
|
1601
1603
|
};
|
|
1602
1604
|
}[];
|
|
1603
|
-
timestamp: number;
|
|
1604
|
-
modelId: string;
|
|
1605
1605
|
}, {
|
|
1606
1606
|
id: import("convex/values").VString<string, "required">;
|
|
1607
1607
|
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1907,7 +1907,7 @@ export declare const vResponse: VObject<{
|
|
|
1907
1907
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
1908
1908
|
text: import("convex/values").VString<string, "required">;
|
|
1909
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" | "
|
|
1910
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
1911
1911
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1912
1912
|
mimeType?: string | undefined;
|
|
1913
1913
|
type: "image";
|
|
@@ -1929,9 +1929,9 @@ export declare const vResponse: VObject<{
|
|
|
1929
1929
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1930
1930
|
mimeType: import("convex/values").VString<string, "required">;
|
|
1931
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" | "
|
|
1932
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
1933
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" |
|
|
1934
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
1935
1935
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1936
1936
|
role: "assistant";
|
|
1937
1937
|
content: string | ({
|
|
@@ -2045,7 +2045,7 @@ export declare const vResponse: VObject<{
|
|
|
2045
2045
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
2046
2046
|
text: import("convex/values").VString<string, "required">;
|
|
2047
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" | "
|
|
2048
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
2049
2049
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2050
2050
|
filename?: string | undefined;
|
|
2051
2051
|
type: "file";
|
|
@@ -2067,7 +2067,7 @@ export declare const vResponse: VObject<{
|
|
|
2067
2067
|
text: import("convex/values").VString<string, "required">;
|
|
2068
2068
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
2069
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" | "
|
|
2070
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
2071
2071
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2072
2072
|
type: "redacted-reasoning";
|
|
2073
2073
|
data: string;
|
|
@@ -2087,9 +2087,9 @@ export declare const vResponse: VObject<{
|
|
|
2087
2087
|
toolName: import("convex/values").VString<string, "required">;
|
|
2088
2088
|
args: import("convex/values").VAny<any, "required", string>;
|
|
2089
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" | "
|
|
2090
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
2091
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" |
|
|
2092
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
2093
2093
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2094
2094
|
role: "tool";
|
|
2095
2095
|
content: {
|
|
@@ -2182,7 +2182,7 @@ export declare const vResponse: VObject<{
|
|
|
2182
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
2183
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
2184
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" |
|
|
2185
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
2186
2186
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2187
2187
|
role: "system";
|
|
2188
2188
|
content: string;
|
|
@@ -2190,11 +2190,11 @@ export declare const vResponse: VObject<{
|
|
|
2190
2190
|
role: import("convex/values").VLiteral<"system", "required">;
|
|
2191
2191
|
content: import("convex/values").VString<string, "required">;
|
|
2192
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" |
|
|
2193
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">], "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
2194
2194
|
fileId: import("convex/values").VId<import("convex/values").GenericId<"files"> | undefined, "optional">;
|
|
2195
|
-
}, "required", "id" | "message" | "
|
|
2195
|
+
}, "required", "id" | "message" | "fileId" | "message.providerOptions" | `message.providerOptions.${string}` | "message.role" | "message.content">, "required">;
|
|
2196
2196
|
body: import("convex/values").VAny<any, "optional", string>;
|
|
2197
|
-
}, "required", "id" | "
|
|
2197
|
+
}, "required", "id" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId" | "messages">;
|
|
2198
2198
|
export declare const vResponseWithoutMessages: VObject<{
|
|
2199
2199
|
body?: any;
|
|
2200
2200
|
headers?: Record<string, string> | undefined;
|
|
@@ -2208,7 +2208,7 @@ export declare const vResponseWithoutMessages: VObject<{
|
|
|
2208
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
2209
|
body: import("convex/values").VAny<any, "optional", string>;
|
|
2210
2210
|
}, "required", "id" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId">;
|
|
2211
|
-
export declare const vFinishReason: import("convex/values").VUnion<"length" | "
|
|
2211
|
+
export declare const vFinishReason: import("convex/values").VUnion<"length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "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
2212
|
export declare const vUsage: VObject<{
|
|
2213
2213
|
promptTokens: number;
|
|
2214
2214
|
completionTokens: number;
|
|
@@ -2252,24 +2252,20 @@ export declare const vLanguageModelV1CallWarning: import("convex/values").VUnion
|
|
|
2252
2252
|
}, {
|
|
2253
2253
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
2254
2254
|
message: import("convex/values").VString<string, "required">;
|
|
2255
|
-
}, "required", "type" | "message">], "required", "type" | "
|
|
2255
|
+
}, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>;
|
|
2256
2256
|
export declare const vMessageWithMetadataInternal: VObject<{
|
|
2257
2257
|
id?: string | undefined;
|
|
2258
|
-
|
|
2258
|
+
text?: string | undefined;
|
|
2259
|
+
reasoning?: string | undefined;
|
|
2259
2260
|
error?: string | undefined;
|
|
2261
|
+
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
2262
|
+
finishReason?: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined;
|
|
2260
2263
|
model?: string | undefined;
|
|
2261
2264
|
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
2265
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2270
2266
|
sources?: {
|
|
2271
|
-
title?: string | undefined;
|
|
2272
2267
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2268
|
+
title?: string | undefined;
|
|
2273
2269
|
id: string;
|
|
2274
2270
|
sourceType: "url";
|
|
2275
2271
|
url: string;
|
|
@@ -2282,6 +2278,11 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2282
2278
|
type: "redacted";
|
|
2283
2279
|
data: string;
|
|
2284
2280
|
})[] | undefined;
|
|
2281
|
+
usage?: {
|
|
2282
|
+
promptTokens: number;
|
|
2283
|
+
completionTokens: number;
|
|
2284
|
+
totalTokens: number;
|
|
2285
|
+
} | undefined;
|
|
2285
2286
|
warnings?: ({
|
|
2286
2287
|
details?: string | undefined;
|
|
2287
2288
|
type: "unsupported-setting";
|
|
@@ -2294,7 +2295,6 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2294
2295
|
type: "other";
|
|
2295
2296
|
message: string;
|
|
2296
2297
|
})[] | undefined;
|
|
2297
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2298
2298
|
message: {
|
|
2299
2299
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2300
2300
|
role: "user";
|
|
@@ -2516,7 +2516,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2516
2516
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
2517
2517
|
text: import("convex/values").VString<string, "required">;
|
|
2518
2518
|
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>;
|
|
2519
|
-
}, "required", "type" | "
|
|
2519
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
2520
2520
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2521
2521
|
mimeType?: string | undefined;
|
|
2522
2522
|
type: "image";
|
|
@@ -2538,9 +2538,9 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2538
2538
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
2539
2539
|
mimeType: import("convex/values").VString<string, "required">;
|
|
2540
2540
|
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>;
|
|
2541
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
2541
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
2542
2542
|
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>;
|
|
2543
|
-
}, "required", "providerOptions" |
|
|
2543
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
2544
2544
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2545
2545
|
role: "assistant";
|
|
2546
2546
|
content: string | ({
|
|
@@ -2654,7 +2654,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2654
2654
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
2655
2655
|
text: import("convex/values").VString<string, "required">;
|
|
2656
2656
|
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>;
|
|
2657
|
-
}, "required", "type" | "
|
|
2657
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
2658
2658
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2659
2659
|
filename?: string | undefined;
|
|
2660
2660
|
type: "file";
|
|
@@ -2676,7 +2676,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2676
2676
|
text: import("convex/values").VString<string, "required">;
|
|
2677
2677
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
2678
2678
|
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
|
-
}, "required", "type" | "
|
|
2679
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
2680
2680
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2681
2681
|
type: "redacted-reasoning";
|
|
2682
2682
|
data: string;
|
|
@@ -2696,9 +2696,9 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2696
2696
|
toolName: import("convex/values").VString<string, "required">;
|
|
2697
2697
|
args: import("convex/values").VAny<any, "required", string>;
|
|
2698
2698
|
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
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
2699
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
2700
2700
|
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
|
-
}, "required", "providerOptions" |
|
|
2701
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
2702
2702
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2703
2703
|
role: "tool";
|
|
2704
2704
|
content: {
|
|
@@ -2791,7 +2791,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2791
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
2792
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
2793
2793
|
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
|
-
}, "required", "providerOptions" |
|
|
2794
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
2795
2795
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2796
2796
|
role: "system";
|
|
2797
2797
|
content: string;
|
|
@@ -2799,22 +2799,22 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2799
2799
|
role: import("convex/values").VLiteral<"system", "required">;
|
|
2800
2800
|
content: import("convex/values").VString<string, "required">;
|
|
2801
2801
|
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>;
|
|
2802
|
-
}, "required", "providerOptions" |
|
|
2802
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">], "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
2803
2803
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
2804
2804
|
fileIds: import("convex/values").VArray<import("convex/values").GenericId<"files">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"files">, "required">, "optional">;
|
|
2805
|
-
finishReason: import("convex/values").VUnion<"length" | "
|
|
2805
|
+
finishReason: import("convex/values").VUnion<"length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "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
2806
|
model: import("convex/values").VString<string | undefined, "optional">;
|
|
2807
2807
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
2808
2808
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2809
2809
|
sources: import("convex/values").VArray<{
|
|
2810
|
-
title?: string | undefined;
|
|
2811
2810
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2811
|
+
title?: string | undefined;
|
|
2812
2812
|
id: string;
|
|
2813
2813
|
sourceType: "url";
|
|
2814
2814
|
url: string;
|
|
2815
2815
|
}[] | undefined, VObject<{
|
|
2816
|
-
title?: string | undefined;
|
|
2817
2816
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2817
|
+
title?: string | undefined;
|
|
2818
2818
|
id: string;
|
|
2819
2819
|
sourceType: "url";
|
|
2820
2820
|
url: string;
|
|
@@ -2824,7 +2824,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2824
2824
|
url: import("convex/values").VString<string, "required">;
|
|
2825
2825
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2826
2826
|
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" | "
|
|
2827
|
+
}, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "optional">;
|
|
2828
2828
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
2829
2829
|
reasoningDetails: import("convex/values").VArray<({
|
|
2830
2830
|
signature?: string | undefined;
|
|
@@ -2908,26 +2908,22 @@ export declare const vMessageWithMetadataInternal: VObject<{
|
|
|
2908
2908
|
}, {
|
|
2909
2909
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
2910
2910
|
message: import("convex/values").VString<string, "required">;
|
|
2911
|
-
}, "required", "type" | "message">], "required", "type" | "
|
|
2911
|
+
}, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
2912
2912
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
2913
|
-
}, "required", "id" | "
|
|
2913
|
+
}, "required", "id" | "text" | "reasoning" | "message" | "message.providerOptions" | `message.providerOptions.${string}` | "message.role" | "message.content" | "error" | "fileIds" | "finishReason" | "model" | "provider" | "providerMetadata" | "sources" | "reasoningDetails" | "usage" | "warnings" | `providerMetadata.${string}` | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens">;
|
|
2914
2914
|
export declare const vMessageWithMetadata: VObject<{
|
|
2915
2915
|
id?: string | undefined;
|
|
2916
|
-
|
|
2916
|
+
text?: string | undefined;
|
|
2917
|
+
reasoning?: string | undefined;
|
|
2917
2918
|
error?: string | undefined;
|
|
2919
|
+
fileIds?: string[] | undefined;
|
|
2920
|
+
finishReason?: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined;
|
|
2918
2921
|
model?: string | undefined;
|
|
2919
2922
|
provider?: string | undefined;
|
|
2920
|
-
text?: string | undefined;
|
|
2921
|
-
reasoning?: string | undefined;
|
|
2922
|
-
usage?: {
|
|
2923
|
-
promptTokens: number;
|
|
2924
|
-
completionTokens: number;
|
|
2925
|
-
totalTokens: number;
|
|
2926
|
-
} | undefined;
|
|
2927
2923
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2928
2924
|
sources?: {
|
|
2929
|
-
title?: string | undefined;
|
|
2930
2925
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2926
|
+
title?: string | undefined;
|
|
2931
2927
|
id: string;
|
|
2932
2928
|
sourceType: "url";
|
|
2933
2929
|
url: string;
|
|
@@ -2940,6 +2936,11 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
2940
2936
|
type: "redacted";
|
|
2941
2937
|
data: string;
|
|
2942
2938
|
})[] | undefined;
|
|
2939
|
+
usage?: {
|
|
2940
|
+
promptTokens: number;
|
|
2941
|
+
completionTokens: number;
|
|
2942
|
+
totalTokens: number;
|
|
2943
|
+
} | undefined;
|
|
2943
2944
|
warnings?: ({
|
|
2944
2945
|
details?: string | undefined;
|
|
2945
2946
|
type: "unsupported-setting";
|
|
@@ -2952,7 +2953,6 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
2952
2953
|
type: "other";
|
|
2953
2954
|
message: string;
|
|
2954
2955
|
})[] | undefined;
|
|
2955
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2956
2956
|
message: {
|
|
2957
2957
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2958
2958
|
role: "user";
|
|
@@ -3175,7 +3175,7 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3175
3175
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
3176
3176
|
text: import("convex/values").VString<string, "required">;
|
|
3177
3177
|
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>;
|
|
3178
|
-
}, "required", "type" | "
|
|
3178
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
3179
3179
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3180
3180
|
mimeType?: string | undefined;
|
|
3181
3181
|
type: "image";
|
|
@@ -3197,9 +3197,9 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3197
3197
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
3198
3198
|
mimeType: import("convex/values").VString<string, "required">;
|
|
3199
3199
|
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>;
|
|
3200
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
3200
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
3201
3201
|
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>;
|
|
3202
|
-
}, "required", "providerOptions" |
|
|
3202
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
3203
3203
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3204
3204
|
role: "assistant";
|
|
3205
3205
|
content: string | ({
|
|
@@ -3313,7 +3313,7 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3313
3313
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
3314
3314
|
text: import("convex/values").VString<string, "required">;
|
|
3315
3315
|
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>;
|
|
3316
|
-
}, "required", "type" | "
|
|
3316
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
3317
3317
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3318
3318
|
filename?: string | undefined;
|
|
3319
3319
|
type: "file";
|
|
@@ -3335,7 +3335,7 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3335
3335
|
text: import("convex/values").VString<string, "required">;
|
|
3336
3336
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3337
3337
|
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
|
-
}, "required", "type" | "
|
|
3338
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
3339
3339
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3340
3340
|
type: "redacted-reasoning";
|
|
3341
3341
|
data: string;
|
|
@@ -3355,9 +3355,9 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3355
3355
|
toolName: import("convex/values").VString<string, "required">;
|
|
3356
3356
|
args: import("convex/values").VAny<any, "required", string>;
|
|
3357
3357
|
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
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
3358
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
3359
3359
|
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
|
-
}, "required", "providerOptions" |
|
|
3360
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
3361
3361
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3362
3362
|
role: "tool";
|
|
3363
3363
|
content: {
|
|
@@ -3450,7 +3450,7 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3450
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
3451
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
3452
3452
|
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
|
-
}, "required", "providerOptions" |
|
|
3453
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
3454
3454
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3455
3455
|
role: "system";
|
|
3456
3456
|
content: string;
|
|
@@ -3458,21 +3458,21 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3458
3458
|
role: import("convex/values").VLiteral<"system", "required">;
|
|
3459
3459
|
content: import("convex/values").VString<string, "required">;
|
|
3460
3460
|
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
|
-
}, "required", "providerOptions" |
|
|
3461
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">], "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">;
|
|
3462
3462
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
3463
|
-
finishReason: import("convex/values").VUnion<"length" | "
|
|
3463
|
+
finishReason: import("convex/values").VUnion<"length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "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
3464
|
model: import("convex/values").VString<string | undefined, "optional">;
|
|
3465
3465
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
3466
3466
|
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
3467
|
sources: import("convex/values").VArray<{
|
|
3468
|
-
title?: string | undefined;
|
|
3469
3468
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3469
|
+
title?: string | undefined;
|
|
3470
3470
|
id: string;
|
|
3471
3471
|
sourceType: "url";
|
|
3472
3472
|
url: string;
|
|
3473
3473
|
}[] | undefined, VObject<{
|
|
3474
|
-
title?: string | undefined;
|
|
3475
3474
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3475
|
+
title?: string | undefined;
|
|
3476
3476
|
id: string;
|
|
3477
3477
|
sourceType: "url";
|
|
3478
3478
|
url: string;
|
|
@@ -3482,7 +3482,7 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3482
3482
|
url: import("convex/values").VString<string, "required">;
|
|
3483
3483
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3484
3484
|
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" | "
|
|
3485
|
+
}, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "optional">;
|
|
3486
3486
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
3487
3487
|
reasoningDetails: import("convex/values").VArray<({
|
|
3488
3488
|
signature?: string | undefined;
|
|
@@ -3566,9 +3566,9 @@ export declare const vMessageWithMetadata: VObject<{
|
|
|
3566
3566
|
}, {
|
|
3567
3567
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
3568
3568
|
message: import("convex/values").VString<string, "required">;
|
|
3569
|
-
}, "required", "type" | "message">], "required", "type" | "
|
|
3569
|
+
}, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3570
3570
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
3571
|
-
}, "required", "id" | "
|
|
3571
|
+
}, "required", "id" | "text" | "reasoning" | "message" | "message.providerOptions" | `message.providerOptions.${string}` | "message.role" | "message.content" | "error" | "fileIds" | "finishReason" | "model" | "provider" | "providerMetadata" | "sources" | "reasoningDetails" | "usage" | "warnings" | `providerMetadata.${string}` | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens">;
|
|
3572
3572
|
export type MessageWithMetadata = Infer<typeof vMessageWithMetadata>;
|
|
3573
3573
|
export declare const vMessageEmbeddings: VObject<{
|
|
3574
3574
|
model: string;
|
|
@@ -3581,8 +3581,8 @@ export declare const vMessageEmbeddings: VObject<{
|
|
|
3581
3581
|
}, "required", "model" | "dimension" | "vectors" | `dimension.${any}`>;
|
|
3582
3582
|
export declare const vObjectResult: VObject<{
|
|
3583
3583
|
error?: string | undefined;
|
|
3584
|
-
usage?: any;
|
|
3585
3584
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3585
|
+
usage?: any;
|
|
3586
3586
|
warnings?: ({
|
|
3587
3587
|
details?: string | undefined;
|
|
3588
3588
|
type: "unsupported-setting";
|
|
@@ -3596,7 +3596,7 @@ export declare const vObjectResult: VObject<{
|
|
|
3596
3596
|
message: string;
|
|
3597
3597
|
})[] | undefined;
|
|
3598
3598
|
object: any;
|
|
3599
|
-
finishReason: "length" | "
|
|
3599
|
+
finishReason: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
3600
3600
|
request: {
|
|
3601
3601
|
url?: string | undefined;
|
|
3602
3602
|
body?: any;
|
|
@@ -3635,7 +3635,7 @@ export declare const vObjectResult: VObject<{
|
|
|
3635
3635
|
headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
|
|
3636
3636
|
body: import("convex/values").VAny<any, "optional", string>;
|
|
3637
3637
|
}, "required", "id" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId">;
|
|
3638
|
-
finishReason: import("convex/values").VUnion<"length" | "
|
|
3638
|
+
finishReason: import("convex/values").VUnion<"length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "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>;
|
|
3639
3639
|
usage: import("convex/values").VAny<any, "optional", string>;
|
|
3640
3640
|
object: import("convex/values").VAny<any, "required", string>;
|
|
3641
3641
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -3683,9 +3683,9 @@ export declare const vObjectResult: VObject<{
|
|
|
3683
3683
|
}, {
|
|
3684
3684
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
3685
3685
|
message: import("convex/values").VString<string, "required">;
|
|
3686
|
-
}, "required", "type" | "message">], "required", "type" | "
|
|
3686
|
+
}, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3687
3687
|
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>;
|
|
3688
|
-
}, "required", "object" | "error" | "
|
|
3688
|
+
}, "required", "object" | "error" | "finishReason" | "providerMetadata" | "usage" | "warnings" | `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">;
|
|
3689
3689
|
export type ObjectResult = Infer<typeof vObjectResult>;
|
|
3690
3690
|
export declare const vSearchOptions: VObject<{
|
|
3691
3691
|
text?: string | undefined;
|
|
@@ -3788,10 +3788,9 @@ export declare const vCallSettingsFields: {
|
|
|
3788
3788
|
};
|
|
3789
3789
|
export type CallSettings = ObjectType<typeof vCallSettingsFields>;
|
|
3790
3790
|
export declare const vTextArgs: VObject<{
|
|
3791
|
-
userId?: string | undefined;
|
|
3792
|
-
threadId?: string | undefined;
|
|
3793
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3794
3791
|
system?: string | undefined;
|
|
3792
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3793
|
+
headers?: Record<string, string> | undefined;
|
|
3795
3794
|
messages?: ({
|
|
3796
3795
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3797
3796
|
role: "user";
|
|
@@ -3865,15 +3864,6 @@ export declare const vTextArgs: VObject<{
|
|
|
3865
3864
|
role: "system";
|
|
3866
3865
|
content: string;
|
|
3867
3866
|
})[] | undefined;
|
|
3868
|
-
headers?: Record<string, string> | undefined;
|
|
3869
|
-
maxTokens?: number | undefined;
|
|
3870
|
-
temperature?: number | undefined;
|
|
3871
|
-
topP?: number | undefined;
|
|
3872
|
-
topK?: number | undefined;
|
|
3873
|
-
presencePenalty?: number | undefined;
|
|
3874
|
-
frequencyPenalty?: number | undefined;
|
|
3875
|
-
seed?: number | undefined;
|
|
3876
|
-
maxRetries?: number | undefined;
|
|
3877
3867
|
stream?: boolean | undefined;
|
|
3878
3868
|
toolChoice?: "required" | "none" | "auto" | {
|
|
3879
3869
|
type: "tool";
|
|
@@ -3883,6 +3873,16 @@ export declare const vTextArgs: VObject<{
|
|
|
3883
3873
|
experimental_continueSteps?: boolean | undefined;
|
|
3884
3874
|
prompt?: string | undefined;
|
|
3885
3875
|
promptMessageId?: string | undefined;
|
|
3876
|
+
maxTokens?: number | undefined;
|
|
3877
|
+
temperature?: number | undefined;
|
|
3878
|
+
topP?: number | undefined;
|
|
3879
|
+
topK?: number | undefined;
|
|
3880
|
+
presencePenalty?: number | undefined;
|
|
3881
|
+
frequencyPenalty?: number | undefined;
|
|
3882
|
+
seed?: number | undefined;
|
|
3883
|
+
maxRetries?: number | undefined;
|
|
3884
|
+
userId?: string | undefined;
|
|
3885
|
+
threadId?: string | undefined;
|
|
3886
3886
|
contextOptions?: {
|
|
3887
3887
|
excludeToolMessages?: boolean | undefined;
|
|
3888
3888
|
recentMessages?: number | undefined;
|
|
@@ -4146,7 +4146,7 @@ export declare const vTextArgs: VObject<{
|
|
|
4146
4146
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
4147
4147
|
text: import("convex/values").VString<string, "required">;
|
|
4148
4148
|
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>;
|
|
4149
|
-
}, "required", "type" | "
|
|
4149
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
4150
4150
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4151
4151
|
mimeType?: string | undefined;
|
|
4152
4152
|
type: "image";
|
|
@@ -4168,9 +4168,9 @@ export declare const vTextArgs: VObject<{
|
|
|
4168
4168
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
4169
4169
|
mimeType: import("convex/values").VString<string, "required">;
|
|
4170
4170
|
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>;
|
|
4171
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
4171
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
4172
4172
|
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>;
|
|
4173
|
-
}, "required", "providerOptions" |
|
|
4173
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
4174
4174
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4175
4175
|
role: "assistant";
|
|
4176
4176
|
content: string | ({
|
|
@@ -4284,7 +4284,7 @@ export declare const vTextArgs: VObject<{
|
|
|
4284
4284
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
4285
4285
|
text: import("convex/values").VString<string, "required">;
|
|
4286
4286
|
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
|
-
}, "required", "type" | "
|
|
4287
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
4288
4288
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4289
4289
|
filename?: string | undefined;
|
|
4290
4290
|
type: "file";
|
|
@@ -4306,7 +4306,7 @@ export declare const vTextArgs: VObject<{
|
|
|
4306
4306
|
text: import("convex/values").VString<string, "required">;
|
|
4307
4307
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4308
4308
|
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>;
|
|
4309
|
-
}, "required", "type" | "
|
|
4309
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
4310
4310
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4311
4311
|
type: "redacted-reasoning";
|
|
4312
4312
|
data: string;
|
|
@@ -4326,9 +4326,9 @@ export declare const vTextArgs: VObject<{
|
|
|
4326
4326
|
toolName: import("convex/values").VString<string, "required">;
|
|
4327
4327
|
args: import("convex/values").VAny<any, "required", string>;
|
|
4328
4328
|
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>;
|
|
4329
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
4329
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
4330
4330
|
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>;
|
|
4331
|
-
}, "required", "providerOptions" |
|
|
4331
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
4332
4332
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4333
4333
|
role: "tool";
|
|
4334
4334
|
content: {
|
|
@@ -4421,7 +4421,7 @@ export declare const vTextArgs: VObject<{
|
|
|
4421
4421
|
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>;
|
|
4422
4422
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
4423
4423
|
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>;
|
|
4424
|
-
}, "required", "providerOptions" |
|
|
4424
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
4425
4425
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4426
4426
|
role: "system";
|
|
4427
4427
|
content: string;
|
|
@@ -4429,7 +4429,7 @@ export declare const vTextArgs: VObject<{
|
|
|
4429
4429
|
role: import("convex/values").VLiteral<"system", "required">;
|
|
4430
4430
|
content: import("convex/values").VString<string, "required">;
|
|
4431
4431
|
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>;
|
|
4432
|
-
}, "required", "providerOptions" |
|
|
4432
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">], "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, "optional">;
|
|
4433
4433
|
promptMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
4434
4434
|
maxTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4435
4435
|
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -4498,13 +4498,12 @@ export declare const vTextArgs: VObject<{
|
|
|
4498
4498
|
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>;
|
|
4499
4499
|
}, "optional", "saveMessages">;
|
|
4500
4500
|
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>;
|
|
4501
|
-
}, "required", "
|
|
4501
|
+
}, "required", "system" | "providerOptions" | `providerOptions.${string}` | "headers" | `headers.${string}` | "messages" | "stream" | "toolChoice" | "maxSteps" | "experimental_continueSteps" | "prompt" | "promptMessageId" | "maxTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "seed" | "maxRetries" | "userId" | "threadId" | "contextOptions" | "storageOptions" | "toolChoice.type" | "toolChoice.toolName" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "storageOptions.saveMessages">;
|
|
4502
4502
|
export type TextArgs = Infer<typeof vTextArgs>;
|
|
4503
4503
|
export declare const vSafeObjectArgs: VObject<{
|
|
4504
|
-
userId?: string | undefined;
|
|
4505
|
-
threadId?: string | undefined;
|
|
4506
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4507
4504
|
system?: string | undefined;
|
|
4505
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4506
|
+
headers?: Record<string, string> | undefined;
|
|
4508
4507
|
messages?: ({
|
|
4509
4508
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4510
4509
|
role: "user";
|
|
@@ -4578,7 +4577,8 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
4578
4577
|
role: "system";
|
|
4579
4578
|
content: string;
|
|
4580
4579
|
})[] | undefined;
|
|
4581
|
-
|
|
4580
|
+
prompt?: string | undefined;
|
|
4581
|
+
promptMessageId?: string | undefined;
|
|
4582
4582
|
maxTokens?: number | undefined;
|
|
4583
4583
|
temperature?: number | undefined;
|
|
4584
4584
|
topP?: number | undefined;
|
|
@@ -4587,8 +4587,8 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
4587
4587
|
frequencyPenalty?: number | undefined;
|
|
4588
4588
|
seed?: number | undefined;
|
|
4589
4589
|
maxRetries?: number | undefined;
|
|
4590
|
-
|
|
4591
|
-
|
|
4590
|
+
userId?: string | undefined;
|
|
4591
|
+
threadId?: string | undefined;
|
|
4592
4592
|
contextOptions?: {
|
|
4593
4593
|
excludeToolMessages?: boolean | undefined;
|
|
4594
4594
|
recentMessages?: number | undefined;
|
|
@@ -4839,7 +4839,7 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
4839
4839
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
4840
4840
|
text: import("convex/values").VString<string, "required">;
|
|
4841
4841
|
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>;
|
|
4842
|
-
}, "required", "type" | "
|
|
4842
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
4843
4843
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4844
4844
|
mimeType?: string | undefined;
|
|
4845
4845
|
type: "image";
|
|
@@ -4861,9 +4861,9 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
4861
4861
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
4862
4862
|
mimeType: import("convex/values").VString<string, "required">;
|
|
4863
4863
|
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>;
|
|
4864
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "
|
|
4864
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
4865
4865
|
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>;
|
|
4866
|
-
}, "required", "providerOptions" |
|
|
4866
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
4867
4867
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4868
4868
|
role: "assistant";
|
|
4869
4869
|
content: string | ({
|
|
@@ -4977,7 +4977,7 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
4977
4977
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
4978
4978
|
text: import("convex/values").VString<string, "required">;
|
|
4979
4979
|
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>;
|
|
4980
|
-
}, "required", "type" | "
|
|
4980
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, VObject<{
|
|
4981
4981
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4982
4982
|
filename?: string | undefined;
|
|
4983
4983
|
type: "file";
|
|
@@ -4999,7 +4999,7 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
4999
4999
|
text: import("convex/values").VString<string, "required">;
|
|
5000
5000
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
5001
5001
|
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>;
|
|
5002
|
-
}, "required", "type" | "
|
|
5002
|
+
}, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, VObject<{
|
|
5003
5003
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5004
5004
|
type: "redacted-reasoning";
|
|
5005
5005
|
data: string;
|
|
@@ -5019,9 +5019,9 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
5019
5019
|
toolName: import("convex/values").VString<string, "required">;
|
|
5020
5020
|
args: import("convex/values").VAny<any, "required", string>;
|
|
5021
5021
|
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>;
|
|
5022
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "
|
|
5022
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
|
|
5023
5023
|
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>;
|
|
5024
|
-
}, "required", "providerOptions" |
|
|
5024
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
5025
5025
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5026
5026
|
role: "tool";
|
|
5027
5027
|
content: {
|
|
@@ -5114,7 +5114,7 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
5114
5114
|
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>;
|
|
5115
5115
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
5116
5116
|
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>;
|
|
5117
|
-
}, "required", "providerOptions" |
|
|
5117
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, VObject<{
|
|
5118
5118
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5119
5119
|
role: "system";
|
|
5120
5120
|
content: string;
|
|
@@ -5122,7 +5122,7 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
5122
5122
|
role: import("convex/values").VLiteral<"system", "required">;
|
|
5123
5123
|
content: import("convex/values").VString<string, "required">;
|
|
5124
5124
|
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>;
|
|
5125
|
-
}, "required", "providerOptions" |
|
|
5125
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">], "required", "providerOptions" | `providerOptions.${string}` | "role" | "content">, "optional">;
|
|
5126
5126
|
promptMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
5127
5127
|
maxTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5128
5128
|
temperature: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -5191,7 +5191,7 @@ export declare const vSafeObjectArgs: VObject<{
|
|
|
5191
5191
|
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>;
|
|
5192
5192
|
}, "optional", "saveMessages">;
|
|
5193
5193
|
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>;
|
|
5194
|
-
}, "required", "
|
|
5194
|
+
}, "required", "system" | "providerOptions" | `providerOptions.${string}` | "headers" | `headers.${string}` | "messages" | "prompt" | "promptMessageId" | "maxTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "seed" | "maxRetries" | "userId" | "threadId" | "contextOptions" | "storageOptions" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "storageOptions.saveMessages">;
|
|
5195
5195
|
export type SafeObjectArgs = Infer<typeof vSafeObjectArgs>;
|
|
5196
5196
|
export declare const vEmbeddingsWithMetadata: VObject<{
|
|
5197
5197
|
model: string;
|
|
@@ -5247,8 +5247,8 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
|
5247
5247
|
} | {
|
|
5248
5248
|
type: "source";
|
|
5249
5249
|
source: {
|
|
5250
|
-
title?: string | undefined;
|
|
5251
5250
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5251
|
+
title?: string | undefined;
|
|
5252
5252
|
id: string;
|
|
5253
5253
|
sourceType: "url";
|
|
5254
5254
|
url: string;
|
|
@@ -5277,8 +5277,8 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
|
5277
5277
|
}, "required", "type" | "textDelta">, VObject<{
|
|
5278
5278
|
type: "source";
|
|
5279
5279
|
source: {
|
|
5280
|
-
title?: string | undefined;
|
|
5281
5280
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5281
|
+
title?: string | undefined;
|
|
5282
5282
|
id: string;
|
|
5283
5283
|
sourceType: "url";
|
|
5284
5284
|
url: string;
|
|
@@ -5286,8 +5286,8 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
|
5286
5286
|
}, {
|
|
5287
5287
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
5288
5288
|
source: VObject<{
|
|
5289
|
-
title?: string | undefined;
|
|
5290
5289
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5290
|
+
title?: string | undefined;
|
|
5291
5291
|
id: string;
|
|
5292
5292
|
sourceType: "url";
|
|
5293
5293
|
url: string;
|
|
@@ -5297,8 +5297,8 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
|
5297
5297
|
url: import("convex/values").VString<string, "required">;
|
|
5298
5298
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5299
5299
|
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>;
|
|
5300
|
-
}, "required", "id" | "
|
|
5301
|
-
}, "required", "type" | "source" | "source.id" | "source.
|
|
5300
|
+
}, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">;
|
|
5301
|
+
}, "required", "type" | "source" | "source.id" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title">, VObject<{
|
|
5302
5302
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5303
5303
|
type: "tool-call";
|
|
5304
5304
|
toolCallId: string;
|
|
@@ -5381,7 +5381,7 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
|
|
|
5381
5381
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
5382
5382
|
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5383
5383
|
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>;
|
|
5384
|
-
}, "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.
|
|
5384
|
+
}, "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.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title" | "argsTextDelta">;
|
|
5385
5385
|
export type TextStreamPart = Infer<typeof vTextStreamPart>;
|
|
5386
5386
|
export declare const vStreamCursor: VObject<{
|
|
5387
5387
|
streamId: string;
|
|
@@ -5392,6 +5392,7 @@ export declare const vStreamCursor: VObject<{
|
|
|
5392
5392
|
}, "required", "streamId" | "cursor">;
|
|
5393
5393
|
export type StreamCursor = Infer<typeof vStreamCursor>;
|
|
5394
5394
|
export declare const vStreamArgs: import("convex/values").VUnion<{
|
|
5395
|
+
startOrder?: number | undefined;
|
|
5395
5396
|
kind: "list";
|
|
5396
5397
|
} | {
|
|
5397
5398
|
kind: "deltas";
|
|
@@ -5400,10 +5401,12 @@ export declare const vStreamArgs: import("convex/values").VUnion<{
|
|
|
5400
5401
|
cursor: number;
|
|
5401
5402
|
}[];
|
|
5402
5403
|
} | undefined, [VObject<{
|
|
5404
|
+
startOrder?: number | undefined;
|
|
5403
5405
|
kind: "list";
|
|
5404
5406
|
}, {
|
|
5405
5407
|
kind: import("convex/values").VLiteral<"list", "required">;
|
|
5406
|
-
|
|
5408
|
+
startOrder: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5409
|
+
}, "required", "kind" | "startOrder">, VObject<{
|
|
5407
5410
|
kind: "deltas";
|
|
5408
5411
|
cursors: {
|
|
5409
5412
|
streamId: string;
|
|
@@ -5421,19 +5424,21 @@ export declare const vStreamArgs: import("convex/values").VUnion<{
|
|
|
5421
5424
|
streamId: import("convex/values").VString<string, "required">;
|
|
5422
5425
|
cursor: import("convex/values").VFloat64<number, "required">;
|
|
5423
5426
|
}, "required", "streamId" | "cursor">, "required">;
|
|
5424
|
-
}, "required", "kind" | "cursors">], "optional", "kind" | "cursors">;
|
|
5427
|
+
}, "required", "kind" | "cursors">], "optional", "kind" | "startOrder" | "cursors">;
|
|
5425
5428
|
export type StreamArgs = Infer<typeof vStreamArgs>;
|
|
5426
5429
|
export declare const vStreamMessage: VObject<{
|
|
5427
|
-
|
|
5428
|
-
agentName?: string | undefined;
|
|
5430
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5429
5431
|
model?: string | undefined;
|
|
5430
5432
|
provider?: string | undefined;
|
|
5431
|
-
|
|
5433
|
+
userId?: string | undefined;
|
|
5434
|
+
agentName?: string | undefined;
|
|
5435
|
+
streamId: string;
|
|
5436
|
+
status: "streaming" | "finished" | "aborted";
|
|
5432
5437
|
order: number;
|
|
5433
5438
|
stepOrder: number;
|
|
5434
|
-
streamId: string;
|
|
5435
5439
|
}, {
|
|
5436
5440
|
streamId: import("convex/values").VString<string, "required">;
|
|
5441
|
+
status: import("convex/values").VUnion<"streaming" | "finished" | "aborted", [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"finished", "required">, import("convex/values").VLiteral<"aborted", "required">], "required", never>;
|
|
5437
5442
|
order: import("convex/values").VFloat64<number, "required">;
|
|
5438
5443
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
5439
5444
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -5441,7 +5446,7 @@ export declare const vStreamMessage: VObject<{
|
|
|
5441
5446
|
model: import("convex/values").VString<string | undefined, "optional">;
|
|
5442
5447
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
5443
5448
|
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>;
|
|
5444
|
-
}, "required", "
|
|
5449
|
+
}, "required", "providerOptions" | `providerOptions.${string}` | "model" | "provider" | "userId" | "streamId" | "status" | "order" | "stepOrder" | "agentName">;
|
|
5445
5450
|
export type StreamMessage = Infer<typeof vStreamMessage>;
|
|
5446
5451
|
export declare const vStreamDelta: VObject<{
|
|
5447
5452
|
streamId: string;
|
|
@@ -5478,8 +5483,8 @@ export declare const vStreamDelta: VObject<{
|
|
|
5478
5483
|
} | {
|
|
5479
5484
|
type: "source";
|
|
5480
5485
|
source: {
|
|
5481
|
-
title?: string | undefined;
|
|
5482
5486
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5487
|
+
title?: string | undefined;
|
|
5483
5488
|
id: string;
|
|
5484
5489
|
sourceType: "url";
|
|
5485
5490
|
url: string;
|
|
@@ -5529,8 +5534,8 @@ export declare const vStreamDelta: VObject<{
|
|
|
5529
5534
|
} | {
|
|
5530
5535
|
type: "source";
|
|
5531
5536
|
source: {
|
|
5532
|
-
title?: string | undefined;
|
|
5533
5537
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5538
|
+
title?: string | undefined;
|
|
5534
5539
|
id: string;
|
|
5535
5540
|
sourceType: "url";
|
|
5536
5541
|
url: string;
|
|
@@ -5575,8 +5580,8 @@ export declare const vStreamDelta: VObject<{
|
|
|
5575
5580
|
} | {
|
|
5576
5581
|
type: "source";
|
|
5577
5582
|
source: {
|
|
5578
|
-
title?: string | undefined;
|
|
5579
5583
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5584
|
+
title?: string | undefined;
|
|
5580
5585
|
id: string;
|
|
5581
5586
|
sourceType: "url";
|
|
5582
5587
|
url: string;
|
|
@@ -5605,8 +5610,8 @@ export declare const vStreamDelta: VObject<{
|
|
|
5605
5610
|
}, "required", "type" | "textDelta">, VObject<{
|
|
5606
5611
|
type: "source";
|
|
5607
5612
|
source: {
|
|
5608
|
-
title?: string | undefined;
|
|
5609
5613
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5614
|
+
title?: string | undefined;
|
|
5610
5615
|
id: string;
|
|
5611
5616
|
sourceType: "url";
|
|
5612
5617
|
url: string;
|
|
@@ -5614,8 +5619,8 @@ export declare const vStreamDelta: VObject<{
|
|
|
5614
5619
|
}, {
|
|
5615
5620
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
5616
5621
|
source: VObject<{
|
|
5617
|
-
title?: string | undefined;
|
|
5618
5622
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5623
|
+
title?: string | undefined;
|
|
5619
5624
|
id: string;
|
|
5620
5625
|
sourceType: "url";
|
|
5621
5626
|
url: string;
|
|
@@ -5625,8 +5630,8 @@ export declare const vStreamDelta: VObject<{
|
|
|
5625
5630
|
url: import("convex/values").VString<string, "required">;
|
|
5626
5631
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5627
5632
|
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>;
|
|
5628
|
-
}, "required", "id" | "
|
|
5629
|
-
}, "required", "type" | "source" | "source.id" | "source.
|
|
5633
|
+
}, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">;
|
|
5634
|
+
}, "required", "type" | "source" | "source.id" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title">, VObject<{
|
|
5630
5635
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5631
5636
|
type: "tool-call";
|
|
5632
5637
|
toolCallId: string;
|
|
@@ -5709,7 +5714,7 @@ export declare const vStreamDelta: VObject<{
|
|
|
5709
5714
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
5710
5715
|
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5711
5716
|
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>;
|
|
5712
|
-
}, "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.
|
|
5717
|
+
}, "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.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title" | "argsTextDelta">, "required">;
|
|
5713
5718
|
}, "required", "streamId" | "start" | "end" | "parts">;
|
|
5714
5719
|
export type StreamDelta = Infer<typeof vStreamDelta>;
|
|
5715
5720
|
export {};
|