@convex-dev/agent 0.1.18-alpha.0 → 0.5.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/createTool.d.ts +30 -9
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +24 -9
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +176 -201
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/definePlaygroundAPI.js +12 -19
- package/dist/client/definePlaygroundAPI.js.map +1 -1
- package/dist/client/files.js +4 -4
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +166 -63
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +75 -45
- package/dist/client/index.js.map +1 -1
- package/dist/client/search.d.ts +27 -6
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +3 -2
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/types.d.ts +27 -41
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +436 -73
- package/dist/component/messages.d.ts +246 -43
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +2 -2
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +1453 -152
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +2 -2
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.d.ts +180 -6
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/mapping.d.ts +12 -14
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +187 -47
- package/dist/mapping.js.map +1 -1
- package/dist/react/deltas.d.ts +0 -3
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +140 -44
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +1 -1
- package/dist/react/optimisticallySendMessage.js +2 -1
- package/dist/react/optimisticallySendMessage.js.map +1 -1
- package/dist/react/toUIMessages.d.ts +5 -4
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +103 -40
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/validators.d.ts +1798 -259
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +79 -15
- package/dist/validators.js.map +1 -1
- package/package.json +2 -2
- package/src/client/createTool.ts +68 -37
- package/src/client/definePlaygroundAPI.ts +25 -27
- package/src/client/files.ts +4 -4
- package/src/client/index.test.ts +14 -12
- package/src/client/index.ts +134 -94
- package/src/client/search.ts +3 -2
- package/src/client/streaming.ts +4 -3
- package/src/client/types.ts +34 -70
- package/src/component/_generated/api.d.ts +436 -73
- package/src/component/messages.ts +2 -2
- package/src/component/schema.ts +2 -2
- package/src/mapping.ts +228 -75
- package/src/react/deltas.ts +165 -52
- package/src/react/optimisticallySendMessage.ts +4 -1
- package/src/react/toUIMessages.test.ts +154 -36
- package/src/react/toUIMessages.ts +136 -57
- package/src/validators.test.ts +2 -99
- package/src/validators.ts +95 -17
|
@@ -327,6 +327,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
327
327
|
} | {
|
|
328
328
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
329
329
|
signature?: string | undefined;
|
|
330
|
+
state?: "streaming" | "done" | undefined;
|
|
330
331
|
type: "reasoning";
|
|
331
332
|
text: string;
|
|
332
333
|
} | {
|
|
@@ -335,6 +336,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
335
336
|
data: string;
|
|
336
337
|
} | {
|
|
337
338
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
339
|
+
providerExecuted?: boolean | undefined;
|
|
338
340
|
type: "tool-call";
|
|
339
341
|
toolCallId: string;
|
|
340
342
|
toolName: string;
|
|
@@ -346,6 +348,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
346
348
|
content: {
|
|
347
349
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
348
350
|
args?: any;
|
|
351
|
+
providerExecuted?: boolean | undefined;
|
|
352
|
+
isError?: boolean | undefined;
|
|
349
353
|
experimental_content?: ({
|
|
350
354
|
type: "text";
|
|
351
355
|
text: string;
|
|
@@ -354,7 +358,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
354
358
|
type: "image";
|
|
355
359
|
data: string;
|
|
356
360
|
})[] | undefined;
|
|
357
|
-
isError?: boolean | undefined;
|
|
358
361
|
type: "tool-result";
|
|
359
362
|
toolCallId: string;
|
|
360
363
|
toolName: string;
|
|
@@ -368,19 +371,36 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
368
371
|
text?: string | undefined;
|
|
369
372
|
reasoning?: string | undefined;
|
|
370
373
|
usage?: {
|
|
374
|
+
reasoningTokens?: number | undefined;
|
|
375
|
+
cachedInputTokens?: number | undefined;
|
|
371
376
|
promptTokens: number;
|
|
372
377
|
completionTokens: number;
|
|
373
378
|
totalTokens: number;
|
|
374
379
|
} | undefined;
|
|
375
380
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
376
|
-
sources?: {
|
|
381
|
+
sources?: ({
|
|
377
382
|
title?: string | undefined;
|
|
383
|
+
type?: "source" | undefined;
|
|
378
384
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
385
|
+
url?: string | undefined;
|
|
379
386
|
id: string;
|
|
380
387
|
sourceType: "url";
|
|
381
|
-
|
|
382
|
-
|
|
388
|
+
} | {
|
|
389
|
+
filename?: string | undefined;
|
|
390
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
391
|
+
id: string;
|
|
392
|
+
title: string;
|
|
393
|
+
type: "source";
|
|
394
|
+
sourceType: "document";
|
|
395
|
+
mediaType: string;
|
|
396
|
+
})[] | undefined;
|
|
383
397
|
reasoningDetails?: ({
|
|
398
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
399
|
+
signature?: string | undefined;
|
|
400
|
+
state?: "streaming" | "done" | undefined;
|
|
401
|
+
type: "reasoning";
|
|
402
|
+
text: string;
|
|
403
|
+
} | {
|
|
384
404
|
signature?: string | undefined;
|
|
385
405
|
type: "text";
|
|
386
406
|
text: string;
|
|
@@ -457,6 +477,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
457
477
|
} | {
|
|
458
478
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
459
479
|
signature?: string | undefined;
|
|
480
|
+
state?: "streaming" | "done" | undefined;
|
|
460
481
|
type: "reasoning";
|
|
461
482
|
text: string;
|
|
462
483
|
} | {
|
|
@@ -465,6 +486,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
465
486
|
data: string;
|
|
466
487
|
} | {
|
|
467
488
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
489
|
+
providerExecuted?: boolean | undefined;
|
|
468
490
|
type: "tool-call";
|
|
469
491
|
toolCallId: string;
|
|
470
492
|
toolName: string;
|
|
@@ -476,6 +498,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
476
498
|
content: {
|
|
477
499
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
478
500
|
args?: any;
|
|
501
|
+
providerExecuted?: boolean | undefined;
|
|
502
|
+
isError?: boolean | undefined;
|
|
479
503
|
experimental_content?: ({
|
|
480
504
|
type: "text";
|
|
481
505
|
text: string;
|
|
@@ -484,7 +508,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
484
508
|
type: "image";
|
|
485
509
|
data: string;
|
|
486
510
|
})[] | undefined;
|
|
487
|
-
isError?: boolean | undefined;
|
|
488
511
|
type: "tool-result";
|
|
489
512
|
toolCallId: string;
|
|
490
513
|
toolName: string;
|
|
@@ -608,6 +631,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
608
631
|
} | {
|
|
609
632
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
610
633
|
signature?: string | undefined;
|
|
634
|
+
state?: "streaming" | "done" | undefined;
|
|
611
635
|
type: "reasoning";
|
|
612
636
|
text: string;
|
|
613
637
|
} | {
|
|
@@ -616,6 +640,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
616
640
|
data: string;
|
|
617
641
|
} | {
|
|
618
642
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
643
|
+
providerExecuted?: boolean | undefined;
|
|
619
644
|
type: "tool-call";
|
|
620
645
|
toolCallId: string;
|
|
621
646
|
toolName: string;
|
|
@@ -636,6 +661,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
636
661
|
} | {
|
|
637
662
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
638
663
|
signature?: string | undefined;
|
|
664
|
+
state?: "streaming" | "done" | undefined;
|
|
639
665
|
type: "reasoning";
|
|
640
666
|
text: string;
|
|
641
667
|
} | {
|
|
@@ -644,6 +670,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
644
670
|
data: string;
|
|
645
671
|
} | {
|
|
646
672
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
673
|
+
providerExecuted?: boolean | undefined;
|
|
647
674
|
type: "tool-call";
|
|
648
675
|
toolCallId: string;
|
|
649
676
|
toolName: string;
|
|
@@ -661,6 +688,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
661
688
|
} | {
|
|
662
689
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
663
690
|
signature?: string | undefined;
|
|
691
|
+
state?: "streaming" | "done" | undefined;
|
|
664
692
|
type: "reasoning";
|
|
665
693
|
text: string;
|
|
666
694
|
} | {
|
|
@@ -669,6 +697,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
669
697
|
data: string;
|
|
670
698
|
} | {
|
|
671
699
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
700
|
+
providerExecuted?: boolean | undefined;
|
|
672
701
|
type: "tool-call";
|
|
673
702
|
toolCallId: string;
|
|
674
703
|
toolName: string;
|
|
@@ -686,6 +715,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
686
715
|
} | {
|
|
687
716
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
688
717
|
signature?: string | undefined;
|
|
718
|
+
state?: "streaming" | "done" | undefined;
|
|
689
719
|
type: "reasoning";
|
|
690
720
|
text: string;
|
|
691
721
|
} | {
|
|
@@ -694,6 +724,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
694
724
|
data: string;
|
|
695
725
|
} | {
|
|
696
726
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
727
|
+
providerExecuted?: boolean | undefined;
|
|
697
728
|
type: "tool-call";
|
|
698
729
|
toolCallId: string;
|
|
699
730
|
toolName: string;
|
|
@@ -721,6 +752,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
721
752
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
722
753
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
723
754
|
signature?: string | undefined;
|
|
755
|
+
state?: "streaming" | "done" | undefined;
|
|
724
756
|
type: "reasoning";
|
|
725
757
|
text: string;
|
|
726
758
|
}, {
|
|
@@ -728,7 +760,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
728
760
|
text: import("convex/values").VString<string, "required">;
|
|
729
761
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
730
762
|
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>;
|
|
731
|
-
|
|
763
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
764
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
732
765
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
733
766
|
type: "redacted-reasoning";
|
|
734
767
|
data: string;
|
|
@@ -738,6 +771,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
738
771
|
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>;
|
|
739
772
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
740
773
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
774
|
+
providerExecuted?: boolean | undefined;
|
|
741
775
|
type: "tool-call";
|
|
742
776
|
toolCallId: string;
|
|
743
777
|
toolName: string;
|
|
@@ -748,7 +782,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
748
782
|
toolName: import("convex/values").VString<string, "required">;
|
|
749
783
|
args: import("convex/values").VAny<any, "required", string>;
|
|
750
784
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
751
|
-
|
|
785
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
786
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
752
787
|
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>;
|
|
753
788
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
754
789
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -756,6 +791,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
756
791
|
content: {
|
|
757
792
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
758
793
|
args?: any;
|
|
794
|
+
providerExecuted?: boolean | undefined;
|
|
795
|
+
isError?: boolean | undefined;
|
|
759
796
|
experimental_content?: ({
|
|
760
797
|
type: "text";
|
|
761
798
|
text: string;
|
|
@@ -764,7 +801,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
764
801
|
type: "image";
|
|
765
802
|
data: string;
|
|
766
803
|
})[] | undefined;
|
|
767
|
-
isError?: boolean | undefined;
|
|
768
804
|
type: "tool-result";
|
|
769
805
|
toolCallId: string;
|
|
770
806
|
toolName: string;
|
|
@@ -775,6 +811,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
775
811
|
content: import("convex/values").VArray<{
|
|
776
812
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
777
813
|
args?: any;
|
|
814
|
+
providerExecuted?: boolean | undefined;
|
|
815
|
+
isError?: boolean | undefined;
|
|
778
816
|
experimental_content?: ({
|
|
779
817
|
type: "text";
|
|
780
818
|
text: string;
|
|
@@ -783,7 +821,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
783
821
|
type: "image";
|
|
784
822
|
data: string;
|
|
785
823
|
})[] | undefined;
|
|
786
|
-
isError?: boolean | undefined;
|
|
787
824
|
type: "tool-result";
|
|
788
825
|
toolCallId: string;
|
|
789
826
|
toolName: string;
|
|
@@ -791,6 +828,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
791
828
|
}[], import("convex/values").VObject<{
|
|
792
829
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
793
830
|
args?: any;
|
|
831
|
+
providerExecuted?: boolean | undefined;
|
|
832
|
+
isError?: boolean | undefined;
|
|
794
833
|
experimental_content?: ({
|
|
795
834
|
type: "text";
|
|
796
835
|
text: string;
|
|
@@ -799,7 +838,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
799
838
|
type: "image";
|
|
800
839
|
data: string;
|
|
801
840
|
})[] | undefined;
|
|
802
|
-
isError?: boolean | undefined;
|
|
803
841
|
type: "tool-result";
|
|
804
842
|
toolCallId: string;
|
|
805
843
|
toolName: string;
|
|
@@ -809,6 +847,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
809
847
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
810
848
|
toolName: import("convex/values").VString<string, "required">;
|
|
811
849
|
result: import("convex/values").VAny<any, "required", string>;
|
|
850
|
+
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>;
|
|
851
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
852
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
812
853
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
813
854
|
experimental_content: import("convex/values").VArray<({
|
|
814
855
|
type: "text";
|
|
@@ -839,9 +880,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
839
880
|
data: import("convex/values").VString<string, "required">;
|
|
840
881
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
841
882
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
842
|
-
|
|
843
|
-
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>;
|
|
844
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
883
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
845
884
|
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>;
|
|
846
885
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
847
886
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -855,6 +894,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
855
894
|
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
856
895
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
857
896
|
usage: import("convex/values").VObject<{
|
|
897
|
+
reasoningTokens?: number | undefined;
|
|
898
|
+
cachedInputTokens?: number | undefined;
|
|
858
899
|
promptTokens: number;
|
|
859
900
|
completionTokens: number;
|
|
860
901
|
totalTokens: number;
|
|
@@ -862,29 +903,79 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
862
903
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
863
904
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
864
905
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
865
|
-
|
|
906
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
907
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
908
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
866
909
|
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>;
|
|
867
|
-
sources: import("convex/values").VArray<{
|
|
910
|
+
sources: import("convex/values").VArray<({
|
|
911
|
+
title?: string | undefined;
|
|
912
|
+
type?: "source" | undefined;
|
|
913
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
914
|
+
url?: string | undefined;
|
|
915
|
+
id: string;
|
|
916
|
+
sourceType: "url";
|
|
917
|
+
} | {
|
|
918
|
+
filename?: string | undefined;
|
|
919
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
920
|
+
id: string;
|
|
921
|
+
title: string;
|
|
922
|
+
type: "source";
|
|
923
|
+
sourceType: "document";
|
|
924
|
+
mediaType: string;
|
|
925
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
868
926
|
title?: string | undefined;
|
|
927
|
+
type?: "source" | undefined;
|
|
869
928
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
929
|
+
url?: string | undefined;
|
|
870
930
|
id: string;
|
|
871
931
|
sourceType: "url";
|
|
872
|
-
|
|
873
|
-
|
|
932
|
+
} | {
|
|
933
|
+
filename?: string | undefined;
|
|
934
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
935
|
+
id: string;
|
|
936
|
+
title: string;
|
|
937
|
+
type: "source";
|
|
938
|
+
sourceType: "document";
|
|
939
|
+
mediaType: string;
|
|
940
|
+
}, [import("convex/values").VObject<{
|
|
874
941
|
title?: string | undefined;
|
|
942
|
+
type?: "source" | undefined;
|
|
875
943
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
944
|
+
url?: string | undefined;
|
|
876
945
|
id: string;
|
|
877
946
|
sourceType: "url";
|
|
878
|
-
url: string;
|
|
879
947
|
}, {
|
|
948
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
880
949
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
881
950
|
id: import("convex/values").VString<string, "required">;
|
|
882
|
-
url: import("convex/values").VString<string, "
|
|
951
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
883
952
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
884
953
|
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>;
|
|
885
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
954
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
955
|
+
filename?: string | undefined;
|
|
956
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
957
|
+
id: string;
|
|
958
|
+
title: string;
|
|
959
|
+
type: "source";
|
|
960
|
+
sourceType: "document";
|
|
961
|
+
mediaType: string;
|
|
962
|
+
}, {
|
|
963
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
964
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
965
|
+
id: import("convex/values").VString<string, "required">;
|
|
966
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
967
|
+
title: import("convex/values").VString<string, "required">;
|
|
968
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
969
|
+
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>;
|
|
970
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
886
971
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
887
972
|
reasoningDetails: import("convex/values").VArray<({
|
|
973
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
974
|
+
signature?: string | undefined;
|
|
975
|
+
state?: "streaming" | "done" | undefined;
|
|
976
|
+
type: "reasoning";
|
|
977
|
+
text: string;
|
|
978
|
+
} | {
|
|
888
979
|
signature?: string | undefined;
|
|
889
980
|
type: "text";
|
|
890
981
|
text: string;
|
|
@@ -892,6 +983,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
892
983
|
type: "redacted";
|
|
893
984
|
data: string;
|
|
894
985
|
})[] | undefined, import("convex/values").VUnion<{
|
|
986
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
987
|
+
signature?: string | undefined;
|
|
988
|
+
state?: "streaming" | "done" | undefined;
|
|
989
|
+
type: "reasoning";
|
|
990
|
+
text: string;
|
|
991
|
+
} | {
|
|
895
992
|
signature?: string | undefined;
|
|
896
993
|
type: "text";
|
|
897
994
|
text: string;
|
|
@@ -899,6 +996,18 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
899
996
|
type: "redacted";
|
|
900
997
|
data: string;
|
|
901
998
|
}, [import("convex/values").VObject<{
|
|
999
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1000
|
+
signature?: string | undefined;
|
|
1001
|
+
state?: "streaming" | "done" | undefined;
|
|
1002
|
+
type: "reasoning";
|
|
1003
|
+
text: string;
|
|
1004
|
+
}, {
|
|
1005
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
1006
|
+
text: import("convex/values").VString<string, "required">;
|
|
1007
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1008
|
+
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>;
|
|
1009
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
1010
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
902
1011
|
signature?: string | undefined;
|
|
903
1012
|
type: "text";
|
|
904
1013
|
text: string;
|
|
@@ -912,7 +1021,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
912
1021
|
}, {
|
|
913
1022
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
914
1023
|
data: import("convex/values").VString<string, "required">;
|
|
915
|
-
}, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "optional">;
|
|
1024
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
916
1025
|
warnings: import("convex/values").VArray<({
|
|
917
1026
|
details?: string | undefined;
|
|
918
1027
|
type: "unsupported-setting";
|
|
@@ -962,7 +1071,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
962
1071
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
963
1072
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
964
1073
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
965
|
-
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" |
|
|
1074
|
+
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, {
|
|
966
1075
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
967
1076
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
968
1077
|
}, {
|
|
@@ -1049,6 +1158,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1049
1158
|
end: number;
|
|
1050
1159
|
parts: ({
|
|
1051
1160
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1161
|
+
providerExecuted?: boolean | undefined;
|
|
1052
1162
|
type: "tool-call";
|
|
1053
1163
|
toolCallId: string;
|
|
1054
1164
|
toolName: string;
|
|
@@ -1056,6 +1166,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1056
1166
|
} | {
|
|
1057
1167
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1058
1168
|
args?: any;
|
|
1169
|
+
providerExecuted?: boolean | undefined;
|
|
1170
|
+
isError?: boolean | undefined;
|
|
1059
1171
|
experimental_content?: ({
|
|
1060
1172
|
type: "text";
|
|
1061
1173
|
text: string;
|
|
@@ -1064,11 +1176,25 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1064
1176
|
type: "image";
|
|
1065
1177
|
data: string;
|
|
1066
1178
|
})[] | undefined;
|
|
1067
|
-
isError?: boolean | undefined;
|
|
1068
1179
|
type: "tool-result";
|
|
1069
1180
|
toolCallId: string;
|
|
1070
1181
|
toolName: string;
|
|
1071
1182
|
result: any;
|
|
1183
|
+
} | {
|
|
1184
|
+
title?: string | undefined;
|
|
1185
|
+
type?: "source" | undefined;
|
|
1186
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1187
|
+
url?: string | undefined;
|
|
1188
|
+
id: string;
|
|
1189
|
+
sourceType: "url";
|
|
1190
|
+
} | {
|
|
1191
|
+
filename?: string | undefined;
|
|
1192
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1193
|
+
id: string;
|
|
1194
|
+
title: string;
|
|
1195
|
+
type: "source";
|
|
1196
|
+
sourceType: "document";
|
|
1197
|
+
mediaType: string;
|
|
1072
1198
|
} | {
|
|
1073
1199
|
type: "text-delta";
|
|
1074
1200
|
textDelta: string;
|
|
@@ -1080,9 +1206,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1080
1206
|
source: {
|
|
1081
1207
|
title?: string | undefined;
|
|
1082
1208
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1209
|
+
url?: string | undefined;
|
|
1083
1210
|
id: string;
|
|
1084
1211
|
sourceType: "url";
|
|
1085
|
-
url: string;
|
|
1086
1212
|
};
|
|
1087
1213
|
} | {
|
|
1088
1214
|
type: "tool-call-streaming-start";
|
|
@@ -1093,6 +1219,47 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1093
1219
|
toolCallId: string;
|
|
1094
1220
|
toolName: string;
|
|
1095
1221
|
argsTextDelta: string;
|
|
1222
|
+
} | {
|
|
1223
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1224
|
+
id: string;
|
|
1225
|
+
type: "text-delta";
|
|
1226
|
+
text: string;
|
|
1227
|
+
} | {
|
|
1228
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1229
|
+
id: string;
|
|
1230
|
+
type: "reasoning-delta";
|
|
1231
|
+
text: string;
|
|
1232
|
+
} | {
|
|
1233
|
+
providerExecuted?: boolean | undefined;
|
|
1234
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1235
|
+
dynamic?: boolean | undefined;
|
|
1236
|
+
type: "tool-call";
|
|
1237
|
+
toolCallId: string;
|
|
1238
|
+
toolName: string;
|
|
1239
|
+
input: any;
|
|
1240
|
+
} | {
|
|
1241
|
+
providerExecuted?: boolean | undefined;
|
|
1242
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1243
|
+
dynamic?: boolean | undefined;
|
|
1244
|
+
id: string;
|
|
1245
|
+
type: "tool-input-start";
|
|
1246
|
+
toolName: string;
|
|
1247
|
+
} | {
|
|
1248
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1249
|
+
id: string;
|
|
1250
|
+
type: "tool-input-delta";
|
|
1251
|
+
delta: string;
|
|
1252
|
+
} | {
|
|
1253
|
+
providerExecuted?: boolean | undefined;
|
|
1254
|
+
input?: any;
|
|
1255
|
+
dynamic?: boolean | undefined;
|
|
1256
|
+
output?: any;
|
|
1257
|
+
type: "tool-result";
|
|
1258
|
+
toolCallId: string;
|
|
1259
|
+
toolName: string;
|
|
1260
|
+
} | {
|
|
1261
|
+
type: "raw";
|
|
1262
|
+
rawValue: any;
|
|
1096
1263
|
})[];
|
|
1097
1264
|
}, {
|
|
1098
1265
|
streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
|
|
@@ -1100,6 +1267,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1100
1267
|
end: import("convex/values").VFloat64<number, "required">;
|
|
1101
1268
|
parts: import("convex/values").VArray<({
|
|
1102
1269
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1270
|
+
providerExecuted?: boolean | undefined;
|
|
1103
1271
|
type: "tool-call";
|
|
1104
1272
|
toolCallId: string;
|
|
1105
1273
|
toolName: string;
|
|
@@ -1107,6 +1275,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1107
1275
|
} | {
|
|
1108
1276
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1109
1277
|
args?: any;
|
|
1278
|
+
providerExecuted?: boolean | undefined;
|
|
1279
|
+
isError?: boolean | undefined;
|
|
1110
1280
|
experimental_content?: ({
|
|
1111
1281
|
type: "text";
|
|
1112
1282
|
text: string;
|
|
@@ -1115,11 +1285,25 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1115
1285
|
type: "image";
|
|
1116
1286
|
data: string;
|
|
1117
1287
|
})[] | undefined;
|
|
1118
|
-
isError?: boolean | undefined;
|
|
1119
1288
|
type: "tool-result";
|
|
1120
1289
|
toolCallId: string;
|
|
1121
1290
|
toolName: string;
|
|
1122
1291
|
result: any;
|
|
1292
|
+
} | {
|
|
1293
|
+
title?: string | undefined;
|
|
1294
|
+
type?: "source" | undefined;
|
|
1295
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1296
|
+
url?: string | undefined;
|
|
1297
|
+
id: string;
|
|
1298
|
+
sourceType: "url";
|
|
1299
|
+
} | {
|
|
1300
|
+
filename?: string | undefined;
|
|
1301
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1302
|
+
id: string;
|
|
1303
|
+
title: string;
|
|
1304
|
+
type: "source";
|
|
1305
|
+
sourceType: "document";
|
|
1306
|
+
mediaType: string;
|
|
1123
1307
|
} | {
|
|
1124
1308
|
type: "text-delta";
|
|
1125
1309
|
textDelta: string;
|
|
@@ -1131,9 +1315,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1131
1315
|
source: {
|
|
1132
1316
|
title?: string | undefined;
|
|
1133
1317
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1318
|
+
url?: string | undefined;
|
|
1134
1319
|
id: string;
|
|
1135
1320
|
sourceType: "url";
|
|
1136
|
-
url: string;
|
|
1137
1321
|
};
|
|
1138
1322
|
} | {
|
|
1139
1323
|
type: "tool-call-streaming-start";
|
|
@@ -1144,8 +1328,50 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1144
1328
|
toolCallId: string;
|
|
1145
1329
|
toolName: string;
|
|
1146
1330
|
argsTextDelta: string;
|
|
1331
|
+
} | {
|
|
1332
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1333
|
+
id: string;
|
|
1334
|
+
type: "text-delta";
|
|
1335
|
+
text: string;
|
|
1336
|
+
} | {
|
|
1337
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1338
|
+
id: string;
|
|
1339
|
+
type: "reasoning-delta";
|
|
1340
|
+
text: string;
|
|
1341
|
+
} | {
|
|
1342
|
+
providerExecuted?: boolean | undefined;
|
|
1343
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1344
|
+
dynamic?: boolean | undefined;
|
|
1345
|
+
type: "tool-call";
|
|
1346
|
+
toolCallId: string;
|
|
1347
|
+
toolName: string;
|
|
1348
|
+
input: any;
|
|
1349
|
+
} | {
|
|
1350
|
+
providerExecuted?: boolean | undefined;
|
|
1351
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1352
|
+
dynamic?: boolean | undefined;
|
|
1353
|
+
id: string;
|
|
1354
|
+
type: "tool-input-start";
|
|
1355
|
+
toolName: string;
|
|
1356
|
+
} | {
|
|
1357
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1358
|
+
id: string;
|
|
1359
|
+
type: "tool-input-delta";
|
|
1360
|
+
delta: string;
|
|
1361
|
+
} | {
|
|
1362
|
+
providerExecuted?: boolean | undefined;
|
|
1363
|
+
input?: any;
|
|
1364
|
+
dynamic?: boolean | undefined;
|
|
1365
|
+
output?: any;
|
|
1366
|
+
type: "tool-result";
|
|
1367
|
+
toolCallId: string;
|
|
1368
|
+
toolName: string;
|
|
1369
|
+
} | {
|
|
1370
|
+
type: "raw";
|
|
1371
|
+
rawValue: any;
|
|
1147
1372
|
})[], import("convex/values").VUnion<{
|
|
1148
1373
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1374
|
+
providerExecuted?: boolean | undefined;
|
|
1149
1375
|
type: "tool-call";
|
|
1150
1376
|
toolCallId: string;
|
|
1151
1377
|
toolName: string;
|
|
@@ -1153,6 +1379,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1153
1379
|
} | {
|
|
1154
1380
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1155
1381
|
args?: any;
|
|
1382
|
+
providerExecuted?: boolean | undefined;
|
|
1383
|
+
isError?: boolean | undefined;
|
|
1156
1384
|
experimental_content?: ({
|
|
1157
1385
|
type: "text";
|
|
1158
1386
|
text: string;
|
|
@@ -1161,7 +1389,110 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1161
1389
|
type: "image";
|
|
1162
1390
|
data: string;
|
|
1163
1391
|
})[] | undefined;
|
|
1392
|
+
type: "tool-result";
|
|
1393
|
+
toolCallId: string;
|
|
1394
|
+
toolName: string;
|
|
1395
|
+
result: any;
|
|
1396
|
+
} | {
|
|
1397
|
+
title?: string | undefined;
|
|
1398
|
+
type?: "source" | undefined;
|
|
1399
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1400
|
+
url?: string | undefined;
|
|
1401
|
+
id: string;
|
|
1402
|
+
sourceType: "url";
|
|
1403
|
+
} | {
|
|
1404
|
+
filename?: string | undefined;
|
|
1405
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1406
|
+
id: string;
|
|
1407
|
+
title: string;
|
|
1408
|
+
type: "source";
|
|
1409
|
+
sourceType: "document";
|
|
1410
|
+
mediaType: string;
|
|
1411
|
+
} | {
|
|
1412
|
+
type: "text-delta";
|
|
1413
|
+
textDelta: string;
|
|
1414
|
+
} | {
|
|
1415
|
+
type: "reasoning";
|
|
1416
|
+
textDelta: string;
|
|
1417
|
+
} | {
|
|
1418
|
+
type: "source";
|
|
1419
|
+
source: {
|
|
1420
|
+
title?: string | undefined;
|
|
1421
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1422
|
+
url?: string | undefined;
|
|
1423
|
+
id: string;
|
|
1424
|
+
sourceType: "url";
|
|
1425
|
+
};
|
|
1426
|
+
} | {
|
|
1427
|
+
type: "tool-call-streaming-start";
|
|
1428
|
+
toolCallId: string;
|
|
1429
|
+
toolName: string;
|
|
1430
|
+
} | {
|
|
1431
|
+
type: "tool-call-delta";
|
|
1432
|
+
toolCallId: string;
|
|
1433
|
+
toolName: string;
|
|
1434
|
+
argsTextDelta: string;
|
|
1435
|
+
} | {
|
|
1436
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1437
|
+
id: string;
|
|
1438
|
+
type: "text-delta";
|
|
1439
|
+
text: string;
|
|
1440
|
+
} | {
|
|
1441
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1442
|
+
id: string;
|
|
1443
|
+
type: "reasoning-delta";
|
|
1444
|
+
text: string;
|
|
1445
|
+
} | {
|
|
1446
|
+
providerExecuted?: boolean | undefined;
|
|
1447
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1448
|
+
dynamic?: boolean | undefined;
|
|
1449
|
+
type: "tool-call";
|
|
1450
|
+
toolCallId: string;
|
|
1451
|
+
toolName: string;
|
|
1452
|
+
input: any;
|
|
1453
|
+
} | {
|
|
1454
|
+
providerExecuted?: boolean | undefined;
|
|
1455
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1456
|
+
dynamic?: boolean | undefined;
|
|
1457
|
+
id: string;
|
|
1458
|
+
type: "tool-input-start";
|
|
1459
|
+
toolName: string;
|
|
1460
|
+
} | {
|
|
1461
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1462
|
+
id: string;
|
|
1463
|
+
type: "tool-input-delta";
|
|
1464
|
+
delta: string;
|
|
1465
|
+
} | {
|
|
1466
|
+
providerExecuted?: boolean | undefined;
|
|
1467
|
+
input?: any;
|
|
1468
|
+
dynamic?: boolean | undefined;
|
|
1469
|
+
output?: any;
|
|
1470
|
+
type: "tool-result";
|
|
1471
|
+
toolCallId: string;
|
|
1472
|
+
toolName: string;
|
|
1473
|
+
} | {
|
|
1474
|
+
type: "raw";
|
|
1475
|
+
rawValue: any;
|
|
1476
|
+
}, [import("convex/values").VUnion<{
|
|
1477
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1478
|
+
providerExecuted?: boolean | undefined;
|
|
1479
|
+
type: "tool-call";
|
|
1480
|
+
toolCallId: string;
|
|
1481
|
+
toolName: string;
|
|
1482
|
+
args: any;
|
|
1483
|
+
} | {
|
|
1484
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1485
|
+
args?: any;
|
|
1486
|
+
providerExecuted?: boolean | undefined;
|
|
1164
1487
|
isError?: boolean | undefined;
|
|
1488
|
+
experimental_content?: ({
|
|
1489
|
+
type: "text";
|
|
1490
|
+
text: string;
|
|
1491
|
+
} | {
|
|
1492
|
+
mimeType?: string | undefined;
|
|
1493
|
+
type: "image";
|
|
1494
|
+
data: string;
|
|
1495
|
+
})[] | undefined;
|
|
1165
1496
|
type: "tool-result";
|
|
1166
1497
|
toolCallId: string;
|
|
1167
1498
|
toolName: string;
|
|
@@ -1177,9 +1508,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1177
1508
|
source: {
|
|
1178
1509
|
title?: string | undefined;
|
|
1179
1510
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1511
|
+
url?: string | undefined;
|
|
1180
1512
|
id: string;
|
|
1181
1513
|
sourceType: "url";
|
|
1182
|
-
url: string;
|
|
1183
1514
|
};
|
|
1184
1515
|
} | {
|
|
1185
1516
|
type: "tool-call-streaming-start";
|
|
@@ -1207,27 +1538,28 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1207
1538
|
source: {
|
|
1208
1539
|
title?: string | undefined;
|
|
1209
1540
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1541
|
+
url?: string | undefined;
|
|
1210
1542
|
id: string;
|
|
1211
1543
|
sourceType: "url";
|
|
1212
|
-
url: string;
|
|
1213
1544
|
};
|
|
1214
1545
|
}, {
|
|
1215
1546
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
1216
1547
|
source: import("convex/values").VObject<{
|
|
1217
1548
|
title?: string | undefined;
|
|
1218
1549
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1550
|
+
url?: string | undefined;
|
|
1219
1551
|
id: string;
|
|
1220
1552
|
sourceType: "url";
|
|
1221
|
-
url: string;
|
|
1222
1553
|
}, {
|
|
1223
1554
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
1224
1555
|
id: import("convex/values").VString<string, "required">;
|
|
1225
|
-
url: import("convex/values").VString<string, "
|
|
1556
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
1226
1557
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1227
1558
|
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>;
|
|
1228
1559
|
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
1229
1560
|
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
1230
1561
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1562
|
+
providerExecuted?: boolean | undefined;
|
|
1231
1563
|
type: "tool-call";
|
|
1232
1564
|
toolCallId: string;
|
|
1233
1565
|
toolName: string;
|
|
@@ -1238,27 +1570,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1238
1570
|
toolName: import("convex/values").VString<string, "required">;
|
|
1239
1571
|
args: import("convex/values").VAny<any, "required", string>;
|
|
1240
1572
|
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>;
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
toolCallId: string;
|
|
1244
|
-
toolName: string;
|
|
1245
|
-
}, {
|
|
1246
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
1247
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
1248
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
1249
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
1250
|
-
type: "tool-call-delta";
|
|
1251
|
-
toolCallId: string;
|
|
1252
|
-
toolName: string;
|
|
1253
|
-
argsTextDelta: string;
|
|
1254
|
-
}, {
|
|
1255
|
-
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
1256
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
1257
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
1258
|
-
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
1259
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
1573
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1574
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
1260
1575
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1261
1576
|
args?: any;
|
|
1577
|
+
providerExecuted?: boolean | undefined;
|
|
1578
|
+
isError?: boolean | undefined;
|
|
1262
1579
|
experimental_content?: ({
|
|
1263
1580
|
type: "text";
|
|
1264
1581
|
text: string;
|
|
@@ -1267,7 +1584,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1267
1584
|
type: "image";
|
|
1268
1585
|
data: string;
|
|
1269
1586
|
})[] | undefined;
|
|
1270
|
-
isError?: boolean | undefined;
|
|
1271
1587
|
type: "tool-result";
|
|
1272
1588
|
toolCallId: string;
|
|
1273
1589
|
toolName: string;
|
|
@@ -1277,6 +1593,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1277
1593
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
1278
1594
|
toolName: import("convex/values").VString<string, "required">;
|
|
1279
1595
|
result: import("convex/values").VAny<any, "required", string>;
|
|
1596
|
+
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>;
|
|
1597
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1598
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1280
1599
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
1281
1600
|
experimental_content: import("convex/values").VArray<({
|
|
1282
1601
|
type: "text";
|
|
@@ -1307,17 +1626,216 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1307
1626
|
data: import("convex/values").VString<string, "required">;
|
|
1308
1627
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1309
1628
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1629
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VObject<{
|
|
1630
|
+
type: "tool-call-streaming-start";
|
|
1631
|
+
toolCallId: string;
|
|
1632
|
+
toolName: string;
|
|
1633
|
+
}, {
|
|
1634
|
+
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
1635
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
1636
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
1637
|
+
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
1638
|
+
type: "tool-call-delta";
|
|
1639
|
+
toolCallId: string;
|
|
1640
|
+
toolName: string;
|
|
1641
|
+
argsTextDelta: string;
|
|
1642
|
+
}, {
|
|
1643
|
+
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
1644
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
1645
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
1646
|
+
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
1647
|
+
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "source" | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, import("convex/values").VUnion<{
|
|
1648
|
+
title?: string | undefined;
|
|
1649
|
+
type?: "source" | undefined;
|
|
1650
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1651
|
+
url?: string | undefined;
|
|
1652
|
+
id: string;
|
|
1653
|
+
sourceType: "url";
|
|
1654
|
+
} | {
|
|
1655
|
+
filename?: string | undefined;
|
|
1656
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1657
|
+
id: string;
|
|
1658
|
+
title: string;
|
|
1659
|
+
type: "source";
|
|
1660
|
+
sourceType: "document";
|
|
1661
|
+
mediaType: string;
|
|
1662
|
+
} | {
|
|
1663
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1664
|
+
id: string;
|
|
1665
|
+
type: "text-delta";
|
|
1666
|
+
text: string;
|
|
1667
|
+
} | {
|
|
1668
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1669
|
+
id: string;
|
|
1670
|
+
type: "reasoning-delta";
|
|
1671
|
+
text: string;
|
|
1672
|
+
} | {
|
|
1673
|
+
providerExecuted?: boolean | undefined;
|
|
1674
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1675
|
+
dynamic?: boolean | undefined;
|
|
1676
|
+
type: "tool-call";
|
|
1677
|
+
toolCallId: string;
|
|
1678
|
+
toolName: string;
|
|
1679
|
+
input: any;
|
|
1680
|
+
} | {
|
|
1681
|
+
providerExecuted?: boolean | undefined;
|
|
1682
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1683
|
+
dynamic?: boolean | undefined;
|
|
1684
|
+
id: string;
|
|
1685
|
+
type: "tool-input-start";
|
|
1686
|
+
toolName: string;
|
|
1687
|
+
} | {
|
|
1688
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1689
|
+
id: string;
|
|
1690
|
+
type: "tool-input-delta";
|
|
1691
|
+
delta: string;
|
|
1692
|
+
} | {
|
|
1693
|
+
providerExecuted?: boolean | undefined;
|
|
1694
|
+
input?: any;
|
|
1695
|
+
dynamic?: boolean | undefined;
|
|
1696
|
+
output?: any;
|
|
1697
|
+
type: "tool-result";
|
|
1698
|
+
toolCallId: string;
|
|
1699
|
+
toolName: string;
|
|
1700
|
+
} | {
|
|
1701
|
+
type: "raw";
|
|
1702
|
+
rawValue: any;
|
|
1703
|
+
}, [import("convex/values").VObject<{
|
|
1704
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1705
|
+
id: string;
|
|
1706
|
+
type: "text-delta";
|
|
1707
|
+
text: string;
|
|
1708
|
+
}, {
|
|
1709
|
+
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
1710
|
+
id: import("convex/values").VString<string, "required">;
|
|
1711
|
+
text: import("convex/values").VString<string, "required">;
|
|
1712
|
+
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>;
|
|
1713
|
+
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
1714
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1715
|
+
id: string;
|
|
1716
|
+
type: "reasoning-delta";
|
|
1717
|
+
text: string;
|
|
1718
|
+
}, {
|
|
1719
|
+
type: import("convex/values").VLiteral<"reasoning-delta", "required">;
|
|
1720
|
+
id: import("convex/values").VString<string, "required">;
|
|
1721
|
+
text: import("convex/values").VString<string, "required">;
|
|
1722
|
+
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>;
|
|
1723
|
+
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VUnion<{
|
|
1724
|
+
title?: string | undefined;
|
|
1725
|
+
type?: "source" | undefined;
|
|
1726
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1727
|
+
url?: string | undefined;
|
|
1728
|
+
id: string;
|
|
1729
|
+
sourceType: "url";
|
|
1730
|
+
} | {
|
|
1731
|
+
filename?: string | undefined;
|
|
1732
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1733
|
+
id: string;
|
|
1734
|
+
title: string;
|
|
1735
|
+
type: "source";
|
|
1736
|
+
sourceType: "document";
|
|
1737
|
+
mediaType: string;
|
|
1738
|
+
}, [import("convex/values").VObject<{
|
|
1739
|
+
title?: string | undefined;
|
|
1740
|
+
type?: "source" | undefined;
|
|
1741
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1742
|
+
url?: string | undefined;
|
|
1743
|
+
id: string;
|
|
1744
|
+
sourceType: "url";
|
|
1745
|
+
}, {
|
|
1746
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
1747
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
1748
|
+
id: import("convex/values").VString<string, "required">;
|
|
1749
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
1750
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1751
|
+
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>;
|
|
1752
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
1753
|
+
filename?: string | undefined;
|
|
1754
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1755
|
+
id: string;
|
|
1756
|
+
title: string;
|
|
1757
|
+
type: "source";
|
|
1758
|
+
sourceType: "document";
|
|
1759
|
+
mediaType: string;
|
|
1760
|
+
}, {
|
|
1761
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
1762
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
1763
|
+
id: import("convex/values").VString<string, "required">;
|
|
1764
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
1765
|
+
title: import("convex/values").VString<string, "required">;
|
|
1766
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1767
|
+
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>;
|
|
1768
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
1769
|
+
providerExecuted?: boolean | undefined;
|
|
1770
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1771
|
+
dynamic?: boolean | undefined;
|
|
1772
|
+
type: "tool-call";
|
|
1773
|
+
toolCallId: string;
|
|
1774
|
+
toolName: string;
|
|
1775
|
+
input: any;
|
|
1776
|
+
}, {
|
|
1777
|
+
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
1778
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
1779
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
1780
|
+
input: import("convex/values").VAny<any, "required", string>;
|
|
1781
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1782
|
+
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1783
|
+
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>;
|
|
1784
|
+
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}`>, import("convex/values").VObject<{
|
|
1785
|
+
providerExecuted?: boolean | undefined;
|
|
1786
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1787
|
+
dynamic?: boolean | undefined;
|
|
1788
|
+
id: string;
|
|
1789
|
+
type: "tool-input-start";
|
|
1790
|
+
toolName: string;
|
|
1791
|
+
}, {
|
|
1792
|
+
type: import("convex/values").VLiteral<"tool-input-start", "required">;
|
|
1793
|
+
id: import("convex/values").VString<string, "required">;
|
|
1794
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
1795
|
+
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>;
|
|
1796
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1797
|
+
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1798
|
+
}, "required", "id" | "type" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "dynamic">, import("convex/values").VObject<{
|
|
1799
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1800
|
+
id: string;
|
|
1801
|
+
type: "tool-input-delta";
|
|
1802
|
+
delta: string;
|
|
1803
|
+
}, {
|
|
1804
|
+
type: import("convex/values").VLiteral<"tool-input-delta", "required">;
|
|
1805
|
+
id: import("convex/values").VString<string, "required">;
|
|
1806
|
+
delta: import("convex/values").VString<string, "required">;
|
|
1807
|
+
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>;
|
|
1808
|
+
}, "required", "id" | "type" | "providerMetadata" | `providerMetadata.${string}` | "delta">, import("convex/values").VObject<{
|
|
1809
|
+
providerExecuted?: boolean | undefined;
|
|
1810
|
+
input?: any;
|
|
1811
|
+
dynamic?: boolean | undefined;
|
|
1812
|
+
output?: any;
|
|
1813
|
+
type: "tool-result";
|
|
1814
|
+
toolCallId: string;
|
|
1815
|
+
toolName: string;
|
|
1816
|
+
}, {
|
|
1817
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
1818
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
1819
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
1820
|
+
input: import("convex/values").VAny<any, "optional", string>;
|
|
1821
|
+
output: import("convex/values").VAny<any, "optional", string>;
|
|
1822
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1823
|
+
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1824
|
+
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "input" | "dynamic" | `input.${string}` | "output" | `output.${string}`>, import("convex/values").VObject<{
|
|
1825
|
+
type: "raw";
|
|
1826
|
+
rawValue: any;
|
|
1827
|
+
}, {
|
|
1828
|
+
type: import("convex/values").VLiteral<"raw", "required">;
|
|
1829
|
+
rawValue: import("convex/values").VAny<any, "required", string>;
|
|
1830
|
+
}, "required", "type" | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "providerMetadata" | "source" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta" | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>, "required">;
|
|
1831
|
+
}, "required", "streamId" | "start" | "end" | "parts">, {
|
|
1832
|
+
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
1833
|
+
}, {}, {}>;
|
|
1834
|
+
memories: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1835
|
+
userId?: string | undefined;
|
|
1836
|
+
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
1837
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
1838
|
+
memory: string;
|
|
1321
1839
|
}, {
|
|
1322
1840
|
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
|
|
1323
1841
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1715,6 +2233,7 @@ export declare const vv: {
|
|
|
1715
2233
|
} | {
|
|
1716
2234
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1717
2235
|
signature?: string | undefined;
|
|
2236
|
+
state?: "streaming" | "done" | undefined;
|
|
1718
2237
|
type: "reasoning";
|
|
1719
2238
|
text: string;
|
|
1720
2239
|
} | {
|
|
@@ -1723,6 +2242,7 @@ export declare const vv: {
|
|
|
1723
2242
|
data: string;
|
|
1724
2243
|
} | {
|
|
1725
2244
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2245
|
+
providerExecuted?: boolean | undefined;
|
|
1726
2246
|
type: "tool-call";
|
|
1727
2247
|
toolCallId: string;
|
|
1728
2248
|
toolName: string;
|
|
@@ -1734,6 +2254,8 @@ export declare const vv: {
|
|
|
1734
2254
|
content: {
|
|
1735
2255
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1736
2256
|
args?: any;
|
|
2257
|
+
providerExecuted?: boolean | undefined;
|
|
2258
|
+
isError?: boolean | undefined;
|
|
1737
2259
|
experimental_content?: ({
|
|
1738
2260
|
type: "text";
|
|
1739
2261
|
text: string;
|
|
@@ -1742,7 +2264,6 @@ export declare const vv: {
|
|
|
1742
2264
|
type: "image";
|
|
1743
2265
|
data: string;
|
|
1744
2266
|
})[] | undefined;
|
|
1745
|
-
isError?: boolean | undefined;
|
|
1746
2267
|
type: "tool-result";
|
|
1747
2268
|
toolCallId: string;
|
|
1748
2269
|
toolName: string;
|
|
@@ -1756,19 +2277,36 @@ export declare const vv: {
|
|
|
1756
2277
|
text?: string | undefined;
|
|
1757
2278
|
reasoning?: string | undefined;
|
|
1758
2279
|
usage?: {
|
|
2280
|
+
reasoningTokens?: number | undefined;
|
|
2281
|
+
cachedInputTokens?: number | undefined;
|
|
1759
2282
|
promptTokens: number;
|
|
1760
2283
|
completionTokens: number;
|
|
1761
2284
|
totalTokens: number;
|
|
1762
2285
|
} | undefined;
|
|
1763
2286
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1764
|
-
sources?: {
|
|
2287
|
+
sources?: ({
|
|
1765
2288
|
title?: string | undefined;
|
|
2289
|
+
type?: "source" | undefined;
|
|
1766
2290
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2291
|
+
url?: string | undefined;
|
|
1767
2292
|
id: string;
|
|
1768
2293
|
sourceType: "url";
|
|
1769
|
-
|
|
1770
|
-
|
|
2294
|
+
} | {
|
|
2295
|
+
filename?: string | undefined;
|
|
2296
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2297
|
+
id: string;
|
|
2298
|
+
title: string;
|
|
2299
|
+
type: "source";
|
|
2300
|
+
sourceType: "document";
|
|
2301
|
+
mediaType: string;
|
|
2302
|
+
})[] | undefined;
|
|
1771
2303
|
reasoningDetails?: ({
|
|
2304
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2305
|
+
signature?: string | undefined;
|
|
2306
|
+
state?: "streaming" | "done" | undefined;
|
|
2307
|
+
type: "reasoning";
|
|
2308
|
+
text: string;
|
|
2309
|
+
} | {
|
|
1772
2310
|
signature?: string | undefined;
|
|
1773
2311
|
type: "text";
|
|
1774
2312
|
text: string;
|
|
@@ -1797,7 +2335,7 @@ export declare const vv: {
|
|
|
1797
2335
|
stepOrder: number;
|
|
1798
2336
|
tool: boolean;
|
|
1799
2337
|
};
|
|
1800
|
-
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" |
|
|
2338
|
+
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens");
|
|
1801
2339
|
indexes: {
|
|
1802
2340
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
1803
2341
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
@@ -1855,6 +2393,7 @@ export declare const vv: {
|
|
|
1855
2393
|
end: number;
|
|
1856
2394
|
parts: ({
|
|
1857
2395
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2396
|
+
providerExecuted?: boolean | undefined;
|
|
1858
2397
|
type: "tool-call";
|
|
1859
2398
|
toolCallId: string;
|
|
1860
2399
|
toolName: string;
|
|
@@ -1862,6 +2401,8 @@ export declare const vv: {
|
|
|
1862
2401
|
} | {
|
|
1863
2402
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1864
2403
|
args?: any;
|
|
2404
|
+
providerExecuted?: boolean | undefined;
|
|
2405
|
+
isError?: boolean | undefined;
|
|
1865
2406
|
experimental_content?: ({
|
|
1866
2407
|
type: "text";
|
|
1867
2408
|
text: string;
|
|
@@ -1870,11 +2411,25 @@ export declare const vv: {
|
|
|
1870
2411
|
type: "image";
|
|
1871
2412
|
data: string;
|
|
1872
2413
|
})[] | undefined;
|
|
1873
|
-
isError?: boolean | undefined;
|
|
1874
2414
|
type: "tool-result";
|
|
1875
2415
|
toolCallId: string;
|
|
1876
2416
|
toolName: string;
|
|
1877
2417
|
result: any;
|
|
2418
|
+
} | {
|
|
2419
|
+
title?: string | undefined;
|
|
2420
|
+
type?: "source" | undefined;
|
|
2421
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2422
|
+
url?: string | undefined;
|
|
2423
|
+
id: string;
|
|
2424
|
+
sourceType: "url";
|
|
2425
|
+
} | {
|
|
2426
|
+
filename?: string | undefined;
|
|
2427
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2428
|
+
id: string;
|
|
2429
|
+
title: string;
|
|
2430
|
+
type: "source";
|
|
2431
|
+
sourceType: "document";
|
|
2432
|
+
mediaType: string;
|
|
1878
2433
|
} | {
|
|
1879
2434
|
type: "text-delta";
|
|
1880
2435
|
textDelta: string;
|
|
@@ -1886,9 +2441,9 @@ export declare const vv: {
|
|
|
1886
2441
|
source: {
|
|
1887
2442
|
title?: string | undefined;
|
|
1888
2443
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2444
|
+
url?: string | undefined;
|
|
1889
2445
|
id: string;
|
|
1890
2446
|
sourceType: "url";
|
|
1891
|
-
url: string;
|
|
1892
2447
|
};
|
|
1893
2448
|
} | {
|
|
1894
2449
|
type: "tool-call-streaming-start";
|
|
@@ -1899,6 +2454,47 @@ export declare const vv: {
|
|
|
1899
2454
|
toolCallId: string;
|
|
1900
2455
|
toolName: string;
|
|
1901
2456
|
argsTextDelta: string;
|
|
2457
|
+
} | {
|
|
2458
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2459
|
+
id: string;
|
|
2460
|
+
type: "text-delta";
|
|
2461
|
+
text: string;
|
|
2462
|
+
} | {
|
|
2463
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2464
|
+
id: string;
|
|
2465
|
+
type: "reasoning-delta";
|
|
2466
|
+
text: string;
|
|
2467
|
+
} | {
|
|
2468
|
+
providerExecuted?: boolean | undefined;
|
|
2469
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2470
|
+
dynamic?: boolean | undefined;
|
|
2471
|
+
type: "tool-call";
|
|
2472
|
+
toolCallId: string;
|
|
2473
|
+
toolName: string;
|
|
2474
|
+
input: any;
|
|
2475
|
+
} | {
|
|
2476
|
+
providerExecuted?: boolean | undefined;
|
|
2477
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2478
|
+
dynamic?: boolean | undefined;
|
|
2479
|
+
id: string;
|
|
2480
|
+
type: "tool-input-start";
|
|
2481
|
+
toolName: string;
|
|
2482
|
+
} | {
|
|
2483
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2484
|
+
id: string;
|
|
2485
|
+
type: "tool-input-delta";
|
|
2486
|
+
delta: string;
|
|
2487
|
+
} | {
|
|
2488
|
+
providerExecuted?: boolean | undefined;
|
|
2489
|
+
input?: any;
|
|
2490
|
+
dynamic?: boolean | undefined;
|
|
2491
|
+
output?: any;
|
|
2492
|
+
type: "tool-result";
|
|
2493
|
+
toolCallId: string;
|
|
2494
|
+
toolName: string;
|
|
2495
|
+
} | {
|
|
2496
|
+
type: "raw";
|
|
2497
|
+
rawValue: any;
|
|
1902
2498
|
})[];
|
|
1903
2499
|
};
|
|
1904
2500
|
fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
|
|
@@ -2313,6 +2909,7 @@ export declare const vv: {
|
|
|
2313
2909
|
} | {
|
|
2314
2910
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2315
2911
|
signature?: string | undefined;
|
|
2912
|
+
state?: "streaming" | "done" | undefined;
|
|
2316
2913
|
type: "reasoning";
|
|
2317
2914
|
text: string;
|
|
2318
2915
|
} | {
|
|
@@ -2321,6 +2918,7 @@ export declare const vv: {
|
|
|
2321
2918
|
data: string;
|
|
2322
2919
|
} | {
|
|
2323
2920
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2921
|
+
providerExecuted?: boolean | undefined;
|
|
2324
2922
|
type: "tool-call";
|
|
2325
2923
|
toolCallId: string;
|
|
2326
2924
|
toolName: string;
|
|
@@ -2332,6 +2930,8 @@ export declare const vv: {
|
|
|
2332
2930
|
content: {
|
|
2333
2931
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2334
2932
|
args?: any;
|
|
2933
|
+
providerExecuted?: boolean | undefined;
|
|
2934
|
+
isError?: boolean | undefined;
|
|
2335
2935
|
experimental_content?: ({
|
|
2336
2936
|
type: "text";
|
|
2337
2937
|
text: string;
|
|
@@ -2340,7 +2940,6 @@ export declare const vv: {
|
|
|
2340
2940
|
type: "image";
|
|
2341
2941
|
data: string;
|
|
2342
2942
|
})[] | undefined;
|
|
2343
|
-
isError?: boolean | undefined;
|
|
2344
2943
|
type: "tool-result";
|
|
2345
2944
|
toolCallId: string;
|
|
2346
2945
|
toolName: string;
|
|
@@ -2354,19 +2953,36 @@ export declare const vv: {
|
|
|
2354
2953
|
text?: string | undefined;
|
|
2355
2954
|
reasoning?: string | undefined;
|
|
2356
2955
|
usage?: {
|
|
2956
|
+
reasoningTokens?: number | undefined;
|
|
2957
|
+
cachedInputTokens?: number | undefined;
|
|
2357
2958
|
promptTokens: number;
|
|
2358
2959
|
completionTokens: number;
|
|
2359
2960
|
totalTokens: number;
|
|
2360
2961
|
} | undefined;
|
|
2361
2962
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2362
|
-
sources?: {
|
|
2963
|
+
sources?: ({
|
|
2363
2964
|
title?: string | undefined;
|
|
2965
|
+
type?: "source" | undefined;
|
|
2364
2966
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2967
|
+
url?: string | undefined;
|
|
2365
2968
|
id: string;
|
|
2366
2969
|
sourceType: "url";
|
|
2367
|
-
|
|
2368
|
-
|
|
2970
|
+
} | {
|
|
2971
|
+
filename?: string | undefined;
|
|
2972
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2973
|
+
id: string;
|
|
2974
|
+
title: string;
|
|
2975
|
+
type: "source";
|
|
2976
|
+
sourceType: "document";
|
|
2977
|
+
mediaType: string;
|
|
2978
|
+
})[] | undefined;
|
|
2369
2979
|
reasoningDetails?: ({
|
|
2980
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2981
|
+
signature?: string | undefined;
|
|
2982
|
+
state?: "streaming" | "done" | undefined;
|
|
2983
|
+
type: "reasoning";
|
|
2984
|
+
text: string;
|
|
2985
|
+
} | {
|
|
2370
2986
|
signature?: string | undefined;
|
|
2371
2987
|
type: "text";
|
|
2372
2988
|
text: string;
|
|
@@ -2395,7 +3011,7 @@ export declare const vv: {
|
|
|
2395
3011
|
stepOrder: number;
|
|
2396
3012
|
tool: boolean;
|
|
2397
3013
|
};
|
|
2398
|
-
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" |
|
|
3014
|
+
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens");
|
|
2399
3015
|
indexes: {
|
|
2400
3016
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2401
3017
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
@@ -2453,6 +3069,7 @@ export declare const vv: {
|
|
|
2453
3069
|
end: number;
|
|
2454
3070
|
parts: ({
|
|
2455
3071
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3072
|
+
providerExecuted?: boolean | undefined;
|
|
2456
3073
|
type: "tool-call";
|
|
2457
3074
|
toolCallId: string;
|
|
2458
3075
|
toolName: string;
|
|
@@ -2460,6 +3077,8 @@ export declare const vv: {
|
|
|
2460
3077
|
} | {
|
|
2461
3078
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2462
3079
|
args?: any;
|
|
3080
|
+
providerExecuted?: boolean | undefined;
|
|
3081
|
+
isError?: boolean | undefined;
|
|
2463
3082
|
experimental_content?: ({
|
|
2464
3083
|
type: "text";
|
|
2465
3084
|
text: string;
|
|
@@ -2468,11 +3087,25 @@ export declare const vv: {
|
|
|
2468
3087
|
type: "image";
|
|
2469
3088
|
data: string;
|
|
2470
3089
|
})[] | undefined;
|
|
2471
|
-
isError?: boolean | undefined;
|
|
2472
3090
|
type: "tool-result";
|
|
2473
3091
|
toolCallId: string;
|
|
2474
3092
|
toolName: string;
|
|
2475
3093
|
result: any;
|
|
3094
|
+
} | {
|
|
3095
|
+
title?: string | undefined;
|
|
3096
|
+
type?: "source" | undefined;
|
|
3097
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3098
|
+
url?: string | undefined;
|
|
3099
|
+
id: string;
|
|
3100
|
+
sourceType: "url";
|
|
3101
|
+
} | {
|
|
3102
|
+
filename?: string | undefined;
|
|
3103
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3104
|
+
id: string;
|
|
3105
|
+
title: string;
|
|
3106
|
+
type: "source";
|
|
3107
|
+
sourceType: "document";
|
|
3108
|
+
mediaType: string;
|
|
2476
3109
|
} | {
|
|
2477
3110
|
type: "text-delta";
|
|
2478
3111
|
textDelta: string;
|
|
@@ -2484,9 +3117,9 @@ export declare const vv: {
|
|
|
2484
3117
|
source: {
|
|
2485
3118
|
title?: string | undefined;
|
|
2486
3119
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3120
|
+
url?: string | undefined;
|
|
2487
3121
|
id: string;
|
|
2488
3122
|
sourceType: "url";
|
|
2489
|
-
url: string;
|
|
2490
3123
|
};
|
|
2491
3124
|
} | {
|
|
2492
3125
|
type: "tool-call-streaming-start";
|
|
@@ -2497,6 +3130,47 @@ export declare const vv: {
|
|
|
2497
3130
|
toolCallId: string;
|
|
2498
3131
|
toolName: string;
|
|
2499
3132
|
argsTextDelta: string;
|
|
3133
|
+
} | {
|
|
3134
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3135
|
+
id: string;
|
|
3136
|
+
type: "text-delta";
|
|
3137
|
+
text: string;
|
|
3138
|
+
} | {
|
|
3139
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3140
|
+
id: string;
|
|
3141
|
+
type: "reasoning-delta";
|
|
3142
|
+
text: string;
|
|
3143
|
+
} | {
|
|
3144
|
+
providerExecuted?: boolean | undefined;
|
|
3145
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3146
|
+
dynamic?: boolean | undefined;
|
|
3147
|
+
type: "tool-call";
|
|
3148
|
+
toolCallId: string;
|
|
3149
|
+
toolName: string;
|
|
3150
|
+
input: any;
|
|
3151
|
+
} | {
|
|
3152
|
+
providerExecuted?: boolean | undefined;
|
|
3153
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3154
|
+
dynamic?: boolean | undefined;
|
|
3155
|
+
id: string;
|
|
3156
|
+
type: "tool-input-start";
|
|
3157
|
+
toolName: string;
|
|
3158
|
+
} | {
|
|
3159
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3160
|
+
id: string;
|
|
3161
|
+
type: "tool-input-delta";
|
|
3162
|
+
delta: string;
|
|
3163
|
+
} | {
|
|
3164
|
+
providerExecuted?: boolean | undefined;
|
|
3165
|
+
input?: any;
|
|
3166
|
+
dynamic?: boolean | undefined;
|
|
3167
|
+
output?: any;
|
|
3168
|
+
type: "tool-result";
|
|
3169
|
+
toolCallId: string;
|
|
3170
|
+
toolName: string;
|
|
3171
|
+
} | {
|
|
3172
|
+
type: "raw";
|
|
3173
|
+
rawValue: any;
|
|
2500
3174
|
})[];
|
|
2501
3175
|
};
|
|
2502
3176
|
fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
|
|
@@ -2871,6 +3545,7 @@ export declare const vv: {
|
|
|
2871
3545
|
} | {
|
|
2872
3546
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2873
3547
|
signature?: string | undefined;
|
|
3548
|
+
state?: "streaming" | "done" | undefined;
|
|
2874
3549
|
type: "reasoning";
|
|
2875
3550
|
text: string;
|
|
2876
3551
|
} | {
|
|
@@ -2879,6 +3554,7 @@ export declare const vv: {
|
|
|
2879
3554
|
data: string;
|
|
2880
3555
|
} | {
|
|
2881
3556
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3557
|
+
providerExecuted?: boolean | undefined;
|
|
2882
3558
|
type: "tool-call";
|
|
2883
3559
|
toolCallId: string;
|
|
2884
3560
|
toolName: string;
|
|
@@ -2890,6 +3566,8 @@ export declare const vv: {
|
|
|
2890
3566
|
content: {
|
|
2891
3567
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2892
3568
|
args?: any;
|
|
3569
|
+
providerExecuted?: boolean | undefined;
|
|
3570
|
+
isError?: boolean | undefined;
|
|
2893
3571
|
experimental_content?: ({
|
|
2894
3572
|
type: "text";
|
|
2895
3573
|
text: string;
|
|
@@ -2898,7 +3576,6 @@ export declare const vv: {
|
|
|
2898
3576
|
type: "image";
|
|
2899
3577
|
data: string;
|
|
2900
3578
|
})[] | undefined;
|
|
2901
|
-
isError?: boolean | undefined;
|
|
2902
3579
|
type: "tool-result";
|
|
2903
3580
|
toolCallId: string;
|
|
2904
3581
|
toolName: string;
|
|
@@ -2912,19 +3589,36 @@ export declare const vv: {
|
|
|
2912
3589
|
text?: string | undefined;
|
|
2913
3590
|
reasoning?: string | undefined;
|
|
2914
3591
|
usage?: {
|
|
3592
|
+
reasoningTokens?: number | undefined;
|
|
3593
|
+
cachedInputTokens?: number | undefined;
|
|
2915
3594
|
promptTokens: number;
|
|
2916
3595
|
completionTokens: number;
|
|
2917
3596
|
totalTokens: number;
|
|
2918
3597
|
} | undefined;
|
|
2919
3598
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2920
|
-
sources?: {
|
|
3599
|
+
sources?: ({
|
|
2921
3600
|
title?: string | undefined;
|
|
3601
|
+
type?: "source" | undefined;
|
|
2922
3602
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3603
|
+
url?: string | undefined;
|
|
2923
3604
|
id: string;
|
|
2924
3605
|
sourceType: "url";
|
|
2925
|
-
|
|
2926
|
-
|
|
3606
|
+
} | {
|
|
3607
|
+
filename?: string | undefined;
|
|
3608
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3609
|
+
id: string;
|
|
3610
|
+
title: string;
|
|
3611
|
+
type: "source";
|
|
3612
|
+
sourceType: "document";
|
|
3613
|
+
mediaType: string;
|
|
3614
|
+
})[] | undefined;
|
|
2927
3615
|
reasoningDetails?: ({
|
|
3616
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3617
|
+
signature?: string | undefined;
|
|
3618
|
+
state?: "streaming" | "done" | undefined;
|
|
3619
|
+
type: "reasoning";
|
|
3620
|
+
text: string;
|
|
3621
|
+
} | {
|
|
2928
3622
|
signature?: string | undefined;
|
|
2929
3623
|
type: "text";
|
|
2930
3624
|
text: string;
|
|
@@ -3001,6 +3695,7 @@ export declare const vv: {
|
|
|
3001
3695
|
} | {
|
|
3002
3696
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3003
3697
|
signature?: string | undefined;
|
|
3698
|
+
state?: "streaming" | "done" | undefined;
|
|
3004
3699
|
type: "reasoning";
|
|
3005
3700
|
text: string;
|
|
3006
3701
|
} | {
|
|
@@ -3009,6 +3704,7 @@ export declare const vv: {
|
|
|
3009
3704
|
data: string;
|
|
3010
3705
|
} | {
|
|
3011
3706
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3707
|
+
providerExecuted?: boolean | undefined;
|
|
3012
3708
|
type: "tool-call";
|
|
3013
3709
|
toolCallId: string;
|
|
3014
3710
|
toolName: string;
|
|
@@ -3020,6 +3716,8 @@ export declare const vv: {
|
|
|
3020
3716
|
content: {
|
|
3021
3717
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3022
3718
|
args?: any;
|
|
3719
|
+
providerExecuted?: boolean | undefined;
|
|
3720
|
+
isError?: boolean | undefined;
|
|
3023
3721
|
experimental_content?: ({
|
|
3024
3722
|
type: "text";
|
|
3025
3723
|
text: string;
|
|
@@ -3028,7 +3726,6 @@ export declare const vv: {
|
|
|
3028
3726
|
type: "image";
|
|
3029
3727
|
data: string;
|
|
3030
3728
|
})[] | undefined;
|
|
3031
|
-
isError?: boolean | undefined;
|
|
3032
3729
|
type: "tool-result";
|
|
3033
3730
|
toolCallId: string;
|
|
3034
3731
|
toolName: string;
|
|
@@ -3152,6 +3849,7 @@ export declare const vv: {
|
|
|
3152
3849
|
} | {
|
|
3153
3850
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3154
3851
|
signature?: string | undefined;
|
|
3852
|
+
state?: "streaming" | "done" | undefined;
|
|
3155
3853
|
type: "reasoning";
|
|
3156
3854
|
text: string;
|
|
3157
3855
|
} | {
|
|
@@ -3160,6 +3858,7 @@ export declare const vv: {
|
|
|
3160
3858
|
data: string;
|
|
3161
3859
|
} | {
|
|
3162
3860
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3861
|
+
providerExecuted?: boolean | undefined;
|
|
3163
3862
|
type: "tool-call";
|
|
3164
3863
|
toolCallId: string;
|
|
3165
3864
|
toolName: string;
|
|
@@ -3180,6 +3879,7 @@ export declare const vv: {
|
|
|
3180
3879
|
} | {
|
|
3181
3880
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3182
3881
|
signature?: string | undefined;
|
|
3882
|
+
state?: "streaming" | "done" | undefined;
|
|
3183
3883
|
type: "reasoning";
|
|
3184
3884
|
text: string;
|
|
3185
3885
|
} | {
|
|
@@ -3188,6 +3888,7 @@ export declare const vv: {
|
|
|
3188
3888
|
data: string;
|
|
3189
3889
|
} | {
|
|
3190
3890
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3891
|
+
providerExecuted?: boolean | undefined;
|
|
3191
3892
|
type: "tool-call";
|
|
3192
3893
|
toolCallId: string;
|
|
3193
3894
|
toolName: string;
|
|
@@ -3205,6 +3906,7 @@ export declare const vv: {
|
|
|
3205
3906
|
} | {
|
|
3206
3907
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3207
3908
|
signature?: string | undefined;
|
|
3909
|
+
state?: "streaming" | "done" | undefined;
|
|
3208
3910
|
type: "reasoning";
|
|
3209
3911
|
text: string;
|
|
3210
3912
|
} | {
|
|
@@ -3213,6 +3915,7 @@ export declare const vv: {
|
|
|
3213
3915
|
data: string;
|
|
3214
3916
|
} | {
|
|
3215
3917
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3918
|
+
providerExecuted?: boolean | undefined;
|
|
3216
3919
|
type: "tool-call";
|
|
3217
3920
|
toolCallId: string;
|
|
3218
3921
|
toolName: string;
|
|
@@ -3230,6 +3933,7 @@ export declare const vv: {
|
|
|
3230
3933
|
} | {
|
|
3231
3934
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3232
3935
|
signature?: string | undefined;
|
|
3936
|
+
state?: "streaming" | "done" | undefined;
|
|
3233
3937
|
type: "reasoning";
|
|
3234
3938
|
text: string;
|
|
3235
3939
|
} | {
|
|
@@ -3238,6 +3942,7 @@ export declare const vv: {
|
|
|
3238
3942
|
data: string;
|
|
3239
3943
|
} | {
|
|
3240
3944
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3945
|
+
providerExecuted?: boolean | undefined;
|
|
3241
3946
|
type: "tool-call";
|
|
3242
3947
|
toolCallId: string;
|
|
3243
3948
|
toolName: string;
|
|
@@ -3265,6 +3970,7 @@ export declare const vv: {
|
|
|
3265
3970
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
3266
3971
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3267
3972
|
signature?: string | undefined;
|
|
3973
|
+
state?: "streaming" | "done" | undefined;
|
|
3268
3974
|
type: "reasoning";
|
|
3269
3975
|
text: string;
|
|
3270
3976
|
}, {
|
|
@@ -3272,7 +3978,8 @@ export declare const vv: {
|
|
|
3272
3978
|
text: import("convex/values").VString<string, "required">;
|
|
3273
3979
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3274
3980
|
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>;
|
|
3275
|
-
|
|
3981
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
3982
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3276
3983
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3277
3984
|
type: "redacted-reasoning";
|
|
3278
3985
|
data: string;
|
|
@@ -3282,6 +3989,7 @@ export declare const vv: {
|
|
|
3282
3989
|
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>;
|
|
3283
3990
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
3284
3991
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3992
|
+
providerExecuted?: boolean | undefined;
|
|
3285
3993
|
type: "tool-call";
|
|
3286
3994
|
toolCallId: string;
|
|
3287
3995
|
toolName: string;
|
|
@@ -3292,7 +4000,8 @@ export declare const vv: {
|
|
|
3292
4000
|
toolName: import("convex/values").VString<string, "required">;
|
|
3293
4001
|
args: import("convex/values").VAny<any, "required", string>;
|
|
3294
4002
|
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>;
|
|
3295
|
-
|
|
4003
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4004
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
3296
4005
|
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>;
|
|
3297
4006
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3298
4007
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3300,6 +4009,8 @@ export declare const vv: {
|
|
|
3300
4009
|
content: {
|
|
3301
4010
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3302
4011
|
args?: any;
|
|
4012
|
+
providerExecuted?: boolean | undefined;
|
|
4013
|
+
isError?: boolean | undefined;
|
|
3303
4014
|
experimental_content?: ({
|
|
3304
4015
|
type: "text";
|
|
3305
4016
|
text: string;
|
|
@@ -3308,7 +4019,6 @@ export declare const vv: {
|
|
|
3308
4019
|
type: "image";
|
|
3309
4020
|
data: string;
|
|
3310
4021
|
})[] | undefined;
|
|
3311
|
-
isError?: boolean | undefined;
|
|
3312
4022
|
type: "tool-result";
|
|
3313
4023
|
toolCallId: string;
|
|
3314
4024
|
toolName: string;
|
|
@@ -3319,6 +4029,8 @@ export declare const vv: {
|
|
|
3319
4029
|
content: import("convex/values").VArray<{
|
|
3320
4030
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3321
4031
|
args?: any;
|
|
4032
|
+
providerExecuted?: boolean | undefined;
|
|
4033
|
+
isError?: boolean | undefined;
|
|
3322
4034
|
experimental_content?: ({
|
|
3323
4035
|
type: "text";
|
|
3324
4036
|
text: string;
|
|
@@ -3327,7 +4039,6 @@ export declare const vv: {
|
|
|
3327
4039
|
type: "image";
|
|
3328
4040
|
data: string;
|
|
3329
4041
|
})[] | undefined;
|
|
3330
|
-
isError?: boolean | undefined;
|
|
3331
4042
|
type: "tool-result";
|
|
3332
4043
|
toolCallId: string;
|
|
3333
4044
|
toolName: string;
|
|
@@ -3335,6 +4046,8 @@ export declare const vv: {
|
|
|
3335
4046
|
}[], import("convex/values").VObject<{
|
|
3336
4047
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3337
4048
|
args?: any;
|
|
4049
|
+
providerExecuted?: boolean | undefined;
|
|
4050
|
+
isError?: boolean | undefined;
|
|
3338
4051
|
experimental_content?: ({
|
|
3339
4052
|
type: "text";
|
|
3340
4053
|
text: string;
|
|
@@ -3343,7 +4056,6 @@ export declare const vv: {
|
|
|
3343
4056
|
type: "image";
|
|
3344
4057
|
data: string;
|
|
3345
4058
|
})[] | undefined;
|
|
3346
|
-
isError?: boolean | undefined;
|
|
3347
4059
|
type: "tool-result";
|
|
3348
4060
|
toolCallId: string;
|
|
3349
4061
|
toolName: string;
|
|
@@ -3353,6 +4065,9 @@ export declare const vv: {
|
|
|
3353
4065
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
3354
4066
|
toolName: import("convex/values").VString<string, "required">;
|
|
3355
4067
|
result: import("convex/values").VAny<any, "required", string>;
|
|
4068
|
+
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>;
|
|
4069
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4070
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3356
4071
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
3357
4072
|
experimental_content: import("convex/values").VArray<({
|
|
3358
4073
|
type: "text";
|
|
@@ -3383,9 +4098,7 @@ export declare const vv: {
|
|
|
3383
4098
|
data: import("convex/values").VString<string, "required">;
|
|
3384
4099
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3385
4100
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
3386
|
-
|
|
3387
|
-
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>;
|
|
3388
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
4101
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
3389
4102
|
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>;
|
|
3390
4103
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3391
4104
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3399,6 +4112,8 @@ export declare const vv: {
|
|
|
3399
4112
|
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
3400
4113
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
3401
4114
|
usage: import("convex/values").VObject<{
|
|
4115
|
+
reasoningTokens?: number | undefined;
|
|
4116
|
+
cachedInputTokens?: number | undefined;
|
|
3402
4117
|
promptTokens: number;
|
|
3403
4118
|
completionTokens: number;
|
|
3404
4119
|
totalTokens: number;
|
|
@@ -3406,29 +4121,79 @@ export declare const vv: {
|
|
|
3406
4121
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
3407
4122
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
3408
4123
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
3409
|
-
|
|
4124
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4125
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4126
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
3410
4127
|
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>;
|
|
3411
|
-
sources: import("convex/values").VArray<{
|
|
4128
|
+
sources: import("convex/values").VArray<({
|
|
3412
4129
|
title?: string | undefined;
|
|
4130
|
+
type?: "source" | undefined;
|
|
3413
4131
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4132
|
+
url?: string | undefined;
|
|
3414
4133
|
id: string;
|
|
3415
4134
|
sourceType: "url";
|
|
3416
|
-
|
|
3417
|
-
|
|
4135
|
+
} | {
|
|
4136
|
+
filename?: string | undefined;
|
|
4137
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4138
|
+
id: string;
|
|
4139
|
+
title: string;
|
|
4140
|
+
type: "source";
|
|
4141
|
+
sourceType: "document";
|
|
4142
|
+
mediaType: string;
|
|
4143
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
3418
4144
|
title?: string | undefined;
|
|
4145
|
+
type?: "source" | undefined;
|
|
3419
4146
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4147
|
+
url?: string | undefined;
|
|
3420
4148
|
id: string;
|
|
3421
4149
|
sourceType: "url";
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
id:
|
|
3426
|
-
|
|
4150
|
+
} | {
|
|
4151
|
+
filename?: string | undefined;
|
|
4152
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4153
|
+
id: string;
|
|
4154
|
+
title: string;
|
|
4155
|
+
type: "source";
|
|
4156
|
+
sourceType: "document";
|
|
4157
|
+
mediaType: string;
|
|
4158
|
+
}, [import("convex/values").VObject<{
|
|
4159
|
+
title?: string | undefined;
|
|
4160
|
+
type?: "source" | undefined;
|
|
4161
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4162
|
+
url?: string | undefined;
|
|
4163
|
+
id: string;
|
|
4164
|
+
sourceType: "url";
|
|
4165
|
+
}, {
|
|
4166
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
4167
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
4168
|
+
id: import("convex/values").VString<string, "required">;
|
|
4169
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
3427
4170
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3428
4171
|
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>;
|
|
3429
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
4172
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
4173
|
+
filename?: string | undefined;
|
|
4174
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4175
|
+
id: string;
|
|
4176
|
+
title: string;
|
|
4177
|
+
type: "source";
|
|
4178
|
+
sourceType: "document";
|
|
4179
|
+
mediaType: string;
|
|
4180
|
+
}, {
|
|
4181
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
4182
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
4183
|
+
id: import("convex/values").VString<string, "required">;
|
|
4184
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
4185
|
+
title: import("convex/values").VString<string, "required">;
|
|
4186
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
4187
|
+
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>;
|
|
4188
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
3430
4189
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
3431
4190
|
reasoningDetails: import("convex/values").VArray<({
|
|
4191
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4192
|
+
signature?: string | undefined;
|
|
4193
|
+
state?: "streaming" | "done" | undefined;
|
|
4194
|
+
type: "reasoning";
|
|
4195
|
+
text: string;
|
|
4196
|
+
} | {
|
|
3432
4197
|
signature?: string | undefined;
|
|
3433
4198
|
type: "text";
|
|
3434
4199
|
text: string;
|
|
@@ -3436,6 +4201,12 @@ export declare const vv: {
|
|
|
3436
4201
|
type: "redacted";
|
|
3437
4202
|
data: string;
|
|
3438
4203
|
})[] | undefined, import("convex/values").VUnion<{
|
|
4204
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4205
|
+
signature?: string | undefined;
|
|
4206
|
+
state?: "streaming" | "done" | undefined;
|
|
4207
|
+
type: "reasoning";
|
|
4208
|
+
text: string;
|
|
4209
|
+
} | {
|
|
3439
4210
|
signature?: string | undefined;
|
|
3440
4211
|
type: "text";
|
|
3441
4212
|
text: string;
|
|
@@ -3443,6 +4214,18 @@ export declare const vv: {
|
|
|
3443
4214
|
type: "redacted";
|
|
3444
4215
|
data: string;
|
|
3445
4216
|
}, [import("convex/values").VObject<{
|
|
4217
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4218
|
+
signature?: string | undefined;
|
|
4219
|
+
state?: "streaming" | "done" | undefined;
|
|
4220
|
+
type: "reasoning";
|
|
4221
|
+
text: string;
|
|
4222
|
+
}, {
|
|
4223
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
4224
|
+
text: import("convex/values").VString<string, "required">;
|
|
4225
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4226
|
+
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>;
|
|
4227
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
4228
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3446
4229
|
signature?: string | undefined;
|
|
3447
4230
|
type: "text";
|
|
3448
4231
|
text: string;
|
|
@@ -3456,7 +4239,7 @@ export declare const vv: {
|
|
|
3456
4239
|
}, {
|
|
3457
4240
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
3458
4241
|
data: import("convex/values").VString<string, "required">;
|
|
3459
|
-
}, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "optional">;
|
|
4242
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
3460
4243
|
warnings: import("convex/values").VArray<({
|
|
3461
4244
|
details?: string | undefined;
|
|
3462
4245
|
type: "unsupported-setting";
|
|
@@ -3506,7 +4289,7 @@ export declare const vv: {
|
|
|
3506
4289
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
3507
4290
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
3508
4291
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
3509
|
-
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" |
|
|
4292
|
+
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, {
|
|
3510
4293
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
3511
4294
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
3512
4295
|
}, {
|
|
@@ -3593,6 +4376,7 @@ export declare const vv: {
|
|
|
3593
4376
|
end: number;
|
|
3594
4377
|
parts: ({
|
|
3595
4378
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4379
|
+
providerExecuted?: boolean | undefined;
|
|
3596
4380
|
type: "tool-call";
|
|
3597
4381
|
toolCallId: string;
|
|
3598
4382
|
toolName: string;
|
|
@@ -3600,6 +4384,8 @@ export declare const vv: {
|
|
|
3600
4384
|
} | {
|
|
3601
4385
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3602
4386
|
args?: any;
|
|
4387
|
+
providerExecuted?: boolean | undefined;
|
|
4388
|
+
isError?: boolean | undefined;
|
|
3603
4389
|
experimental_content?: ({
|
|
3604
4390
|
type: "text";
|
|
3605
4391
|
text: string;
|
|
@@ -3608,11 +4394,25 @@ export declare const vv: {
|
|
|
3608
4394
|
type: "image";
|
|
3609
4395
|
data: string;
|
|
3610
4396
|
})[] | undefined;
|
|
3611
|
-
isError?: boolean | undefined;
|
|
3612
4397
|
type: "tool-result";
|
|
3613
4398
|
toolCallId: string;
|
|
3614
4399
|
toolName: string;
|
|
3615
4400
|
result: any;
|
|
4401
|
+
} | {
|
|
4402
|
+
title?: string | undefined;
|
|
4403
|
+
type?: "source" | undefined;
|
|
4404
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4405
|
+
url?: string | undefined;
|
|
4406
|
+
id: string;
|
|
4407
|
+
sourceType: "url";
|
|
4408
|
+
} | {
|
|
4409
|
+
filename?: string | undefined;
|
|
4410
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4411
|
+
id: string;
|
|
4412
|
+
title: string;
|
|
4413
|
+
type: "source";
|
|
4414
|
+
sourceType: "document";
|
|
4415
|
+
mediaType: string;
|
|
3616
4416
|
} | {
|
|
3617
4417
|
type: "text-delta";
|
|
3618
4418
|
textDelta: string;
|
|
@@ -3624,9 +4424,9 @@ export declare const vv: {
|
|
|
3624
4424
|
source: {
|
|
3625
4425
|
title?: string | undefined;
|
|
3626
4426
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4427
|
+
url?: string | undefined;
|
|
3627
4428
|
id: string;
|
|
3628
4429
|
sourceType: "url";
|
|
3629
|
-
url: string;
|
|
3630
4430
|
};
|
|
3631
4431
|
} | {
|
|
3632
4432
|
type: "tool-call-streaming-start";
|
|
@@ -3637,6 +4437,47 @@ export declare const vv: {
|
|
|
3637
4437
|
toolCallId: string;
|
|
3638
4438
|
toolName: string;
|
|
3639
4439
|
argsTextDelta: string;
|
|
4440
|
+
} | {
|
|
4441
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4442
|
+
id: string;
|
|
4443
|
+
type: "text-delta";
|
|
4444
|
+
text: string;
|
|
4445
|
+
} | {
|
|
4446
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4447
|
+
id: string;
|
|
4448
|
+
type: "reasoning-delta";
|
|
4449
|
+
text: string;
|
|
4450
|
+
} | {
|
|
4451
|
+
providerExecuted?: boolean | undefined;
|
|
4452
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4453
|
+
dynamic?: boolean | undefined;
|
|
4454
|
+
type: "tool-call";
|
|
4455
|
+
toolCallId: string;
|
|
4456
|
+
toolName: string;
|
|
4457
|
+
input: any;
|
|
4458
|
+
} | {
|
|
4459
|
+
providerExecuted?: boolean | undefined;
|
|
4460
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4461
|
+
dynamic?: boolean | undefined;
|
|
4462
|
+
id: string;
|
|
4463
|
+
type: "tool-input-start";
|
|
4464
|
+
toolName: string;
|
|
4465
|
+
} | {
|
|
4466
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4467
|
+
id: string;
|
|
4468
|
+
type: "tool-input-delta";
|
|
4469
|
+
delta: string;
|
|
4470
|
+
} | {
|
|
4471
|
+
providerExecuted?: boolean | undefined;
|
|
4472
|
+
input?: any;
|
|
4473
|
+
dynamic?: boolean | undefined;
|
|
4474
|
+
output?: any;
|
|
4475
|
+
type: "tool-result";
|
|
4476
|
+
toolCallId: string;
|
|
4477
|
+
toolName: string;
|
|
4478
|
+
} | {
|
|
4479
|
+
type: "raw";
|
|
4480
|
+
rawValue: any;
|
|
3640
4481
|
})[];
|
|
3641
4482
|
}, {
|
|
3642
4483
|
streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
|
|
@@ -3644,6 +4485,7 @@ export declare const vv: {
|
|
|
3644
4485
|
end: import("convex/values").VFloat64<number, "required">;
|
|
3645
4486
|
parts: import("convex/values").VArray<({
|
|
3646
4487
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4488
|
+
providerExecuted?: boolean | undefined;
|
|
3647
4489
|
type: "tool-call";
|
|
3648
4490
|
toolCallId: string;
|
|
3649
4491
|
toolName: string;
|
|
@@ -3651,6 +4493,8 @@ export declare const vv: {
|
|
|
3651
4493
|
} | {
|
|
3652
4494
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3653
4495
|
args?: any;
|
|
4496
|
+
providerExecuted?: boolean | undefined;
|
|
4497
|
+
isError?: boolean | undefined;
|
|
3654
4498
|
experimental_content?: ({
|
|
3655
4499
|
type: "text";
|
|
3656
4500
|
text: string;
|
|
@@ -3659,11 +4503,25 @@ export declare const vv: {
|
|
|
3659
4503
|
type: "image";
|
|
3660
4504
|
data: string;
|
|
3661
4505
|
})[] | undefined;
|
|
3662
|
-
isError?: boolean | undefined;
|
|
3663
4506
|
type: "tool-result";
|
|
3664
4507
|
toolCallId: string;
|
|
3665
4508
|
toolName: string;
|
|
3666
4509
|
result: any;
|
|
4510
|
+
} | {
|
|
4511
|
+
title?: string | undefined;
|
|
4512
|
+
type?: "source" | undefined;
|
|
4513
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4514
|
+
url?: string | undefined;
|
|
4515
|
+
id: string;
|
|
4516
|
+
sourceType: "url";
|
|
4517
|
+
} | {
|
|
4518
|
+
filename?: string | undefined;
|
|
4519
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4520
|
+
id: string;
|
|
4521
|
+
title: string;
|
|
4522
|
+
type: "source";
|
|
4523
|
+
sourceType: "document";
|
|
4524
|
+
mediaType: string;
|
|
3667
4525
|
} | {
|
|
3668
4526
|
type: "text-delta";
|
|
3669
4527
|
textDelta: string;
|
|
@@ -3675,9 +4533,9 @@ export declare const vv: {
|
|
|
3675
4533
|
source: {
|
|
3676
4534
|
title?: string | undefined;
|
|
3677
4535
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4536
|
+
url?: string | undefined;
|
|
3678
4537
|
id: string;
|
|
3679
4538
|
sourceType: "url";
|
|
3680
|
-
url: string;
|
|
3681
4539
|
};
|
|
3682
4540
|
} | {
|
|
3683
4541
|
type: "tool-call-streaming-start";
|
|
@@ -3688,8 +4546,50 @@ export declare const vv: {
|
|
|
3688
4546
|
toolCallId: string;
|
|
3689
4547
|
toolName: string;
|
|
3690
4548
|
argsTextDelta: string;
|
|
4549
|
+
} | {
|
|
4550
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4551
|
+
id: string;
|
|
4552
|
+
type: "text-delta";
|
|
4553
|
+
text: string;
|
|
4554
|
+
} | {
|
|
4555
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4556
|
+
id: string;
|
|
4557
|
+
type: "reasoning-delta";
|
|
4558
|
+
text: string;
|
|
4559
|
+
} | {
|
|
4560
|
+
providerExecuted?: boolean | undefined;
|
|
4561
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4562
|
+
dynamic?: boolean | undefined;
|
|
4563
|
+
type: "tool-call";
|
|
4564
|
+
toolCallId: string;
|
|
4565
|
+
toolName: string;
|
|
4566
|
+
input: any;
|
|
4567
|
+
} | {
|
|
4568
|
+
providerExecuted?: boolean | undefined;
|
|
4569
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4570
|
+
dynamic?: boolean | undefined;
|
|
4571
|
+
id: string;
|
|
4572
|
+
type: "tool-input-start";
|
|
4573
|
+
toolName: string;
|
|
4574
|
+
} | {
|
|
4575
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4576
|
+
id: string;
|
|
4577
|
+
type: "tool-input-delta";
|
|
4578
|
+
delta: string;
|
|
4579
|
+
} | {
|
|
4580
|
+
providerExecuted?: boolean | undefined;
|
|
4581
|
+
input?: any;
|
|
4582
|
+
dynamic?: boolean | undefined;
|
|
4583
|
+
output?: any;
|
|
4584
|
+
type: "tool-result";
|
|
4585
|
+
toolCallId: string;
|
|
4586
|
+
toolName: string;
|
|
4587
|
+
} | {
|
|
4588
|
+
type: "raw";
|
|
4589
|
+
rawValue: any;
|
|
3691
4590
|
})[], import("convex/values").VUnion<{
|
|
3692
4591
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4592
|
+
providerExecuted?: boolean | undefined;
|
|
3693
4593
|
type: "tool-call";
|
|
3694
4594
|
toolCallId: string;
|
|
3695
4595
|
toolName: string;
|
|
@@ -3697,6 +4597,8 @@ export declare const vv: {
|
|
|
3697
4597
|
} | {
|
|
3698
4598
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3699
4599
|
args?: any;
|
|
4600
|
+
providerExecuted?: boolean | undefined;
|
|
4601
|
+
isError?: boolean | undefined;
|
|
3700
4602
|
experimental_content?: ({
|
|
3701
4603
|
type: "text";
|
|
3702
4604
|
text: string;
|
|
@@ -3705,7 +4607,110 @@ export declare const vv: {
|
|
|
3705
4607
|
type: "image";
|
|
3706
4608
|
data: string;
|
|
3707
4609
|
})[] | undefined;
|
|
4610
|
+
type: "tool-result";
|
|
4611
|
+
toolCallId: string;
|
|
4612
|
+
toolName: string;
|
|
4613
|
+
result: any;
|
|
4614
|
+
} | {
|
|
4615
|
+
title?: string | undefined;
|
|
4616
|
+
type?: "source" | undefined;
|
|
4617
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4618
|
+
url?: string | undefined;
|
|
4619
|
+
id: string;
|
|
4620
|
+
sourceType: "url";
|
|
4621
|
+
} | {
|
|
4622
|
+
filename?: string | undefined;
|
|
4623
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4624
|
+
id: string;
|
|
4625
|
+
title: string;
|
|
4626
|
+
type: "source";
|
|
4627
|
+
sourceType: "document";
|
|
4628
|
+
mediaType: string;
|
|
4629
|
+
} | {
|
|
4630
|
+
type: "text-delta";
|
|
4631
|
+
textDelta: string;
|
|
4632
|
+
} | {
|
|
4633
|
+
type: "reasoning";
|
|
4634
|
+
textDelta: string;
|
|
4635
|
+
} | {
|
|
4636
|
+
type: "source";
|
|
4637
|
+
source: {
|
|
4638
|
+
title?: string | undefined;
|
|
4639
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4640
|
+
url?: string | undefined;
|
|
4641
|
+
id: string;
|
|
4642
|
+
sourceType: "url";
|
|
4643
|
+
};
|
|
4644
|
+
} | {
|
|
4645
|
+
type: "tool-call-streaming-start";
|
|
4646
|
+
toolCallId: string;
|
|
4647
|
+
toolName: string;
|
|
4648
|
+
} | {
|
|
4649
|
+
type: "tool-call-delta";
|
|
4650
|
+
toolCallId: string;
|
|
4651
|
+
toolName: string;
|
|
4652
|
+
argsTextDelta: string;
|
|
4653
|
+
} | {
|
|
4654
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4655
|
+
id: string;
|
|
4656
|
+
type: "text-delta";
|
|
4657
|
+
text: string;
|
|
4658
|
+
} | {
|
|
4659
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4660
|
+
id: string;
|
|
4661
|
+
type: "reasoning-delta";
|
|
4662
|
+
text: string;
|
|
4663
|
+
} | {
|
|
4664
|
+
providerExecuted?: boolean | undefined;
|
|
4665
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4666
|
+
dynamic?: boolean | undefined;
|
|
4667
|
+
type: "tool-call";
|
|
4668
|
+
toolCallId: string;
|
|
4669
|
+
toolName: string;
|
|
4670
|
+
input: any;
|
|
4671
|
+
} | {
|
|
4672
|
+
providerExecuted?: boolean | undefined;
|
|
4673
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4674
|
+
dynamic?: boolean | undefined;
|
|
4675
|
+
id: string;
|
|
4676
|
+
type: "tool-input-start";
|
|
4677
|
+
toolName: string;
|
|
4678
|
+
} | {
|
|
4679
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4680
|
+
id: string;
|
|
4681
|
+
type: "tool-input-delta";
|
|
4682
|
+
delta: string;
|
|
4683
|
+
} | {
|
|
4684
|
+
providerExecuted?: boolean | undefined;
|
|
4685
|
+
input?: any;
|
|
4686
|
+
dynamic?: boolean | undefined;
|
|
4687
|
+
output?: any;
|
|
4688
|
+
type: "tool-result";
|
|
4689
|
+
toolCallId: string;
|
|
4690
|
+
toolName: string;
|
|
4691
|
+
} | {
|
|
4692
|
+
type: "raw";
|
|
4693
|
+
rawValue: any;
|
|
4694
|
+
}, [import("convex/values").VUnion<{
|
|
4695
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4696
|
+
providerExecuted?: boolean | undefined;
|
|
4697
|
+
type: "tool-call";
|
|
4698
|
+
toolCallId: string;
|
|
4699
|
+
toolName: string;
|
|
4700
|
+
args: any;
|
|
4701
|
+
} | {
|
|
4702
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4703
|
+
args?: any;
|
|
4704
|
+
providerExecuted?: boolean | undefined;
|
|
3708
4705
|
isError?: boolean | undefined;
|
|
4706
|
+
experimental_content?: ({
|
|
4707
|
+
type: "text";
|
|
4708
|
+
text: string;
|
|
4709
|
+
} | {
|
|
4710
|
+
mimeType?: string | undefined;
|
|
4711
|
+
type: "image";
|
|
4712
|
+
data: string;
|
|
4713
|
+
})[] | undefined;
|
|
3709
4714
|
type: "tool-result";
|
|
3710
4715
|
toolCallId: string;
|
|
3711
4716
|
toolName: string;
|
|
@@ -3721,9 +4726,9 @@ export declare const vv: {
|
|
|
3721
4726
|
source: {
|
|
3722
4727
|
title?: string | undefined;
|
|
3723
4728
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4729
|
+
url?: string | undefined;
|
|
3724
4730
|
id: string;
|
|
3725
4731
|
sourceType: "url";
|
|
3726
|
-
url: string;
|
|
3727
4732
|
};
|
|
3728
4733
|
} | {
|
|
3729
4734
|
type: "tool-call-streaming-start";
|
|
@@ -3751,27 +4756,28 @@ export declare const vv: {
|
|
|
3751
4756
|
source: {
|
|
3752
4757
|
title?: string | undefined;
|
|
3753
4758
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4759
|
+
url?: string | undefined;
|
|
3754
4760
|
id: string;
|
|
3755
4761
|
sourceType: "url";
|
|
3756
|
-
url: string;
|
|
3757
4762
|
};
|
|
3758
4763
|
}, {
|
|
3759
4764
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
3760
4765
|
source: import("convex/values").VObject<{
|
|
3761
4766
|
title?: string | undefined;
|
|
3762
4767
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4768
|
+
url?: string | undefined;
|
|
3763
4769
|
id: string;
|
|
3764
4770
|
sourceType: "url";
|
|
3765
|
-
url: string;
|
|
3766
4771
|
}, {
|
|
3767
4772
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
3768
4773
|
id: import("convex/values").VString<string, "required">;
|
|
3769
|
-
url: import("convex/values").VString<string, "
|
|
4774
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
3770
4775
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3771
4776
|
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>;
|
|
3772
4777
|
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
3773
4778
|
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
3774
4779
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4780
|
+
providerExecuted?: boolean | undefined;
|
|
3775
4781
|
type: "tool-call";
|
|
3776
4782
|
toolCallId: string;
|
|
3777
4783
|
toolName: string;
|
|
@@ -3782,27 +4788,12 @@ export declare const vv: {
|
|
|
3782
4788
|
toolName: import("convex/values").VString<string, "required">;
|
|
3783
4789
|
args: import("convex/values").VAny<any, "required", string>;
|
|
3784
4790
|
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>;
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
toolCallId: string;
|
|
3788
|
-
toolName: string;
|
|
3789
|
-
}, {
|
|
3790
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
3791
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
3792
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
3793
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
3794
|
-
type: "tool-call-delta";
|
|
3795
|
-
toolCallId: string;
|
|
3796
|
-
toolName: string;
|
|
3797
|
-
argsTextDelta: string;
|
|
3798
|
-
}, {
|
|
3799
|
-
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
3800
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
3801
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
3802
|
-
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
3803
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
4791
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4792
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
3804
4793
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3805
4794
|
args?: any;
|
|
4795
|
+
providerExecuted?: boolean | undefined;
|
|
4796
|
+
isError?: boolean | undefined;
|
|
3806
4797
|
experimental_content?: ({
|
|
3807
4798
|
type: "text";
|
|
3808
4799
|
text: string;
|
|
@@ -3811,7 +4802,6 @@ export declare const vv: {
|
|
|
3811
4802
|
type: "image";
|
|
3812
4803
|
data: string;
|
|
3813
4804
|
})[] | undefined;
|
|
3814
|
-
isError?: boolean | undefined;
|
|
3815
4805
|
type: "tool-result";
|
|
3816
4806
|
toolCallId: string;
|
|
3817
4807
|
toolName: string;
|
|
@@ -3821,6 +4811,9 @@ export declare const vv: {
|
|
|
3821
4811
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
3822
4812
|
toolName: import("convex/values").VString<string, "required">;
|
|
3823
4813
|
result: import("convex/values").VAny<any, "required", string>;
|
|
4814
|
+
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>;
|
|
4815
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4816
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3824
4817
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
3825
4818
|
experimental_content: import("convex/values").VArray<({
|
|
3826
4819
|
type: "text";
|
|
@@ -3851,9 +4844,208 @@ export declare const vv: {
|
|
|
3851
4844
|
data: import("convex/values").VString<string, "required">;
|
|
3852
4845
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3853
4846
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
3854
|
-
|
|
4847
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VObject<{
|
|
4848
|
+
type: "tool-call-streaming-start";
|
|
4849
|
+
toolCallId: string;
|
|
4850
|
+
toolName: string;
|
|
4851
|
+
}, {
|
|
4852
|
+
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
4853
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
4854
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
4855
|
+
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
4856
|
+
type: "tool-call-delta";
|
|
4857
|
+
toolCallId: string;
|
|
4858
|
+
toolName: string;
|
|
4859
|
+
argsTextDelta: string;
|
|
4860
|
+
}, {
|
|
4861
|
+
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
4862
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
4863
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
4864
|
+
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
4865
|
+
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "source" | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, import("convex/values").VUnion<{
|
|
4866
|
+
title?: string | undefined;
|
|
4867
|
+
type?: "source" | undefined;
|
|
4868
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4869
|
+
url?: string | undefined;
|
|
4870
|
+
id: string;
|
|
4871
|
+
sourceType: "url";
|
|
4872
|
+
} | {
|
|
4873
|
+
filename?: string | undefined;
|
|
4874
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4875
|
+
id: string;
|
|
4876
|
+
title: string;
|
|
4877
|
+
type: "source";
|
|
4878
|
+
sourceType: "document";
|
|
4879
|
+
mediaType: string;
|
|
4880
|
+
} | {
|
|
4881
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4882
|
+
id: string;
|
|
4883
|
+
type: "text-delta";
|
|
4884
|
+
text: string;
|
|
4885
|
+
} | {
|
|
4886
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4887
|
+
id: string;
|
|
4888
|
+
type: "reasoning-delta";
|
|
4889
|
+
text: string;
|
|
4890
|
+
} | {
|
|
4891
|
+
providerExecuted?: boolean | undefined;
|
|
4892
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4893
|
+
dynamic?: boolean | undefined;
|
|
4894
|
+
type: "tool-call";
|
|
4895
|
+
toolCallId: string;
|
|
4896
|
+
toolName: string;
|
|
4897
|
+
input: any;
|
|
4898
|
+
} | {
|
|
4899
|
+
providerExecuted?: boolean | undefined;
|
|
4900
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4901
|
+
dynamic?: boolean | undefined;
|
|
4902
|
+
id: string;
|
|
4903
|
+
type: "tool-input-start";
|
|
4904
|
+
toolName: string;
|
|
4905
|
+
} | {
|
|
4906
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4907
|
+
id: string;
|
|
4908
|
+
type: "tool-input-delta";
|
|
4909
|
+
delta: string;
|
|
4910
|
+
} | {
|
|
4911
|
+
providerExecuted?: boolean | undefined;
|
|
4912
|
+
input?: any;
|
|
4913
|
+
dynamic?: boolean | undefined;
|
|
4914
|
+
output?: any;
|
|
4915
|
+
type: "tool-result";
|
|
4916
|
+
toolCallId: string;
|
|
4917
|
+
toolName: string;
|
|
4918
|
+
} | {
|
|
4919
|
+
type: "raw";
|
|
4920
|
+
rawValue: any;
|
|
4921
|
+
}, [import("convex/values").VObject<{
|
|
4922
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4923
|
+
id: string;
|
|
4924
|
+
type: "text-delta";
|
|
4925
|
+
text: string;
|
|
4926
|
+
}, {
|
|
4927
|
+
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
4928
|
+
id: import("convex/values").VString<string, "required">;
|
|
4929
|
+
text: import("convex/values").VString<string, "required">;
|
|
4930
|
+
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>;
|
|
4931
|
+
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
4932
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4933
|
+
id: string;
|
|
4934
|
+
type: "reasoning-delta";
|
|
4935
|
+
text: string;
|
|
4936
|
+
}, {
|
|
4937
|
+
type: import("convex/values").VLiteral<"reasoning-delta", "required">;
|
|
4938
|
+
id: import("convex/values").VString<string, "required">;
|
|
4939
|
+
text: import("convex/values").VString<string, "required">;
|
|
4940
|
+
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>;
|
|
4941
|
+
}, "required", "id" | "type" | "text" | "providerMetadata" | `providerMetadata.${string}`>, import("convex/values").VUnion<{
|
|
4942
|
+
title?: string | undefined;
|
|
4943
|
+
type?: "source" | undefined;
|
|
4944
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4945
|
+
url?: string | undefined;
|
|
4946
|
+
id: string;
|
|
4947
|
+
sourceType: "url";
|
|
4948
|
+
} | {
|
|
4949
|
+
filename?: string | undefined;
|
|
4950
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4951
|
+
id: string;
|
|
4952
|
+
title: string;
|
|
4953
|
+
type: "source";
|
|
4954
|
+
sourceType: "document";
|
|
4955
|
+
mediaType: string;
|
|
4956
|
+
}, [import("convex/values").VObject<{
|
|
4957
|
+
title?: string | undefined;
|
|
4958
|
+
type?: "source" | undefined;
|
|
4959
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4960
|
+
url?: string | undefined;
|
|
4961
|
+
id: string;
|
|
4962
|
+
sourceType: "url";
|
|
4963
|
+
}, {
|
|
4964
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
4965
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
4966
|
+
id: import("convex/values").VString<string, "required">;
|
|
4967
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
4968
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3855
4969
|
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>;
|
|
3856
|
-
}, "required", "
|
|
4970
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
4971
|
+
filename?: string | undefined;
|
|
4972
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4973
|
+
id: string;
|
|
4974
|
+
title: string;
|
|
4975
|
+
type: "source";
|
|
4976
|
+
sourceType: "document";
|
|
4977
|
+
mediaType: string;
|
|
4978
|
+
}, {
|
|
4979
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
4980
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
4981
|
+
id: import("convex/values").VString<string, "required">;
|
|
4982
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
4983
|
+
title: import("convex/values").VString<string, "required">;
|
|
4984
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
4985
|
+
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>;
|
|
4986
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
4987
|
+
providerExecuted?: boolean | undefined;
|
|
4988
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4989
|
+
dynamic?: boolean | undefined;
|
|
4990
|
+
type: "tool-call";
|
|
4991
|
+
toolCallId: string;
|
|
4992
|
+
toolName: string;
|
|
4993
|
+
input: any;
|
|
4994
|
+
}, {
|
|
4995
|
+
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
4996
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
4997
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
4998
|
+
input: import("convex/values").VAny<any, "required", string>;
|
|
4999
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5000
|
+
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5001
|
+
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>;
|
|
5002
|
+
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}`>, import("convex/values").VObject<{
|
|
5003
|
+
providerExecuted?: boolean | undefined;
|
|
5004
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5005
|
+
dynamic?: boolean | undefined;
|
|
5006
|
+
id: string;
|
|
5007
|
+
type: "tool-input-start";
|
|
5008
|
+
toolName: string;
|
|
5009
|
+
}, {
|
|
5010
|
+
type: import("convex/values").VLiteral<"tool-input-start", "required">;
|
|
5011
|
+
id: import("convex/values").VString<string, "required">;
|
|
5012
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
5013
|
+
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>;
|
|
5014
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5015
|
+
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5016
|
+
}, "required", "id" | "type" | "toolName" | "providerExecuted" | "providerMetadata" | `providerMetadata.${string}` | "dynamic">, import("convex/values").VObject<{
|
|
5017
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5018
|
+
id: string;
|
|
5019
|
+
type: "tool-input-delta";
|
|
5020
|
+
delta: string;
|
|
5021
|
+
}, {
|
|
5022
|
+
type: import("convex/values").VLiteral<"tool-input-delta", "required">;
|
|
5023
|
+
id: import("convex/values").VString<string, "required">;
|
|
5024
|
+
delta: import("convex/values").VString<string, "required">;
|
|
5025
|
+
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>;
|
|
5026
|
+
}, "required", "id" | "type" | "providerMetadata" | `providerMetadata.${string}` | "delta">, import("convex/values").VObject<{
|
|
5027
|
+
providerExecuted?: boolean | undefined;
|
|
5028
|
+
input?: any;
|
|
5029
|
+
dynamic?: boolean | undefined;
|
|
5030
|
+
output?: any;
|
|
5031
|
+
type: "tool-result";
|
|
5032
|
+
toolCallId: string;
|
|
5033
|
+
toolName: string;
|
|
5034
|
+
}, {
|
|
5035
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
5036
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
5037
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
5038
|
+
input: import("convex/values").VAny<any, "optional", string>;
|
|
5039
|
+
output: import("convex/values").VAny<any, "optional", string>;
|
|
5040
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5041
|
+
dynamic: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5042
|
+
}, "required", "type" | "toolCallId" | "toolName" | "providerExecuted" | "input" | "dynamic" | `input.${string}` | "output" | `output.${string}`>, import("convex/values").VObject<{
|
|
5043
|
+
type: "raw";
|
|
5044
|
+
rawValue: any;
|
|
5045
|
+
}, {
|
|
5046
|
+
type: import("convex/values").VLiteral<"raw", "required">;
|
|
5047
|
+
rawValue: import("convex/values").VAny<any, "required", string>;
|
|
5048
|
+
}, "required", "type" | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "providerExecuted" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | "text" | `providerOptions.${string}` | "filename" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "providerMetadata" | "source" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}` | "textDelta" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta" | "input" | "dynamic" | `input.${string}` | "delta" | "output" | `output.${string}` | "rawValue" | `rawValue.${string}`>, "required">;
|
|
3857
5049
|
}, "required", "streamId" | "start" | "end" | "parts">, {
|
|
3858
5050
|
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
3859
5051
|
}, {}, {}>;
|
|
@@ -3972,6 +5164,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3972
5164
|
} | {
|
|
3973
5165
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3974
5166
|
signature?: string | undefined;
|
|
5167
|
+
state?: "streaming" | "done" | undefined;
|
|
3975
5168
|
type: "reasoning";
|
|
3976
5169
|
text: string;
|
|
3977
5170
|
} | {
|
|
@@ -3980,6 +5173,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3980
5173
|
data: string;
|
|
3981
5174
|
} | {
|
|
3982
5175
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5176
|
+
providerExecuted?: boolean | undefined;
|
|
3983
5177
|
type: "tool-call";
|
|
3984
5178
|
toolCallId: string;
|
|
3985
5179
|
toolName: string;
|
|
@@ -3991,6 +5185,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3991
5185
|
content: {
|
|
3992
5186
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3993
5187
|
args?: any;
|
|
5188
|
+
providerExecuted?: boolean | undefined;
|
|
5189
|
+
isError?: boolean | undefined;
|
|
3994
5190
|
experimental_content?: ({
|
|
3995
5191
|
type: "text";
|
|
3996
5192
|
text: string;
|
|
@@ -3999,7 +5195,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3999
5195
|
type: "image";
|
|
4000
5196
|
data: string;
|
|
4001
5197
|
})[] | undefined;
|
|
4002
|
-
isError?: boolean | undefined;
|
|
4003
5198
|
type: "tool-result";
|
|
4004
5199
|
toolCallId: string;
|
|
4005
5200
|
toolName: string;
|
|
@@ -4013,19 +5208,36 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4013
5208
|
text?: string | undefined;
|
|
4014
5209
|
reasoning?: string | undefined;
|
|
4015
5210
|
usage?: {
|
|
5211
|
+
reasoningTokens?: number | undefined;
|
|
5212
|
+
cachedInputTokens?: number | undefined;
|
|
4016
5213
|
promptTokens: number;
|
|
4017
5214
|
completionTokens: number;
|
|
4018
5215
|
totalTokens: number;
|
|
4019
5216
|
} | undefined;
|
|
4020
5217
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4021
|
-
sources?: {
|
|
5218
|
+
sources?: ({
|
|
4022
5219
|
title?: string | undefined;
|
|
5220
|
+
type?: "source" | undefined;
|
|
4023
5221
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5222
|
+
url?: string | undefined;
|
|
4024
5223
|
id: string;
|
|
4025
5224
|
sourceType: "url";
|
|
4026
|
-
|
|
4027
|
-
|
|
5225
|
+
} | {
|
|
5226
|
+
filename?: string | undefined;
|
|
5227
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5228
|
+
id: string;
|
|
5229
|
+
title: string;
|
|
5230
|
+
type: "source";
|
|
5231
|
+
sourceType: "document";
|
|
5232
|
+
mediaType: string;
|
|
5233
|
+
})[] | undefined;
|
|
4028
5234
|
reasoningDetails?: ({
|
|
5235
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5236
|
+
signature?: string | undefined;
|
|
5237
|
+
state?: "streaming" | "done" | undefined;
|
|
5238
|
+
type: "reasoning";
|
|
5239
|
+
text: string;
|
|
5240
|
+
} | {
|
|
4029
5241
|
signature?: string | undefined;
|
|
4030
5242
|
type: "text";
|
|
4031
5243
|
text: string;
|
|
@@ -4102,6 +5314,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4102
5314
|
} | {
|
|
4103
5315
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4104
5316
|
signature?: string | undefined;
|
|
5317
|
+
state?: "streaming" | "done" | undefined;
|
|
4105
5318
|
type: "reasoning";
|
|
4106
5319
|
text: string;
|
|
4107
5320
|
} | {
|
|
@@ -4110,6 +5323,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4110
5323
|
data: string;
|
|
4111
5324
|
} | {
|
|
4112
5325
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5326
|
+
providerExecuted?: boolean | undefined;
|
|
4113
5327
|
type: "tool-call";
|
|
4114
5328
|
toolCallId: string;
|
|
4115
5329
|
toolName: string;
|
|
@@ -4121,6 +5335,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4121
5335
|
content: {
|
|
4122
5336
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4123
5337
|
args?: any;
|
|
5338
|
+
providerExecuted?: boolean | undefined;
|
|
5339
|
+
isError?: boolean | undefined;
|
|
4124
5340
|
experimental_content?: ({
|
|
4125
5341
|
type: "text";
|
|
4126
5342
|
text: string;
|
|
@@ -4129,7 +5345,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4129
5345
|
type: "image";
|
|
4130
5346
|
data: string;
|
|
4131
5347
|
})[] | undefined;
|
|
4132
|
-
isError?: boolean | undefined;
|
|
4133
5348
|
type: "tool-result";
|
|
4134
5349
|
toolCallId: string;
|
|
4135
5350
|
toolName: string;
|
|
@@ -4253,6 +5468,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4253
5468
|
} | {
|
|
4254
5469
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4255
5470
|
signature?: string | undefined;
|
|
5471
|
+
state?: "streaming" | "done" | undefined;
|
|
4256
5472
|
type: "reasoning";
|
|
4257
5473
|
text: string;
|
|
4258
5474
|
} | {
|
|
@@ -4261,6 +5477,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4261
5477
|
data: string;
|
|
4262
5478
|
} | {
|
|
4263
5479
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5480
|
+
providerExecuted?: boolean | undefined;
|
|
4264
5481
|
type: "tool-call";
|
|
4265
5482
|
toolCallId: string;
|
|
4266
5483
|
toolName: string;
|
|
@@ -4281,6 +5498,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4281
5498
|
} | {
|
|
4282
5499
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4283
5500
|
signature?: string | undefined;
|
|
5501
|
+
state?: "streaming" | "done" | undefined;
|
|
4284
5502
|
type: "reasoning";
|
|
4285
5503
|
text: string;
|
|
4286
5504
|
} | {
|
|
@@ -4289,6 +5507,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4289
5507
|
data: string;
|
|
4290
5508
|
} | {
|
|
4291
5509
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5510
|
+
providerExecuted?: boolean | undefined;
|
|
4292
5511
|
type: "tool-call";
|
|
4293
5512
|
toolCallId: string;
|
|
4294
5513
|
toolName: string;
|
|
@@ -4306,6 +5525,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4306
5525
|
} | {
|
|
4307
5526
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4308
5527
|
signature?: string | undefined;
|
|
5528
|
+
state?: "streaming" | "done" | undefined;
|
|
4309
5529
|
type: "reasoning";
|
|
4310
5530
|
text: string;
|
|
4311
5531
|
} | {
|
|
@@ -4314,6 +5534,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4314
5534
|
data: string;
|
|
4315
5535
|
} | {
|
|
4316
5536
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5537
|
+
providerExecuted?: boolean | undefined;
|
|
4317
5538
|
type: "tool-call";
|
|
4318
5539
|
toolCallId: string;
|
|
4319
5540
|
toolName: string;
|
|
@@ -4331,6 +5552,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4331
5552
|
} | {
|
|
4332
5553
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4333
5554
|
signature?: string | undefined;
|
|
5555
|
+
state?: "streaming" | "done" | undefined;
|
|
4334
5556
|
type: "reasoning";
|
|
4335
5557
|
text: string;
|
|
4336
5558
|
} | {
|
|
@@ -4339,6 +5561,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4339
5561
|
data: string;
|
|
4340
5562
|
} | {
|
|
4341
5563
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5564
|
+
providerExecuted?: boolean | undefined;
|
|
4342
5565
|
type: "tool-call";
|
|
4343
5566
|
toolCallId: string;
|
|
4344
5567
|
toolName: string;
|
|
@@ -4366,6 +5589,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4366
5589
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
4367
5590
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4368
5591
|
signature?: string | undefined;
|
|
5592
|
+
state?: "streaming" | "done" | undefined;
|
|
4369
5593
|
type: "reasoning";
|
|
4370
5594
|
text: string;
|
|
4371
5595
|
}, {
|
|
@@ -4373,7 +5597,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4373
5597
|
text: import("convex/values").VString<string, "required">;
|
|
4374
5598
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4375
5599
|
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>;
|
|
4376
|
-
|
|
5600
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
5601
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4377
5602
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4378
5603
|
type: "redacted-reasoning";
|
|
4379
5604
|
data: string;
|
|
@@ -4383,6 +5608,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4383
5608
|
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>;
|
|
4384
5609
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
4385
5610
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5611
|
+
providerExecuted?: boolean | undefined;
|
|
4386
5612
|
type: "tool-call";
|
|
4387
5613
|
toolCallId: string;
|
|
4388
5614
|
toolName: string;
|
|
@@ -4393,7 +5619,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4393
5619
|
toolName: import("convex/values").VString<string, "required">;
|
|
4394
5620
|
args: import("convex/values").VAny<any, "required", string>;
|
|
4395
5621
|
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>;
|
|
4396
|
-
|
|
5622
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5623
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
4397
5624
|
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>;
|
|
4398
5625
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4399
5626
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4401,6 +5628,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4401
5628
|
content: {
|
|
4402
5629
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4403
5630
|
args?: any;
|
|
5631
|
+
providerExecuted?: boolean | undefined;
|
|
5632
|
+
isError?: boolean | undefined;
|
|
4404
5633
|
experimental_content?: ({
|
|
4405
5634
|
type: "text";
|
|
4406
5635
|
text: string;
|
|
@@ -4409,7 +5638,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4409
5638
|
type: "image";
|
|
4410
5639
|
data: string;
|
|
4411
5640
|
})[] | undefined;
|
|
4412
|
-
isError?: boolean | undefined;
|
|
4413
5641
|
type: "tool-result";
|
|
4414
5642
|
toolCallId: string;
|
|
4415
5643
|
toolName: string;
|
|
@@ -4420,6 +5648,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4420
5648
|
content: import("convex/values").VArray<{
|
|
4421
5649
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4422
5650
|
args?: any;
|
|
5651
|
+
providerExecuted?: boolean | undefined;
|
|
5652
|
+
isError?: boolean | undefined;
|
|
4423
5653
|
experimental_content?: ({
|
|
4424
5654
|
type: "text";
|
|
4425
5655
|
text: string;
|
|
@@ -4428,7 +5658,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4428
5658
|
type: "image";
|
|
4429
5659
|
data: string;
|
|
4430
5660
|
})[] | undefined;
|
|
4431
|
-
isError?: boolean | undefined;
|
|
4432
5661
|
type: "tool-result";
|
|
4433
5662
|
toolCallId: string;
|
|
4434
5663
|
toolName: string;
|
|
@@ -4436,6 +5665,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4436
5665
|
}[], import("convex/values").VObject<{
|
|
4437
5666
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4438
5667
|
args?: any;
|
|
5668
|
+
providerExecuted?: boolean | undefined;
|
|
5669
|
+
isError?: boolean | undefined;
|
|
4439
5670
|
experimental_content?: ({
|
|
4440
5671
|
type: "text";
|
|
4441
5672
|
text: string;
|
|
@@ -4444,7 +5675,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4444
5675
|
type: "image";
|
|
4445
5676
|
data: string;
|
|
4446
5677
|
})[] | undefined;
|
|
4447
|
-
isError?: boolean | undefined;
|
|
4448
5678
|
type: "tool-result";
|
|
4449
5679
|
toolCallId: string;
|
|
4450
5680
|
toolName: string;
|
|
@@ -4454,6 +5684,9 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4454
5684
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
4455
5685
|
toolName: import("convex/values").VString<string, "required">;
|
|
4456
5686
|
result: import("convex/values").VAny<any, "required", string>;
|
|
5687
|
+
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>;
|
|
5688
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
5689
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4457
5690
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
4458
5691
|
experimental_content: import("convex/values").VArray<({
|
|
4459
5692
|
type: "text";
|
|
@@ -4484,9 +5717,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4484
5717
|
data: import("convex/values").VString<string, "required">;
|
|
4485
5718
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
4486
5719
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
4487
|
-
|
|
4488
|
-
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>;
|
|
4489
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
5720
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
4490
5721
|
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>;
|
|
4491
5722
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4492
5723
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4500,6 +5731,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4500
5731
|
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
4501
5732
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
4502
5733
|
usage: import("convex/values").VObject<{
|
|
5734
|
+
reasoningTokens?: number | undefined;
|
|
5735
|
+
cachedInputTokens?: number | undefined;
|
|
4503
5736
|
promptTokens: number;
|
|
4504
5737
|
completionTokens: number;
|
|
4505
5738
|
totalTokens: number;
|
|
@@ -4507,29 +5740,79 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4507
5740
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
4508
5741
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
4509
5742
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
4510
|
-
|
|
5743
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5744
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
5745
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
4511
5746
|
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>;
|
|
4512
|
-
sources: import("convex/values").VArray<{
|
|
5747
|
+
sources: import("convex/values").VArray<({
|
|
4513
5748
|
title?: string | undefined;
|
|
5749
|
+
type?: "source" | undefined;
|
|
4514
5750
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5751
|
+
url?: string | undefined;
|
|
4515
5752
|
id: string;
|
|
4516
5753
|
sourceType: "url";
|
|
4517
|
-
|
|
4518
|
-
|
|
5754
|
+
} | {
|
|
5755
|
+
filename?: string | undefined;
|
|
5756
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5757
|
+
id: string;
|
|
5758
|
+
title: string;
|
|
5759
|
+
type: "source";
|
|
5760
|
+
sourceType: "document";
|
|
5761
|
+
mediaType: string;
|
|
5762
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
4519
5763
|
title?: string | undefined;
|
|
5764
|
+
type?: "source" | undefined;
|
|
4520
5765
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5766
|
+
url?: string | undefined;
|
|
5767
|
+
id: string;
|
|
5768
|
+
sourceType: "url";
|
|
5769
|
+
} | {
|
|
5770
|
+
filename?: string | undefined;
|
|
5771
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5772
|
+
id: string;
|
|
5773
|
+
title: string;
|
|
5774
|
+
type: "source";
|
|
5775
|
+
sourceType: "document";
|
|
5776
|
+
mediaType: string;
|
|
5777
|
+
}, [import("convex/values").VObject<{
|
|
5778
|
+
title?: string | undefined;
|
|
5779
|
+
type?: "source" | undefined;
|
|
5780
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5781
|
+
url?: string | undefined;
|
|
4521
5782
|
id: string;
|
|
4522
5783
|
sourceType: "url";
|
|
4523
|
-
url: string;
|
|
4524
5784
|
}, {
|
|
5785
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
4525
5786
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
4526
5787
|
id: import("convex/values").VString<string, "required">;
|
|
4527
|
-
url: import("convex/values").VString<string, "
|
|
5788
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
4528
5789
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
4529
5790
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
4530
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
5791
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
5792
|
+
filename?: string | undefined;
|
|
5793
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5794
|
+
id: string;
|
|
5795
|
+
title: string;
|
|
5796
|
+
type: "source";
|
|
5797
|
+
sourceType: "document";
|
|
5798
|
+
mediaType: string;
|
|
5799
|
+
}, {
|
|
5800
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
5801
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
5802
|
+
id: import("convex/values").VString<string, "required">;
|
|
5803
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
5804
|
+
title: import("convex/values").VString<string, "required">;
|
|
5805
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
5806
|
+
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>;
|
|
5807
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
4531
5808
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
4532
5809
|
reasoningDetails: import("convex/values").VArray<({
|
|
5810
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5811
|
+
signature?: string | undefined;
|
|
5812
|
+
state?: "streaming" | "done" | undefined;
|
|
5813
|
+
type: "reasoning";
|
|
5814
|
+
text: string;
|
|
5815
|
+
} | {
|
|
4533
5816
|
signature?: string | undefined;
|
|
4534
5817
|
type: "text";
|
|
4535
5818
|
text: string;
|
|
@@ -4537,6 +5820,12 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4537
5820
|
type: "redacted";
|
|
4538
5821
|
data: string;
|
|
4539
5822
|
})[] | undefined, import("convex/values").VUnion<{
|
|
5823
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5824
|
+
signature?: string | undefined;
|
|
5825
|
+
state?: "streaming" | "done" | undefined;
|
|
5826
|
+
type: "reasoning";
|
|
5827
|
+
text: string;
|
|
5828
|
+
} | {
|
|
4540
5829
|
signature?: string | undefined;
|
|
4541
5830
|
type: "text";
|
|
4542
5831
|
text: string;
|
|
@@ -4544,6 +5833,18 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4544
5833
|
type: "redacted";
|
|
4545
5834
|
data: string;
|
|
4546
5835
|
}, [import("convex/values").VObject<{
|
|
5836
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5837
|
+
signature?: string | undefined;
|
|
5838
|
+
state?: "streaming" | "done" | undefined;
|
|
5839
|
+
type: "reasoning";
|
|
5840
|
+
text: string;
|
|
5841
|
+
}, {
|
|
5842
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
5843
|
+
text: import("convex/values").VString<string, "required">;
|
|
5844
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
5845
|
+
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>;
|
|
5846
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
5847
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4547
5848
|
signature?: string | undefined;
|
|
4548
5849
|
type: "text";
|
|
4549
5850
|
text: string;
|
|
@@ -4557,7 +5858,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4557
5858
|
}, {
|
|
4558
5859
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
4559
5860
|
data: import("convex/values").VString<string, "required">;
|
|
4560
|
-
}, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "optional">;
|
|
5861
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
4561
5862
|
warnings: import("convex/values").VArray<({
|
|
4562
5863
|
details?: string | undefined;
|
|
4563
5864
|
type: "unsupported-setting";
|
|
@@ -4606,7 +5907,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4606
5907
|
finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
4607
5908
|
_id: import("convex/values").VString<string, "required">;
|
|
4608
5909
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
4609
|
-
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" |
|
|
5910
|
+
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
|
|
4610
5911
|
export type MessageDoc = Infer<typeof vMessageDoc>;
|
|
4611
5912
|
export default schema;
|
|
4612
5913
|
//# sourceMappingURL=schema.d.ts.map
|