@convex-dev/agent 0.2.6-alpha.0 → 0.2.6
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/definePlaygroundAPI.d.ts +6 -4
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/definePlaygroundAPI.js +15 -6
- package/dist/client/definePlaygroundAPI.js.map +1 -1
- package/dist/client/index.d.ts +26 -120
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +48 -373
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +1 -1
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/mockModel.d.ts +3 -3
- package/dist/client/mockModel.d.ts.map +1 -1
- package/dist/client/mockModel.js +22 -17
- package/dist/client/mockModel.js.map +1 -1
- package/dist/client/saveInputMessages.d.ts +20 -0
- package/dist/client/saveInputMessages.d.ts.map +1 -0
- package/dist/client/saveInputMessages.js +57 -0
- package/dist/client/saveInputMessages.js.map +1 -0
- package/dist/client/search.d.ts +110 -9
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +271 -39
- package/dist/client/search.js.map +1 -1
- package/dist/client/start.d.ts +83 -0
- package/dist/client/start.d.ts.map +1 -0
- package/dist/client/start.js +171 -0
- package/dist/client/start.js.map +1 -0
- package/dist/client/streaming.d.ts +8 -8
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +2 -1
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/textStreamParts.d.ts.map +1 -1
- package/dist/client/textStreamParts.js +2 -9
- package/dist/client/textStreamParts.js.map +1 -1
- package/dist/client/threads.d.ts +1 -1
- package/dist/client/threads.d.ts.map +1 -1
- package/dist/client/types.d.ts +137 -5
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +11 -3
- package/dist/component/messages.d.ts +13 -4
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +67 -25
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +2 -1643
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +0 -24
- package/dist/component/schema.js.map +1 -1
- package/dist/mapping.d.ts +7 -9
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +73 -7
- package/dist/mapping.js.map +1 -1
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +15 -5
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/fromUIMessages.d.ts +13 -0
- package/dist/react/fromUIMessages.d.ts.map +1 -0
- package/dist/react/fromUIMessages.js +70 -0
- package/dist/react/fromUIMessages.js.map +1 -0
- package/dist/react/toUIMessages.d.ts +5 -2
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +3 -0
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/shared.d.ts +10 -0
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +26 -0
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +1640 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +41 -0
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/definePlaygroundAPI.ts +16 -7
- package/src/client/index.test.ts +11 -46
- package/src/client/index.ts +99 -558
- package/src/client/messages.ts +1 -1
- package/src/client/mock.json +68 -0
- package/src/client/mockModel.ts +34 -23
- package/src/client/saveInputMessages.test.ts +576 -0
- package/src/client/saveInputMessages.ts +100 -0
- package/src/client/search.test.ts +1017 -0
- package/src/client/search.ts +446 -68
- package/src/client/start.ts +313 -0
- package/src/client/stream.json +48 -0
- package/src/client/streaming.ts +3 -3
- package/src/client/textStreamParts.ts +2 -11
- package/src/client/threads.ts +1 -1
- package/src/client/types.ts +143 -3
- package/src/component/_generated/api.d.ts +11 -3
- package/src/component/messages.ts +73 -27
- package/src/component/schema.ts +1 -29
- package/src/mapping.ts +84 -7
- package/src/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/src/react/deltas.ts +18 -5
- package/src/react/fromUIMessages.test.ts +427 -0
- package/src/react/fromUIMessages.ts +85 -0
- package/src/react/toUIMessages.ts +21 -13
- package/src/shared.ts +33 -0
- package/src/validators.test.ts +13 -2
- package/src/validators.ts +48 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type Infer } from "convex/values";
|
|
2
1
|
export declare const schema: import("convex/server").SchemaDefinition<{
|
|
3
2
|
apiKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
3
|
name?: string | undefined;
|
|
@@ -5404,1652 +5403,12 @@ export declare const vv: {
|
|
|
5404
5403
|
bytes: () => import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
5405
5404
|
literal: <T extends string | number | bigint | boolean>(literal: T) => import("convex/values").VLiteral<T, "required">;
|
|
5406
5405
|
array: <T_1 extends import("convex/values").Validator<any, "required", any>>(element: T_1) => import("convex/values").VArray<T_1["type"][], T_1, "required">;
|
|
5407
|
-
object: <T_2 extends import("convex/values").PropertyValidators>(fields: T_2) => import("convex/values").VObject<import("convex/server").Expand<{ [Property in { [Property_1 in keyof T_2]: T_2[Property_1]["isOptional"] extends "optional" ? Property_1 : never; }[keyof T_2]]?: Exclude<Infer<T_2[Property]>, undefined> | undefined; } & { [Property_1 in Exclude<keyof T_2, { [Property in keyof T_2]: T_2[Property]["isOptional"] extends "optional" ? Property : never; }[keyof T_2]>]: Infer<T_2[Property_1]>; }>, T_2, "required", { [Property_2 in keyof T_2]: Property_2 | `${Property_2 & string}.${T_2[Property_2]["fieldPaths"]}`; }[keyof T_2] & string>;
|
|
5408
|
-
record: <Key extends import("convex/values").Validator<string, "required", any>, Value extends import("convex/values").Validator<any, "required", any>>(keys: Key, values: Value) => import("convex/values").VRecord<Record<Infer<Key>, Value["type"]>, Key, Value, "required", string>;
|
|
5406
|
+
object: <T_2 extends import("convex/values").PropertyValidators>(fields: T_2) => import("convex/values").VObject<import("convex/server").Expand<{ [Property in { [Property_1 in keyof T_2]: T_2[Property_1]["isOptional"] extends "optional" ? Property_1 : never; }[keyof T_2]]?: Exclude<import("convex/values").Infer<T_2[Property]>, undefined> | undefined; } & { [Property_1 in Exclude<keyof T_2, { [Property in keyof T_2]: T_2[Property]["isOptional"] extends "optional" ? Property : never; }[keyof T_2]>]: import("convex/values").Infer<T_2[Property_1]>; }>, T_2, "required", { [Property_2 in keyof T_2]: Property_2 | `${Property_2 & string}.${T_2[Property_2]["fieldPaths"]}`; }[keyof T_2] & string>;
|
|
5407
|
+
record: <Key extends import("convex/values").Validator<string, "required", any>, Value extends import("convex/values").Validator<any, "required", any>>(keys: Key, values: Value) => import("convex/values").VRecord<Record<import("convex/values").Infer<Key>, Value["type"]>, Key, Value, "required", string>;
|
|
5409
5408
|
union: <T_3 extends import("convex/values").Validator<any, "required", any>[]>(...members: T_3) => import("convex/values").VUnion<T_3[number]["type"], T_3, "required", T_3[number]["fieldPaths"]>;
|
|
5410
5409
|
any: () => import("convex/values").VAny<any, "required", string>;
|
|
5411
5410
|
optional: <T_4 extends import("convex/values").GenericValidator>(value: T_4) => import("convex/values").VOptional<T_4>;
|
|
5412
5411
|
};
|
|
5413
5412
|
export { vv as v };
|
|
5414
|
-
export declare const vThreadDoc: import("convex/values").VObject<{
|
|
5415
|
-
userId?: string | undefined;
|
|
5416
|
-
title?: string | undefined;
|
|
5417
|
-
summary?: string | undefined;
|
|
5418
|
-
_id: string;
|
|
5419
|
-
_creationTime: number;
|
|
5420
|
-
status: "active" | "archived";
|
|
5421
|
-
}, {
|
|
5422
|
-
_id: import("convex/values").VString<string, "required">;
|
|
5423
|
-
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
5424
|
-
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
5425
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
5426
|
-
summary: import("convex/values").VString<string | undefined, "optional">;
|
|
5427
|
-
status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
|
|
5428
|
-
}, "required", "_id" | "_creationTime" | "status" | "userId" | "title" | "summary">;
|
|
5429
|
-
export type ThreadDoc = Infer<typeof vThreadDoc>;
|
|
5430
|
-
export declare const vMessageDoc: import("convex/values").VObject<{
|
|
5431
|
-
id?: string | undefined;
|
|
5432
|
-
userId?: string | undefined;
|
|
5433
|
-
embeddingId?: string | undefined;
|
|
5434
|
-
fileIds?: string[] | undefined;
|
|
5435
|
-
error?: string | undefined;
|
|
5436
|
-
agentName?: string | undefined;
|
|
5437
|
-
model?: string | undefined;
|
|
5438
|
-
provider?: string | undefined;
|
|
5439
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5440
|
-
message?: {
|
|
5441
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5442
|
-
role: "user";
|
|
5443
|
-
content: string | ({
|
|
5444
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5445
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5446
|
-
type: "text";
|
|
5447
|
-
text: string;
|
|
5448
|
-
} | {
|
|
5449
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5450
|
-
mimeType?: string | undefined;
|
|
5451
|
-
type: "image";
|
|
5452
|
-
image: string | ArrayBuffer;
|
|
5453
|
-
} | {
|
|
5454
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5455
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5456
|
-
filename?: string | undefined;
|
|
5457
|
-
type: "file";
|
|
5458
|
-
mimeType: string;
|
|
5459
|
-
data: string | ArrayBuffer;
|
|
5460
|
-
})[];
|
|
5461
|
-
} | {
|
|
5462
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5463
|
-
role: "assistant";
|
|
5464
|
-
content: string | ({
|
|
5465
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5466
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5467
|
-
type: "text";
|
|
5468
|
-
text: string;
|
|
5469
|
-
} | {
|
|
5470
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5471
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5472
|
-
filename?: string | undefined;
|
|
5473
|
-
type: "file";
|
|
5474
|
-
mimeType: string;
|
|
5475
|
-
data: string | ArrayBuffer;
|
|
5476
|
-
} | {
|
|
5477
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5478
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5479
|
-
signature?: string | undefined;
|
|
5480
|
-
type: "reasoning";
|
|
5481
|
-
text: string;
|
|
5482
|
-
} | {
|
|
5483
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5484
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5485
|
-
type: "redacted-reasoning";
|
|
5486
|
-
data: string;
|
|
5487
|
-
} | {
|
|
5488
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5489
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5490
|
-
providerExecuted?: boolean | undefined;
|
|
5491
|
-
type: "tool-call";
|
|
5492
|
-
toolCallId: string;
|
|
5493
|
-
toolName: string;
|
|
5494
|
-
args: any;
|
|
5495
|
-
} | {
|
|
5496
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5497
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5498
|
-
args?: any;
|
|
5499
|
-
providerExecuted?: boolean | undefined;
|
|
5500
|
-
output?: {
|
|
5501
|
-
type: "text";
|
|
5502
|
-
value: string;
|
|
5503
|
-
} | {
|
|
5504
|
-
type: "json";
|
|
5505
|
-
value: any;
|
|
5506
|
-
} | {
|
|
5507
|
-
type: "error-text";
|
|
5508
|
-
value: string;
|
|
5509
|
-
} | {
|
|
5510
|
-
type: "error-json";
|
|
5511
|
-
value: any;
|
|
5512
|
-
} | {
|
|
5513
|
-
type: "content";
|
|
5514
|
-
value: ({
|
|
5515
|
-
type: "text";
|
|
5516
|
-
text: string;
|
|
5517
|
-
} | {
|
|
5518
|
-
type: "media";
|
|
5519
|
-
data: string;
|
|
5520
|
-
mediaType: string;
|
|
5521
|
-
})[];
|
|
5522
|
-
} | undefined;
|
|
5523
|
-
result?: any;
|
|
5524
|
-
isError?: boolean | undefined;
|
|
5525
|
-
experimental_content?: ({
|
|
5526
|
-
type: "text";
|
|
5527
|
-
text: string;
|
|
5528
|
-
} | {
|
|
5529
|
-
mimeType?: string | undefined;
|
|
5530
|
-
type: "image";
|
|
5531
|
-
data: string;
|
|
5532
|
-
})[] | undefined;
|
|
5533
|
-
type: "tool-result";
|
|
5534
|
-
toolCallId: string;
|
|
5535
|
-
toolName: string;
|
|
5536
|
-
} | {
|
|
5537
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5538
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5539
|
-
id: string;
|
|
5540
|
-
title: string;
|
|
5541
|
-
type: "source";
|
|
5542
|
-
sourceType: "url";
|
|
5543
|
-
url: string;
|
|
5544
|
-
} | {
|
|
5545
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5546
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5547
|
-
filename?: string | undefined;
|
|
5548
|
-
id: string;
|
|
5549
|
-
title: string;
|
|
5550
|
-
type: "source";
|
|
5551
|
-
mediaType: string;
|
|
5552
|
-
sourceType: "document";
|
|
5553
|
-
})[];
|
|
5554
|
-
} | {
|
|
5555
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5556
|
-
role: "tool";
|
|
5557
|
-
content: {
|
|
5558
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5559
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5560
|
-
args?: any;
|
|
5561
|
-
providerExecuted?: boolean | undefined;
|
|
5562
|
-
output?: {
|
|
5563
|
-
type: "text";
|
|
5564
|
-
value: string;
|
|
5565
|
-
} | {
|
|
5566
|
-
type: "json";
|
|
5567
|
-
value: any;
|
|
5568
|
-
} | {
|
|
5569
|
-
type: "error-text";
|
|
5570
|
-
value: string;
|
|
5571
|
-
} | {
|
|
5572
|
-
type: "error-json";
|
|
5573
|
-
value: any;
|
|
5574
|
-
} | {
|
|
5575
|
-
type: "content";
|
|
5576
|
-
value: ({
|
|
5577
|
-
type: "text";
|
|
5578
|
-
text: string;
|
|
5579
|
-
} | {
|
|
5580
|
-
type: "media";
|
|
5581
|
-
data: string;
|
|
5582
|
-
mediaType: string;
|
|
5583
|
-
})[];
|
|
5584
|
-
} | undefined;
|
|
5585
|
-
result?: any;
|
|
5586
|
-
isError?: boolean | undefined;
|
|
5587
|
-
experimental_content?: ({
|
|
5588
|
-
type: "text";
|
|
5589
|
-
text: string;
|
|
5590
|
-
} | {
|
|
5591
|
-
mimeType?: string | undefined;
|
|
5592
|
-
type: "image";
|
|
5593
|
-
data: string;
|
|
5594
|
-
})[] | undefined;
|
|
5595
|
-
type: "tool-result";
|
|
5596
|
-
toolCallId: string;
|
|
5597
|
-
toolName: string;
|
|
5598
|
-
}[];
|
|
5599
|
-
} | {
|
|
5600
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5601
|
-
role: "system";
|
|
5602
|
-
content: string;
|
|
5603
|
-
} | undefined;
|
|
5604
|
-
text?: string | undefined;
|
|
5605
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5606
|
-
reasoning?: string | undefined;
|
|
5607
|
-
usage?: {
|
|
5608
|
-
reasoningTokens?: number | undefined;
|
|
5609
|
-
cachedInputTokens?: number | undefined;
|
|
5610
|
-
promptTokens: number;
|
|
5611
|
-
completionTokens: number;
|
|
5612
|
-
totalTokens: number;
|
|
5613
|
-
} | undefined;
|
|
5614
|
-
sources?: ({
|
|
5615
|
-
title?: string | undefined;
|
|
5616
|
-
type?: "source" | undefined;
|
|
5617
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5618
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5619
|
-
id: string;
|
|
5620
|
-
sourceType: "url";
|
|
5621
|
-
url: string;
|
|
5622
|
-
} | {
|
|
5623
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5624
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5625
|
-
filename?: string | undefined;
|
|
5626
|
-
id: string;
|
|
5627
|
-
title: string;
|
|
5628
|
-
type: "source";
|
|
5629
|
-
mediaType: string;
|
|
5630
|
-
sourceType: "document";
|
|
5631
|
-
})[] | undefined;
|
|
5632
|
-
warnings?: ({
|
|
5633
|
-
details?: string | undefined;
|
|
5634
|
-
type: "unsupported-setting";
|
|
5635
|
-
setting: string;
|
|
5636
|
-
} | {
|
|
5637
|
-
details?: string | undefined;
|
|
5638
|
-
type: "unsupported-tool";
|
|
5639
|
-
tool: any;
|
|
5640
|
-
} | {
|
|
5641
|
-
type: "other";
|
|
5642
|
-
message: string;
|
|
5643
|
-
})[] | undefined;
|
|
5644
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
5645
|
-
reasoningDetails?: ({
|
|
5646
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5647
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5648
|
-
signature?: string | undefined;
|
|
5649
|
-
type: "reasoning";
|
|
5650
|
-
text: string;
|
|
5651
|
-
} | {
|
|
5652
|
-
signature?: string | undefined;
|
|
5653
|
-
type: "text";
|
|
5654
|
-
text: string;
|
|
5655
|
-
} | {
|
|
5656
|
-
type: "redacted";
|
|
5657
|
-
data: string;
|
|
5658
|
-
})[] | undefined;
|
|
5659
|
-
_id: string;
|
|
5660
|
-
_creationTime: number;
|
|
5661
|
-
status: "pending" | "success" | "failed";
|
|
5662
|
-
order: number;
|
|
5663
|
-
threadId: string;
|
|
5664
|
-
stepOrder: number;
|
|
5665
|
-
tool: boolean;
|
|
5666
|
-
}, {
|
|
5667
|
-
threadId: import("convex/values").VString<string, "required">;
|
|
5668
|
-
embeddingId: import("convex/values").VString<string | undefined, "optional">;
|
|
5669
|
-
fileIds: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
5670
|
-
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
5671
|
-
order: import("convex/values").VFloat64<number, "required">;
|
|
5672
|
-
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
5673
|
-
error: import("convex/values").VString<string | undefined, "optional">;
|
|
5674
|
-
status: import("convex/values").VUnion<"pending" | "success" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
5675
|
-
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
5676
|
-
model: import("convex/values").VString<string | undefined, "optional">;
|
|
5677
|
-
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
5678
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5679
|
-
message: import("convex/values").VUnion<{
|
|
5680
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5681
|
-
role: "user";
|
|
5682
|
-
content: string | ({
|
|
5683
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5684
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5685
|
-
type: "text";
|
|
5686
|
-
text: string;
|
|
5687
|
-
} | {
|
|
5688
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5689
|
-
mimeType?: string | undefined;
|
|
5690
|
-
type: "image";
|
|
5691
|
-
image: string | ArrayBuffer;
|
|
5692
|
-
} | {
|
|
5693
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5694
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5695
|
-
filename?: string | undefined;
|
|
5696
|
-
type: "file";
|
|
5697
|
-
mimeType: string;
|
|
5698
|
-
data: string | ArrayBuffer;
|
|
5699
|
-
})[];
|
|
5700
|
-
} | {
|
|
5701
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5702
|
-
role: "assistant";
|
|
5703
|
-
content: string | ({
|
|
5704
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5705
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5706
|
-
type: "text";
|
|
5707
|
-
text: string;
|
|
5708
|
-
} | {
|
|
5709
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5710
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5711
|
-
filename?: string | undefined;
|
|
5712
|
-
type: "file";
|
|
5713
|
-
mimeType: string;
|
|
5714
|
-
data: string | ArrayBuffer;
|
|
5715
|
-
} | {
|
|
5716
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5717
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5718
|
-
signature?: string | undefined;
|
|
5719
|
-
type: "reasoning";
|
|
5720
|
-
text: string;
|
|
5721
|
-
} | {
|
|
5722
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5723
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5724
|
-
type: "redacted-reasoning";
|
|
5725
|
-
data: string;
|
|
5726
|
-
} | {
|
|
5727
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5728
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5729
|
-
providerExecuted?: boolean | undefined;
|
|
5730
|
-
type: "tool-call";
|
|
5731
|
-
toolCallId: string;
|
|
5732
|
-
toolName: string;
|
|
5733
|
-
args: any;
|
|
5734
|
-
} | {
|
|
5735
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5736
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5737
|
-
args?: any;
|
|
5738
|
-
providerExecuted?: boolean | undefined;
|
|
5739
|
-
output?: {
|
|
5740
|
-
type: "text";
|
|
5741
|
-
value: string;
|
|
5742
|
-
} | {
|
|
5743
|
-
type: "json";
|
|
5744
|
-
value: any;
|
|
5745
|
-
} | {
|
|
5746
|
-
type: "error-text";
|
|
5747
|
-
value: string;
|
|
5748
|
-
} | {
|
|
5749
|
-
type: "error-json";
|
|
5750
|
-
value: any;
|
|
5751
|
-
} | {
|
|
5752
|
-
type: "content";
|
|
5753
|
-
value: ({
|
|
5754
|
-
type: "text";
|
|
5755
|
-
text: string;
|
|
5756
|
-
} | {
|
|
5757
|
-
type: "media";
|
|
5758
|
-
data: string;
|
|
5759
|
-
mediaType: string;
|
|
5760
|
-
})[];
|
|
5761
|
-
} | undefined;
|
|
5762
|
-
result?: any;
|
|
5763
|
-
isError?: boolean | undefined;
|
|
5764
|
-
experimental_content?: ({
|
|
5765
|
-
type: "text";
|
|
5766
|
-
text: string;
|
|
5767
|
-
} | {
|
|
5768
|
-
mimeType?: string | undefined;
|
|
5769
|
-
type: "image";
|
|
5770
|
-
data: string;
|
|
5771
|
-
})[] | undefined;
|
|
5772
|
-
type: "tool-result";
|
|
5773
|
-
toolCallId: string;
|
|
5774
|
-
toolName: string;
|
|
5775
|
-
} | {
|
|
5776
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5777
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5778
|
-
id: string;
|
|
5779
|
-
title: string;
|
|
5780
|
-
type: "source";
|
|
5781
|
-
sourceType: "url";
|
|
5782
|
-
url: string;
|
|
5783
|
-
} | {
|
|
5784
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5785
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5786
|
-
filename?: string | undefined;
|
|
5787
|
-
id: string;
|
|
5788
|
-
title: string;
|
|
5789
|
-
type: "source";
|
|
5790
|
-
mediaType: string;
|
|
5791
|
-
sourceType: "document";
|
|
5792
|
-
})[];
|
|
5793
|
-
} | {
|
|
5794
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5795
|
-
role: "tool";
|
|
5796
|
-
content: {
|
|
5797
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5798
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5799
|
-
args?: any;
|
|
5800
|
-
providerExecuted?: boolean | undefined;
|
|
5801
|
-
output?: {
|
|
5802
|
-
type: "text";
|
|
5803
|
-
value: string;
|
|
5804
|
-
} | {
|
|
5805
|
-
type: "json";
|
|
5806
|
-
value: any;
|
|
5807
|
-
} | {
|
|
5808
|
-
type: "error-text";
|
|
5809
|
-
value: string;
|
|
5810
|
-
} | {
|
|
5811
|
-
type: "error-json";
|
|
5812
|
-
value: any;
|
|
5813
|
-
} | {
|
|
5814
|
-
type: "content";
|
|
5815
|
-
value: ({
|
|
5816
|
-
type: "text";
|
|
5817
|
-
text: string;
|
|
5818
|
-
} | {
|
|
5819
|
-
type: "media";
|
|
5820
|
-
data: string;
|
|
5821
|
-
mediaType: string;
|
|
5822
|
-
})[];
|
|
5823
|
-
} | undefined;
|
|
5824
|
-
result?: any;
|
|
5825
|
-
isError?: boolean | undefined;
|
|
5826
|
-
experimental_content?: ({
|
|
5827
|
-
type: "text";
|
|
5828
|
-
text: string;
|
|
5829
|
-
} | {
|
|
5830
|
-
mimeType?: string | undefined;
|
|
5831
|
-
type: "image";
|
|
5832
|
-
data: string;
|
|
5833
|
-
})[] | undefined;
|
|
5834
|
-
type: "tool-result";
|
|
5835
|
-
toolCallId: string;
|
|
5836
|
-
toolName: string;
|
|
5837
|
-
}[];
|
|
5838
|
-
} | {
|
|
5839
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5840
|
-
role: "system";
|
|
5841
|
-
content: string;
|
|
5842
|
-
} | undefined, [import("convex/values").VObject<{
|
|
5843
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5844
|
-
role: "user";
|
|
5845
|
-
content: string | ({
|
|
5846
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5847
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5848
|
-
type: "text";
|
|
5849
|
-
text: string;
|
|
5850
|
-
} | {
|
|
5851
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5852
|
-
mimeType?: string | undefined;
|
|
5853
|
-
type: "image";
|
|
5854
|
-
image: string | ArrayBuffer;
|
|
5855
|
-
} | {
|
|
5856
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5857
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5858
|
-
filename?: string | undefined;
|
|
5859
|
-
type: "file";
|
|
5860
|
-
mimeType: string;
|
|
5861
|
-
data: string | ArrayBuffer;
|
|
5862
|
-
})[];
|
|
5863
|
-
}, {
|
|
5864
|
-
role: import("convex/values").VLiteral<"user", "required">;
|
|
5865
|
-
content: import("convex/values").VUnion<string | ({
|
|
5866
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5867
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5868
|
-
type: "text";
|
|
5869
|
-
text: string;
|
|
5870
|
-
} | {
|
|
5871
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5872
|
-
mimeType?: string | undefined;
|
|
5873
|
-
type: "image";
|
|
5874
|
-
image: string | ArrayBuffer;
|
|
5875
|
-
} | {
|
|
5876
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5877
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5878
|
-
filename?: string | undefined;
|
|
5879
|
-
type: "file";
|
|
5880
|
-
mimeType: string;
|
|
5881
|
-
data: string | ArrayBuffer;
|
|
5882
|
-
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
5883
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5884
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5885
|
-
type: "text";
|
|
5886
|
-
text: string;
|
|
5887
|
-
} | {
|
|
5888
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5889
|
-
mimeType?: string | undefined;
|
|
5890
|
-
type: "image";
|
|
5891
|
-
image: string | ArrayBuffer;
|
|
5892
|
-
} | {
|
|
5893
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5894
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5895
|
-
filename?: string | undefined;
|
|
5896
|
-
type: "file";
|
|
5897
|
-
mimeType: string;
|
|
5898
|
-
data: string | ArrayBuffer;
|
|
5899
|
-
})[], import("convex/values").VUnion<{
|
|
5900
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5901
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5902
|
-
type: "text";
|
|
5903
|
-
text: string;
|
|
5904
|
-
} | {
|
|
5905
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5906
|
-
mimeType?: string | undefined;
|
|
5907
|
-
type: "image";
|
|
5908
|
-
image: string | ArrayBuffer;
|
|
5909
|
-
} | {
|
|
5910
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5911
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5912
|
-
filename?: string | undefined;
|
|
5913
|
-
type: "file";
|
|
5914
|
-
mimeType: string;
|
|
5915
|
-
data: string | ArrayBuffer;
|
|
5916
|
-
}, [import("convex/values").VObject<{
|
|
5917
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5918
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5919
|
-
type: "text";
|
|
5920
|
-
text: string;
|
|
5921
|
-
}, {
|
|
5922
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
5923
|
-
text: import("convex/values").VString<string, "required">;
|
|
5924
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5925
|
-
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>;
|
|
5926
|
-
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
5927
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5928
|
-
mimeType?: string | undefined;
|
|
5929
|
-
type: "image";
|
|
5930
|
-
image: string | ArrayBuffer;
|
|
5931
|
-
}, {
|
|
5932
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
5933
|
-
image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
5934
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
5935
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5936
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
|
|
5937
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5938
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5939
|
-
filename?: string | undefined;
|
|
5940
|
-
type: "file";
|
|
5941
|
-
mimeType: string;
|
|
5942
|
-
data: string | ArrayBuffer;
|
|
5943
|
-
}, {
|
|
5944
|
-
type: import("convex/values").VLiteral<"file", "required">;
|
|
5945
|
-
data: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
5946
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
5947
|
-
mimeType: import("convex/values").VString<string, "required">;
|
|
5948
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5949
|
-
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>;
|
|
5950
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
5951
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
5952
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
5953
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5954
|
-
role: "assistant";
|
|
5955
|
-
content: string | ({
|
|
5956
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5957
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5958
|
-
type: "text";
|
|
5959
|
-
text: string;
|
|
5960
|
-
} | {
|
|
5961
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5962
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5963
|
-
filename?: string | undefined;
|
|
5964
|
-
type: "file";
|
|
5965
|
-
mimeType: string;
|
|
5966
|
-
data: string | ArrayBuffer;
|
|
5967
|
-
} | {
|
|
5968
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5969
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5970
|
-
signature?: string | undefined;
|
|
5971
|
-
type: "reasoning";
|
|
5972
|
-
text: string;
|
|
5973
|
-
} | {
|
|
5974
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5975
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5976
|
-
type: "redacted-reasoning";
|
|
5977
|
-
data: string;
|
|
5978
|
-
} | {
|
|
5979
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5980
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5981
|
-
providerExecuted?: boolean | undefined;
|
|
5982
|
-
type: "tool-call";
|
|
5983
|
-
toolCallId: string;
|
|
5984
|
-
toolName: string;
|
|
5985
|
-
args: any;
|
|
5986
|
-
} | {
|
|
5987
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5988
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5989
|
-
args?: any;
|
|
5990
|
-
providerExecuted?: boolean | undefined;
|
|
5991
|
-
output?: {
|
|
5992
|
-
type: "text";
|
|
5993
|
-
value: string;
|
|
5994
|
-
} | {
|
|
5995
|
-
type: "json";
|
|
5996
|
-
value: any;
|
|
5997
|
-
} | {
|
|
5998
|
-
type: "error-text";
|
|
5999
|
-
value: string;
|
|
6000
|
-
} | {
|
|
6001
|
-
type: "error-json";
|
|
6002
|
-
value: any;
|
|
6003
|
-
} | {
|
|
6004
|
-
type: "content";
|
|
6005
|
-
value: ({
|
|
6006
|
-
type: "text";
|
|
6007
|
-
text: string;
|
|
6008
|
-
} | {
|
|
6009
|
-
type: "media";
|
|
6010
|
-
data: string;
|
|
6011
|
-
mediaType: string;
|
|
6012
|
-
})[];
|
|
6013
|
-
} | undefined;
|
|
6014
|
-
result?: any;
|
|
6015
|
-
isError?: boolean | undefined;
|
|
6016
|
-
experimental_content?: ({
|
|
6017
|
-
type: "text";
|
|
6018
|
-
text: string;
|
|
6019
|
-
} | {
|
|
6020
|
-
mimeType?: string | undefined;
|
|
6021
|
-
type: "image";
|
|
6022
|
-
data: string;
|
|
6023
|
-
})[] | undefined;
|
|
6024
|
-
type: "tool-result";
|
|
6025
|
-
toolCallId: string;
|
|
6026
|
-
toolName: string;
|
|
6027
|
-
} | {
|
|
6028
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6029
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6030
|
-
id: string;
|
|
6031
|
-
title: string;
|
|
6032
|
-
type: "source";
|
|
6033
|
-
sourceType: "url";
|
|
6034
|
-
url: string;
|
|
6035
|
-
} | {
|
|
6036
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6037
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6038
|
-
filename?: string | undefined;
|
|
6039
|
-
id: string;
|
|
6040
|
-
title: string;
|
|
6041
|
-
type: "source";
|
|
6042
|
-
mediaType: string;
|
|
6043
|
-
sourceType: "document";
|
|
6044
|
-
})[];
|
|
6045
|
-
}, {
|
|
6046
|
-
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
6047
|
-
content: import("convex/values").VUnion<string | ({
|
|
6048
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6049
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6050
|
-
type: "text";
|
|
6051
|
-
text: string;
|
|
6052
|
-
} | {
|
|
6053
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6054
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6055
|
-
filename?: string | undefined;
|
|
6056
|
-
type: "file";
|
|
6057
|
-
mimeType: string;
|
|
6058
|
-
data: string | ArrayBuffer;
|
|
6059
|
-
} | {
|
|
6060
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6061
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6062
|
-
signature?: string | undefined;
|
|
6063
|
-
type: "reasoning";
|
|
6064
|
-
text: string;
|
|
6065
|
-
} | {
|
|
6066
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6067
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6068
|
-
type: "redacted-reasoning";
|
|
6069
|
-
data: string;
|
|
6070
|
-
} | {
|
|
6071
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6072
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6073
|
-
providerExecuted?: boolean | undefined;
|
|
6074
|
-
type: "tool-call";
|
|
6075
|
-
toolCallId: string;
|
|
6076
|
-
toolName: string;
|
|
6077
|
-
args: any;
|
|
6078
|
-
} | {
|
|
6079
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6080
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6081
|
-
args?: any;
|
|
6082
|
-
providerExecuted?: boolean | undefined;
|
|
6083
|
-
output?: {
|
|
6084
|
-
type: "text";
|
|
6085
|
-
value: string;
|
|
6086
|
-
} | {
|
|
6087
|
-
type: "json";
|
|
6088
|
-
value: any;
|
|
6089
|
-
} | {
|
|
6090
|
-
type: "error-text";
|
|
6091
|
-
value: string;
|
|
6092
|
-
} | {
|
|
6093
|
-
type: "error-json";
|
|
6094
|
-
value: any;
|
|
6095
|
-
} | {
|
|
6096
|
-
type: "content";
|
|
6097
|
-
value: ({
|
|
6098
|
-
type: "text";
|
|
6099
|
-
text: string;
|
|
6100
|
-
} | {
|
|
6101
|
-
type: "media";
|
|
6102
|
-
data: string;
|
|
6103
|
-
mediaType: string;
|
|
6104
|
-
})[];
|
|
6105
|
-
} | undefined;
|
|
6106
|
-
result?: any;
|
|
6107
|
-
isError?: boolean | undefined;
|
|
6108
|
-
experimental_content?: ({
|
|
6109
|
-
type: "text";
|
|
6110
|
-
text: string;
|
|
6111
|
-
} | {
|
|
6112
|
-
mimeType?: string | undefined;
|
|
6113
|
-
type: "image";
|
|
6114
|
-
data: string;
|
|
6115
|
-
})[] | undefined;
|
|
6116
|
-
type: "tool-result";
|
|
6117
|
-
toolCallId: string;
|
|
6118
|
-
toolName: string;
|
|
6119
|
-
} | {
|
|
6120
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6121
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6122
|
-
id: string;
|
|
6123
|
-
title: string;
|
|
6124
|
-
type: "source";
|
|
6125
|
-
sourceType: "url";
|
|
6126
|
-
url: string;
|
|
6127
|
-
} | {
|
|
6128
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6129
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6130
|
-
filename?: string | undefined;
|
|
6131
|
-
id: string;
|
|
6132
|
-
title: string;
|
|
6133
|
-
type: "source";
|
|
6134
|
-
mediaType: string;
|
|
6135
|
-
sourceType: "document";
|
|
6136
|
-
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
6137
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6138
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6139
|
-
type: "text";
|
|
6140
|
-
text: string;
|
|
6141
|
-
} | {
|
|
6142
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6143
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6144
|
-
filename?: string | undefined;
|
|
6145
|
-
type: "file";
|
|
6146
|
-
mimeType: string;
|
|
6147
|
-
data: string | ArrayBuffer;
|
|
6148
|
-
} | {
|
|
6149
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6150
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6151
|
-
signature?: string | undefined;
|
|
6152
|
-
type: "reasoning";
|
|
6153
|
-
text: string;
|
|
6154
|
-
} | {
|
|
6155
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6156
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6157
|
-
type: "redacted-reasoning";
|
|
6158
|
-
data: string;
|
|
6159
|
-
} | {
|
|
6160
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6161
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6162
|
-
providerExecuted?: boolean | undefined;
|
|
6163
|
-
type: "tool-call";
|
|
6164
|
-
toolCallId: string;
|
|
6165
|
-
toolName: string;
|
|
6166
|
-
args: any;
|
|
6167
|
-
} | {
|
|
6168
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6169
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6170
|
-
args?: any;
|
|
6171
|
-
providerExecuted?: boolean | undefined;
|
|
6172
|
-
output?: {
|
|
6173
|
-
type: "text";
|
|
6174
|
-
value: string;
|
|
6175
|
-
} | {
|
|
6176
|
-
type: "json";
|
|
6177
|
-
value: any;
|
|
6178
|
-
} | {
|
|
6179
|
-
type: "error-text";
|
|
6180
|
-
value: string;
|
|
6181
|
-
} | {
|
|
6182
|
-
type: "error-json";
|
|
6183
|
-
value: any;
|
|
6184
|
-
} | {
|
|
6185
|
-
type: "content";
|
|
6186
|
-
value: ({
|
|
6187
|
-
type: "text";
|
|
6188
|
-
text: string;
|
|
6189
|
-
} | {
|
|
6190
|
-
type: "media";
|
|
6191
|
-
data: string;
|
|
6192
|
-
mediaType: string;
|
|
6193
|
-
})[];
|
|
6194
|
-
} | undefined;
|
|
6195
|
-
result?: any;
|
|
6196
|
-
isError?: boolean | undefined;
|
|
6197
|
-
experimental_content?: ({
|
|
6198
|
-
type: "text";
|
|
6199
|
-
text: string;
|
|
6200
|
-
} | {
|
|
6201
|
-
mimeType?: string | undefined;
|
|
6202
|
-
type: "image";
|
|
6203
|
-
data: string;
|
|
6204
|
-
})[] | undefined;
|
|
6205
|
-
type: "tool-result";
|
|
6206
|
-
toolCallId: string;
|
|
6207
|
-
toolName: string;
|
|
6208
|
-
} | {
|
|
6209
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6210
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6211
|
-
id: string;
|
|
6212
|
-
title: string;
|
|
6213
|
-
type: "source";
|
|
6214
|
-
sourceType: "url";
|
|
6215
|
-
url: string;
|
|
6216
|
-
} | {
|
|
6217
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6218
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6219
|
-
filename?: string | undefined;
|
|
6220
|
-
id: string;
|
|
6221
|
-
title: string;
|
|
6222
|
-
type: "source";
|
|
6223
|
-
mediaType: string;
|
|
6224
|
-
sourceType: "document";
|
|
6225
|
-
})[], import("convex/values").VUnion<{
|
|
6226
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6227
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6228
|
-
type: "text";
|
|
6229
|
-
text: string;
|
|
6230
|
-
} | {
|
|
6231
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6232
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6233
|
-
filename?: string | undefined;
|
|
6234
|
-
type: "file";
|
|
6235
|
-
mimeType: string;
|
|
6236
|
-
data: string | ArrayBuffer;
|
|
6237
|
-
} | {
|
|
6238
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6239
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6240
|
-
signature?: string | undefined;
|
|
6241
|
-
type: "reasoning";
|
|
6242
|
-
text: string;
|
|
6243
|
-
} | {
|
|
6244
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6245
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6246
|
-
type: "redacted-reasoning";
|
|
6247
|
-
data: string;
|
|
6248
|
-
} | {
|
|
6249
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6250
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6251
|
-
providerExecuted?: boolean | undefined;
|
|
6252
|
-
type: "tool-call";
|
|
6253
|
-
toolCallId: string;
|
|
6254
|
-
toolName: string;
|
|
6255
|
-
args: any;
|
|
6256
|
-
} | {
|
|
6257
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6258
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6259
|
-
args?: any;
|
|
6260
|
-
providerExecuted?: boolean | undefined;
|
|
6261
|
-
output?: {
|
|
6262
|
-
type: "text";
|
|
6263
|
-
value: string;
|
|
6264
|
-
} | {
|
|
6265
|
-
type: "json";
|
|
6266
|
-
value: any;
|
|
6267
|
-
} | {
|
|
6268
|
-
type: "error-text";
|
|
6269
|
-
value: string;
|
|
6270
|
-
} | {
|
|
6271
|
-
type: "error-json";
|
|
6272
|
-
value: any;
|
|
6273
|
-
} | {
|
|
6274
|
-
type: "content";
|
|
6275
|
-
value: ({
|
|
6276
|
-
type: "text";
|
|
6277
|
-
text: string;
|
|
6278
|
-
} | {
|
|
6279
|
-
type: "media";
|
|
6280
|
-
data: string;
|
|
6281
|
-
mediaType: string;
|
|
6282
|
-
})[];
|
|
6283
|
-
} | undefined;
|
|
6284
|
-
result?: any;
|
|
6285
|
-
isError?: boolean | undefined;
|
|
6286
|
-
experimental_content?: ({
|
|
6287
|
-
type: "text";
|
|
6288
|
-
text: string;
|
|
6289
|
-
} | {
|
|
6290
|
-
mimeType?: string | undefined;
|
|
6291
|
-
type: "image";
|
|
6292
|
-
data: string;
|
|
6293
|
-
})[] | undefined;
|
|
6294
|
-
type: "tool-result";
|
|
6295
|
-
toolCallId: string;
|
|
6296
|
-
toolName: string;
|
|
6297
|
-
} | {
|
|
6298
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6299
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6300
|
-
id: string;
|
|
6301
|
-
title: string;
|
|
6302
|
-
type: "source";
|
|
6303
|
-
sourceType: "url";
|
|
6304
|
-
url: string;
|
|
6305
|
-
} | {
|
|
6306
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6307
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6308
|
-
filename?: string | undefined;
|
|
6309
|
-
id: string;
|
|
6310
|
-
title: string;
|
|
6311
|
-
type: "source";
|
|
6312
|
-
mediaType: string;
|
|
6313
|
-
sourceType: "document";
|
|
6314
|
-
}, [import("convex/values").VObject<{
|
|
6315
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6316
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6317
|
-
type: "text";
|
|
6318
|
-
text: string;
|
|
6319
|
-
}, {
|
|
6320
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6321
|
-
text: import("convex/values").VString<string, "required">;
|
|
6322
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6323
|
-
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>;
|
|
6324
|
-
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
6325
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6326
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6327
|
-
filename?: string | undefined;
|
|
6328
|
-
type: "file";
|
|
6329
|
-
mimeType: string;
|
|
6330
|
-
data: string | ArrayBuffer;
|
|
6331
|
-
}, {
|
|
6332
|
-
type: import("convex/values").VLiteral<"file", "required">;
|
|
6333
|
-
data: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
|
|
6334
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
6335
|
-
mimeType: import("convex/values").VString<string, "required">;
|
|
6336
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6337
|
-
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>;
|
|
6338
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
6339
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6340
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6341
|
-
signature?: string | undefined;
|
|
6342
|
-
type: "reasoning";
|
|
6343
|
-
text: string;
|
|
6344
|
-
}, {
|
|
6345
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
6346
|
-
text: import("convex/values").VString<string, "required">;
|
|
6347
|
-
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
6348
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6349
|
-
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>;
|
|
6350
|
-
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
|
|
6351
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6352
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6353
|
-
type: "redacted-reasoning";
|
|
6354
|
-
data: string;
|
|
6355
|
-
}, {
|
|
6356
|
-
type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
|
|
6357
|
-
data: import("convex/values").VString<string, "required">;
|
|
6358
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6359
|
-
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>;
|
|
6360
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data">, import("convex/values").VObject<{
|
|
6361
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6362
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6363
|
-
providerExecuted?: boolean | undefined;
|
|
6364
|
-
type: "tool-call";
|
|
6365
|
-
toolCallId: string;
|
|
6366
|
-
toolName: string;
|
|
6367
|
-
args: any;
|
|
6368
|
-
}, {
|
|
6369
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
6370
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6371
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6372
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
6373
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6374
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6375
|
-
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>;
|
|
6376
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
6377
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6378
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6379
|
-
args?: any;
|
|
6380
|
-
providerExecuted?: boolean | undefined;
|
|
6381
|
-
output?: {
|
|
6382
|
-
type: "text";
|
|
6383
|
-
value: string;
|
|
6384
|
-
} | {
|
|
6385
|
-
type: "json";
|
|
6386
|
-
value: any;
|
|
6387
|
-
} | {
|
|
6388
|
-
type: "error-text";
|
|
6389
|
-
value: string;
|
|
6390
|
-
} | {
|
|
6391
|
-
type: "error-json";
|
|
6392
|
-
value: any;
|
|
6393
|
-
} | {
|
|
6394
|
-
type: "content";
|
|
6395
|
-
value: ({
|
|
6396
|
-
type: "text";
|
|
6397
|
-
text: string;
|
|
6398
|
-
} | {
|
|
6399
|
-
type: "media";
|
|
6400
|
-
data: string;
|
|
6401
|
-
mediaType: string;
|
|
6402
|
-
})[];
|
|
6403
|
-
} | undefined;
|
|
6404
|
-
result?: any;
|
|
6405
|
-
isError?: boolean | undefined;
|
|
6406
|
-
experimental_content?: ({
|
|
6407
|
-
type: "text";
|
|
6408
|
-
text: string;
|
|
6409
|
-
} | {
|
|
6410
|
-
mimeType?: string | undefined;
|
|
6411
|
-
type: "image";
|
|
6412
|
-
data: string;
|
|
6413
|
-
})[] | undefined;
|
|
6414
|
-
type: "tool-result";
|
|
6415
|
-
toolCallId: string;
|
|
6416
|
-
toolName: string;
|
|
6417
|
-
}, {
|
|
6418
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
6419
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6420
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6421
|
-
output: import("convex/values").VUnion<{
|
|
6422
|
-
type: "text";
|
|
6423
|
-
value: string;
|
|
6424
|
-
} | {
|
|
6425
|
-
type: "json";
|
|
6426
|
-
value: any;
|
|
6427
|
-
} | {
|
|
6428
|
-
type: "error-text";
|
|
6429
|
-
value: string;
|
|
6430
|
-
} | {
|
|
6431
|
-
type: "error-json";
|
|
6432
|
-
value: any;
|
|
6433
|
-
} | {
|
|
6434
|
-
type: "content";
|
|
6435
|
-
value: ({
|
|
6436
|
-
type: "text";
|
|
6437
|
-
text: string;
|
|
6438
|
-
} | {
|
|
6439
|
-
type: "media";
|
|
6440
|
-
data: string;
|
|
6441
|
-
mediaType: string;
|
|
6442
|
-
})[];
|
|
6443
|
-
} | undefined, [import("convex/values").VObject<{
|
|
6444
|
-
type: "text";
|
|
6445
|
-
value: string;
|
|
6446
|
-
}, {
|
|
6447
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6448
|
-
value: import("convex/values").VString<string, "required">;
|
|
6449
|
-
}, "required", "type" | "value">, import("convex/values").VObject<{
|
|
6450
|
-
type: "json";
|
|
6451
|
-
value: any;
|
|
6452
|
-
}, {
|
|
6453
|
-
type: import("convex/values").VLiteral<"json", "required">;
|
|
6454
|
-
value: import("convex/values").VAny<any, "required", string>;
|
|
6455
|
-
}, "required", "type" | "value" | `value.${string}`>, import("convex/values").VObject<{
|
|
6456
|
-
type: "error-text";
|
|
6457
|
-
value: string;
|
|
6458
|
-
}, {
|
|
6459
|
-
type: import("convex/values").VLiteral<"error-text", "required">;
|
|
6460
|
-
value: import("convex/values").VString<string, "required">;
|
|
6461
|
-
}, "required", "type" | "value">, import("convex/values").VObject<{
|
|
6462
|
-
type: "error-json";
|
|
6463
|
-
value: any;
|
|
6464
|
-
}, {
|
|
6465
|
-
type: import("convex/values").VLiteral<"error-json", "required">;
|
|
6466
|
-
value: import("convex/values").VAny<any, "required", string>;
|
|
6467
|
-
}, "required", "type" | "value" | `value.${string}`>, import("convex/values").VObject<{
|
|
6468
|
-
type: "content";
|
|
6469
|
-
value: ({
|
|
6470
|
-
type: "text";
|
|
6471
|
-
text: string;
|
|
6472
|
-
} | {
|
|
6473
|
-
type: "media";
|
|
6474
|
-
data: string;
|
|
6475
|
-
mediaType: string;
|
|
6476
|
-
})[];
|
|
6477
|
-
}, {
|
|
6478
|
-
type: import("convex/values").VLiteral<"content", "required">;
|
|
6479
|
-
value: import("convex/values").VArray<({
|
|
6480
|
-
type: "text";
|
|
6481
|
-
text: string;
|
|
6482
|
-
} | {
|
|
6483
|
-
type: "media";
|
|
6484
|
-
data: string;
|
|
6485
|
-
mediaType: string;
|
|
6486
|
-
})[], import("convex/values").VUnion<{
|
|
6487
|
-
type: "text";
|
|
6488
|
-
text: string;
|
|
6489
|
-
} | {
|
|
6490
|
-
type: "media";
|
|
6491
|
-
data: string;
|
|
6492
|
-
mediaType: string;
|
|
6493
|
-
}, [import("convex/values").VObject<{
|
|
6494
|
-
type: "text";
|
|
6495
|
-
text: string;
|
|
6496
|
-
}, {
|
|
6497
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6498
|
-
text: import("convex/values").VString<string, "required">;
|
|
6499
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
6500
|
-
type: "media";
|
|
6501
|
-
data: string;
|
|
6502
|
-
mediaType: string;
|
|
6503
|
-
}, {
|
|
6504
|
-
type: import("convex/values").VLiteral<"media", "required">;
|
|
6505
|
-
data: import("convex/values").VString<string, "required">;
|
|
6506
|
-
mediaType: import("convex/values").VString<string, "required">;
|
|
6507
|
-
}, "required", "type" | "data" | "mediaType">], "required", "type" | "text" | "data" | "mediaType">, "required">;
|
|
6508
|
-
}, "required", "type" | "value">], "optional", "type" | "value" | `value.${string}`>;
|
|
6509
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6510
|
-
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>;
|
|
6511
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6512
|
-
result: import("convex/values").VAny<any, "optional", string>;
|
|
6513
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6514
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
6515
|
-
experimental_content: import("convex/values").VArray<({
|
|
6516
|
-
type: "text";
|
|
6517
|
-
text: string;
|
|
6518
|
-
} | {
|
|
6519
|
-
mimeType?: string | undefined;
|
|
6520
|
-
type: "image";
|
|
6521
|
-
data: string;
|
|
6522
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
6523
|
-
type: "text";
|
|
6524
|
-
text: string;
|
|
6525
|
-
} | {
|
|
6526
|
-
mimeType?: string | undefined;
|
|
6527
|
-
type: "image";
|
|
6528
|
-
data: string;
|
|
6529
|
-
}, [import("convex/values").VObject<{
|
|
6530
|
-
type: "text";
|
|
6531
|
-
text: string;
|
|
6532
|
-
}, {
|
|
6533
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6534
|
-
text: import("convex/values").VString<string, "required">;
|
|
6535
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
6536
|
-
mimeType?: string | undefined;
|
|
6537
|
-
type: "image";
|
|
6538
|
-
data: string;
|
|
6539
|
-
}, {
|
|
6540
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
6541
|
-
data: import("convex/values").VString<string, "required">;
|
|
6542
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
6543
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
6544
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.value" | `output.value.${string}` | `result.${string}`>, import("convex/values").VUnion<{
|
|
6545
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6546
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6547
|
-
id: string;
|
|
6548
|
-
title: string;
|
|
6549
|
-
type: "source";
|
|
6550
|
-
sourceType: "url";
|
|
6551
|
-
url: string;
|
|
6552
|
-
} | {
|
|
6553
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6554
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6555
|
-
filename?: string | undefined;
|
|
6556
|
-
id: string;
|
|
6557
|
-
title: string;
|
|
6558
|
-
type: "source";
|
|
6559
|
-
mediaType: string;
|
|
6560
|
-
sourceType: "document";
|
|
6561
|
-
}, [import("convex/values").VObject<{
|
|
6562
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6563
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6564
|
-
id: string;
|
|
6565
|
-
title: string;
|
|
6566
|
-
type: "source";
|
|
6567
|
-
sourceType: "url";
|
|
6568
|
-
url: string;
|
|
6569
|
-
}, {
|
|
6570
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
6571
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
6572
|
-
id: import("convex/values").VString<string, "required">;
|
|
6573
|
-
url: import("convex/values").VString<string, "required">;
|
|
6574
|
-
title: import("convex/values").VString<string, "required">;
|
|
6575
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6576
|
-
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>;
|
|
6577
|
-
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
6578
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6579
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6580
|
-
filename?: string | undefined;
|
|
6581
|
-
id: string;
|
|
6582
|
-
title: string;
|
|
6583
|
-
type: "source";
|
|
6584
|
-
mediaType: string;
|
|
6585
|
-
sourceType: "document";
|
|
6586
|
-
}, {
|
|
6587
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
6588
|
-
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
6589
|
-
id: import("convex/values").VString<string, "required">;
|
|
6590
|
-
mediaType: import("convex/values").VString<string, "required">;
|
|
6591
|
-
title: import("convex/values").VString<string, "required">;
|
|
6592
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
6593
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6594
|
-
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>;
|
|
6595
|
-
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "url">], "required", "id" | "title" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "mediaType" | "result" | "isError" | "experimental_content" | "output.type" | "output.value" | `output.value.${string}` | `result.${string}` | "sourceType" | "url">, "required">], "required", never>;
|
|
6596
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6597
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
6598
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6599
|
-
role: "tool";
|
|
6600
|
-
content: {
|
|
6601
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6602
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6603
|
-
args?: any;
|
|
6604
|
-
providerExecuted?: boolean | undefined;
|
|
6605
|
-
output?: {
|
|
6606
|
-
type: "text";
|
|
6607
|
-
value: string;
|
|
6608
|
-
} | {
|
|
6609
|
-
type: "json";
|
|
6610
|
-
value: any;
|
|
6611
|
-
} | {
|
|
6612
|
-
type: "error-text";
|
|
6613
|
-
value: string;
|
|
6614
|
-
} | {
|
|
6615
|
-
type: "error-json";
|
|
6616
|
-
value: any;
|
|
6617
|
-
} | {
|
|
6618
|
-
type: "content";
|
|
6619
|
-
value: ({
|
|
6620
|
-
type: "text";
|
|
6621
|
-
text: string;
|
|
6622
|
-
} | {
|
|
6623
|
-
type: "media";
|
|
6624
|
-
data: string;
|
|
6625
|
-
mediaType: string;
|
|
6626
|
-
})[];
|
|
6627
|
-
} | undefined;
|
|
6628
|
-
result?: any;
|
|
6629
|
-
isError?: boolean | undefined;
|
|
6630
|
-
experimental_content?: ({
|
|
6631
|
-
type: "text";
|
|
6632
|
-
text: string;
|
|
6633
|
-
} | {
|
|
6634
|
-
mimeType?: string | undefined;
|
|
6635
|
-
type: "image";
|
|
6636
|
-
data: string;
|
|
6637
|
-
})[] | undefined;
|
|
6638
|
-
type: "tool-result";
|
|
6639
|
-
toolCallId: string;
|
|
6640
|
-
toolName: string;
|
|
6641
|
-
}[];
|
|
6642
|
-
}, {
|
|
6643
|
-
role: import("convex/values").VLiteral<"tool", "required">;
|
|
6644
|
-
content: import("convex/values").VArray<{
|
|
6645
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6646
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6647
|
-
args?: any;
|
|
6648
|
-
providerExecuted?: boolean | undefined;
|
|
6649
|
-
output?: {
|
|
6650
|
-
type: "text";
|
|
6651
|
-
value: string;
|
|
6652
|
-
} | {
|
|
6653
|
-
type: "json";
|
|
6654
|
-
value: any;
|
|
6655
|
-
} | {
|
|
6656
|
-
type: "error-text";
|
|
6657
|
-
value: string;
|
|
6658
|
-
} | {
|
|
6659
|
-
type: "error-json";
|
|
6660
|
-
value: any;
|
|
6661
|
-
} | {
|
|
6662
|
-
type: "content";
|
|
6663
|
-
value: ({
|
|
6664
|
-
type: "text";
|
|
6665
|
-
text: string;
|
|
6666
|
-
} | {
|
|
6667
|
-
type: "media";
|
|
6668
|
-
data: string;
|
|
6669
|
-
mediaType: string;
|
|
6670
|
-
})[];
|
|
6671
|
-
} | undefined;
|
|
6672
|
-
result?: any;
|
|
6673
|
-
isError?: boolean | undefined;
|
|
6674
|
-
experimental_content?: ({
|
|
6675
|
-
type: "text";
|
|
6676
|
-
text: string;
|
|
6677
|
-
} | {
|
|
6678
|
-
mimeType?: string | undefined;
|
|
6679
|
-
type: "image";
|
|
6680
|
-
data: string;
|
|
6681
|
-
})[] | undefined;
|
|
6682
|
-
type: "tool-result";
|
|
6683
|
-
toolCallId: string;
|
|
6684
|
-
toolName: string;
|
|
6685
|
-
}[], import("convex/values").VObject<{
|
|
6686
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6687
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6688
|
-
args?: any;
|
|
6689
|
-
providerExecuted?: boolean | undefined;
|
|
6690
|
-
output?: {
|
|
6691
|
-
type: "text";
|
|
6692
|
-
value: string;
|
|
6693
|
-
} | {
|
|
6694
|
-
type: "json";
|
|
6695
|
-
value: any;
|
|
6696
|
-
} | {
|
|
6697
|
-
type: "error-text";
|
|
6698
|
-
value: string;
|
|
6699
|
-
} | {
|
|
6700
|
-
type: "error-json";
|
|
6701
|
-
value: any;
|
|
6702
|
-
} | {
|
|
6703
|
-
type: "content";
|
|
6704
|
-
value: ({
|
|
6705
|
-
type: "text";
|
|
6706
|
-
text: string;
|
|
6707
|
-
} | {
|
|
6708
|
-
type: "media";
|
|
6709
|
-
data: string;
|
|
6710
|
-
mediaType: string;
|
|
6711
|
-
})[];
|
|
6712
|
-
} | undefined;
|
|
6713
|
-
result?: any;
|
|
6714
|
-
isError?: boolean | undefined;
|
|
6715
|
-
experimental_content?: ({
|
|
6716
|
-
type: "text";
|
|
6717
|
-
text: string;
|
|
6718
|
-
} | {
|
|
6719
|
-
mimeType?: string | undefined;
|
|
6720
|
-
type: "image";
|
|
6721
|
-
data: string;
|
|
6722
|
-
})[] | undefined;
|
|
6723
|
-
type: "tool-result";
|
|
6724
|
-
toolCallId: string;
|
|
6725
|
-
toolName: string;
|
|
6726
|
-
}, {
|
|
6727
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
6728
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
6729
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
6730
|
-
output: import("convex/values").VUnion<{
|
|
6731
|
-
type: "text";
|
|
6732
|
-
value: string;
|
|
6733
|
-
} | {
|
|
6734
|
-
type: "json";
|
|
6735
|
-
value: any;
|
|
6736
|
-
} | {
|
|
6737
|
-
type: "error-text";
|
|
6738
|
-
value: string;
|
|
6739
|
-
} | {
|
|
6740
|
-
type: "error-json";
|
|
6741
|
-
value: any;
|
|
6742
|
-
} | {
|
|
6743
|
-
type: "content";
|
|
6744
|
-
value: ({
|
|
6745
|
-
type: "text";
|
|
6746
|
-
text: string;
|
|
6747
|
-
} | {
|
|
6748
|
-
type: "media";
|
|
6749
|
-
data: string;
|
|
6750
|
-
mediaType: string;
|
|
6751
|
-
})[];
|
|
6752
|
-
} | undefined, [import("convex/values").VObject<{
|
|
6753
|
-
type: "text";
|
|
6754
|
-
value: string;
|
|
6755
|
-
}, {
|
|
6756
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6757
|
-
value: import("convex/values").VString<string, "required">;
|
|
6758
|
-
}, "required", "type" | "value">, import("convex/values").VObject<{
|
|
6759
|
-
type: "json";
|
|
6760
|
-
value: any;
|
|
6761
|
-
}, {
|
|
6762
|
-
type: import("convex/values").VLiteral<"json", "required">;
|
|
6763
|
-
value: import("convex/values").VAny<any, "required", string>;
|
|
6764
|
-
}, "required", "type" | "value" | `value.${string}`>, import("convex/values").VObject<{
|
|
6765
|
-
type: "error-text";
|
|
6766
|
-
value: string;
|
|
6767
|
-
}, {
|
|
6768
|
-
type: import("convex/values").VLiteral<"error-text", "required">;
|
|
6769
|
-
value: import("convex/values").VString<string, "required">;
|
|
6770
|
-
}, "required", "type" | "value">, import("convex/values").VObject<{
|
|
6771
|
-
type: "error-json";
|
|
6772
|
-
value: any;
|
|
6773
|
-
}, {
|
|
6774
|
-
type: import("convex/values").VLiteral<"error-json", "required">;
|
|
6775
|
-
value: import("convex/values").VAny<any, "required", string>;
|
|
6776
|
-
}, "required", "type" | "value" | `value.${string}`>, import("convex/values").VObject<{
|
|
6777
|
-
type: "content";
|
|
6778
|
-
value: ({
|
|
6779
|
-
type: "text";
|
|
6780
|
-
text: string;
|
|
6781
|
-
} | {
|
|
6782
|
-
type: "media";
|
|
6783
|
-
data: string;
|
|
6784
|
-
mediaType: string;
|
|
6785
|
-
})[];
|
|
6786
|
-
}, {
|
|
6787
|
-
type: import("convex/values").VLiteral<"content", "required">;
|
|
6788
|
-
value: import("convex/values").VArray<({
|
|
6789
|
-
type: "text";
|
|
6790
|
-
text: string;
|
|
6791
|
-
} | {
|
|
6792
|
-
type: "media";
|
|
6793
|
-
data: string;
|
|
6794
|
-
mediaType: string;
|
|
6795
|
-
})[], import("convex/values").VUnion<{
|
|
6796
|
-
type: "text";
|
|
6797
|
-
text: string;
|
|
6798
|
-
} | {
|
|
6799
|
-
type: "media";
|
|
6800
|
-
data: string;
|
|
6801
|
-
mediaType: string;
|
|
6802
|
-
}, [import("convex/values").VObject<{
|
|
6803
|
-
type: "text";
|
|
6804
|
-
text: string;
|
|
6805
|
-
}, {
|
|
6806
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6807
|
-
text: import("convex/values").VString<string, "required">;
|
|
6808
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
6809
|
-
type: "media";
|
|
6810
|
-
data: string;
|
|
6811
|
-
mediaType: string;
|
|
6812
|
-
}, {
|
|
6813
|
-
type: import("convex/values").VLiteral<"media", "required">;
|
|
6814
|
-
data: import("convex/values").VString<string, "required">;
|
|
6815
|
-
mediaType: import("convex/values").VString<string, "required">;
|
|
6816
|
-
}, "required", "type" | "data" | "mediaType">], "required", "type" | "text" | "data" | "mediaType">, "required">;
|
|
6817
|
-
}, "required", "type" | "value">], "optional", "type" | "value" | `value.${string}`>;
|
|
6818
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6819
|
-
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>;
|
|
6820
|
-
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6821
|
-
result: import("convex/values").VAny<any, "optional", string>;
|
|
6822
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6823
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
6824
|
-
experimental_content: import("convex/values").VArray<({
|
|
6825
|
-
type: "text";
|
|
6826
|
-
text: string;
|
|
6827
|
-
} | {
|
|
6828
|
-
mimeType?: string | undefined;
|
|
6829
|
-
type: "image";
|
|
6830
|
-
data: string;
|
|
6831
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
6832
|
-
type: "text";
|
|
6833
|
-
text: string;
|
|
6834
|
-
} | {
|
|
6835
|
-
mimeType?: string | undefined;
|
|
6836
|
-
type: "image";
|
|
6837
|
-
data: string;
|
|
6838
|
-
}, [import("convex/values").VObject<{
|
|
6839
|
-
type: "text";
|
|
6840
|
-
text: string;
|
|
6841
|
-
}, {
|
|
6842
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
6843
|
-
text: import("convex/values").VString<string, "required">;
|
|
6844
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
6845
|
-
mimeType?: string | undefined;
|
|
6846
|
-
type: "image";
|
|
6847
|
-
data: string;
|
|
6848
|
-
}, {
|
|
6849
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
6850
|
-
data: import("convex/values").VString<string, "required">;
|
|
6851
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
6852
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
6853
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.value" | `output.value.${string}` | `result.${string}`>, "required">;
|
|
6854
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6855
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
6856
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6857
|
-
role: "system";
|
|
6858
|
-
content: string;
|
|
6859
|
-
}, {
|
|
6860
|
-
role: import("convex/values").VLiteral<"system", "required">;
|
|
6861
|
-
content: import("convex/values").VString<string, "required">;
|
|
6862
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6863
|
-
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
|
|
6864
|
-
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
6865
|
-
text: import("convex/values").VString<string | undefined, "optional">;
|
|
6866
|
-
usage: import("convex/values").VObject<{
|
|
6867
|
-
reasoningTokens?: number | undefined;
|
|
6868
|
-
cachedInputTokens?: number | undefined;
|
|
6869
|
-
promptTokens: number;
|
|
6870
|
-
completionTokens: number;
|
|
6871
|
-
totalTokens: number;
|
|
6872
|
-
} | undefined, {
|
|
6873
|
-
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
6874
|
-
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
6875
|
-
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
6876
|
-
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6877
|
-
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
6878
|
-
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
6879
|
-
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>;
|
|
6880
|
-
sources: import("convex/values").VArray<({
|
|
6881
|
-
title?: string | undefined;
|
|
6882
|
-
type?: "source" | undefined;
|
|
6883
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6884
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6885
|
-
id: string;
|
|
6886
|
-
sourceType: "url";
|
|
6887
|
-
url: string;
|
|
6888
|
-
} | {
|
|
6889
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6890
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6891
|
-
filename?: string | undefined;
|
|
6892
|
-
id: string;
|
|
6893
|
-
title: string;
|
|
6894
|
-
type: "source";
|
|
6895
|
-
mediaType: string;
|
|
6896
|
-
sourceType: "document";
|
|
6897
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
6898
|
-
title?: string | undefined;
|
|
6899
|
-
type?: "source" | undefined;
|
|
6900
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6901
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6902
|
-
id: string;
|
|
6903
|
-
sourceType: "url";
|
|
6904
|
-
url: string;
|
|
6905
|
-
} | {
|
|
6906
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6907
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6908
|
-
filename?: string | undefined;
|
|
6909
|
-
id: string;
|
|
6910
|
-
title: string;
|
|
6911
|
-
type: "source";
|
|
6912
|
-
mediaType: string;
|
|
6913
|
-
sourceType: "document";
|
|
6914
|
-
}, [import("convex/values").VObject<{
|
|
6915
|
-
title?: string | undefined;
|
|
6916
|
-
type?: "source" | undefined;
|
|
6917
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6918
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6919
|
-
id: string;
|
|
6920
|
-
sourceType: "url";
|
|
6921
|
-
url: string;
|
|
6922
|
-
}, {
|
|
6923
|
-
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
6924
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
6925
|
-
id: import("convex/values").VString<string, "required">;
|
|
6926
|
-
url: import("convex/values").VString<string, "required">;
|
|
6927
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
6928
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6929
|
-
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>;
|
|
6930
|
-
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
6931
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6932
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6933
|
-
filename?: string | undefined;
|
|
6934
|
-
id: string;
|
|
6935
|
-
title: string;
|
|
6936
|
-
type: "source";
|
|
6937
|
-
mediaType: string;
|
|
6938
|
-
sourceType: "document";
|
|
6939
|
-
}, {
|
|
6940
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
6941
|
-
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
6942
|
-
id: import("convex/values").VString<string, "required">;
|
|
6943
|
-
mediaType: import("convex/values").VString<string, "required">;
|
|
6944
|
-
title: import("convex/values").VString<string, "required">;
|
|
6945
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
6946
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6947
|
-
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>;
|
|
6948
|
-
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "url">, "optional">;
|
|
6949
|
-
warnings: import("convex/values").VArray<({
|
|
6950
|
-
details?: string | undefined;
|
|
6951
|
-
type: "unsupported-setting";
|
|
6952
|
-
setting: string;
|
|
6953
|
-
} | {
|
|
6954
|
-
details?: string | undefined;
|
|
6955
|
-
type: "unsupported-tool";
|
|
6956
|
-
tool: any;
|
|
6957
|
-
} | {
|
|
6958
|
-
type: "other";
|
|
6959
|
-
message: string;
|
|
6960
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
6961
|
-
details?: string | undefined;
|
|
6962
|
-
type: "unsupported-setting";
|
|
6963
|
-
setting: string;
|
|
6964
|
-
} | {
|
|
6965
|
-
details?: string | undefined;
|
|
6966
|
-
type: "unsupported-tool";
|
|
6967
|
-
tool: any;
|
|
6968
|
-
} | {
|
|
6969
|
-
type: "other";
|
|
6970
|
-
message: string;
|
|
6971
|
-
}, [import("convex/values").VObject<{
|
|
6972
|
-
details?: string | undefined;
|
|
6973
|
-
type: "unsupported-setting";
|
|
6974
|
-
setting: string;
|
|
6975
|
-
}, {
|
|
6976
|
-
type: import("convex/values").VLiteral<"unsupported-setting", "required">;
|
|
6977
|
-
setting: import("convex/values").VString<string, "required">;
|
|
6978
|
-
details: import("convex/values").VString<string | undefined, "optional">;
|
|
6979
|
-
}, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
|
|
6980
|
-
details?: string | undefined;
|
|
6981
|
-
type: "unsupported-tool";
|
|
6982
|
-
tool: any;
|
|
6983
|
-
}, {
|
|
6984
|
-
type: import("convex/values").VLiteral<"unsupported-tool", "required">;
|
|
6985
|
-
tool: import("convex/values").VAny<any, "required", string>;
|
|
6986
|
-
details: import("convex/values").VString<string | undefined, "optional">;
|
|
6987
|
-
}, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
|
|
6988
|
-
type: "other";
|
|
6989
|
-
message: string;
|
|
6990
|
-
}, {
|
|
6991
|
-
type: import("convex/values").VLiteral<"other", "required">;
|
|
6992
|
-
message: import("convex/values").VString<string, "required">;
|
|
6993
|
-
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
6994
|
-
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>;
|
|
6995
|
-
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
6996
|
-
reasoningDetails: import("convex/values").VArray<({
|
|
6997
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6998
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
6999
|
-
signature?: string | undefined;
|
|
7000
|
-
type: "reasoning";
|
|
7001
|
-
text: string;
|
|
7002
|
-
} | {
|
|
7003
|
-
signature?: string | undefined;
|
|
7004
|
-
type: "text";
|
|
7005
|
-
text: string;
|
|
7006
|
-
} | {
|
|
7007
|
-
type: "redacted";
|
|
7008
|
-
data: string;
|
|
7009
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
7010
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7011
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
7012
|
-
signature?: string | undefined;
|
|
7013
|
-
type: "reasoning";
|
|
7014
|
-
text: string;
|
|
7015
|
-
} | {
|
|
7016
|
-
signature?: string | undefined;
|
|
7017
|
-
type: "text";
|
|
7018
|
-
text: string;
|
|
7019
|
-
} | {
|
|
7020
|
-
type: "redacted";
|
|
7021
|
-
data: string;
|
|
7022
|
-
}, [import("convex/values").VObject<{
|
|
7023
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
7024
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
7025
|
-
signature?: string | undefined;
|
|
7026
|
-
type: "reasoning";
|
|
7027
|
-
text: string;
|
|
7028
|
-
}, {
|
|
7029
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
7030
|
-
text: import("convex/values").VString<string, "required">;
|
|
7031
|
-
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
7032
|
-
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
7033
|
-
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>;
|
|
7034
|
-
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
|
|
7035
|
-
signature?: string | undefined;
|
|
7036
|
-
type: "text";
|
|
7037
|
-
text: string;
|
|
7038
|
-
}, {
|
|
7039
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
7040
|
-
text: import("convex/values").VString<string, "required">;
|
|
7041
|
-
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
7042
|
-
}, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
|
|
7043
|
-
type: "redacted";
|
|
7044
|
-
data: string;
|
|
7045
|
-
}, {
|
|
7046
|
-
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
7047
|
-
data: import("convex/values").VString<string, "required">;
|
|
7048
|
-
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">;
|
|
7049
|
-
id: import("convex/values").VString<string | undefined, "optional">;
|
|
7050
|
-
_id: import("convex/values").VString<string, "required">;
|
|
7051
|
-
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
7052
|
-
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
|
|
7053
|
-
export type MessageDoc = Infer<typeof vMessageDoc>;
|
|
7054
5413
|
export default schema;
|
|
7055
5414
|
//# sourceMappingURL=schema.d.ts.map
|