@convex-dev/agent 0.0.1-alpha.2 → 0.0.1-alpha.4
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 +91 -95
- package/dist/commonjs/client/index.d.ts +60 -60
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +80 -77
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/types.d.ts +1 -1
- package/dist/commonjs/client/types.d.ts.map +1 -1
- package/dist/commonjs/component/messages.d.ts +56 -56
- package/dist/commonjs/component/messages.d.ts.map +1 -1
- package/dist/commonjs/component/messages.js +128 -134
- package/dist/commonjs/component/messages.js.map +1 -1
- package/dist/commonjs/component/schema.d.ts +256 -256
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +18 -18
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/vector/index.d.ts +4 -4
- package/dist/commonjs/component/vector/index.d.ts.map +1 -1
- package/dist/commonjs/component/vector/index.js +12 -10
- package/dist/commonjs/component/vector/index.js.map +1 -1
- package/dist/commonjs/component/vector/tables.d.ts +3 -3
- package/dist/commonjs/component/vector/tables.js +6 -6
- package/dist/commonjs/component/vector/tables.js.map +1 -1
- package/dist/commonjs/validators.d.ts +5 -5
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +3 -3
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/esm/client/index.d.ts +60 -60
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +80 -77
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/types.d.ts +1 -1
- package/dist/esm/client/types.d.ts.map +1 -1
- package/dist/esm/component/messages.d.ts +56 -56
- package/dist/esm/component/messages.d.ts.map +1 -1
- package/dist/esm/component/messages.js +128 -134
- package/dist/esm/component/messages.js.map +1 -1
- package/dist/esm/component/schema.d.ts +256 -256
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +18 -18
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/vector/index.d.ts +4 -4
- package/dist/esm/component/vector/index.d.ts.map +1 -1
- package/dist/esm/component/vector/index.js +12 -10
- package/dist/esm/component/vector/index.js.map +1 -1
- package/dist/esm/component/vector/tables.d.ts +3 -3
- package/dist/esm/component/vector/tables.js +6 -6
- package/dist/esm/component/vector/tables.js.map +1 -1
- package/dist/esm/validators.d.ts +5 -5
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +3 -3
- package/dist/esm/validators.js.map +1 -1
- package/package.json +2 -2
- package/src/client/index.ts +133 -127
- package/src/client/types.ts +1 -1
- package/src/component/_generated/api.d.ts +53 -53
- package/src/component/messages.ts +139 -145
- package/src/component/schema.ts +18 -18
- package/src/component/vector/index.ts +13 -11
- package/src/component/vector/tables.ts +6 -6
- package/src/validators.ts +6 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export declare const schema: import("convex/server").SchemaDefinition<{
|
|
2
2
|
embeddings_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
3
|
userId?: string | undefined;
|
|
4
|
-
|
|
4
|
+
threadId?: string | undefined;
|
|
5
5
|
model_kind_userId?: string[] | undefined;
|
|
6
|
-
|
|
6
|
+
model_kind_threadId?: string[] | undefined;
|
|
7
7
|
vector: number[];
|
|
8
8
|
model: string;
|
|
9
|
-
kind: "
|
|
9
|
+
kind: "thread" | "memory";
|
|
10
10
|
}, {
|
|
11
11
|
model: import("convex/values").VString<string, "required">;
|
|
12
|
-
kind: import("convex/values").VUnion<"
|
|
12
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
13
13
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
14
|
-
|
|
14
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
15
15
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
16
|
-
|
|
16
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
17
17
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
18
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
18
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
19
19
|
id: ["id"];
|
|
20
20
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
21
21
|
vector: {
|
|
@@ -26,21 +26,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
26
26
|
}>;
|
|
27
27
|
embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
28
28
|
userId?: string | undefined;
|
|
29
|
-
|
|
29
|
+
threadId?: string | undefined;
|
|
30
30
|
model_kind_userId?: string[] | undefined;
|
|
31
|
-
|
|
31
|
+
model_kind_threadId?: string[] | undefined;
|
|
32
32
|
vector: number[];
|
|
33
33
|
model: string;
|
|
34
|
-
kind: "
|
|
34
|
+
kind: "thread" | "memory";
|
|
35
35
|
}, {
|
|
36
36
|
model: import("convex/values").VString<string, "required">;
|
|
37
|
-
kind: import("convex/values").VUnion<"
|
|
37
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
38
38
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
39
|
-
|
|
39
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
40
40
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
41
|
-
|
|
41
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
42
42
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
43
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
43
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
44
44
|
id: ["id"];
|
|
45
45
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
46
46
|
vector: {
|
|
@@ -51,21 +51,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
51
51
|
}>;
|
|
52
52
|
embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
53
53
|
userId?: string | undefined;
|
|
54
|
-
|
|
54
|
+
threadId?: string | undefined;
|
|
55
55
|
model_kind_userId?: string[] | undefined;
|
|
56
|
-
|
|
56
|
+
model_kind_threadId?: string[] | undefined;
|
|
57
57
|
vector: number[];
|
|
58
58
|
model: string;
|
|
59
|
-
kind: "
|
|
59
|
+
kind: "thread" | "memory";
|
|
60
60
|
}, {
|
|
61
61
|
model: import("convex/values").VString<string, "required">;
|
|
62
|
-
kind: import("convex/values").VUnion<"
|
|
62
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
63
63
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
64
|
-
|
|
64
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
65
65
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
66
|
-
|
|
66
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
67
67
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
68
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
68
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
69
69
|
id: ["id"];
|
|
70
70
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
71
71
|
vector: {
|
|
@@ -76,21 +76,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
76
76
|
}>;
|
|
77
77
|
embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
78
78
|
userId?: string | undefined;
|
|
79
|
-
|
|
79
|
+
threadId?: string | undefined;
|
|
80
80
|
model_kind_userId?: string[] | undefined;
|
|
81
|
-
|
|
81
|
+
model_kind_threadId?: string[] | undefined;
|
|
82
82
|
vector: number[];
|
|
83
83
|
model: string;
|
|
84
|
-
kind: "
|
|
84
|
+
kind: "thread" | "memory";
|
|
85
85
|
}, {
|
|
86
86
|
model: import("convex/values").VString<string, "required">;
|
|
87
|
-
kind: import("convex/values").VUnion<"
|
|
87
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
88
88
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
89
|
-
|
|
89
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
90
90
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
91
|
-
|
|
91
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
92
92
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
93
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
93
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
94
94
|
id: ["id"];
|
|
95
95
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
96
96
|
vector: {
|
|
@@ -101,21 +101,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
101
101
|
}>;
|
|
102
102
|
embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
103
103
|
userId?: string | undefined;
|
|
104
|
-
|
|
104
|
+
threadId?: string | undefined;
|
|
105
105
|
model_kind_userId?: string[] | undefined;
|
|
106
|
-
|
|
106
|
+
model_kind_threadId?: string[] | undefined;
|
|
107
107
|
vector: number[];
|
|
108
108
|
model: string;
|
|
109
|
-
kind: "
|
|
109
|
+
kind: "thread" | "memory";
|
|
110
110
|
}, {
|
|
111
111
|
model: import("convex/values").VString<string, "required">;
|
|
112
|
-
kind: import("convex/values").VUnion<"
|
|
112
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
113
113
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
114
|
-
|
|
114
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
115
115
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
116
|
-
|
|
116
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
117
117
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
118
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
118
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
119
119
|
id: ["id"];
|
|
120
120
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
121
121
|
vector: {
|
|
@@ -126,21 +126,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
126
126
|
}>;
|
|
127
127
|
embeddings_1536: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
128
128
|
userId?: string | undefined;
|
|
129
|
-
|
|
129
|
+
threadId?: string | undefined;
|
|
130
130
|
model_kind_userId?: string[] | undefined;
|
|
131
|
-
|
|
131
|
+
model_kind_threadId?: string[] | undefined;
|
|
132
132
|
vector: number[];
|
|
133
133
|
model: string;
|
|
134
|
-
kind: "
|
|
134
|
+
kind: "thread" | "memory";
|
|
135
135
|
}, {
|
|
136
136
|
model: import("convex/values").VString<string, "required">;
|
|
137
|
-
kind: import("convex/values").VUnion<"
|
|
137
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
138
138
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
139
|
-
|
|
139
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
140
140
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
141
|
-
|
|
141
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
142
142
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
143
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
143
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
144
144
|
id: ["id"];
|
|
145
145
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
146
146
|
vector: {
|
|
@@ -151,21 +151,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
151
151
|
}>;
|
|
152
152
|
embeddings_2048: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
153
153
|
userId?: string | undefined;
|
|
154
|
-
|
|
154
|
+
threadId?: string | undefined;
|
|
155
155
|
model_kind_userId?: string[] | undefined;
|
|
156
|
-
|
|
156
|
+
model_kind_threadId?: string[] | undefined;
|
|
157
157
|
vector: number[];
|
|
158
158
|
model: string;
|
|
159
|
-
kind: "
|
|
159
|
+
kind: "thread" | "memory";
|
|
160
160
|
}, {
|
|
161
161
|
model: import("convex/values").VString<string, "required">;
|
|
162
|
-
kind: import("convex/values").VUnion<"
|
|
162
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
163
163
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
164
|
-
|
|
164
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
165
165
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
166
|
-
|
|
166
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
167
167
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
168
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
168
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
169
169
|
id: ["id"];
|
|
170
170
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
171
171
|
vector: {
|
|
@@ -176,21 +176,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
176
176
|
}>;
|
|
177
177
|
embeddings_3072: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
178
178
|
userId?: string | undefined;
|
|
179
|
-
|
|
179
|
+
threadId?: string | undefined;
|
|
180
180
|
model_kind_userId?: string[] | undefined;
|
|
181
|
-
|
|
181
|
+
model_kind_threadId?: string[] | undefined;
|
|
182
182
|
vector: number[];
|
|
183
183
|
model: string;
|
|
184
|
-
kind: "
|
|
184
|
+
kind: "thread" | "memory";
|
|
185
185
|
}, {
|
|
186
186
|
model: import("convex/values").VString<string, "required">;
|
|
187
|
-
kind: import("convex/values").VUnion<"
|
|
187
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
188
188
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
189
|
-
|
|
189
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
190
190
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
191
|
-
|
|
191
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
192
192
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
193
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
193
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
194
194
|
id: ["id"];
|
|
195
195
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
196
196
|
vector: {
|
|
@@ -201,21 +201,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
201
201
|
}>;
|
|
202
202
|
embeddings_4096: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
203
203
|
userId?: string | undefined;
|
|
204
|
-
|
|
204
|
+
threadId?: string | undefined;
|
|
205
205
|
model_kind_userId?: string[] | undefined;
|
|
206
|
-
|
|
206
|
+
model_kind_threadId?: string[] | undefined;
|
|
207
207
|
vector: number[];
|
|
208
208
|
model: string;
|
|
209
|
-
kind: "
|
|
209
|
+
kind: "thread" | "memory";
|
|
210
210
|
}, {
|
|
211
211
|
model: import("convex/values").VString<string, "required">;
|
|
212
|
-
kind: import("convex/values").VUnion<"
|
|
212
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
213
213
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
214
|
-
|
|
214
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
215
215
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
216
|
-
|
|
216
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
217
217
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
218
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
218
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
219
219
|
id: ["id"];
|
|
220
220
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
221
221
|
vector: {
|
|
@@ -224,13 +224,13 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
224
224
|
filterFields: string;
|
|
225
225
|
};
|
|
226
226
|
}>;
|
|
227
|
-
|
|
227
|
+
threads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
228
228
|
title?: string | undefined;
|
|
229
229
|
userId?: string | undefined;
|
|
230
230
|
order?: number | undefined;
|
|
231
231
|
defaultSystemPrompt?: string | undefined;
|
|
232
232
|
summary?: string | undefined;
|
|
233
|
-
|
|
233
|
+
parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
|
|
234
234
|
status: "active" | "archived";
|
|
235
235
|
}, {
|
|
236
236
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -239,8 +239,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
239
239
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
240
240
|
summary: import("convex/values").VString<string | undefined, "optional">;
|
|
241
241
|
status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
|
|
242
|
-
|
|
243
|
-
}, "required", "title" | "userId" | "status" | "order" | "defaultSystemPrompt" | "summary" | "
|
|
242
|
+
parentThreadIds: import("convex/values").VArray<import("convex/values").GenericId<"threads">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">, "optional">;
|
|
243
|
+
}, "required", "title" | "userId" | "status" | "order" | "defaultSystemPrompt" | "summary" | "parentThreadIds">, {
|
|
244
244
|
status_userId_order: ["status", "userId", "order", "_creationTime"];
|
|
245
245
|
}, {}, {}>;
|
|
246
246
|
messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -332,8 +332,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
332
332
|
fileId?: import("convex/values").GenericId<"files"> | undefined;
|
|
333
333
|
model?: string | undefined;
|
|
334
334
|
userId?: string | undefined;
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
336
|
+
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
337
337
|
stepId?: import("convex/values").GenericId<"steps"> | undefined;
|
|
338
338
|
agentName?: string | undefined;
|
|
339
339
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
@@ -344,8 +344,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
344
344
|
}, {
|
|
345
345
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
346
346
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
|
|
348
|
+
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
349
349
|
stepId: import("convex/values").VId<import("convex/values").GenericId<"steps"> | undefined, "optional">;
|
|
350
350
|
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
351
351
|
message: import("convex/values").VUnion<{
|
|
@@ -838,14 +838,14 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
838
838
|
stepOrder: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
839
839
|
fileId: import("convex/values").VId<import("convex/values").GenericId<"files"> | undefined, "optional">;
|
|
840
840
|
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>;
|
|
841
|
-
}, "required", "id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "
|
|
842
|
-
|
|
841
|
+
}, "required", "id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "threadId" | "status" | "order" | "parentMessageId" | "stepId" | "agentName" | "embeddingId" | "stepOrder">, {
|
|
842
|
+
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
843
843
|
userId_status_tool_order_stepOrder: ["userId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
844
844
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
845
845
|
}, {
|
|
846
846
|
text_search: {
|
|
847
847
|
searchField: "text";
|
|
848
|
-
filterFields: "userId" | "
|
|
848
|
+
filterFields: "userId" | "threadId";
|
|
849
849
|
};
|
|
850
850
|
}, {}>;
|
|
851
851
|
steps: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1012,13 +1012,13 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1012
1012
|
result: any;
|
|
1013
1013
|
}[];
|
|
1014
1014
|
};
|
|
1015
|
-
|
|
1015
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
1016
1016
|
status: "pending" | "success" | "failed";
|
|
1017
1017
|
order: number;
|
|
1018
|
-
stepOrder: number;
|
|
1019
1018
|
parentMessageId: import("convex/values").GenericId<"messages">;
|
|
1019
|
+
stepOrder: number;
|
|
1020
1020
|
}, {
|
|
1021
|
-
|
|
1021
|
+
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
1022
1022
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages">, "required">;
|
|
1023
1023
|
order: import("convex/values").VFloat64<number, "required">;
|
|
1024
1024
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
@@ -2135,8 +2135,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
2135
2135
|
}, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
2136
2136
|
}, "required", "text" | "providerOptions" | "experimental_providerMetadata" | `providerOptions.${string}` | `experimental_providerMetadata.${string}` | "reasoning" | "files" | "providerMetadata" | `providerMetadata.${string}` | "finishReason" | "isContinued" | "logprobs" | "reasoningDetails" | "request" | "response" | "sources" | "stepType" | "toolCalls" | "toolResults" | "usage" | "warnings" | `logprobs.${string}` | "request.url" | "request.body" | "request.headers" | "request.method" | `request.body.${string}` | `request.headers.${string}` | "response.id" | "response.body" | "response.headers" | `response.body.${string}` | `response.headers.${string}` | "response.timestamp" | "response.modelId" | "response.messages" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens">;
|
|
2137
2137
|
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>;
|
|
2138
|
-
}, "required", "step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "
|
|
2139
|
-
|
|
2138
|
+
}, "required", "step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "threadId" | "status" | "order" | "parentMessageId" | "stepOrder">, {
|
|
2139
|
+
status_threadId_order_stepOrder: ["status", "threadId", "order", "stepOrder", "_creationTime"];
|
|
2140
2140
|
parentMessageId_order_stepOrder: ["parentMessageId", "order", "stepOrder", "_creationTime"];
|
|
2141
2141
|
}, {}, {}>;
|
|
2142
2142
|
files: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -2264,8 +2264,8 @@ export declare const vv: {
|
|
|
2264
2264
|
fileId?: import("convex/values").GenericId<"files"> | undefined;
|
|
2265
2265
|
model?: string | undefined;
|
|
2266
2266
|
userId?: string | undefined;
|
|
2267
|
-
|
|
2268
|
-
|
|
2267
|
+
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
2268
|
+
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2269
2269
|
stepId?: import("convex/values").GenericId<"steps"> | undefined;
|
|
2270
2270
|
agentName?: string | undefined;
|
|
2271
2271
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
@@ -2274,9 +2274,9 @@ export declare const vv: {
|
|
|
2274
2274
|
status: "pending" | "success" | "failed";
|
|
2275
2275
|
order: number;
|
|
2276
2276
|
};
|
|
2277
|
-
fieldPaths: ("id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "
|
|
2277
|
+
fieldPaths: ("id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "threadId" | "_creationTime" | "status" | "order" | "parentMessageId" | "stepId" | "agentName" | "embeddingId" | "stepOrder") | "_id";
|
|
2278
2278
|
indexes: {
|
|
2279
|
-
|
|
2279
|
+
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2280
2280
|
userId_status_tool_order_stepOrder: ["userId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2281
2281
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
2282
2282
|
by_id: ["_id"];
|
|
@@ -2285,7 +2285,7 @@ export declare const vv: {
|
|
|
2285
2285
|
searchIndexes: {
|
|
2286
2286
|
text_search: {
|
|
2287
2287
|
searchField: "text";
|
|
2288
|
-
filterFields: "userId" | "
|
|
2288
|
+
filterFields: "userId" | "threadId";
|
|
2289
2289
|
};
|
|
2290
2290
|
};
|
|
2291
2291
|
vectorIndexes: {};
|
|
@@ -2295,14 +2295,14 @@ export declare const vv: {
|
|
|
2295
2295
|
_id: import("convex/values").GenericId<"embeddings_128">;
|
|
2296
2296
|
_creationTime: number;
|
|
2297
2297
|
userId?: string | undefined;
|
|
2298
|
-
|
|
2298
|
+
threadId?: string | undefined;
|
|
2299
2299
|
model_kind_userId?: string[] | undefined;
|
|
2300
|
-
|
|
2300
|
+
model_kind_threadId?: string[] | undefined;
|
|
2301
2301
|
vector: number[];
|
|
2302
2302
|
model: string;
|
|
2303
|
-
kind: "
|
|
2303
|
+
kind: "thread" | "memory";
|
|
2304
2304
|
};
|
|
2305
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2305
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2306
2306
|
indexes: {
|
|
2307
2307
|
id: ["id"];
|
|
2308
2308
|
by_id: ["_id"];
|
|
@@ -2322,14 +2322,14 @@ export declare const vv: {
|
|
|
2322
2322
|
_id: import("convex/values").GenericId<"embeddings_256">;
|
|
2323
2323
|
_creationTime: number;
|
|
2324
2324
|
userId?: string | undefined;
|
|
2325
|
-
|
|
2325
|
+
threadId?: string | undefined;
|
|
2326
2326
|
model_kind_userId?: string[] | undefined;
|
|
2327
|
-
|
|
2327
|
+
model_kind_threadId?: string[] | undefined;
|
|
2328
2328
|
vector: number[];
|
|
2329
2329
|
model: string;
|
|
2330
|
-
kind: "
|
|
2330
|
+
kind: "thread" | "memory";
|
|
2331
2331
|
};
|
|
2332
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2332
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2333
2333
|
indexes: {
|
|
2334
2334
|
id: ["id"];
|
|
2335
2335
|
by_id: ["_id"];
|
|
@@ -2349,14 +2349,14 @@ export declare const vv: {
|
|
|
2349
2349
|
_id: import("convex/values").GenericId<"embeddings_512">;
|
|
2350
2350
|
_creationTime: number;
|
|
2351
2351
|
userId?: string | undefined;
|
|
2352
|
-
|
|
2352
|
+
threadId?: string | undefined;
|
|
2353
2353
|
model_kind_userId?: string[] | undefined;
|
|
2354
|
-
|
|
2354
|
+
model_kind_threadId?: string[] | undefined;
|
|
2355
2355
|
vector: number[];
|
|
2356
2356
|
model: string;
|
|
2357
|
-
kind: "
|
|
2357
|
+
kind: "thread" | "memory";
|
|
2358
2358
|
};
|
|
2359
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2359
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2360
2360
|
indexes: {
|
|
2361
2361
|
id: ["id"];
|
|
2362
2362
|
by_id: ["_id"];
|
|
@@ -2376,14 +2376,14 @@ export declare const vv: {
|
|
|
2376
2376
|
_id: import("convex/values").GenericId<"embeddings_768">;
|
|
2377
2377
|
_creationTime: number;
|
|
2378
2378
|
userId?: string | undefined;
|
|
2379
|
-
|
|
2379
|
+
threadId?: string | undefined;
|
|
2380
2380
|
model_kind_userId?: string[] | undefined;
|
|
2381
|
-
|
|
2381
|
+
model_kind_threadId?: string[] | undefined;
|
|
2382
2382
|
vector: number[];
|
|
2383
2383
|
model: string;
|
|
2384
|
-
kind: "
|
|
2384
|
+
kind: "thread" | "memory";
|
|
2385
2385
|
};
|
|
2386
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2386
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2387
2387
|
indexes: {
|
|
2388
2388
|
id: ["id"];
|
|
2389
2389
|
by_id: ["_id"];
|
|
@@ -2403,14 +2403,14 @@ export declare const vv: {
|
|
|
2403
2403
|
_id: import("convex/values").GenericId<"embeddings_1024">;
|
|
2404
2404
|
_creationTime: number;
|
|
2405
2405
|
userId?: string | undefined;
|
|
2406
|
-
|
|
2406
|
+
threadId?: string | undefined;
|
|
2407
2407
|
model_kind_userId?: string[] | undefined;
|
|
2408
|
-
|
|
2408
|
+
model_kind_threadId?: string[] | undefined;
|
|
2409
2409
|
vector: number[];
|
|
2410
2410
|
model: string;
|
|
2411
|
-
kind: "
|
|
2411
|
+
kind: "thread" | "memory";
|
|
2412
2412
|
};
|
|
2413
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2413
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2414
2414
|
indexes: {
|
|
2415
2415
|
id: ["id"];
|
|
2416
2416
|
by_id: ["_id"];
|
|
@@ -2430,14 +2430,14 @@ export declare const vv: {
|
|
|
2430
2430
|
_id: import("convex/values").GenericId<"embeddings_1536">;
|
|
2431
2431
|
_creationTime: number;
|
|
2432
2432
|
userId?: string | undefined;
|
|
2433
|
-
|
|
2433
|
+
threadId?: string | undefined;
|
|
2434
2434
|
model_kind_userId?: string[] | undefined;
|
|
2435
|
-
|
|
2435
|
+
model_kind_threadId?: string[] | undefined;
|
|
2436
2436
|
vector: number[];
|
|
2437
2437
|
model: string;
|
|
2438
|
-
kind: "
|
|
2438
|
+
kind: "thread" | "memory";
|
|
2439
2439
|
};
|
|
2440
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2440
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2441
2441
|
indexes: {
|
|
2442
2442
|
id: ["id"];
|
|
2443
2443
|
by_id: ["_id"];
|
|
@@ -2457,14 +2457,14 @@ export declare const vv: {
|
|
|
2457
2457
|
_id: import("convex/values").GenericId<"embeddings_2048">;
|
|
2458
2458
|
_creationTime: number;
|
|
2459
2459
|
userId?: string | undefined;
|
|
2460
|
-
|
|
2460
|
+
threadId?: string | undefined;
|
|
2461
2461
|
model_kind_userId?: string[] | undefined;
|
|
2462
|
-
|
|
2462
|
+
model_kind_threadId?: string[] | undefined;
|
|
2463
2463
|
vector: number[];
|
|
2464
2464
|
model: string;
|
|
2465
|
-
kind: "
|
|
2465
|
+
kind: "thread" | "memory";
|
|
2466
2466
|
};
|
|
2467
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2467
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2468
2468
|
indexes: {
|
|
2469
2469
|
id: ["id"];
|
|
2470
2470
|
by_id: ["_id"];
|
|
@@ -2484,14 +2484,14 @@ export declare const vv: {
|
|
|
2484
2484
|
_id: import("convex/values").GenericId<"embeddings_3072">;
|
|
2485
2485
|
_creationTime: number;
|
|
2486
2486
|
userId?: string | undefined;
|
|
2487
|
-
|
|
2487
|
+
threadId?: string | undefined;
|
|
2488
2488
|
model_kind_userId?: string[] | undefined;
|
|
2489
|
-
|
|
2489
|
+
model_kind_threadId?: string[] | undefined;
|
|
2490
2490
|
vector: number[];
|
|
2491
2491
|
model: string;
|
|
2492
|
-
kind: "
|
|
2492
|
+
kind: "thread" | "memory";
|
|
2493
2493
|
};
|
|
2494
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2494
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2495
2495
|
indexes: {
|
|
2496
2496
|
id: ["id"];
|
|
2497
2497
|
by_id: ["_id"];
|
|
@@ -2511,14 +2511,14 @@ export declare const vv: {
|
|
|
2511
2511
|
_id: import("convex/values").GenericId<"embeddings_4096">;
|
|
2512
2512
|
_creationTime: number;
|
|
2513
2513
|
userId?: string | undefined;
|
|
2514
|
-
|
|
2514
|
+
threadId?: string | undefined;
|
|
2515
2515
|
model_kind_userId?: string[] | undefined;
|
|
2516
|
-
|
|
2516
|
+
model_kind_threadId?: string[] | undefined;
|
|
2517
2517
|
vector: number[];
|
|
2518
2518
|
model: string;
|
|
2519
|
-
kind: "
|
|
2519
|
+
kind: "thread" | "memory";
|
|
2520
2520
|
};
|
|
2521
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2521
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2522
2522
|
indexes: {
|
|
2523
2523
|
id: ["id"];
|
|
2524
2524
|
by_id: ["_id"];
|
|
@@ -2533,19 +2533,19 @@ export declare const vv: {
|
|
|
2533
2533
|
};
|
|
2534
2534
|
};
|
|
2535
2535
|
};
|
|
2536
|
-
|
|
2536
|
+
threads: {
|
|
2537
2537
|
document: {
|
|
2538
|
-
_id: import("convex/values").GenericId<"
|
|
2538
|
+
_id: import("convex/values").GenericId<"threads">;
|
|
2539
2539
|
_creationTime: number;
|
|
2540
2540
|
title?: string | undefined;
|
|
2541
2541
|
userId?: string | undefined;
|
|
2542
2542
|
order?: number | undefined;
|
|
2543
2543
|
defaultSystemPrompt?: string | undefined;
|
|
2544
2544
|
summary?: string | undefined;
|
|
2545
|
-
|
|
2545
|
+
parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
|
|
2546
2546
|
status: "active" | "archived";
|
|
2547
2547
|
};
|
|
2548
|
-
fieldPaths: ("title" | "userId" | "_creationTime" | "status" | "order" | "defaultSystemPrompt" | "summary" | "
|
|
2548
|
+
fieldPaths: ("title" | "userId" | "_creationTime" | "status" | "order" | "defaultSystemPrompt" | "summary" | "parentThreadIds") | "_id";
|
|
2549
2549
|
indexes: {
|
|
2550
2550
|
status_userId_order: ["status", "userId", "order", "_creationTime"];
|
|
2551
2551
|
by_id: ["_id"];
|
|
@@ -2721,15 +2721,15 @@ export declare const vv: {
|
|
|
2721
2721
|
result: any;
|
|
2722
2722
|
}[];
|
|
2723
2723
|
};
|
|
2724
|
-
|
|
2724
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
2725
2725
|
status: "pending" | "success" | "failed";
|
|
2726
2726
|
order: number;
|
|
2727
|
-
stepOrder: number;
|
|
2728
2727
|
parentMessageId: import("convex/values").GenericId<"messages">;
|
|
2728
|
+
stepOrder: number;
|
|
2729
2729
|
};
|
|
2730
|
-
fieldPaths: ("step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "
|
|
2730
|
+
fieldPaths: ("step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "threadId" | "_creationTime" | "status" | "order" | "parentMessageId" | "stepOrder") | "_id";
|
|
2731
2731
|
indexes: {
|
|
2732
|
-
|
|
2732
|
+
status_threadId_order_stepOrder: ["status", "threadId", "order", "stepOrder", "_creationTime"];
|
|
2733
2733
|
parentMessageId_order_stepOrder: ["parentMessageId", "order", "stepOrder", "_creationTime"];
|
|
2734
2734
|
by_id: ["_id"];
|
|
2735
2735
|
by_creation_time: ["_creationTime"];
|
|
@@ -2849,8 +2849,8 @@ export declare const vv: {
|
|
|
2849
2849
|
fileId?: import("convex/values").GenericId<"files"> | undefined;
|
|
2850
2850
|
model?: string | undefined;
|
|
2851
2851
|
userId?: string | undefined;
|
|
2852
|
-
|
|
2853
|
-
|
|
2852
|
+
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
2853
|
+
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2854
2854
|
stepId?: import("convex/values").GenericId<"steps"> | undefined;
|
|
2855
2855
|
agentName?: string | undefined;
|
|
2856
2856
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
@@ -2859,9 +2859,9 @@ export declare const vv: {
|
|
|
2859
2859
|
status: "pending" | "success" | "failed";
|
|
2860
2860
|
order: number;
|
|
2861
2861
|
};
|
|
2862
|
-
fieldPaths: ("id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "
|
|
2862
|
+
fieldPaths: ("id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "threadId" | "_creationTime" | "status" | "order" | "parentMessageId" | "stepId" | "agentName" | "embeddingId" | "stepOrder") | "_id";
|
|
2863
2863
|
indexes: {
|
|
2864
|
-
|
|
2864
|
+
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2865
2865
|
userId_status_tool_order_stepOrder: ["userId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2866
2866
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
2867
2867
|
by_id: ["_id"];
|
|
@@ -2870,7 +2870,7 @@ export declare const vv: {
|
|
|
2870
2870
|
searchIndexes: {
|
|
2871
2871
|
text_search: {
|
|
2872
2872
|
searchField: "text";
|
|
2873
|
-
filterFields: "userId" | "
|
|
2873
|
+
filterFields: "userId" | "threadId";
|
|
2874
2874
|
};
|
|
2875
2875
|
};
|
|
2876
2876
|
vectorIndexes: {};
|
|
@@ -2880,14 +2880,14 @@ export declare const vv: {
|
|
|
2880
2880
|
_id: import("convex/values").GenericId<"embeddings_128">;
|
|
2881
2881
|
_creationTime: number;
|
|
2882
2882
|
userId?: string | undefined;
|
|
2883
|
-
|
|
2883
|
+
threadId?: string | undefined;
|
|
2884
2884
|
model_kind_userId?: string[] | undefined;
|
|
2885
|
-
|
|
2885
|
+
model_kind_threadId?: string[] | undefined;
|
|
2886
2886
|
vector: number[];
|
|
2887
2887
|
model: string;
|
|
2888
|
-
kind: "
|
|
2888
|
+
kind: "thread" | "memory";
|
|
2889
2889
|
};
|
|
2890
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2890
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2891
2891
|
indexes: {
|
|
2892
2892
|
id: ["id"];
|
|
2893
2893
|
by_id: ["_id"];
|
|
@@ -2907,14 +2907,14 @@ export declare const vv: {
|
|
|
2907
2907
|
_id: import("convex/values").GenericId<"embeddings_256">;
|
|
2908
2908
|
_creationTime: number;
|
|
2909
2909
|
userId?: string | undefined;
|
|
2910
|
-
|
|
2910
|
+
threadId?: string | undefined;
|
|
2911
2911
|
model_kind_userId?: string[] | undefined;
|
|
2912
|
-
|
|
2912
|
+
model_kind_threadId?: string[] | undefined;
|
|
2913
2913
|
vector: number[];
|
|
2914
2914
|
model: string;
|
|
2915
|
-
kind: "
|
|
2915
|
+
kind: "thread" | "memory";
|
|
2916
2916
|
};
|
|
2917
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2917
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2918
2918
|
indexes: {
|
|
2919
2919
|
id: ["id"];
|
|
2920
2920
|
by_id: ["_id"];
|
|
@@ -2934,14 +2934,14 @@ export declare const vv: {
|
|
|
2934
2934
|
_id: import("convex/values").GenericId<"embeddings_512">;
|
|
2935
2935
|
_creationTime: number;
|
|
2936
2936
|
userId?: string | undefined;
|
|
2937
|
-
|
|
2937
|
+
threadId?: string | undefined;
|
|
2938
2938
|
model_kind_userId?: string[] | undefined;
|
|
2939
|
-
|
|
2939
|
+
model_kind_threadId?: string[] | undefined;
|
|
2940
2940
|
vector: number[];
|
|
2941
2941
|
model: string;
|
|
2942
|
-
kind: "
|
|
2942
|
+
kind: "thread" | "memory";
|
|
2943
2943
|
};
|
|
2944
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2944
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2945
2945
|
indexes: {
|
|
2946
2946
|
id: ["id"];
|
|
2947
2947
|
by_id: ["_id"];
|
|
@@ -2961,14 +2961,14 @@ export declare const vv: {
|
|
|
2961
2961
|
_id: import("convex/values").GenericId<"embeddings_768">;
|
|
2962
2962
|
_creationTime: number;
|
|
2963
2963
|
userId?: string | undefined;
|
|
2964
|
-
|
|
2964
|
+
threadId?: string | undefined;
|
|
2965
2965
|
model_kind_userId?: string[] | undefined;
|
|
2966
|
-
|
|
2966
|
+
model_kind_threadId?: string[] | undefined;
|
|
2967
2967
|
vector: number[];
|
|
2968
2968
|
model: string;
|
|
2969
|
-
kind: "
|
|
2969
|
+
kind: "thread" | "memory";
|
|
2970
2970
|
};
|
|
2971
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2971
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2972
2972
|
indexes: {
|
|
2973
2973
|
id: ["id"];
|
|
2974
2974
|
by_id: ["_id"];
|
|
@@ -2988,14 +2988,14 @@ export declare const vv: {
|
|
|
2988
2988
|
_id: import("convex/values").GenericId<"embeddings_1024">;
|
|
2989
2989
|
_creationTime: number;
|
|
2990
2990
|
userId?: string | undefined;
|
|
2991
|
-
|
|
2991
|
+
threadId?: string | undefined;
|
|
2992
2992
|
model_kind_userId?: string[] | undefined;
|
|
2993
|
-
|
|
2993
|
+
model_kind_threadId?: string[] | undefined;
|
|
2994
2994
|
vector: number[];
|
|
2995
2995
|
model: string;
|
|
2996
|
-
kind: "
|
|
2996
|
+
kind: "thread" | "memory";
|
|
2997
2997
|
};
|
|
2998
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
2998
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
2999
2999
|
indexes: {
|
|
3000
3000
|
id: ["id"];
|
|
3001
3001
|
by_id: ["_id"];
|
|
@@ -3015,14 +3015,14 @@ export declare const vv: {
|
|
|
3015
3015
|
_id: import("convex/values").GenericId<"embeddings_1536">;
|
|
3016
3016
|
_creationTime: number;
|
|
3017
3017
|
userId?: string | undefined;
|
|
3018
|
-
|
|
3018
|
+
threadId?: string | undefined;
|
|
3019
3019
|
model_kind_userId?: string[] | undefined;
|
|
3020
|
-
|
|
3020
|
+
model_kind_threadId?: string[] | undefined;
|
|
3021
3021
|
vector: number[];
|
|
3022
3022
|
model: string;
|
|
3023
|
-
kind: "
|
|
3023
|
+
kind: "thread" | "memory";
|
|
3024
3024
|
};
|
|
3025
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
3025
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
3026
3026
|
indexes: {
|
|
3027
3027
|
id: ["id"];
|
|
3028
3028
|
by_id: ["_id"];
|
|
@@ -3042,14 +3042,14 @@ export declare const vv: {
|
|
|
3042
3042
|
_id: import("convex/values").GenericId<"embeddings_2048">;
|
|
3043
3043
|
_creationTime: number;
|
|
3044
3044
|
userId?: string | undefined;
|
|
3045
|
-
|
|
3045
|
+
threadId?: string | undefined;
|
|
3046
3046
|
model_kind_userId?: string[] | undefined;
|
|
3047
|
-
|
|
3047
|
+
model_kind_threadId?: string[] | undefined;
|
|
3048
3048
|
vector: number[];
|
|
3049
3049
|
model: string;
|
|
3050
|
-
kind: "
|
|
3050
|
+
kind: "thread" | "memory";
|
|
3051
3051
|
};
|
|
3052
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
3052
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
3053
3053
|
indexes: {
|
|
3054
3054
|
id: ["id"];
|
|
3055
3055
|
by_id: ["_id"];
|
|
@@ -3069,14 +3069,14 @@ export declare const vv: {
|
|
|
3069
3069
|
_id: import("convex/values").GenericId<"embeddings_3072">;
|
|
3070
3070
|
_creationTime: number;
|
|
3071
3071
|
userId?: string | undefined;
|
|
3072
|
-
|
|
3072
|
+
threadId?: string | undefined;
|
|
3073
3073
|
model_kind_userId?: string[] | undefined;
|
|
3074
|
-
|
|
3074
|
+
model_kind_threadId?: string[] | undefined;
|
|
3075
3075
|
vector: number[];
|
|
3076
3076
|
model: string;
|
|
3077
|
-
kind: "
|
|
3077
|
+
kind: "thread" | "memory";
|
|
3078
3078
|
};
|
|
3079
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
3079
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
3080
3080
|
indexes: {
|
|
3081
3081
|
id: ["id"];
|
|
3082
3082
|
by_id: ["_id"];
|
|
@@ -3096,14 +3096,14 @@ export declare const vv: {
|
|
|
3096
3096
|
_id: import("convex/values").GenericId<"embeddings_4096">;
|
|
3097
3097
|
_creationTime: number;
|
|
3098
3098
|
userId?: string | undefined;
|
|
3099
|
-
|
|
3099
|
+
threadId?: string | undefined;
|
|
3100
3100
|
model_kind_userId?: string[] | undefined;
|
|
3101
|
-
|
|
3101
|
+
model_kind_threadId?: string[] | undefined;
|
|
3102
3102
|
vector: number[];
|
|
3103
3103
|
model: string;
|
|
3104
|
-
kind: "
|
|
3104
|
+
kind: "thread" | "memory";
|
|
3105
3105
|
};
|
|
3106
|
-
fieldPaths: "_id" | ("vector" | "model" | "userId" | "
|
|
3106
|
+
fieldPaths: "_id" | ("vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind" | "_creationTime");
|
|
3107
3107
|
indexes: {
|
|
3108
3108
|
id: ["id"];
|
|
3109
3109
|
by_id: ["_id"];
|
|
@@ -3118,19 +3118,19 @@ export declare const vv: {
|
|
|
3118
3118
|
};
|
|
3119
3119
|
};
|
|
3120
3120
|
};
|
|
3121
|
-
|
|
3121
|
+
threads: {
|
|
3122
3122
|
document: {
|
|
3123
|
-
_id: import("convex/values").GenericId<"
|
|
3123
|
+
_id: import("convex/values").GenericId<"threads">;
|
|
3124
3124
|
_creationTime: number;
|
|
3125
3125
|
title?: string | undefined;
|
|
3126
3126
|
userId?: string | undefined;
|
|
3127
3127
|
order?: number | undefined;
|
|
3128
3128
|
defaultSystemPrompt?: string | undefined;
|
|
3129
3129
|
summary?: string | undefined;
|
|
3130
|
-
|
|
3130
|
+
parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
|
|
3131
3131
|
status: "active" | "archived";
|
|
3132
3132
|
};
|
|
3133
|
-
fieldPaths: ("title" | "userId" | "_creationTime" | "status" | "order" | "defaultSystemPrompt" | "summary" | "
|
|
3133
|
+
fieldPaths: ("title" | "userId" | "_creationTime" | "status" | "order" | "defaultSystemPrompt" | "summary" | "parentThreadIds") | "_id";
|
|
3134
3134
|
indexes: {
|
|
3135
3135
|
status_userId_order: ["status", "userId", "order", "_creationTime"];
|
|
3136
3136
|
by_id: ["_id"];
|
|
@@ -3306,15 +3306,15 @@ export declare const vv: {
|
|
|
3306
3306
|
result: any;
|
|
3307
3307
|
}[];
|
|
3308
3308
|
};
|
|
3309
|
-
|
|
3309
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
3310
3310
|
status: "pending" | "success" | "failed";
|
|
3311
3311
|
order: number;
|
|
3312
|
-
stepOrder: number;
|
|
3313
3312
|
parentMessageId: import("convex/values").GenericId<"messages">;
|
|
3313
|
+
stepOrder: number;
|
|
3314
3314
|
};
|
|
3315
|
-
fieldPaths: ("step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "
|
|
3315
|
+
fieldPaths: ("step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "threadId" | "_creationTime" | "status" | "order" | "parentMessageId" | "stepOrder") | "_id";
|
|
3316
3316
|
indexes: {
|
|
3317
|
-
|
|
3317
|
+
status_threadId_order_stepOrder: ["status", "threadId", "order", "stepOrder", "_creationTime"];
|
|
3318
3318
|
parentMessageId_order_stepOrder: ["parentMessageId", "order", "stepOrder", "_creationTime"];
|
|
3319
3319
|
by_id: ["_id"];
|
|
3320
3320
|
by_creation_time: ["_creationTime"];
|
|
@@ -3325,21 +3325,21 @@ export declare const vv: {
|
|
|
3325
3325
|
}>>(tableName: TableName) => import("convex-helpers/validators").AddFieldsToValidator<{
|
|
3326
3326
|
embeddings_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3327
3327
|
userId?: string | undefined;
|
|
3328
|
-
|
|
3328
|
+
threadId?: string | undefined;
|
|
3329
3329
|
model_kind_userId?: string[] | undefined;
|
|
3330
|
-
|
|
3330
|
+
model_kind_threadId?: string[] | undefined;
|
|
3331
3331
|
vector: number[];
|
|
3332
3332
|
model: string;
|
|
3333
|
-
kind: "
|
|
3333
|
+
kind: "thread" | "memory";
|
|
3334
3334
|
}, {
|
|
3335
3335
|
model: import("convex/values").VString<string, "required">;
|
|
3336
|
-
kind: import("convex/values").VUnion<"
|
|
3336
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3337
3337
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3338
|
-
|
|
3338
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3339
3339
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3340
|
-
|
|
3340
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3341
3341
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3342
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3342
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3343
3343
|
id: ["id"];
|
|
3344
3344
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3345
3345
|
vector: {
|
|
@@ -3350,21 +3350,21 @@ export declare const vv: {
|
|
|
3350
3350
|
}>;
|
|
3351
3351
|
embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3352
3352
|
userId?: string | undefined;
|
|
3353
|
-
|
|
3353
|
+
threadId?: string | undefined;
|
|
3354
3354
|
model_kind_userId?: string[] | undefined;
|
|
3355
|
-
|
|
3355
|
+
model_kind_threadId?: string[] | undefined;
|
|
3356
3356
|
vector: number[];
|
|
3357
3357
|
model: string;
|
|
3358
|
-
kind: "
|
|
3358
|
+
kind: "thread" | "memory";
|
|
3359
3359
|
}, {
|
|
3360
3360
|
model: import("convex/values").VString<string, "required">;
|
|
3361
|
-
kind: import("convex/values").VUnion<"
|
|
3361
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3362
3362
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3363
|
-
|
|
3363
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3364
3364
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3365
|
-
|
|
3365
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3366
3366
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3367
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3367
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3368
3368
|
id: ["id"];
|
|
3369
3369
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3370
3370
|
vector: {
|
|
@@ -3375,21 +3375,21 @@ export declare const vv: {
|
|
|
3375
3375
|
}>;
|
|
3376
3376
|
embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3377
3377
|
userId?: string | undefined;
|
|
3378
|
-
|
|
3378
|
+
threadId?: string | undefined;
|
|
3379
3379
|
model_kind_userId?: string[] | undefined;
|
|
3380
|
-
|
|
3380
|
+
model_kind_threadId?: string[] | undefined;
|
|
3381
3381
|
vector: number[];
|
|
3382
3382
|
model: string;
|
|
3383
|
-
kind: "
|
|
3383
|
+
kind: "thread" | "memory";
|
|
3384
3384
|
}, {
|
|
3385
3385
|
model: import("convex/values").VString<string, "required">;
|
|
3386
|
-
kind: import("convex/values").VUnion<"
|
|
3386
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3387
3387
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3388
|
-
|
|
3388
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3389
3389
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3390
|
-
|
|
3390
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3391
3391
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3392
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3392
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3393
3393
|
id: ["id"];
|
|
3394
3394
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3395
3395
|
vector: {
|
|
@@ -3400,21 +3400,21 @@ export declare const vv: {
|
|
|
3400
3400
|
}>;
|
|
3401
3401
|
embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3402
3402
|
userId?: string | undefined;
|
|
3403
|
-
|
|
3403
|
+
threadId?: string | undefined;
|
|
3404
3404
|
model_kind_userId?: string[] | undefined;
|
|
3405
|
-
|
|
3405
|
+
model_kind_threadId?: string[] | undefined;
|
|
3406
3406
|
vector: number[];
|
|
3407
3407
|
model: string;
|
|
3408
|
-
kind: "
|
|
3408
|
+
kind: "thread" | "memory";
|
|
3409
3409
|
}, {
|
|
3410
3410
|
model: import("convex/values").VString<string, "required">;
|
|
3411
|
-
kind: import("convex/values").VUnion<"
|
|
3411
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3412
3412
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3413
|
-
|
|
3413
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3414
3414
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3415
|
-
|
|
3415
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3416
3416
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3417
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3417
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3418
3418
|
id: ["id"];
|
|
3419
3419
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3420
3420
|
vector: {
|
|
@@ -3425,21 +3425,21 @@ export declare const vv: {
|
|
|
3425
3425
|
}>;
|
|
3426
3426
|
embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3427
3427
|
userId?: string | undefined;
|
|
3428
|
-
|
|
3428
|
+
threadId?: string | undefined;
|
|
3429
3429
|
model_kind_userId?: string[] | undefined;
|
|
3430
|
-
|
|
3430
|
+
model_kind_threadId?: string[] | undefined;
|
|
3431
3431
|
vector: number[];
|
|
3432
3432
|
model: string;
|
|
3433
|
-
kind: "
|
|
3433
|
+
kind: "thread" | "memory";
|
|
3434
3434
|
}, {
|
|
3435
3435
|
model: import("convex/values").VString<string, "required">;
|
|
3436
|
-
kind: import("convex/values").VUnion<"
|
|
3436
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3437
3437
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3438
|
-
|
|
3438
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3439
3439
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3440
|
-
|
|
3440
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3441
3441
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3442
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3442
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3443
3443
|
id: ["id"];
|
|
3444
3444
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3445
3445
|
vector: {
|
|
@@ -3450,21 +3450,21 @@ export declare const vv: {
|
|
|
3450
3450
|
}>;
|
|
3451
3451
|
embeddings_1536: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3452
3452
|
userId?: string | undefined;
|
|
3453
|
-
|
|
3453
|
+
threadId?: string | undefined;
|
|
3454
3454
|
model_kind_userId?: string[] | undefined;
|
|
3455
|
-
|
|
3455
|
+
model_kind_threadId?: string[] | undefined;
|
|
3456
3456
|
vector: number[];
|
|
3457
3457
|
model: string;
|
|
3458
|
-
kind: "
|
|
3458
|
+
kind: "thread" | "memory";
|
|
3459
3459
|
}, {
|
|
3460
3460
|
model: import("convex/values").VString<string, "required">;
|
|
3461
|
-
kind: import("convex/values").VUnion<"
|
|
3461
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3462
3462
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3463
|
-
|
|
3463
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3464
3464
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3465
|
-
|
|
3465
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3466
3466
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3467
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3467
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3468
3468
|
id: ["id"];
|
|
3469
3469
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3470
3470
|
vector: {
|
|
@@ -3475,21 +3475,21 @@ export declare const vv: {
|
|
|
3475
3475
|
}>;
|
|
3476
3476
|
embeddings_2048: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3477
3477
|
userId?: string | undefined;
|
|
3478
|
-
|
|
3478
|
+
threadId?: string | undefined;
|
|
3479
3479
|
model_kind_userId?: string[] | undefined;
|
|
3480
|
-
|
|
3480
|
+
model_kind_threadId?: string[] | undefined;
|
|
3481
3481
|
vector: number[];
|
|
3482
3482
|
model: string;
|
|
3483
|
-
kind: "
|
|
3483
|
+
kind: "thread" | "memory";
|
|
3484
3484
|
}, {
|
|
3485
3485
|
model: import("convex/values").VString<string, "required">;
|
|
3486
|
-
kind: import("convex/values").VUnion<"
|
|
3486
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3487
3487
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3488
|
-
|
|
3488
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3489
3489
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3490
|
-
|
|
3490
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3491
3491
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3492
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3492
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3493
3493
|
id: ["id"];
|
|
3494
3494
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3495
3495
|
vector: {
|
|
@@ -3500,21 +3500,21 @@ export declare const vv: {
|
|
|
3500
3500
|
}>;
|
|
3501
3501
|
embeddings_3072: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3502
3502
|
userId?: string | undefined;
|
|
3503
|
-
|
|
3503
|
+
threadId?: string | undefined;
|
|
3504
3504
|
model_kind_userId?: string[] | undefined;
|
|
3505
|
-
|
|
3505
|
+
model_kind_threadId?: string[] | undefined;
|
|
3506
3506
|
vector: number[];
|
|
3507
3507
|
model: string;
|
|
3508
|
-
kind: "
|
|
3508
|
+
kind: "thread" | "memory";
|
|
3509
3509
|
}, {
|
|
3510
3510
|
model: import("convex/values").VString<string, "required">;
|
|
3511
|
-
kind: import("convex/values").VUnion<"
|
|
3511
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3512
3512
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3513
|
-
|
|
3513
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3514
3514
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3515
|
-
|
|
3515
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3516
3516
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3517
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3517
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3518
3518
|
id: ["id"];
|
|
3519
3519
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3520
3520
|
vector: {
|
|
@@ -3525,21 +3525,21 @@ export declare const vv: {
|
|
|
3525
3525
|
}>;
|
|
3526
3526
|
embeddings_4096: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3527
3527
|
userId?: string | undefined;
|
|
3528
|
-
|
|
3528
|
+
threadId?: string | undefined;
|
|
3529
3529
|
model_kind_userId?: string[] | undefined;
|
|
3530
|
-
|
|
3530
|
+
model_kind_threadId?: string[] | undefined;
|
|
3531
3531
|
vector: number[];
|
|
3532
3532
|
model: string;
|
|
3533
|
-
kind: "
|
|
3533
|
+
kind: "thread" | "memory";
|
|
3534
3534
|
}, {
|
|
3535
3535
|
model: import("convex/values").VString<string, "required">;
|
|
3536
|
-
kind: import("convex/values").VUnion<"
|
|
3536
|
+
kind: import("convex/values").VUnion<"thread" | "memory", [import("convex/values").VLiteral<"thread", "required">, import("convex/values").VLiteral<"memory", "required">], "required", never>;
|
|
3537
3537
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3538
|
-
|
|
3538
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
3539
3539
|
model_kind_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3540
|
-
|
|
3540
|
+
model_kind_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
3541
3541
|
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
3542
|
-
}, "required", "vector" | "model" | "userId" | "
|
|
3542
|
+
}, "required", "vector" | "model" | "userId" | "threadId" | "model_kind_userId" | "model_kind_threadId" | "kind">, {
|
|
3543
3543
|
id: ["id"];
|
|
3544
3544
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3545
3545
|
vector: {
|
|
@@ -3548,13 +3548,13 @@ export declare const vv: {
|
|
|
3548
3548
|
filterFields: string;
|
|
3549
3549
|
};
|
|
3550
3550
|
}>;
|
|
3551
|
-
|
|
3551
|
+
threads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3552
3552
|
title?: string | undefined;
|
|
3553
3553
|
userId?: string | undefined;
|
|
3554
3554
|
order?: number | undefined;
|
|
3555
3555
|
defaultSystemPrompt?: string | undefined;
|
|
3556
3556
|
summary?: string | undefined;
|
|
3557
|
-
|
|
3557
|
+
parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
|
|
3558
3558
|
status: "active" | "archived";
|
|
3559
3559
|
}, {
|
|
3560
3560
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -3563,8 +3563,8 @@ export declare const vv: {
|
|
|
3563
3563
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3564
3564
|
summary: import("convex/values").VString<string | undefined, "optional">;
|
|
3565
3565
|
status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
|
|
3566
|
-
|
|
3567
|
-
}, "required", "title" | "userId" | "status" | "order" | "defaultSystemPrompt" | "summary" | "
|
|
3566
|
+
parentThreadIds: import("convex/values").VArray<import("convex/values").GenericId<"threads">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">, "optional">;
|
|
3567
|
+
}, "required", "title" | "userId" | "status" | "order" | "defaultSystemPrompt" | "summary" | "parentThreadIds">, {
|
|
3568
3568
|
status_userId_order: ["status", "userId", "order", "_creationTime"];
|
|
3569
3569
|
}, {}, {}>;
|
|
3570
3570
|
messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -3656,8 +3656,8 @@ export declare const vv: {
|
|
|
3656
3656
|
fileId?: import("convex/values").GenericId<"files"> | undefined;
|
|
3657
3657
|
model?: string | undefined;
|
|
3658
3658
|
userId?: string | undefined;
|
|
3659
|
-
|
|
3660
|
-
|
|
3659
|
+
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
3660
|
+
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
3661
3661
|
stepId?: import("convex/values").GenericId<"steps"> | undefined;
|
|
3662
3662
|
agentName?: string | undefined;
|
|
3663
3663
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
@@ -3668,8 +3668,8 @@ export declare const vv: {
|
|
|
3668
3668
|
}, {
|
|
3669
3669
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
3670
3670
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
3671
|
-
|
|
3672
|
-
|
|
3671
|
+
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
|
|
3672
|
+
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
3673
3673
|
stepId: import("convex/values").VId<import("convex/values").GenericId<"steps"> | undefined, "optional">;
|
|
3674
3674
|
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
3675
3675
|
message: import("convex/values").VUnion<{
|
|
@@ -4162,14 +4162,14 @@ export declare const vv: {
|
|
|
4162
4162
|
stepOrder: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4163
4163
|
fileId: import("convex/values").VId<import("convex/values").GenericId<"files"> | undefined, "optional">;
|
|
4164
4164
|
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>;
|
|
4165
|
-
}, "required", "id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "
|
|
4166
|
-
|
|
4165
|
+
}, "required", "id" | "tool" | "text" | "message" | "fileId" | "message.providerOptions" | "message.experimental_providerMetadata" | `message.providerOptions.${string}` | `message.experimental_providerMetadata.${string}` | "message.role" | "message.content" | "model" | "userId" | "threadId" | "status" | "order" | "parentMessageId" | "stepId" | "agentName" | "embeddingId" | "stepOrder">, {
|
|
4166
|
+
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
4167
4167
|
userId_status_tool_order_stepOrder: ["userId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
4168
4168
|
embeddingId: ["embeddingId", "_creationTime"];
|
|
4169
4169
|
}, {
|
|
4170
4170
|
text_search: {
|
|
4171
4171
|
searchField: "text";
|
|
4172
|
-
filterFields: "userId" | "
|
|
4172
|
+
filterFields: "userId" | "threadId";
|
|
4173
4173
|
};
|
|
4174
4174
|
}, {}>;
|
|
4175
4175
|
steps: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -4336,13 +4336,13 @@ export declare const vv: {
|
|
|
4336
4336
|
result: any;
|
|
4337
4337
|
}[];
|
|
4338
4338
|
};
|
|
4339
|
-
|
|
4339
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
4340
4340
|
status: "pending" | "success" | "failed";
|
|
4341
4341
|
order: number;
|
|
4342
|
-
stepOrder: number;
|
|
4343
4342
|
parentMessageId: import("convex/values").GenericId<"messages">;
|
|
4343
|
+
stepOrder: number;
|
|
4344
4344
|
}, {
|
|
4345
|
-
|
|
4345
|
+
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
4346
4346
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages">, "required">;
|
|
4347
4347
|
order: import("convex/values").VFloat64<number, "required">;
|
|
4348
4348
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
@@ -5459,8 +5459,8 @@ export declare const vv: {
|
|
|
5459
5459
|
}, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
5460
5460
|
}, "required", "text" | "providerOptions" | "experimental_providerMetadata" | `providerOptions.${string}` | `experimental_providerMetadata.${string}` | "reasoning" | "files" | "providerMetadata" | `providerMetadata.${string}` | "finishReason" | "isContinued" | "logprobs" | "reasoningDetails" | "request" | "response" | "sources" | "stepType" | "toolCalls" | "toolResults" | "usage" | "warnings" | `logprobs.${string}` | "request.url" | "request.body" | "request.headers" | "request.method" | `request.body.${string}` | `request.headers.${string}` | "response.id" | "response.body" | "response.headers" | `response.body.${string}` | `response.headers.${string}` | "response.timestamp" | "response.modelId" | "response.messages" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens">;
|
|
5461
5461
|
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>;
|
|
5462
|
-
}, "required", "step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "
|
|
5463
|
-
|
|
5462
|
+
}, "required", "step" | "step.text" | "step.providerOptions" | "step.experimental_providerMetadata" | `step.providerOptions.${string}` | `step.experimental_providerMetadata.${string}` | "step.reasoning" | "step.files" | "step.providerMetadata" | `step.providerMetadata.${string}` | "step.finishReason" | "step.isContinued" | "step.logprobs" | "step.reasoningDetails" | "step.request" | "step.response" | "step.sources" | "step.stepType" | "step.toolCalls" | "step.toolResults" | "step.usage" | "step.warnings" | `step.logprobs.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "step.response.messages" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | "threadId" | "status" | "order" | "parentMessageId" | "stepOrder">, {
|
|
5463
|
+
status_threadId_order_stepOrder: ["status", "threadId", "order", "stepOrder", "_creationTime"];
|
|
5464
5464
|
parentMessageId_order_stepOrder: ["parentMessageId", "order", "stepOrder", "_creationTime"];
|
|
5465
5465
|
}, {}, {}>;
|
|
5466
5466
|
files: import("convex/server").TableDefinition<import("convex/values").VObject<{
|