@convex-dev/agent 0.6.0-beta.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/definePlaygroundAPI.d.ts +31 -31
- package/dist/client/index.d.ts +23 -23
- package/dist/client/messages.d.ts +9 -9
- package/dist/client/search.d.ts +9 -9
- package/dist/client/streaming.d.ts +66 -66
- package/dist/component/_generated/dataModel.d.ts +1 -1
- package/dist/component/_generated/server.d.ts.map +1 -1
- package/dist/component/messages.d.ts +107 -107
- package/dist/component/schema.d.ts +59 -56
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/streams.d.ts +4 -4
- package/dist/component/threads.d.ts +17 -17
- package/dist/component/users.d.ts +3 -3
- package/dist/component/vector/tables.d.ts +2 -2
- package/dist/component/vector/tables.d.ts.map +1 -1
- package/dist/validators.d.ts +15 -15
- package/package.json +39 -39
- package/src/component/_generated/dataModel.ts +1 -1
- package/src/component/_generated/server.ts +0 -5
- package/src/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
|
@@ -15,6 +15,7 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
15
15
|
apiKey: string;
|
|
16
16
|
}, Promise<boolean>>;
|
|
17
17
|
listUsers: import("convex/server").RegisteredQuery<"public", {
|
|
18
|
+
apiKey: string;
|
|
18
19
|
paginationOpts: {
|
|
19
20
|
id?: number;
|
|
20
21
|
endCursor?: string | null;
|
|
@@ -23,7 +24,6 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
23
24
|
numItems: number;
|
|
24
25
|
cursor: string | null;
|
|
25
26
|
};
|
|
26
|
-
apiKey: string;
|
|
27
27
|
}, Promise<{
|
|
28
28
|
page: {
|
|
29
29
|
_id: string;
|
|
@@ -36,6 +36,7 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
36
36
|
}>>;
|
|
37
37
|
listThreads: import("convex/server").RegisteredQuery<"public", {
|
|
38
38
|
userId?: string | undefined;
|
|
39
|
+
apiKey: string;
|
|
39
40
|
paginationOpts: {
|
|
40
41
|
id?: number;
|
|
41
42
|
endCursor?: string | null;
|
|
@@ -44,7 +45,6 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
44
45
|
numItems: number;
|
|
45
46
|
cursor: string | null;
|
|
46
47
|
};
|
|
47
|
-
apiKey: string;
|
|
48
48
|
}, Promise<{
|
|
49
49
|
page: {
|
|
50
50
|
lastAgentName: string | undefined;
|
|
@@ -74,6 +74,7 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
74
74
|
}[];
|
|
75
75
|
} | undefined;
|
|
76
76
|
threadId: string;
|
|
77
|
+
apiKey: string;
|
|
77
78
|
paginationOpts: {
|
|
78
79
|
id?: number;
|
|
79
80
|
endCursor?: string | null;
|
|
@@ -82,12 +83,11 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
82
83
|
numItems: number;
|
|
83
84
|
cursor: string | null;
|
|
84
85
|
};
|
|
85
|
-
apiKey: string;
|
|
86
86
|
}, Promise<{
|
|
87
87
|
streams: import("./types.js").SyncStreamsReturnValue;
|
|
88
88
|
page: {
|
|
89
|
-
userId?: string | undefined;
|
|
90
89
|
id?: string | undefined;
|
|
90
|
+
userId?: string | undefined;
|
|
91
91
|
embeddingId?: string | undefined;
|
|
92
92
|
fileIds?: string[] | undefined;
|
|
93
93
|
error?: string | undefined;
|
|
@@ -244,9 +244,9 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
244
244
|
toolCallId: string;
|
|
245
245
|
toolName: string;
|
|
246
246
|
} | {
|
|
247
|
+
title?: string | undefined;
|
|
247
248
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
248
249
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
249
|
-
title?: string | undefined;
|
|
250
250
|
id: string;
|
|
251
251
|
type: "source";
|
|
252
252
|
url: string;
|
|
@@ -256,10 +256,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
256
256
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
257
257
|
filename?: string | undefined;
|
|
258
258
|
id: string;
|
|
259
|
+
title: string;
|
|
259
260
|
type: "source";
|
|
260
261
|
mediaType: string;
|
|
261
262
|
sourceType: "document";
|
|
262
|
-
title: string;
|
|
263
263
|
} | {
|
|
264
264
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
265
265
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -375,10 +375,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
375
375
|
totalTokens: number;
|
|
376
376
|
} | undefined;
|
|
377
377
|
sources?: ({
|
|
378
|
+
title?: string | undefined;
|
|
378
379
|
type?: "source" | undefined;
|
|
379
380
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
380
381
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
381
|
-
title?: string | undefined;
|
|
382
382
|
id: string;
|
|
383
383
|
url: string;
|
|
384
384
|
sourceType: "url";
|
|
@@ -387,10 +387,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
387
387
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
388
388
|
filename?: string | undefined;
|
|
389
389
|
id: string;
|
|
390
|
+
title: string;
|
|
390
391
|
type: "source";
|
|
391
392
|
mediaType: string;
|
|
392
393
|
sourceType: "document";
|
|
393
|
-
title: string;
|
|
394
394
|
})[] | undefined;
|
|
395
395
|
warnings?: ({
|
|
396
396
|
details?: string | undefined;
|
|
@@ -404,7 +404,7 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
404
404
|
type: "other";
|
|
405
405
|
message: string;
|
|
406
406
|
})[] | undefined;
|
|
407
|
-
finishReason?: "
|
|
407
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
408
408
|
reasoningDetails?: ({
|
|
409
409
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
410
410
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -419,13 +419,13 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
419
419
|
type: "redacted";
|
|
420
420
|
data: string;
|
|
421
421
|
})[] | undefined;
|
|
422
|
-
|
|
422
|
+
status: "pending" | "success" | "failed";
|
|
423
|
+
order: number;
|
|
423
424
|
_creationTime: number;
|
|
424
425
|
threadId: string;
|
|
425
|
-
order: number;
|
|
426
426
|
stepOrder: number;
|
|
427
|
-
status: "pending" | "success" | "failed";
|
|
428
427
|
tool: boolean;
|
|
428
|
+
_id: string;
|
|
429
429
|
}[];
|
|
430
430
|
isDone: boolean;
|
|
431
431
|
continueCursor: import("convex/server").Cursor;
|
|
@@ -445,9 +445,9 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
445
445
|
tools: string[];
|
|
446
446
|
}[]>>;
|
|
447
447
|
createThread: import("convex/server").RegisteredMutation<"public", {
|
|
448
|
-
agentName?: string | undefined;
|
|
449
448
|
title?: string | undefined;
|
|
450
449
|
summary?: string | undefined;
|
|
450
|
+
agentName?: string | undefined;
|
|
451
451
|
userId: string;
|
|
452
452
|
apiKey: string;
|
|
453
453
|
}, Promise<{
|
|
@@ -604,9 +604,9 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
604
604
|
toolCallId: string;
|
|
605
605
|
toolName: string;
|
|
606
606
|
} | {
|
|
607
|
+
title?: string | undefined;
|
|
607
608
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
608
609
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
609
|
-
title?: string | undefined;
|
|
610
610
|
id: string;
|
|
611
611
|
type: "source";
|
|
612
612
|
url: string;
|
|
@@ -616,10 +616,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
616
616
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
617
617
|
filename?: string | undefined;
|
|
618
618
|
id: string;
|
|
619
|
+
title: string;
|
|
619
620
|
type: "source";
|
|
620
621
|
mediaType: string;
|
|
621
622
|
sourceType: "document";
|
|
622
|
-
title: string;
|
|
623
623
|
} | {
|
|
624
624
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
625
625
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -772,10 +772,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
772
772
|
totalTokens: number;
|
|
773
773
|
} | undefined;
|
|
774
774
|
sources?: ({
|
|
775
|
+
title?: string | undefined;
|
|
775
776
|
type?: "source" | undefined;
|
|
776
777
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
777
778
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
778
|
-
title?: string | undefined;
|
|
779
779
|
id: string;
|
|
780
780
|
url: string;
|
|
781
781
|
sourceType: "url";
|
|
@@ -784,10 +784,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
784
784
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
785
785
|
filename?: string | undefined;
|
|
786
786
|
id: string;
|
|
787
|
+
title: string;
|
|
787
788
|
type: "source";
|
|
788
789
|
mediaType: string;
|
|
789
790
|
sourceType: "document";
|
|
790
|
-
title: string;
|
|
791
791
|
})[] | undefined;
|
|
792
792
|
warnings?: ({
|
|
793
793
|
details?: string | undefined;
|
|
@@ -801,7 +801,7 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
801
801
|
type: "other";
|
|
802
802
|
message: string;
|
|
803
803
|
})[] | undefined;
|
|
804
|
-
finishReason?: "
|
|
804
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
805
805
|
reasoningDetails?: ({
|
|
806
806
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
807
807
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -965,9 +965,9 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
965
965
|
toolCallId: string;
|
|
966
966
|
toolName: string;
|
|
967
967
|
} | {
|
|
968
|
+
title?: string | undefined;
|
|
968
969
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
969
970
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
970
|
-
title?: string | undefined;
|
|
971
971
|
id: string;
|
|
972
972
|
type: "source";
|
|
973
973
|
url: string;
|
|
@@ -977,10 +977,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
977
977
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
978
978
|
filename?: string | undefined;
|
|
979
979
|
id: string;
|
|
980
|
+
title: string;
|
|
980
981
|
type: "source";
|
|
981
982
|
mediaType: string;
|
|
982
983
|
sourceType: "document";
|
|
983
|
-
title: string;
|
|
984
984
|
} | {
|
|
985
985
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
986
986
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1239,9 +1239,9 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1239
1239
|
toolCallId: string;
|
|
1240
1240
|
toolName: string;
|
|
1241
1241
|
} | {
|
|
1242
|
+
title?: string | undefined;
|
|
1242
1243
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1243
1244
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1244
|
-
title?: string | undefined;
|
|
1245
1245
|
id: string;
|
|
1246
1246
|
type: "source";
|
|
1247
1247
|
url: string;
|
|
@@ -1251,10 +1251,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1251
1251
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1252
1252
|
filename?: string | undefined;
|
|
1253
1253
|
id: string;
|
|
1254
|
+
title: string;
|
|
1254
1255
|
type: "source";
|
|
1255
1256
|
mediaType: string;
|
|
1256
1257
|
sourceType: "document";
|
|
1257
|
-
title: string;
|
|
1258
1258
|
} | {
|
|
1259
1259
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1260
1260
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1380,8 +1380,8 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1380
1380
|
};
|
|
1381
1381
|
apiKey: string;
|
|
1382
1382
|
}, Promise<{
|
|
1383
|
-
userId?: string | undefined;
|
|
1384
1383
|
id?: string | undefined;
|
|
1384
|
+
userId?: string | undefined;
|
|
1385
1385
|
embeddingId?: string | undefined;
|
|
1386
1386
|
fileIds?: string[] | undefined;
|
|
1387
1387
|
error?: string | undefined;
|
|
@@ -1538,9 +1538,9 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1538
1538
|
toolCallId: string;
|
|
1539
1539
|
toolName: string;
|
|
1540
1540
|
} | {
|
|
1541
|
+
title?: string | undefined;
|
|
1541
1542
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1542
1543
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1543
|
-
title?: string | undefined;
|
|
1544
1544
|
id: string;
|
|
1545
1545
|
type: "source";
|
|
1546
1546
|
url: string;
|
|
@@ -1550,10 +1550,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1550
1550
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1551
1551
|
filename?: string | undefined;
|
|
1552
1552
|
id: string;
|
|
1553
|
+
title: string;
|
|
1553
1554
|
type: "source";
|
|
1554
1555
|
mediaType: string;
|
|
1555
1556
|
sourceType: "document";
|
|
1556
|
-
title: string;
|
|
1557
1557
|
} | {
|
|
1558
1558
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1559
1559
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1669,10 +1669,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1669
1669
|
totalTokens: number;
|
|
1670
1670
|
} | undefined;
|
|
1671
1671
|
sources?: ({
|
|
1672
|
+
title?: string | undefined;
|
|
1672
1673
|
type?: "source" | undefined;
|
|
1673
1674
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1674
1675
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1675
|
-
title?: string | undefined;
|
|
1676
1676
|
id: string;
|
|
1677
1677
|
url: string;
|
|
1678
1678
|
sourceType: "url";
|
|
@@ -1681,10 +1681,10 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1681
1681
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1682
1682
|
filename?: string | undefined;
|
|
1683
1683
|
id: string;
|
|
1684
|
+
title: string;
|
|
1684
1685
|
type: "source";
|
|
1685
1686
|
mediaType: string;
|
|
1686
1687
|
sourceType: "document";
|
|
1687
|
-
title: string;
|
|
1688
1688
|
})[] | undefined;
|
|
1689
1689
|
warnings?: ({
|
|
1690
1690
|
details?: string | undefined;
|
|
@@ -1698,7 +1698,7 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1698
1698
|
type: "other";
|
|
1699
1699
|
message: string;
|
|
1700
1700
|
})[] | undefined;
|
|
1701
|
-
finishReason?: "
|
|
1701
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1702
1702
|
reasoningDetails?: ({
|
|
1703
1703
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1704
1704
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1713,13 +1713,13 @@ export declare function definePlaygroundAPI<DataModel extends GenericDataModel>(
|
|
|
1713
1713
|
type: "redacted";
|
|
1714
1714
|
data: string;
|
|
1715
1715
|
})[] | undefined;
|
|
1716
|
-
|
|
1716
|
+
status: "pending" | "success" | "failed";
|
|
1717
|
+
order: number;
|
|
1717
1718
|
_creationTime: number;
|
|
1718
1719
|
threadId: string;
|
|
1719
|
-
order: number;
|
|
1720
1720
|
stepOrder: number;
|
|
1721
|
-
status: "pending" | "success" | "failed";
|
|
1722
1721
|
tool: boolean;
|
|
1722
|
+
_id: string;
|
|
1723
1723
|
}[]>>;
|
|
1724
1724
|
};
|
|
1725
1725
|
//# sourceMappingURL=definePlaygroundAPI.d.ts.map
|
package/dist/client/index.d.ts
CHANGED
|
@@ -355,8 +355,8 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
355
355
|
}): Promise<{
|
|
356
356
|
messageId: string;
|
|
357
357
|
message: {
|
|
358
|
-
userId?: string | undefined;
|
|
359
358
|
id?: string | undefined;
|
|
359
|
+
userId?: string | undefined;
|
|
360
360
|
embeddingId?: string | undefined;
|
|
361
361
|
fileIds?: string[] | undefined;
|
|
362
362
|
error?: string | undefined;
|
|
@@ -513,9 +513,9 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
513
513
|
toolCallId: string;
|
|
514
514
|
toolName: string;
|
|
515
515
|
} | {
|
|
516
|
+
title?: string | undefined;
|
|
516
517
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
517
518
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
518
|
-
title?: string | undefined;
|
|
519
519
|
id: string;
|
|
520
520
|
type: "source";
|
|
521
521
|
url: string;
|
|
@@ -525,10 +525,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
525
525
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
526
526
|
filename?: string | undefined;
|
|
527
527
|
id: string;
|
|
528
|
+
title: string;
|
|
528
529
|
type: "source";
|
|
529
530
|
mediaType: string;
|
|
530
531
|
sourceType: "document";
|
|
531
|
-
title: string;
|
|
532
532
|
} | {
|
|
533
533
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
534
534
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -644,10 +644,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
644
644
|
totalTokens: number;
|
|
645
645
|
} | undefined;
|
|
646
646
|
sources?: ({
|
|
647
|
+
title?: string | undefined;
|
|
647
648
|
type?: "source" | undefined;
|
|
648
649
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
649
650
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
650
|
-
title?: string | undefined;
|
|
651
651
|
id: string;
|
|
652
652
|
url: string;
|
|
653
653
|
sourceType: "url";
|
|
@@ -656,10 +656,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
656
656
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
657
657
|
filename?: string | undefined;
|
|
658
658
|
id: string;
|
|
659
|
+
title: string;
|
|
659
660
|
type: "source";
|
|
660
661
|
mediaType: string;
|
|
661
662
|
sourceType: "document";
|
|
662
|
-
title: string;
|
|
663
663
|
})[] | undefined;
|
|
664
664
|
warnings?: ({
|
|
665
665
|
details?: string | undefined;
|
|
@@ -673,7 +673,7 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
673
673
|
type: "other";
|
|
674
674
|
message: string;
|
|
675
675
|
})[] | undefined;
|
|
676
|
-
finishReason?: "
|
|
676
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
677
677
|
reasoningDetails?: ({
|
|
678
678
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
679
679
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -688,13 +688,13 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
688
688
|
type: "redacted";
|
|
689
689
|
data: string;
|
|
690
690
|
})[] | undefined;
|
|
691
|
-
|
|
691
|
+
status: "pending" | "success" | "failed";
|
|
692
|
+
order: number;
|
|
692
693
|
_creationTime: number;
|
|
693
694
|
threadId: string;
|
|
694
|
-
order: number;
|
|
695
695
|
stepOrder: number;
|
|
696
|
-
status: "pending" | "success" | "failed";
|
|
697
696
|
tool: boolean;
|
|
697
|
+
_id: string;
|
|
698
698
|
};
|
|
699
699
|
}>;
|
|
700
700
|
/**
|
|
@@ -1248,9 +1248,9 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1248
1248
|
toolCallId: string;
|
|
1249
1249
|
toolName: string;
|
|
1250
1250
|
} | {
|
|
1251
|
+
title?: string | undefined;
|
|
1251
1252
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1252
1253
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1253
|
-
title?: string | undefined;
|
|
1254
1254
|
id: string;
|
|
1255
1255
|
type: "source";
|
|
1256
1256
|
url: string;
|
|
@@ -1260,10 +1260,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1260
1260
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1261
1261
|
filename?: string | undefined;
|
|
1262
1262
|
id: string;
|
|
1263
|
+
title: string;
|
|
1263
1264
|
type: "source";
|
|
1264
1265
|
mediaType: string;
|
|
1265
1266
|
sourceType: "document";
|
|
1266
|
-
title: string;
|
|
1267
1267
|
} | {
|
|
1268
1268
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1269
1269
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1396,6 +1396,7 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1396
1396
|
saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
|
|
1397
1397
|
} | undefined;
|
|
1398
1398
|
callSettings?: {
|
|
1399
|
+
headers?: Record<string, string> | undefined;
|
|
1399
1400
|
maxOutputTokens?: number | undefined;
|
|
1400
1401
|
temperature?: number | undefined;
|
|
1401
1402
|
topP?: number | undefined;
|
|
@@ -1405,7 +1406,6 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1405
1406
|
stopSequences?: string[] | undefined;
|
|
1406
1407
|
seed?: number | undefined;
|
|
1407
1408
|
maxRetries?: number | undefined;
|
|
1408
|
-
headers?: Record<string, string> | undefined;
|
|
1409
1409
|
} | undefined;
|
|
1410
1410
|
}, Promise<{
|
|
1411
1411
|
text: string;
|
|
@@ -1576,9 +1576,9 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1576
1576
|
toolCallId: string;
|
|
1577
1577
|
toolName: string;
|
|
1578
1578
|
} | {
|
|
1579
|
+
title?: string | undefined;
|
|
1579
1580
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1580
1581
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1581
|
-
title?: string | undefined;
|
|
1582
1582
|
id: string;
|
|
1583
1583
|
type: "source";
|
|
1584
1584
|
url: string;
|
|
@@ -1588,10 +1588,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1588
1588
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1589
1589
|
filename?: string | undefined;
|
|
1590
1590
|
id: string;
|
|
1591
|
+
title: string;
|
|
1591
1592
|
type: "source";
|
|
1592
1593
|
mediaType: string;
|
|
1593
1594
|
sourceType: "document";
|
|
1594
|
-
title: string;
|
|
1595
1595
|
} | {
|
|
1596
1596
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1597
1597
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1717,6 +1717,7 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1717
1717
|
saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
|
|
1718
1718
|
} | undefined;
|
|
1719
1719
|
callSettings?: {
|
|
1720
|
+
headers?: Record<string, string> | undefined;
|
|
1720
1721
|
maxOutputTokens?: number | undefined;
|
|
1721
1722
|
temperature?: number | undefined;
|
|
1722
1723
|
topP?: number | undefined;
|
|
@@ -1726,7 +1727,6 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1726
1727
|
stopSequences?: string[] | undefined;
|
|
1727
1728
|
seed?: number | undefined;
|
|
1728
1729
|
maxRetries?: number | undefined;
|
|
1729
|
-
headers?: Record<string, string> | undefined;
|
|
1730
1730
|
} | undefined;
|
|
1731
1731
|
}, Promise<{
|
|
1732
1732
|
object: T;
|
|
@@ -1742,16 +1742,16 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1742
1742
|
asSaveMessagesMutation(): import("convex/server").RegisteredMutation<"internal", {
|
|
1743
1743
|
userId?: string | undefined;
|
|
1744
1744
|
promptMessageId?: string | undefined;
|
|
1745
|
-
failPendingSteps?: boolean | undefined;
|
|
1746
1745
|
embeddings?: {
|
|
1747
1746
|
model: string;
|
|
1748
1747
|
vectors: (number[] | null)[];
|
|
1749
1748
|
} | undefined;
|
|
1749
|
+
failPendingSteps?: boolean | undefined;
|
|
1750
1750
|
threadId: string;
|
|
1751
1751
|
messages: {
|
|
1752
|
+
status?: "pending" | "success" | "failed" | undefined;
|
|
1752
1753
|
fileIds?: string[] | undefined;
|
|
1753
1754
|
error?: string | undefined;
|
|
1754
|
-
status?: "pending" | "success" | "failed" | undefined;
|
|
1755
1755
|
model?: string | undefined;
|
|
1756
1756
|
provider?: string | undefined;
|
|
1757
1757
|
text?: string | undefined;
|
|
@@ -1765,10 +1765,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1765
1765
|
totalTokens: number;
|
|
1766
1766
|
} | undefined;
|
|
1767
1767
|
sources?: ({
|
|
1768
|
+
title?: string | undefined;
|
|
1768
1769
|
type?: "source" | undefined;
|
|
1769
1770
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1770
1771
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1771
|
-
title?: string | undefined;
|
|
1772
1772
|
id: string;
|
|
1773
1773
|
url: string;
|
|
1774
1774
|
sourceType: "url";
|
|
@@ -1777,10 +1777,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1777
1777
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1778
1778
|
filename?: string | undefined;
|
|
1779
1779
|
id: string;
|
|
1780
|
+
title: string;
|
|
1780
1781
|
type: "source";
|
|
1781
1782
|
mediaType: string;
|
|
1782
1783
|
sourceType: "document";
|
|
1783
|
-
title: string;
|
|
1784
1784
|
})[] | undefined;
|
|
1785
1785
|
warnings?: ({
|
|
1786
1786
|
details?: string | undefined;
|
|
@@ -1794,7 +1794,7 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1794
1794
|
type: "other";
|
|
1795
1795
|
message: string;
|
|
1796
1796
|
})[] | undefined;
|
|
1797
|
-
finishReason?: "
|
|
1797
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1798
1798
|
reasoningDetails?: ({
|
|
1799
1799
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1800
1800
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1958,9 +1958,9 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1958
1958
|
toolCallId: string;
|
|
1959
1959
|
toolName: string;
|
|
1960
1960
|
} | {
|
|
1961
|
+
title?: string | undefined;
|
|
1961
1962
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1962
1963
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1963
|
-
title?: string | undefined;
|
|
1964
1964
|
id: string;
|
|
1965
1965
|
type: "source";
|
|
1966
1966
|
url: string;
|
|
@@ -1970,10 +1970,10 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
1970
1970
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1971
1971
|
filename?: string | undefined;
|
|
1972
1972
|
id: string;
|
|
1973
|
+
title: string;
|
|
1973
1974
|
type: "source";
|
|
1974
1975
|
mediaType: string;
|
|
1975
1976
|
sourceType: "document";
|
|
1976
|
-
title: string;
|
|
1977
1977
|
} | {
|
|
1978
1978
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1979
1979
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2082,9 +2082,9 @@ CustomCtx extends object = object, AgentTools extends ToolSet = any> {
|
|
|
2082
2082
|
}, Promise<{
|
|
2083
2083
|
lastMessageId: string;
|
|
2084
2084
|
messages: {
|
|
2085
|
-
_id: string;
|
|
2086
2085
|
order: number;
|
|
2087
2086
|
stepOrder: number;
|
|
2087
|
+
_id: string;
|
|
2088
2088
|
}[];
|
|
2089
2089
|
}>>;
|
|
2090
2090
|
}
|
|
@@ -116,8 +116,8 @@ export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: Age
|
|
|
116
116
|
}): Promise<{
|
|
117
117
|
messageId: string;
|
|
118
118
|
message: {
|
|
119
|
-
userId?: string | undefined;
|
|
120
119
|
id?: string | undefined;
|
|
120
|
+
userId?: string | undefined;
|
|
121
121
|
embeddingId?: string | undefined;
|
|
122
122
|
fileIds?: string[] | undefined;
|
|
123
123
|
error?: string | undefined;
|
|
@@ -274,9 +274,9 @@ export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: Age
|
|
|
274
274
|
toolCallId: string;
|
|
275
275
|
toolName: string;
|
|
276
276
|
} | {
|
|
277
|
+
title?: string | undefined;
|
|
277
278
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
278
279
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
279
|
-
title?: string | undefined;
|
|
280
280
|
id: string;
|
|
281
281
|
type: "source";
|
|
282
282
|
url: string;
|
|
@@ -286,10 +286,10 @@ export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: Age
|
|
|
286
286
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
287
287
|
filename?: string | undefined;
|
|
288
288
|
id: string;
|
|
289
|
+
title: string;
|
|
289
290
|
type: "source";
|
|
290
291
|
mediaType: string;
|
|
291
292
|
sourceType: "document";
|
|
292
|
-
title: string;
|
|
293
293
|
} | {
|
|
294
294
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
295
295
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -405,10 +405,10 @@ export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: Age
|
|
|
405
405
|
totalTokens: number;
|
|
406
406
|
} | undefined;
|
|
407
407
|
sources?: ({
|
|
408
|
+
title?: string | undefined;
|
|
408
409
|
type?: "source" | undefined;
|
|
409
410
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
410
411
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
411
|
-
title?: string | undefined;
|
|
412
412
|
id: string;
|
|
413
413
|
url: string;
|
|
414
414
|
sourceType: "url";
|
|
@@ -417,10 +417,10 @@ export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: Age
|
|
|
417
417
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
418
418
|
filename?: string | undefined;
|
|
419
419
|
id: string;
|
|
420
|
+
title: string;
|
|
420
421
|
type: "source";
|
|
421
422
|
mediaType: string;
|
|
422
423
|
sourceType: "document";
|
|
423
|
-
title: string;
|
|
424
424
|
})[] | undefined;
|
|
425
425
|
warnings?: ({
|
|
426
426
|
details?: string | undefined;
|
|
@@ -434,7 +434,7 @@ export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: Age
|
|
|
434
434
|
type: "other";
|
|
435
435
|
message: string;
|
|
436
436
|
})[] | undefined;
|
|
437
|
-
finishReason?: "
|
|
437
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
438
438
|
reasoningDetails?: ({
|
|
439
439
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
440
440
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -449,13 +449,13 @@ export declare function saveMessage(ctx: MutationCtx | ActionCtx, component: Age
|
|
|
449
449
|
type: "redacted";
|
|
450
450
|
data: string;
|
|
451
451
|
})[] | undefined;
|
|
452
|
-
|
|
452
|
+
status: "pending" | "success" | "failed";
|
|
453
|
+
order: number;
|
|
453
454
|
_creationTime: number;
|
|
454
455
|
threadId: string;
|
|
455
|
-
order: number;
|
|
456
456
|
stepOrder: number;
|
|
457
|
-
status: "pending" | "success" | "failed";
|
|
458
457
|
tool: boolean;
|
|
458
|
+
_id: string;
|
|
459
459
|
};
|
|
460
460
|
}>;
|
|
461
461
|
//# sourceMappingURL=messages.d.ts.map
|