@convex-dev/agent 0.1.10-alpha.1 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commonjs/client/createTool.js +8 -5
- package/dist/commonjs/client/createTool.js.map +1 -1
- package/dist/commonjs/client/files.js +8 -3
- package/dist/commonjs/client/files.js.map +1 -1
- package/dist/commonjs/client/index.d.ts +10 -11
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +80 -59
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/streaming.d.ts.map +1 -1
- package/dist/commonjs/client/streaming.js +14 -15
- package/dist/commonjs/client/streaming.js.map +1 -1
- package/dist/commonjs/client/types.js +2 -1
- package/dist/commonjs/component/_generated/api.d.ts +2 -13
- package/dist/commonjs/component/_generated/api.js +7 -4
- package/dist/commonjs/component/_generated/api.js.map +1 -1
- package/dist/commonjs/component/_generated/server.js +11 -8
- package/dist/commonjs/component/_generated/server.js.map +1 -1
- package/dist/commonjs/component/apiKeys.js +16 -13
- package/dist/commonjs/component/apiKeys.js.map +1 -1
- package/dist/commonjs/component/convex.config.js +4 -2
- package/dist/commonjs/component/convex.config.js.map +1 -1
- package/dist/commonjs/component/files.d.ts +1 -1
- package/dist/commonjs/component/files.d.ts.map +1 -1
- package/dist/commonjs/component/files.js +47 -40
- package/dist/commonjs/component/files.js.map +1 -1
- package/dist/commonjs/component/messages.d.ts +31 -31
- package/dist/commonjs/component/messages.d.ts.map +1 -1
- package/dist/commonjs/component/messages.js +112 -107
- package/dist/commonjs/component/messages.js.map +1 -1
- package/dist/commonjs/component/schema.d.ts +74 -84
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +101 -99
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/streams.d.ts +0 -7
- package/dist/commonjs/component/streams.d.ts.map +1 -1
- package/dist/commonjs/component/streams.js +95 -118
- package/dist/commonjs/component/streams.js.map +1 -1
- package/dist/commonjs/component/threads.d.ts +8 -8
- package/dist/commonjs/component/threads.js +54 -51
- package/dist/commonjs/component/threads.js.map +1 -1
- package/dist/commonjs/component/users.js +49 -46
- package/dist/commonjs/component/users.js.map +1 -1
- package/dist/commonjs/component/vector/index.js +53 -48
- package/dist/commonjs/component/vector/index.js.map +1 -1
- package/dist/commonjs/component/vector/tables.d.ts +3 -5
- package/dist/commonjs/component/vector/tables.d.ts.map +1 -1
- package/dist/commonjs/component/vector/tables.js +32 -26
- package/dist/commonjs/component/vector/tables.js.map +1 -1
- package/dist/commonjs/mapping.d.ts +3 -3
- package/dist/commonjs/mapping.d.ts.map +1 -1
- package/dist/commonjs/mapping.js +39 -24
- package/dist/commonjs/mapping.js.map +1 -1
- package/dist/commonjs/react/deltas.d.ts.map +1 -1
- package/dist/commonjs/react/deltas.js +13 -7
- package/dist/commonjs/react/deltas.js.map +1 -1
- package/dist/commonjs/react/index.d.ts +2 -4
- package/dist/commonjs/react/index.d.ts.map +1 -1
- package/dist/commonjs/react/index.js +37 -42
- package/dist/commonjs/react/index.js.map +1 -1
- package/dist/commonjs/react/optimisticallySendMessage.js +7 -4
- package/dist/commonjs/react/optimisticallySendMessage.js.map +1 -1
- package/dist/commonjs/react/toUIMessages.js +8 -5
- package/dist/commonjs/react/toUIMessages.js.map +1 -1
- package/dist/commonjs/react/types.js +2 -1
- package/dist/commonjs/react/useSmoothText.js +8 -5
- package/dist/commonjs/react/useSmoothText.js.map +1 -1
- package/dist/commonjs/shared.js +9 -4
- package/dist/commonjs/shared.js.map +1 -1
- package/dist/commonjs/validators.d.ts +10 -15
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +249 -247
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/commonjs/vitest.config.js +4 -2
- package/dist/commonjs/vitest.config.js.map +1 -1
- package/dist/commonjs.tsbuildinfo +1 -1
- package/dist/esm/client/index.d.ts +10 -11
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +2 -4
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/streaming.d.ts.map +1 -1
- package/dist/esm/client/streaming.js +1 -7
- package/dist/esm/client/streaming.js.map +1 -1
- package/dist/esm/component/_generated/api.d.ts +2 -13
- package/dist/esm/component/files.d.ts +1 -1
- package/dist/esm/component/files.d.ts.map +1 -1
- package/dist/esm/component/files.js +6 -4
- package/dist/esm/component/files.js.map +1 -1
- package/dist/esm/component/messages.d.ts +30 -30
- package/dist/esm/component/schema.d.ts +74 -84
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +2 -3
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/streams.d.ts +0 -7
- package/dist/esm/component/streams.d.ts.map +1 -1
- package/dist/esm/component/streams.js +22 -49
- package/dist/esm/component/streams.js.map +1 -1
- package/dist/esm/component/threads.d.ts +8 -8
- package/dist/esm/component/vector/tables.d.ts +3 -5
- package/dist/esm/component/vector/tables.d.ts.map +1 -1
- package/dist/esm/mapping.d.ts +3 -3
- package/dist/esm/mapping.d.ts.map +1 -1
- package/dist/esm/mapping.js +5 -3
- package/dist/esm/mapping.js.map +1 -1
- package/dist/esm/react/deltas.d.ts.map +1 -1
- package/dist/esm/react/deltas.js +2 -2
- package/dist/esm/react/deltas.js.map +1 -1
- package/dist/esm/react/index.d.ts +2 -4
- package/dist/esm/react/index.d.ts.map +1 -1
- package/dist/esm/react/index.js +9 -22
- package/dist/esm/react/index.js.map +1 -1
- package/dist/esm/react/optimisticallySendMessage.js +1 -1
- package/dist/esm/react/optimisticallySendMessage.js.map +1 -1
- package/dist/esm/validators.d.ts +10 -15
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +0 -2
- package/dist/esm/validators.js.map +1 -1
- package/dist/esm.tsbuildinfo +1 -1
- package/package.json +9 -4
- package/react/package.json +5 -0
- package/src/client/index.ts +15 -12
- package/src/client/streaming.ts +1 -7
- package/src/component/_generated/api.d.ts +2 -13
- package/src/component/files.ts +6 -4
- package/src/component/schema.ts +2 -3
- package/src/component/streams.ts +39 -85
- package/src/component/vector/tables.ts +1 -1
- package/src/mapping.ts +8 -4
- package/src/react/deltas.ts +2 -4
- package/src/react/index.ts +11 -23
- package/src/react/optimisticallySendMessage.ts +1 -1
- package/src/validators.ts +0 -6
- package/validators/package.json +5 -0
|
@@ -395,7 +395,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
395
395
|
type: "other";
|
|
396
396
|
message: string;
|
|
397
397
|
})[] | undefined;
|
|
398
|
-
finishReason?: "
|
|
398
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
399
399
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
400
400
|
stepId?: string | undefined;
|
|
401
401
|
status: "pending" | "success" | "failed";
|
|
@@ -953,7 +953,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
953
953
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
954
954
|
message: import("convex/values").VString<string, "required">;
|
|
955
955
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
956
|
-
finishReason: import("convex/values").VUnion<"
|
|
956
|
+
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>;
|
|
957
957
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
958
958
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
959
959
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
@@ -980,12 +980,11 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
980
980
|
kind: "streaming";
|
|
981
981
|
lastHeartbeat: number;
|
|
982
982
|
} | {
|
|
983
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
984
983
|
kind: "finished";
|
|
985
984
|
endedAt: number;
|
|
986
985
|
} | {
|
|
987
|
-
|
|
988
|
-
|
|
986
|
+
error: string;
|
|
987
|
+
kind: "error";
|
|
989
988
|
};
|
|
990
989
|
}, {
|
|
991
990
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1006,12 +1005,11 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1006
1005
|
kind: "streaming";
|
|
1007
1006
|
lastHeartbeat: number;
|
|
1008
1007
|
} | {
|
|
1009
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1010
1008
|
kind: "finished";
|
|
1011
1009
|
endedAt: number;
|
|
1012
1010
|
} | {
|
|
1013
|
-
|
|
1014
|
-
|
|
1011
|
+
error: string;
|
|
1012
|
+
kind: "error";
|
|
1015
1013
|
}, [import("convex/values").VObject<{
|
|
1016
1014
|
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1017
1015
|
kind: "streaming";
|
|
@@ -1021,21 +1019,19 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1021
1019
|
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
1022
1020
|
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
1023
1021
|
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
1024
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1025
1022
|
kind: "finished";
|
|
1026
1023
|
endedAt: number;
|
|
1027
1024
|
}, {
|
|
1028
1025
|
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
1029
1026
|
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
kind: "
|
|
1033
|
-
reason: string;
|
|
1027
|
+
}, "required", "kind" | "endedAt">, import("convex/values").VObject<{
|
|
1028
|
+
error: string;
|
|
1029
|
+
kind: "error";
|
|
1034
1030
|
}, {
|
|
1035
|
-
kind: import("convex/values").VLiteral<"
|
|
1036
|
-
|
|
1037
|
-
}, "required", "
|
|
1038
|
-
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.
|
|
1031
|
+
kind: import("convex/values").VLiteral<"error", "required">;
|
|
1032
|
+
error: import("convex/values").VString<string, "required">;
|
|
1033
|
+
}, "required", "error" | "kind">], "required", "error" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt">;
|
|
1034
|
+
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
|
|
1039
1035
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
1040
1036
|
}, {}, {}>;
|
|
1041
1037
|
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1356,7 +1352,7 @@ export declare const vv: {
|
|
|
1356
1352
|
order?: number | undefined;
|
|
1357
1353
|
status: "active" | "archived";
|
|
1358
1354
|
};
|
|
1359
|
-
fieldPaths:
|
|
1355
|
+
fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
|
|
1360
1356
|
indexes: {
|
|
1361
1357
|
userId: ["userId", "_creationTime"];
|
|
1362
1358
|
by_id: ["_id"];
|
|
@@ -1377,7 +1373,7 @@ export declare const vv: {
|
|
|
1377
1373
|
table: string;
|
|
1378
1374
|
vector: number[];
|
|
1379
1375
|
};
|
|
1380
|
-
fieldPaths: "_id" | ("
|
|
1376
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1381
1377
|
indexes: {
|
|
1382
1378
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1383
1379
|
by_id: ["_id"];
|
|
@@ -1404,7 +1400,7 @@ export declare const vv: {
|
|
|
1404
1400
|
table: string;
|
|
1405
1401
|
vector: number[];
|
|
1406
1402
|
};
|
|
1407
|
-
fieldPaths: "_id" | ("
|
|
1403
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1408
1404
|
indexes: {
|
|
1409
1405
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1410
1406
|
by_id: ["_id"];
|
|
@@ -1431,7 +1427,7 @@ export declare const vv: {
|
|
|
1431
1427
|
table: string;
|
|
1432
1428
|
vector: number[];
|
|
1433
1429
|
};
|
|
1434
|
-
fieldPaths: "_id" | ("
|
|
1430
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1435
1431
|
indexes: {
|
|
1436
1432
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1437
1433
|
by_id: ["_id"];
|
|
@@ -1458,7 +1454,7 @@ export declare const vv: {
|
|
|
1458
1454
|
table: string;
|
|
1459
1455
|
vector: number[];
|
|
1460
1456
|
};
|
|
1461
|
-
fieldPaths: "_id" | ("
|
|
1457
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1462
1458
|
indexes: {
|
|
1463
1459
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1464
1460
|
by_id: ["_id"];
|
|
@@ -1485,7 +1481,7 @@ export declare const vv: {
|
|
|
1485
1481
|
table: string;
|
|
1486
1482
|
vector: number[];
|
|
1487
1483
|
};
|
|
1488
|
-
fieldPaths: "_id" | ("
|
|
1484
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1489
1485
|
indexes: {
|
|
1490
1486
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1491
1487
|
by_id: ["_id"];
|
|
@@ -1512,7 +1508,7 @@ export declare const vv: {
|
|
|
1512
1508
|
table: string;
|
|
1513
1509
|
vector: number[];
|
|
1514
1510
|
};
|
|
1515
|
-
fieldPaths: "_id" | ("
|
|
1511
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1516
1512
|
indexes: {
|
|
1517
1513
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1518
1514
|
by_id: ["_id"];
|
|
@@ -1539,7 +1535,7 @@ export declare const vv: {
|
|
|
1539
1535
|
table: string;
|
|
1540
1536
|
vector: number[];
|
|
1541
1537
|
};
|
|
1542
|
-
fieldPaths: "_id" | ("
|
|
1538
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1543
1539
|
indexes: {
|
|
1544
1540
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1545
1541
|
by_id: ["_id"];
|
|
@@ -1566,7 +1562,7 @@ export declare const vv: {
|
|
|
1566
1562
|
table: string;
|
|
1567
1563
|
vector: number[];
|
|
1568
1564
|
};
|
|
1569
|
-
fieldPaths: "_id" | ("
|
|
1565
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1570
1566
|
indexes: {
|
|
1571
1567
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1572
1568
|
by_id: ["_id"];
|
|
@@ -1593,7 +1589,7 @@ export declare const vv: {
|
|
|
1593
1589
|
table: string;
|
|
1594
1590
|
vector: number[];
|
|
1595
1591
|
};
|
|
1596
|
-
fieldPaths: "_id" | ("
|
|
1592
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1597
1593
|
indexes: {
|
|
1598
1594
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1599
1595
|
by_id: ["_id"];
|
|
@@ -1620,7 +1616,7 @@ export declare const vv: {
|
|
|
1620
1616
|
table: string;
|
|
1621
1617
|
vector: number[];
|
|
1622
1618
|
};
|
|
1623
|
-
fieldPaths: "_id" | ("
|
|
1619
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1624
1620
|
indexes: {
|
|
1625
1621
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1626
1622
|
by_id: ["_id"];
|
|
@@ -1646,7 +1642,7 @@ export declare const vv: {
|
|
|
1646
1642
|
refcount: number;
|
|
1647
1643
|
lastTouchedAt: number;
|
|
1648
1644
|
};
|
|
1649
|
-
fieldPaths: ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt")
|
|
1645
|
+
fieldPaths: "_id" | ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
|
|
1650
1646
|
indexes: {
|
|
1651
1647
|
hash: ["hash", "_creationTime"];
|
|
1652
1648
|
refcount: ["refcount", "_creationTime"];
|
|
@@ -1778,7 +1774,7 @@ export declare const vv: {
|
|
|
1778
1774
|
type: "other";
|
|
1779
1775
|
message: string;
|
|
1780
1776
|
})[] | undefined;
|
|
1781
|
-
finishReason?: "
|
|
1777
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1782
1778
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1783
1779
|
stepId?: string | undefined;
|
|
1784
1780
|
status: "pending" | "success" | "failed";
|
|
@@ -1787,7 +1783,7 @@ export declare const vv: {
|
|
|
1787
1783
|
stepOrder: number;
|
|
1788
1784
|
tool: boolean;
|
|
1789
1785
|
};
|
|
1790
|
-
fieldPaths: ("
|
|
1786
|
+
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`);
|
|
1791
1787
|
indexes: {
|
|
1792
1788
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
1793
1789
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
@@ -1819,15 +1815,14 @@ export declare const vv: {
|
|
|
1819
1815
|
kind: "streaming";
|
|
1820
1816
|
lastHeartbeat: number;
|
|
1821
1817
|
} | {
|
|
1822
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
1823
1818
|
kind: "finished";
|
|
1824
1819
|
endedAt: number;
|
|
1825
1820
|
} | {
|
|
1826
|
-
|
|
1827
|
-
|
|
1821
|
+
error: string;
|
|
1822
|
+
kind: "error";
|
|
1828
1823
|
};
|
|
1829
1824
|
};
|
|
1830
|
-
fieldPaths: ("
|
|
1825
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt");
|
|
1831
1826
|
indexes: {
|
|
1832
1827
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
1833
1828
|
by_id: ["_id"];
|
|
@@ -1891,7 +1886,7 @@ export declare const vv: {
|
|
|
1891
1886
|
argsTextDelta: string;
|
|
1892
1887
|
})[];
|
|
1893
1888
|
};
|
|
1894
|
-
fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts")
|
|
1889
|
+
fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
|
|
1895
1890
|
indexes: {
|
|
1896
1891
|
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
1897
1892
|
by_id: ["_id"];
|
|
@@ -1909,7 +1904,7 @@ export declare const vv: {
|
|
|
1909
1904
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
1910
1905
|
memory: string;
|
|
1911
1906
|
};
|
|
1912
|
-
fieldPaths:
|
|
1907
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
|
|
1913
1908
|
indexes: {
|
|
1914
1909
|
threadId: ["threadId", "_creationTime"];
|
|
1915
1910
|
userId: ["userId", "_creationTime"];
|
|
@@ -1926,7 +1921,7 @@ export declare const vv: {
|
|
|
1926
1921
|
_creationTime: number;
|
|
1927
1922
|
name?: string | undefined;
|
|
1928
1923
|
};
|
|
1929
|
-
fieldPaths:
|
|
1924
|
+
fieldPaths: "_id" | ("_creationTime" | "name");
|
|
1930
1925
|
indexes: {
|
|
1931
1926
|
name: ["name", "_creationTime"];
|
|
1932
1927
|
by_id: ["_id"];
|
|
@@ -1949,7 +1944,7 @@ export declare const vv: {
|
|
|
1949
1944
|
order?: number | undefined;
|
|
1950
1945
|
status: "active" | "archived";
|
|
1951
1946
|
};
|
|
1952
|
-
fieldPaths:
|
|
1947
|
+
fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
|
|
1953
1948
|
indexes: {
|
|
1954
1949
|
userId: ["userId", "_creationTime"];
|
|
1955
1950
|
by_id: ["_id"];
|
|
@@ -1970,7 +1965,7 @@ export declare const vv: {
|
|
|
1970
1965
|
table: string;
|
|
1971
1966
|
vector: number[];
|
|
1972
1967
|
};
|
|
1973
|
-
fieldPaths: "_id" | ("
|
|
1968
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
1974
1969
|
indexes: {
|
|
1975
1970
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
1976
1971
|
by_id: ["_id"];
|
|
@@ -1997,7 +1992,7 @@ export declare const vv: {
|
|
|
1997
1992
|
table: string;
|
|
1998
1993
|
vector: number[];
|
|
1999
1994
|
};
|
|
2000
|
-
fieldPaths: "_id" | ("
|
|
1995
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2001
1996
|
indexes: {
|
|
2002
1997
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2003
1998
|
by_id: ["_id"];
|
|
@@ -2024,7 +2019,7 @@ export declare const vv: {
|
|
|
2024
2019
|
table: string;
|
|
2025
2020
|
vector: number[];
|
|
2026
2021
|
};
|
|
2027
|
-
fieldPaths: "_id" | ("
|
|
2022
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2028
2023
|
indexes: {
|
|
2029
2024
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2030
2025
|
by_id: ["_id"];
|
|
@@ -2051,7 +2046,7 @@ export declare const vv: {
|
|
|
2051
2046
|
table: string;
|
|
2052
2047
|
vector: number[];
|
|
2053
2048
|
};
|
|
2054
|
-
fieldPaths: "_id" | ("
|
|
2049
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2055
2050
|
indexes: {
|
|
2056
2051
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2057
2052
|
by_id: ["_id"];
|
|
@@ -2078,7 +2073,7 @@ export declare const vv: {
|
|
|
2078
2073
|
table: string;
|
|
2079
2074
|
vector: number[];
|
|
2080
2075
|
};
|
|
2081
|
-
fieldPaths: "_id" | ("
|
|
2076
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2082
2077
|
indexes: {
|
|
2083
2078
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2084
2079
|
by_id: ["_id"];
|
|
@@ -2105,7 +2100,7 @@ export declare const vv: {
|
|
|
2105
2100
|
table: string;
|
|
2106
2101
|
vector: number[];
|
|
2107
2102
|
};
|
|
2108
|
-
fieldPaths: "_id" | ("
|
|
2103
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2109
2104
|
indexes: {
|
|
2110
2105
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2111
2106
|
by_id: ["_id"];
|
|
@@ -2132,7 +2127,7 @@ export declare const vv: {
|
|
|
2132
2127
|
table: string;
|
|
2133
2128
|
vector: number[];
|
|
2134
2129
|
};
|
|
2135
|
-
fieldPaths: "_id" | ("
|
|
2130
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2136
2131
|
indexes: {
|
|
2137
2132
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2138
2133
|
by_id: ["_id"];
|
|
@@ -2159,7 +2154,7 @@ export declare const vv: {
|
|
|
2159
2154
|
table: string;
|
|
2160
2155
|
vector: number[];
|
|
2161
2156
|
};
|
|
2162
|
-
fieldPaths: "_id" | ("
|
|
2157
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2163
2158
|
indexes: {
|
|
2164
2159
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2165
2160
|
by_id: ["_id"];
|
|
@@ -2186,7 +2181,7 @@ export declare const vv: {
|
|
|
2186
2181
|
table: string;
|
|
2187
2182
|
vector: number[];
|
|
2188
2183
|
};
|
|
2189
|
-
fieldPaths: "_id" | ("
|
|
2184
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2190
2185
|
indexes: {
|
|
2191
2186
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2192
2187
|
by_id: ["_id"];
|
|
@@ -2213,7 +2208,7 @@ export declare const vv: {
|
|
|
2213
2208
|
table: string;
|
|
2214
2209
|
vector: number[];
|
|
2215
2210
|
};
|
|
2216
|
-
fieldPaths: "_id" | ("
|
|
2211
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2217
2212
|
indexes: {
|
|
2218
2213
|
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2219
2214
|
by_id: ["_id"];
|
|
@@ -2239,7 +2234,7 @@ export declare const vv: {
|
|
|
2239
2234
|
refcount: number;
|
|
2240
2235
|
lastTouchedAt: number;
|
|
2241
2236
|
};
|
|
2242
|
-
fieldPaths: ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt")
|
|
2237
|
+
fieldPaths: "_id" | ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
|
|
2243
2238
|
indexes: {
|
|
2244
2239
|
hash: ["hash", "_creationTime"];
|
|
2245
2240
|
refcount: ["refcount", "_creationTime"];
|
|
@@ -2371,7 +2366,7 @@ export declare const vv: {
|
|
|
2371
2366
|
type: "other";
|
|
2372
2367
|
message: string;
|
|
2373
2368
|
})[] | undefined;
|
|
2374
|
-
finishReason?: "
|
|
2369
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2375
2370
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2376
2371
|
stepId?: string | undefined;
|
|
2377
2372
|
status: "pending" | "success" | "failed";
|
|
@@ -2380,7 +2375,7 @@ export declare const vv: {
|
|
|
2380
2375
|
stepOrder: number;
|
|
2381
2376
|
tool: boolean;
|
|
2382
2377
|
};
|
|
2383
|
-
fieldPaths: ("
|
|
2378
|
+
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`);
|
|
2384
2379
|
indexes: {
|
|
2385
2380
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2386
2381
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
@@ -2412,15 +2407,14 @@ export declare const vv: {
|
|
|
2412
2407
|
kind: "streaming";
|
|
2413
2408
|
lastHeartbeat: number;
|
|
2414
2409
|
} | {
|
|
2415
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
2416
2410
|
kind: "finished";
|
|
2417
2411
|
endedAt: number;
|
|
2418
2412
|
} | {
|
|
2419
|
-
|
|
2420
|
-
|
|
2413
|
+
error: string;
|
|
2414
|
+
kind: "error";
|
|
2421
2415
|
};
|
|
2422
2416
|
};
|
|
2423
|
-
fieldPaths: ("
|
|
2417
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt");
|
|
2424
2418
|
indexes: {
|
|
2425
2419
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
2426
2420
|
by_id: ["_id"];
|
|
@@ -2484,7 +2478,7 @@ export declare const vv: {
|
|
|
2484
2478
|
argsTextDelta: string;
|
|
2485
2479
|
})[];
|
|
2486
2480
|
};
|
|
2487
|
-
fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts")
|
|
2481
|
+
fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
|
|
2488
2482
|
indexes: {
|
|
2489
2483
|
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
2490
2484
|
by_id: ["_id"];
|
|
@@ -2502,7 +2496,7 @@ export declare const vv: {
|
|
|
2502
2496
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
2503
2497
|
memory: string;
|
|
2504
2498
|
};
|
|
2505
|
-
fieldPaths:
|
|
2499
|
+
fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
|
|
2506
2500
|
indexes: {
|
|
2507
2501
|
threadId: ["threadId", "_creationTime"];
|
|
2508
2502
|
userId: ["userId", "_creationTime"];
|
|
@@ -2519,7 +2513,7 @@ export declare const vv: {
|
|
|
2519
2513
|
_creationTime: number;
|
|
2520
2514
|
name?: string | undefined;
|
|
2521
2515
|
};
|
|
2522
|
-
fieldPaths:
|
|
2516
|
+
fieldPaths: "_id" | ("_creationTime" | "name");
|
|
2523
2517
|
indexes: {
|
|
2524
2518
|
name: ["name", "_creationTime"];
|
|
2525
2519
|
by_id: ["_id"];
|
|
@@ -2924,7 +2918,7 @@ export declare const vv: {
|
|
|
2924
2918
|
type: "other";
|
|
2925
2919
|
message: string;
|
|
2926
2920
|
})[] | undefined;
|
|
2927
|
-
finishReason?: "
|
|
2921
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2928
2922
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2929
2923
|
stepId?: string | undefined;
|
|
2930
2924
|
status: "pending" | "success" | "failed";
|
|
@@ -3482,7 +3476,7 @@ export declare const vv: {
|
|
|
3482
3476
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
3483
3477
|
message: import("convex/values").VString<string, "required">;
|
|
3484
3478
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3485
|
-
finishReason: import("convex/values").VUnion<"
|
|
3479
|
+
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>;
|
|
3486
3480
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
3487
3481
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
3488
3482
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
@@ -3509,12 +3503,11 @@ export declare const vv: {
|
|
|
3509
3503
|
kind: "streaming";
|
|
3510
3504
|
lastHeartbeat: number;
|
|
3511
3505
|
} | {
|
|
3512
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3513
3506
|
kind: "finished";
|
|
3514
3507
|
endedAt: number;
|
|
3515
3508
|
} | {
|
|
3516
|
-
|
|
3517
|
-
|
|
3509
|
+
error: string;
|
|
3510
|
+
kind: "error";
|
|
3518
3511
|
};
|
|
3519
3512
|
}, {
|
|
3520
3513
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -3535,12 +3528,11 @@ export declare const vv: {
|
|
|
3535
3528
|
kind: "streaming";
|
|
3536
3529
|
lastHeartbeat: number;
|
|
3537
3530
|
} | {
|
|
3538
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3539
3531
|
kind: "finished";
|
|
3540
3532
|
endedAt: number;
|
|
3541
3533
|
} | {
|
|
3542
|
-
|
|
3543
|
-
|
|
3534
|
+
error: string;
|
|
3535
|
+
kind: "error";
|
|
3544
3536
|
}, [import("convex/values").VObject<{
|
|
3545
3537
|
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3546
3538
|
kind: "streaming";
|
|
@@ -3550,21 +3542,19 @@ export declare const vv: {
|
|
|
3550
3542
|
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
3551
3543
|
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
3552
3544
|
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
3553
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3554
3545
|
kind: "finished";
|
|
3555
3546
|
endedAt: number;
|
|
3556
3547
|
}, {
|
|
3557
3548
|
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
3558
3549
|
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
kind: "
|
|
3562
|
-
reason: string;
|
|
3550
|
+
}, "required", "kind" | "endedAt">, import("convex/values").VObject<{
|
|
3551
|
+
error: string;
|
|
3552
|
+
kind: "error";
|
|
3563
3553
|
}, {
|
|
3564
|
-
kind: import("convex/values").VLiteral<"
|
|
3565
|
-
|
|
3566
|
-
}, "required", "
|
|
3567
|
-
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.
|
|
3554
|
+
kind: import("convex/values").VLiteral<"error", "required">;
|
|
3555
|
+
error: import("convex/values").VString<string, "required">;
|
|
3556
|
+
}, "required", "error" | "kind">], "required", "error" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt">;
|
|
3557
|
+
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
|
|
3568
3558
|
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
3569
3559
|
}, {}, {}>;
|
|
3570
3560
|
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -3895,9 +3885,9 @@ export declare const vThreadDoc: import("convex/values").VObject<{
|
|
|
3895
3885
|
userId?: string | undefined;
|
|
3896
3886
|
title?: string | undefined;
|
|
3897
3887
|
summary?: string | undefined;
|
|
3898
|
-
status: "active" | "archived";
|
|
3899
|
-
_creationTime: number;
|
|
3900
3888
|
_id: string;
|
|
3889
|
+
_creationTime: number;
|
|
3890
|
+
status: "active" | "archived";
|
|
3901
3891
|
}, {
|
|
3902
3892
|
_id: import("convex/values").VString<string, "required">;
|
|
3903
3893
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
@@ -3905,7 +3895,7 @@ export declare const vThreadDoc: import("convex/values").VObject<{
|
|
|
3905
3895
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3906
3896
|
summary: import("convex/values").VString<string | undefined, "optional">;
|
|
3907
3897
|
status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
|
|
3908
|
-
}, "required", "
|
|
3898
|
+
}, "required", "_id" | "_creationTime" | "status" | "userId" | "title" | "summary">;
|
|
3909
3899
|
export type ThreadDoc = Infer<typeof vThreadDoc>;
|
|
3910
3900
|
export declare const vMessageDoc: import("convex/values").VObject<{
|
|
3911
3901
|
id?: string | undefined;
|
|
@@ -4025,14 +4015,14 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4025
4015
|
type: "other";
|
|
4026
4016
|
message: string;
|
|
4027
4017
|
})[] | undefined;
|
|
4028
|
-
finishReason?: "
|
|
4018
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
4019
|
+
_id: string;
|
|
4020
|
+
_creationTime: number;
|
|
4029
4021
|
status: "pending" | "success" | "failed";
|
|
4030
4022
|
order: number;
|
|
4031
|
-
_creationTime: number;
|
|
4032
4023
|
threadId: string;
|
|
4033
4024
|
stepOrder: number;
|
|
4034
4025
|
tool: boolean;
|
|
4035
|
-
_id: string;
|
|
4036
4026
|
}, {
|
|
4037
4027
|
threadId: import("convex/values").VString<string, "required">;
|
|
4038
4028
|
embeddingId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -4583,10 +4573,10 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4583
4573
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
4584
4574
|
message: import("convex/values").VString<string, "required">;
|
|
4585
4575
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
4586
|
-
finishReason: import("convex/values").VUnion<"
|
|
4576
|
+
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>;
|
|
4587
4577
|
_id: import("convex/values").VString<string, "required">;
|
|
4588
4578
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
4589
|
-
}, "required", "
|
|
4579
|
+
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>;
|
|
4590
4580
|
export type MessageDoc = Infer<typeof vMessageDoc>;
|
|
4591
4581
|
export default schema;
|
|
4592
4582
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAK,MAAM,eAAe,CAAC;AAkB9C,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAK,MAAM,eAAe,CAAC;AAkB9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;AAEjD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8jBAatB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAGnD,eAAe,MAAM,CAAC"}
|
|
@@ -88,10 +88,9 @@ export const schema = defineSchema({
|
|
|
88
88
|
}), v.object({
|
|
89
89
|
kind: v.literal("finished"),
|
|
90
90
|
endedAt: v.number(),
|
|
91
|
-
cleanupFnId: v.optional(v.id("_scheduled_functions")),
|
|
92
91
|
}), v.object({
|
|
93
|
-
kind: v.literal("
|
|
94
|
-
|
|
92
|
+
kind: v.literal("error"),
|
|
93
|
+
error: v.string(),
|
|
95
94
|
})),
|
|
96
95
|
})
|
|
97
96
|
// There should only be one per "order" index
|