@convex-dev/agent 0.1.8-alpha.0 → 0.1.8-alpha.2

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.
Files changed (82) hide show
  1. package/README.md +2 -0
  2. package/dist/commonjs/client/index.d.ts +65 -51
  3. package/dist/commonjs/client/index.d.ts.map +1 -1
  4. package/dist/commonjs/client/index.js +70 -4
  5. package/dist/commonjs/client/index.js.map +1 -1
  6. package/dist/commonjs/component/_generated/api.d.ts +235 -0
  7. package/dist/commonjs/component/messages.d.ts +361 -155
  8. package/dist/commonjs/component/messages.d.ts.map +1 -1
  9. package/dist/commonjs/component/messages.js +25 -0
  10. package/dist/commonjs/component/messages.js.map +1 -1
  11. package/dist/commonjs/component/schema.d.ts +670 -670
  12. package/dist/commonjs/component/streams.d.ts +65 -18
  13. package/dist/commonjs/component/streams.d.ts.map +1 -1
  14. package/dist/commonjs/component/streams.js +120 -2
  15. package/dist/commonjs/component/streams.js.map +1 -1
  16. package/dist/commonjs/component/threads.d.ts +6 -6
  17. package/dist/commonjs/component/threads.d.ts.map +1 -1
  18. package/dist/commonjs/component/threads.js +9 -0
  19. package/dist/commonjs/component/threads.js.map +1 -1
  20. package/dist/commonjs/component/users.d.ts.map +1 -1
  21. package/dist/commonjs/component/users.js +1 -0
  22. package/dist/commonjs/component/users.js.map +1 -1
  23. package/dist/commonjs/component/vector/index.d.ts +12 -12
  24. package/dist/commonjs/component/vector/index.d.ts.map +1 -1
  25. package/dist/commonjs/component/vector/index.js +4 -0
  26. package/dist/commonjs/component/vector/index.js.map +1 -1
  27. package/dist/commonjs/component/vector/tables.d.ts +6 -6
  28. package/dist/commonjs/react/index.d.ts.map +1 -1
  29. package/dist/commonjs/react/index.js +1 -1
  30. package/dist/commonjs/react/index.js.map +1 -1
  31. package/dist/commonjs/validators.d.ts +161 -161
  32. package/dist/commonjs.tsbuildinfo +1 -1
  33. package/dist/esm/client/index.d.ts +31 -17
  34. package/dist/esm/client/index.d.ts.map +1 -1
  35. package/dist/esm/client/index.js +70 -4
  36. package/dist/esm/client/index.js.map +1 -1
  37. package/dist/esm/component/_generated/api.d.ts +235 -0
  38. package/dist/esm/component/messages.d.ts +233 -27
  39. package/dist/esm/component/messages.d.ts.map +1 -1
  40. package/dist/esm/component/messages.js +25 -0
  41. package/dist/esm/component/messages.js.map +1 -1
  42. package/dist/esm/component/schema.d.ts +48 -48
  43. package/dist/esm/component/streams.d.ts +47 -0
  44. package/dist/esm/component/streams.d.ts.map +1 -1
  45. package/dist/esm/component/streams.js +120 -2
  46. package/dist/esm/component/streams.js.map +1 -1
  47. package/dist/esm/component/threads.d.ts +8 -8
  48. package/dist/esm/component/threads.d.ts.map +1 -1
  49. package/dist/esm/component/threads.js +9 -0
  50. package/dist/esm/component/threads.js.map +1 -1
  51. package/dist/esm/component/users.d.ts.map +1 -1
  52. package/dist/esm/component/users.js +1 -0
  53. package/dist/esm/component/users.js.map +1 -1
  54. package/dist/esm/component/vector/index.d.ts.map +1 -1
  55. package/dist/esm/component/vector/index.js +4 -0
  56. package/dist/esm/component/vector/index.js.map +1 -1
  57. package/dist/esm/react/index.d.ts.map +1 -1
  58. package/dist/esm/react/index.js +1 -1
  59. package/dist/esm/react/index.js.map +1 -1
  60. package/dist/esm/validators.d.ts +19 -19
  61. package/dist/esm.tsbuildinfo +1 -1
  62. package/package.json +4 -5
  63. package/src/client/index.ts +94 -4
  64. package/src/client/setup.test.ts +2 -2
  65. package/src/component/_generated/api.d.ts +235 -0
  66. package/src/component/messages.test.ts +140 -0
  67. package/src/component/messages.ts +30 -0
  68. package/src/component/streams.ts +148 -2
  69. package/src/component/threads.ts +8 -0
  70. package/src/component/users.ts +1 -0
  71. package/src/component/vector/index.ts +4 -0
  72. package/src/react/index.ts +1 -2
  73. package/dist/commonjs/react/usePaginatedQuery.d.ts +0 -241
  74. package/dist/commonjs/react/usePaginatedQuery.d.ts.map +0 -1
  75. package/dist/commonjs/react/usePaginatedQuery.js +0 -627
  76. package/dist/commonjs/react/usePaginatedQuery.js.map +0 -1
  77. package/dist/esm/react/usePaginatedQuery.d.ts +0 -241
  78. package/dist/esm/react/usePaginatedQuery.d.ts.map +0 -1
  79. package/dist/esm/react/usePaginatedQuery.js +0 -627
  80. package/dist/esm/react/usePaginatedQuery.js.map +0 -1
  81. package/react/package.json +0 -5
  82. package/src/react/usePaginatedQuery.ts +0 -901
@@ -7,14 +7,14 @@ export declare const schema: import("convex/server").SchemaDefinition<{
7
7
  }, "required", "name">, {
8
8
  name: ["name", "_creationTime"];
9
9
  }, {}, {}>;
10
- embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
10
+ embeddings_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
11
11
  userId?: string | undefined;
12
12
  threadId?: string | undefined;
13
13
  model_table_userId?: string[] | undefined;
14
14
  model_table_threadId?: string[] | undefined;
15
- vector: number[];
16
15
  model: string;
17
16
  table: string;
17
+ vector: number[];
18
18
  }, {
19
19
  model: import("convex/values").VString<string, "required">;
20
20
  table: import("convex/values").VString<string, "required">;
@@ -23,23 +23,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
23
23
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
24
24
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
25
25
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
26
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
26
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
27
27
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
28
28
  }, import("convex/server").GenericTableSearchIndexes, {
29
29
  vector: {
30
30
  vectorField: "vector";
31
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
31
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
32
32
  filterFields: "model_table_userId" | "model_table_threadId";
33
33
  };
34
34
  }>;
35
- embeddings_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
35
+ embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
36
36
  userId?: string | undefined;
37
37
  threadId?: string | undefined;
38
38
  model_table_userId?: string[] | undefined;
39
39
  model_table_threadId?: string[] | undefined;
40
- vector: number[];
41
40
  model: string;
42
41
  table: string;
42
+ vector: number[];
43
43
  }, {
44
44
  model: import("convex/values").VString<string, "required">;
45
45
  table: import("convex/values").VString<string, "required">;
@@ -48,23 +48,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
48
48
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
49
49
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
50
50
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
51
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
51
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
52
52
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
53
53
  }, import("convex/server").GenericTableSearchIndexes, {
54
54
  vector: {
55
55
  vectorField: "vector";
56
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
56
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
57
57
  filterFields: "model_table_userId" | "model_table_threadId";
58
58
  };
59
59
  }>;
60
- embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
60
+ embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
61
61
  userId?: string | undefined;
62
62
  threadId?: string | undefined;
63
63
  model_table_userId?: string[] | undefined;
64
64
  model_table_threadId?: string[] | undefined;
65
- vector: number[];
66
65
  model: string;
67
66
  table: string;
67
+ vector: number[];
68
68
  }, {
69
69
  model: import("convex/values").VString<string, "required">;
70
70
  table: import("convex/values").VString<string, "required">;
@@ -73,23 +73,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
73
73
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
74
74
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
75
75
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
76
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
76
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
77
77
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
78
78
  }, import("convex/server").GenericTableSearchIndexes, {
79
79
  vector: {
80
80
  vectorField: "vector";
81
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
81
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
82
82
  filterFields: "model_table_userId" | "model_table_threadId";
83
83
  };
84
84
  }>;
85
- embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
85
+ embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
86
86
  userId?: string | undefined;
87
87
  threadId?: string | undefined;
88
88
  model_table_userId?: string[] | undefined;
89
89
  model_table_threadId?: string[] | undefined;
90
- vector: number[];
91
90
  model: string;
92
91
  table: string;
92
+ vector: number[];
93
93
  }, {
94
94
  model: import("convex/values").VString<string, "required">;
95
95
  table: import("convex/values").VString<string, "required">;
@@ -98,23 +98,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
98
98
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
99
99
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
100
100
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
101
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
101
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
102
102
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
103
103
  }, import("convex/server").GenericTableSearchIndexes, {
104
104
  vector: {
105
105
  vectorField: "vector";
106
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
106
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
107
107
  filterFields: "model_table_userId" | "model_table_threadId";
108
108
  };
109
109
  }>;
110
- embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
110
+ embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
111
111
  userId?: string | undefined;
112
112
  threadId?: string | undefined;
113
113
  model_table_userId?: string[] | undefined;
114
114
  model_table_threadId?: string[] | undefined;
115
- vector: number[];
116
115
  model: string;
117
116
  table: string;
117
+ vector: number[];
118
118
  }, {
119
119
  model: import("convex/values").VString<string, "required">;
120
120
  table: import("convex/values").VString<string, "required">;
@@ -123,12 +123,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
123
123
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
124
124
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
125
125
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
126
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
126
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
127
127
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
128
128
  }, import("convex/server").GenericTableSearchIndexes, {
129
129
  vector: {
130
130
  vectorField: "vector";
131
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
131
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
132
132
  filterFields: "model_table_userId" | "model_table_threadId";
133
133
  };
134
134
  }>;
@@ -137,9 +137,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
137
137
  threadId?: string | undefined;
138
138
  model_table_userId?: string[] | undefined;
139
139
  model_table_threadId?: string[] | undefined;
140
- vector: number[];
141
140
  model: string;
142
141
  table: string;
142
+ vector: number[];
143
143
  }, {
144
144
  model: import("convex/values").VString<string, "required">;
145
145
  table: import("convex/values").VString<string, "required">;
@@ -148,12 +148,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
148
148
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
149
149
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
150
150
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
151
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
151
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
152
152
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
153
153
  }, import("convex/server").GenericTableSearchIndexes, {
154
154
  vector: {
155
155
  vectorField: "vector";
156
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
156
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
157
157
  filterFields: "model_table_userId" | "model_table_threadId";
158
158
  };
159
159
  }>;
@@ -162,9 +162,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
162
162
  threadId?: string | undefined;
163
163
  model_table_userId?: string[] | undefined;
164
164
  model_table_threadId?: string[] | undefined;
165
- vector: number[];
166
165
  model: string;
167
166
  table: string;
167
+ vector: number[];
168
168
  }, {
169
169
  model: import("convex/values").VString<string, "required">;
170
170
  table: import("convex/values").VString<string, "required">;
@@ -173,12 +173,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
173
173
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
174
174
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
175
175
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
176
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
176
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
177
177
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
178
178
  }, import("convex/server").GenericTableSearchIndexes, {
179
179
  vector: {
180
180
  vectorField: "vector";
181
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
181
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
182
182
  filterFields: "model_table_userId" | "model_table_threadId";
183
183
  };
184
184
  }>;
@@ -187,9 +187,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
187
187
  threadId?: string | undefined;
188
188
  model_table_userId?: string[] | undefined;
189
189
  model_table_threadId?: string[] | undefined;
190
- vector: number[];
191
190
  model: string;
192
191
  table: string;
192
+ vector: number[];
193
193
  }, {
194
194
  model: import("convex/values").VString<string, "required">;
195
195
  table: import("convex/values").VString<string, "required">;
@@ -198,12 +198,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
198
198
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
199
199
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
200
200
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
201
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
201
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
202
202
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
203
203
  }, import("convex/server").GenericTableSearchIndexes, {
204
204
  vector: {
205
205
  vectorField: "vector";
206
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
206
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
207
207
  filterFields: "model_table_userId" | "model_table_threadId";
208
208
  };
209
209
  }>;
@@ -212,9 +212,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
212
212
  threadId?: string | undefined;
213
213
  model_table_userId?: string[] | undefined;
214
214
  model_table_threadId?: string[] | undefined;
215
- vector: number[];
216
215
  model: string;
217
216
  table: string;
217
+ vector: number[];
218
218
  }, {
219
219
  model: import("convex/values").VString<string, "required">;
220
220
  table: import("convex/values").VString<string, "required">;
@@ -223,12 +223,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
223
223
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
224
224
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
225
225
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
226
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
226
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
227
227
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
228
228
  }, import("convex/server").GenericTableSearchIndexes, {
229
229
  vector: {
230
230
  vectorField: "vector";
231
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
231
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
232
232
  filterFields: "model_table_userId" | "model_table_threadId";
233
233
  };
234
234
  }>;
@@ -237,9 +237,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
237
237
  threadId?: string | undefined;
238
238
  model_table_userId?: string[] | undefined;
239
239
  model_table_threadId?: string[] | undefined;
240
- vector: number[];
241
240
  model: string;
242
241
  table: string;
242
+ vector: number[];
243
243
  }, {
244
244
  model: import("convex/values").VString<string, "required">;
245
245
  table: import("convex/values").VString<string, "required">;
@@ -248,18 +248,18 @@ export declare const schema: import("convex/server").SchemaDefinition<{
248
248
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
249
249
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
250
250
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
251
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
251
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
252
252
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
253
253
  }, import("convex/server").GenericTableSearchIndexes, {
254
254
  vector: {
255
255
  vectorField: "vector";
256
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
256
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
257
257
  filterFields: "model_table_userId" | "model_table_threadId";
258
258
  };
259
259
  }>;
260
260
  threads: import("convex/server").TableDefinition<import("convex/values").VObject<{
261
- title?: string | undefined;
262
261
  userId?: string | undefined;
262
+ title?: string | undefined;
263
263
  summary?: string | undefined;
264
264
  defaultSystemPrompt?: string | undefined;
265
265
  parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
@@ -273,15 +273,20 @@ export declare const schema: import("convex/server").SchemaDefinition<{
273
273
  defaultSystemPrompt: import("convex/values").VString<string | undefined, "optional">;
274
274
  parentThreadIds: import("convex/values").VArray<import("convex/values").GenericId<"threads">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">, "optional">;
275
275
  order: import("convex/values").VFloat64<number | undefined, "optional">;
276
- }, "required", "title" | "status" | "userId" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, {
276
+ }, "required", "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, {
277
277
  userId: ["userId", "_creationTime"];
278
278
  }, {}, {}>;
279
279
  messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
280
- text?: string | undefined;
281
280
  id?: string | undefined;
282
- providerOptions?: Record<string, Record<string, any>> | undefined;
283
- reasoning?: string | undefined;
281
+ userId?: string | undefined;
282
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
283
+ fileIds?: import("convex/values").GenericId<"files">[] | undefined;
284
284
  files?: any[] | undefined;
285
+ error?: string | undefined;
286
+ agentName?: string | undefined;
287
+ model?: string | undefined;
288
+ provider?: string | undefined;
289
+ providerOptions?: Record<string, Record<string, any>> | undefined;
285
290
  message?: {
286
291
  providerOptions?: Record<string, Record<string, any>> | undefined;
287
292
  role: "user";
@@ -355,15 +360,17 @@ export declare const schema: import("convex/server").SchemaDefinition<{
355
360
  role: "system";
356
361
  content: string;
357
362
  } | undefined;
358
- fileIds?: import("convex/values").GenericId<"files">[] | undefined;
359
- finishReason?: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined;
360
- error?: string | undefined;
361
- model?: string | undefined;
362
- provider?: string | undefined;
363
+ text?: string | undefined;
364
+ reasoning?: string | undefined;
365
+ usage?: {
366
+ promptTokens: number;
367
+ completionTokens: number;
368
+ totalTokens: number;
369
+ } | undefined;
363
370
  providerMetadata?: Record<string, Record<string, any>> | undefined;
364
371
  sources?: {
365
- providerOptions?: Record<string, Record<string, any>> | undefined;
366
372
  title?: string | undefined;
373
+ providerOptions?: Record<string, Record<string, any>> | undefined;
367
374
  id: string;
368
375
  sourceType: "url";
369
376
  url: string;
@@ -376,11 +383,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
376
383
  type: "redacted";
377
384
  data: string;
378
385
  })[] | undefined;
379
- usage?: {
380
- promptTokens: number;
381
- completionTokens: number;
382
- totalTokens: number;
383
- } | undefined;
384
386
  warnings?: ({
385
387
  details?: string | undefined;
386
388
  type: "unsupported-setting";
@@ -393,23 +395,21 @@ export declare const schema: import("convex/server").SchemaDefinition<{
393
395
  type: "other";
394
396
  message: string;
395
397
  })[] | undefined;
396
- userId?: string | undefined;
397
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
398
- agentName?: string | undefined;
398
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
399
399
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
400
400
  stepId?: string | undefined;
401
- tool: boolean;
402
401
  status: "pending" | "success" | "failed";
403
402
  order: number;
404
403
  threadId: import("convex/values").GenericId<"threads">;
405
404
  stepOrder: number;
405
+ tool: boolean;
406
406
  }, {
407
407
  id: import("convex/values").VString<string | undefined, "optional">;
408
408
  userId: import("convex/values").VString<string | undefined, "optional">;
409
409
  threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
410
410
  order: import("convex/values").VFloat64<number, "required">;
411
411
  stepOrder: import("convex/values").VFloat64<number, "required">;
412
- embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
412
+ embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
413
413
  fileIds: import("convex/values").VArray<import("convex/values").GenericId<"files">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"files">, "required">, "optional">;
414
414
  error: import("convex/values").VString<string | undefined, "optional">;
415
415
  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>;
@@ -563,7 +563,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
563
563
  type: import("convex/values").VLiteral<"text", "required">;
564
564
  text: import("convex/values").VString<string, "required">;
565
565
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
566
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
566
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
567
567
  providerOptions?: Record<string, Record<string, any>> | undefined;
568
568
  mimeType?: string | undefined;
569
569
  type: "image";
@@ -585,9 +585,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
585
585
  filename: import("convex/values").VString<string | undefined, "optional">;
586
586
  mimeType: import("convex/values").VString<string, "required">;
587
587
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
588
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
588
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
589
589
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
590
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
590
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
591
591
  providerOptions?: Record<string, Record<string, any>> | undefined;
592
592
  role: "assistant";
593
593
  content: string | ({
@@ -701,7 +701,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
701
701
  type: import("convex/values").VLiteral<"text", "required">;
702
702
  text: import("convex/values").VString<string, "required">;
703
703
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
704
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
704
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
705
705
  providerOptions?: Record<string, Record<string, any>> | undefined;
706
706
  filename?: string | undefined;
707
707
  type: "file";
@@ -723,7 +723,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
723
723
  text: import("convex/values").VString<string, "required">;
724
724
  signature: import("convex/values").VString<string | undefined, "optional">;
725
725
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
726
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
726
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
727
727
  providerOptions?: Record<string, Record<string, any>> | undefined;
728
728
  type: "redacted-reasoning";
729
729
  data: string;
@@ -743,9 +743,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
743
743
  toolName: import("convex/values").VString<string, "required">;
744
744
  args: import("convex/values").VAny<any, "required", string>;
745
745
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
746
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
746
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
747
747
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
748
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
748
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
749
749
  providerOptions?: Record<string, Record<string, any>> | undefined;
750
750
  role: "tool";
751
751
  content: {
@@ -838,7 +838,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
838
838
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
839
839
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
840
840
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
841
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
841
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
842
842
  providerOptions?: Record<string, Record<string, any>> | undefined;
843
843
  role: "system";
844
844
  content: string;
@@ -846,7 +846,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
846
846
  role: import("convex/values").VLiteral<"system", "required">;
847
847
  content: import("convex/values").VString<string, "required">;
848
848
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
849
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">], "optional", "role" | "providerOptions" | `providerOptions.${string}` | "content">;
849
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
850
850
  tool: import("convex/values").VBoolean<boolean, "required">;
851
851
  text: import("convex/values").VString<string | undefined, "optional">;
852
852
  usage: import("convex/values").VObject<{
@@ -860,14 +860,14 @@ export declare const schema: import("convex/server").SchemaDefinition<{
860
860
  }, "optional", "promptTokens" | "completionTokens" | "totalTokens">;
861
861
  providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
862
862
  sources: import("convex/values").VArray<{
863
- providerOptions?: Record<string, Record<string, any>> | undefined;
864
863
  title?: string | undefined;
864
+ providerOptions?: Record<string, Record<string, any>> | undefined;
865
865
  id: string;
866
866
  sourceType: "url";
867
867
  url: string;
868
868
  }[] | undefined, import("convex/values").VObject<{
869
- providerOptions?: Record<string, Record<string, any>> | undefined;
870
869
  title?: string | undefined;
870
+ providerOptions?: Record<string, Record<string, any>> | undefined;
871
871
  id: string;
872
872
  sourceType: "url";
873
873
  url: string;
@@ -877,7 +877,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
877
877
  url: import("convex/values").VString<string, "required">;
878
878
  title: import("convex/values").VString<string | undefined, "optional">;
879
879
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
880
- }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "optional">;
880
+ }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "optional">;
881
881
  reasoning: import("convex/values").VString<string | undefined, "optional">;
882
882
  reasoningDetails: import("convex/values").VArray<({
883
883
  signature?: string | undefined;
@@ -952,12 +952,12 @@ export declare const schema: import("convex/server").SchemaDefinition<{
952
952
  }, {
953
953
  type: import("convex/values").VLiteral<"other", "required">;
954
954
  message: import("convex/values").VString<string, "required">;
955
- }, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
956
- finishReason: import("convex/values").VUnion<"length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
955
+ }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
956
+ finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
957
957
  parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
958
958
  stepId: import("convex/values").VString<string | undefined, "optional">;
959
959
  files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
960
- }, "required", "text" | "id" | "providerOptions" | `providerOptions.${string}` | "reasoning" | "tool" | "files" | "message" | "fileIds" | "finishReason" | "error" | "model" | "provider" | "providerMetadata" | "sources" | "reasoningDetails" | "usage" | "warnings" | "message.role" | "message.providerOptions" | `message.providerOptions.${string}` | "message.content" | `providerMetadata.${string}` | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "agentName" | "parentMessageId" | "stepId">, {
960
+ }, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>, {
961
961
  threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
962
962
  embeddingId: ["embeddingId", "_creationTime"];
963
963
  }, {
@@ -967,11 +967,11 @@ export declare const schema: import("convex/server").SchemaDefinition<{
967
967
  };
968
968
  }, {}>;
969
969
  streamingMessages: import("convex/server").TableDefinition<import("convex/values").VObject<{
970
- providerOptions?: Record<string, Record<string, any>> | undefined;
971
- model?: string | undefined;
972
- provider?: string | undefined;
973
970
  userId?: string | undefined;
974
971
  agentName?: string | undefined;
972
+ model?: string | undefined;
973
+ provider?: string | undefined;
974
+ providerOptions?: Record<string, Record<string, any>> | undefined;
975
975
  order: number;
976
976
  threadId: import("convex/values").GenericId<"threads">;
977
977
  stepOrder: number;
@@ -1031,10 +1031,13 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1031
1031
  kind: import("convex/values").VLiteral<"error", "required">;
1032
1032
  error: import("convex/values").VString<string, "required">;
1033
1033
  }, "required", "error" | "kind">], "required", "error" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt">;
1034
- }, "required", "providerOptions" | `providerOptions.${string}` | "model" | "provider" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
1034
+ }, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
1035
1035
  threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
1036
1036
  }, {}, {}>;
1037
1037
  streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
1038
+ streamId: import("convex/values").GenericId<"streamingMessages">;
1039
+ start: number;
1040
+ end: number;
1038
1041
  parts: ({
1039
1042
  providerOptions?: Record<string, Record<string, any>> | undefined;
1040
1043
  type: "tool-call";
@@ -1066,8 +1069,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1066
1069
  } | {
1067
1070
  type: "source";
1068
1071
  source: {
1069
- providerOptions?: Record<string, Record<string, any>> | undefined;
1070
1072
  title?: string | undefined;
1073
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1071
1074
  id: string;
1072
1075
  sourceType: "url";
1073
1076
  url: string;
@@ -1082,9 +1085,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1082
1085
  toolName: string;
1083
1086
  argsTextDelta: string;
1084
1087
  })[];
1085
- streamId: import("convex/values").GenericId<"streamingMessages">;
1086
- start: number;
1087
- end: number;
1088
1088
  }, {
1089
1089
  streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
1090
1090
  start: import("convex/values").VFloat64<number, "required">;
@@ -1120,8 +1120,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1120
1120
  } | {
1121
1121
  type: "source";
1122
1122
  source: {
1123
- providerOptions?: Record<string, Record<string, any>> | undefined;
1124
1123
  title?: string | undefined;
1124
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1125
1125
  id: string;
1126
1126
  sourceType: "url";
1127
1127
  url: string;
@@ -1166,8 +1166,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1166
1166
  } | {
1167
1167
  type: "source";
1168
1168
  source: {
1169
- providerOptions?: Record<string, Record<string, any>> | undefined;
1170
1169
  title?: string | undefined;
1170
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1171
1171
  id: string;
1172
1172
  sourceType: "url";
1173
1173
  url: string;
@@ -1196,8 +1196,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1196
1196
  }, "required", "type" | "textDelta">, import("convex/values").VObject<{
1197
1197
  type: "source";
1198
1198
  source: {
1199
- providerOptions?: Record<string, Record<string, any>> | undefined;
1200
1199
  title?: string | undefined;
1200
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1201
1201
  id: string;
1202
1202
  sourceType: "url";
1203
1203
  url: string;
@@ -1205,8 +1205,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1205
1205
  }, {
1206
1206
  type: import("convex/values").VLiteral<"source", "required">;
1207
1207
  source: import("convex/values").VObject<{
1208
- providerOptions?: Record<string, Record<string, any>> | undefined;
1209
1208
  title?: string | undefined;
1209
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1210
1210
  id: string;
1211
1211
  sourceType: "url";
1212
1212
  url: string;
@@ -1216,8 +1216,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1216
1216
  url: import("convex/values").VString<string, "required">;
1217
1217
  title: import("convex/values").VString<string | undefined, "optional">;
1218
1218
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
1219
- }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">;
1220
- }, "required", "type" | "source" | "source.id" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title">, import("convex/values").VObject<{
1219
+ }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
1220
+ }, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
1221
1221
  providerOptions?: Record<string, Record<string, any>> | undefined;
1222
1222
  type: "tool-call";
1223
1223
  toolCallId: string;
@@ -1300,20 +1300,20 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1300
1300
  }, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
1301
1301
  isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
1302
1302
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
1303
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title" | "argsTextDelta">, "required">;
1304
- }, "required", "parts" | "streamId" | "start" | "end">, {
1303
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, "required">;
1304
+ }, "required", "streamId" | "start" | "end" | "parts">, {
1305
1305
  streamId_start_end: ["streamId", "start", "end", "_creationTime"];
1306
1306
  }, {}, {}>;
1307
1307
  memories: import("convex/server").TableDefinition<import("convex/values").VObject<{
1308
1308
  userId?: string | undefined;
1309
1309
  threadId?: import("convex/values").GenericId<"threads"> | undefined;
1310
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
1310
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
1311
1311
  memory: string;
1312
1312
  }, {
1313
1313
  threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
1314
1314
  userId: import("convex/values").VString<string | undefined, "optional">;
1315
1315
  memory: import("convex/values").VString<string, "required">;
1316
- embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
1316
+ embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
1317
1317
  }, "required", "userId" | "threadId" | "embeddingId" | "memory">, {
1318
1318
  threadId: ["threadId", "_creationTime"];
1319
1319
  userId: ["userId", "_creationTime"];
@@ -1340,249 +1340,67 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1340
1340
  }, true>;
1341
1341
  export declare const vv: {
1342
1342
  id: <TableName extends import("convex/server").TableNamesInDataModel<{
1343
- apiKeys: {
1343
+ threads: {
1344
1344
  document: {
1345
- _id: import("convex/values").GenericId<"apiKeys">;
1345
+ _id: import("convex/values").GenericId<"threads">;
1346
1346
  _creationTime: number;
1347
- name?: string | undefined;
1347
+ userId?: string | undefined;
1348
+ title?: string | undefined;
1349
+ summary?: string | undefined;
1350
+ defaultSystemPrompt?: string | undefined;
1351
+ parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
1352
+ order?: number | undefined;
1353
+ status: "active" | "archived";
1348
1354
  };
1349
- fieldPaths: "_id" | ("_creationTime" | "name");
1355
+ fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
1350
1356
  indexes: {
1351
- name: ["name", "_creationTime"];
1357
+ userId: ["userId", "_creationTime"];
1352
1358
  by_id: ["_id"];
1353
1359
  by_creation_time: ["_creationTime"];
1354
1360
  };
1355
1361
  searchIndexes: {};
1356
1362
  vectorIndexes: {};
1357
1363
  };
1358
- files: {
1364
+ embeddings_128: {
1359
1365
  document: {
1360
- _id: import("convex/values").GenericId<"files">;
1366
+ _id: import("convex/values").GenericId<"embeddings_128">;
1361
1367
  _creationTime: number;
1362
- filename?: string | undefined;
1363
- mimeType: string;
1364
- storageId: string;
1365
- hash: string;
1366
- refcount: number;
1367
- lastTouchedAt: number;
1368
+ userId?: string | undefined;
1369
+ threadId?: string | undefined;
1370
+ model_table_userId?: string[] | undefined;
1371
+ model_table_threadId?: string[] | undefined;
1372
+ model: string;
1373
+ table: string;
1374
+ vector: number[];
1368
1375
  };
1369
- fieldPaths: "_id" | ("mimeType" | "filename" | "_creationTime" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
1376
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1370
1377
  indexes: {
1371
- hash: ["hash", "_creationTime"];
1372
- refcount: ["refcount", "_creationTime"];
1378
+ model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1373
1379
  by_id: ["_id"];
1374
1380
  by_creation_time: ["_creationTime"];
1375
1381
  };
1376
- searchIndexes: {};
1377
- vectorIndexes: {};
1382
+ searchIndexes: import("convex/server").GenericTableSearchIndexes;
1383
+ vectorIndexes: {
1384
+ vector: {
1385
+ vectorField: "vector";
1386
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1387
+ filterFields: "model_table_userId" | "model_table_threadId";
1388
+ };
1389
+ };
1378
1390
  };
1379
- messages: {
1391
+ embeddings_256: {
1380
1392
  document: {
1381
- _id: import("convex/values").GenericId<"messages">;
1382
- _creationTime: number;
1383
- text?: string | undefined;
1384
- id?: string | undefined;
1385
- providerOptions?: Record<string, Record<string, any>> | undefined;
1386
- reasoning?: string | undefined;
1387
- files?: any[] | undefined;
1388
- message?: {
1389
- providerOptions?: Record<string, Record<string, any>> | undefined;
1390
- role: "user";
1391
- content: string | ({
1392
- providerOptions?: Record<string, Record<string, any>> | undefined;
1393
- type: "text";
1394
- text: string;
1395
- } | {
1396
- providerOptions?: Record<string, Record<string, any>> | undefined;
1397
- mimeType?: string | undefined;
1398
- type: "image";
1399
- image: string | ArrayBuffer;
1400
- } | {
1401
- providerOptions?: Record<string, Record<string, any>> | undefined;
1402
- filename?: string | undefined;
1403
- type: "file";
1404
- mimeType: string;
1405
- data: string | ArrayBuffer;
1406
- })[];
1407
- } | {
1408
- providerOptions?: Record<string, Record<string, any>> | undefined;
1409
- role: "assistant";
1410
- content: string | ({
1411
- providerOptions?: Record<string, Record<string, any>> | undefined;
1412
- type: "text";
1413
- text: string;
1414
- } | {
1415
- providerOptions?: Record<string, Record<string, any>> | undefined;
1416
- filename?: string | undefined;
1417
- type: "file";
1418
- mimeType: string;
1419
- data: string | ArrayBuffer;
1420
- } | {
1421
- providerOptions?: Record<string, Record<string, any>> | undefined;
1422
- signature?: string | undefined;
1423
- type: "reasoning";
1424
- text: string;
1425
- } | {
1426
- providerOptions?: Record<string, Record<string, any>> | undefined;
1427
- type: "redacted-reasoning";
1428
- data: string;
1429
- } | {
1430
- providerOptions?: Record<string, Record<string, any>> | undefined;
1431
- type: "tool-call";
1432
- toolCallId: string;
1433
- toolName: string;
1434
- args: any;
1435
- })[];
1436
- } | {
1437
- providerOptions?: Record<string, Record<string, any>> | undefined;
1438
- role: "tool";
1439
- content: {
1440
- providerOptions?: Record<string, Record<string, any>> | undefined;
1441
- args?: any;
1442
- experimental_content?: ({
1443
- type: "text";
1444
- text: string;
1445
- } | {
1446
- mimeType?: string | undefined;
1447
- type: "image";
1448
- data: string;
1449
- })[] | undefined;
1450
- isError?: boolean | undefined;
1451
- type: "tool-result";
1452
- toolCallId: string;
1453
- toolName: string;
1454
- result: any;
1455
- }[];
1456
- } | {
1457
- providerOptions?: Record<string, Record<string, any>> | undefined;
1458
- role: "system";
1459
- content: string;
1460
- } | undefined;
1461
- fileIds?: import("convex/values").GenericId<"files">[] | undefined;
1462
- finishReason?: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined;
1463
- error?: string | undefined;
1464
- model?: string | undefined;
1465
- provider?: string | undefined;
1466
- providerMetadata?: Record<string, Record<string, any>> | undefined;
1467
- sources?: {
1468
- providerOptions?: Record<string, Record<string, any>> | undefined;
1469
- title?: string | undefined;
1470
- id: string;
1471
- sourceType: "url";
1472
- url: string;
1473
- }[] | undefined;
1474
- reasoningDetails?: ({
1475
- signature?: string | undefined;
1476
- type: "text";
1477
- text: string;
1478
- } | {
1479
- type: "redacted";
1480
- data: string;
1481
- })[] | undefined;
1482
- usage?: {
1483
- promptTokens: number;
1484
- completionTokens: number;
1485
- totalTokens: number;
1486
- } | undefined;
1487
- warnings?: ({
1488
- details?: string | undefined;
1489
- type: "unsupported-setting";
1490
- setting: string;
1491
- } | {
1492
- details?: string | undefined;
1493
- type: "unsupported-tool";
1494
- tool: any;
1495
- } | {
1496
- type: "other";
1497
- message: string;
1498
- })[] | undefined;
1499
- userId?: string | undefined;
1500
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
1501
- agentName?: string | undefined;
1502
- parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1503
- stepId?: string | undefined;
1504
- tool: boolean;
1505
- status: "pending" | "success" | "failed";
1506
- order: number;
1507
- threadId: import("convex/values").GenericId<"threads">;
1508
- stepOrder: number;
1509
- };
1510
- fieldPaths: "_id" | ("text" | "id" | "providerOptions" | `providerOptions.${string}` | "reasoning" | "tool" | "files" | "message" | "fileIds" | "finishReason" | "error" | "model" | "provider" | "providerMetadata" | "sources" | "reasoningDetails" | "usage" | "warnings" | "message.role" | "message.providerOptions" | `message.providerOptions.${string}` | "message.content" | `providerMetadata.${string}` | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "_creationTime" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "agentName" | "parentMessageId" | "stepId");
1511
- indexes: {
1512
- threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
1513
- embeddingId: ["embeddingId", "_creationTime"];
1514
- by_id: ["_id"];
1515
- by_creation_time: ["_creationTime"];
1516
- };
1517
- searchIndexes: {
1518
- text_search: {
1519
- searchField: "text";
1520
- filterFields: "userId" | "threadId";
1521
- };
1522
- };
1523
- vectorIndexes: {};
1524
- };
1525
- threads: {
1526
- document: {
1527
- _id: import("convex/values").GenericId<"threads">;
1528
- _creationTime: number;
1529
- title?: string | undefined;
1530
- userId?: string | undefined;
1531
- summary?: string | undefined;
1532
- defaultSystemPrompt?: string | undefined;
1533
- parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
1534
- order?: number | undefined;
1535
- status: "active" | "archived";
1536
- };
1537
- fieldPaths: "_id" | ("title" | "_creationTime" | "status" | "userId" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
1538
- indexes: {
1539
- userId: ["userId", "_creationTime"];
1540
- by_id: ["_id"];
1541
- by_creation_time: ["_creationTime"];
1542
- };
1543
- searchIndexes: {};
1544
- vectorIndexes: {};
1545
- };
1546
- embeddings_1024: {
1547
- document: {
1548
- _id: import("convex/values").GenericId<"embeddings_1024">;
1393
+ _id: import("convex/values").GenericId<"embeddings_256">;
1549
1394
  _creationTime: number;
1550
1395
  userId?: string | undefined;
1551
1396
  threadId?: string | undefined;
1552
1397
  model_table_userId?: string[] | undefined;
1553
1398
  model_table_threadId?: string[] | undefined;
1554
- vector: number[];
1555
1399
  model: string;
1556
1400
  table: string;
1557
- };
1558
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1559
- indexes: {
1560
- model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1561
- by_id: ["_id"];
1562
- by_creation_time: ["_creationTime"];
1563
- };
1564
- searchIndexes: import("convex/server").GenericTableSearchIndexes;
1565
- vectorIndexes: {
1566
- vector: {
1567
- vectorField: "vector";
1568
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1569
- filterFields: "model_table_userId" | "model_table_threadId";
1570
- };
1571
- };
1572
- };
1573
- embeddings_128: {
1574
- document: {
1575
- _id: import("convex/values").GenericId<"embeddings_128">;
1576
- _creationTime: number;
1577
- userId?: string | undefined;
1578
- threadId?: string | undefined;
1579
- model_table_userId?: string[] | undefined;
1580
- model_table_threadId?: string[] | undefined;
1581
1401
  vector: number[];
1582
- model: string;
1583
- table: string;
1584
1402
  };
1585
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1403
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1586
1404
  indexes: {
1587
1405
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1588
1406
  by_id: ["_id"];
@@ -1592,24 +1410,24 @@ export declare const vv: {
1592
1410
  vectorIndexes: {
1593
1411
  vector: {
1594
1412
  vectorField: "vector";
1595
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1413
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1596
1414
  filterFields: "model_table_userId" | "model_table_threadId";
1597
1415
  };
1598
1416
  };
1599
1417
  };
1600
- embeddings_256: {
1418
+ embeddings_512: {
1601
1419
  document: {
1602
- _id: import("convex/values").GenericId<"embeddings_256">;
1420
+ _id: import("convex/values").GenericId<"embeddings_512">;
1603
1421
  _creationTime: number;
1604
1422
  userId?: string | undefined;
1605
1423
  threadId?: string | undefined;
1606
1424
  model_table_userId?: string[] | undefined;
1607
1425
  model_table_threadId?: string[] | undefined;
1608
- vector: number[];
1609
1426
  model: string;
1610
1427
  table: string;
1428
+ vector: number[];
1611
1429
  };
1612
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1430
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1613
1431
  indexes: {
1614
1432
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1615
1433
  by_id: ["_id"];
@@ -1619,24 +1437,24 @@ export declare const vv: {
1619
1437
  vectorIndexes: {
1620
1438
  vector: {
1621
1439
  vectorField: "vector";
1622
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1440
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1623
1441
  filterFields: "model_table_userId" | "model_table_threadId";
1624
1442
  };
1625
1443
  };
1626
1444
  };
1627
- embeddings_512: {
1445
+ embeddings_768: {
1628
1446
  document: {
1629
- _id: import("convex/values").GenericId<"embeddings_512">;
1447
+ _id: import("convex/values").GenericId<"embeddings_768">;
1630
1448
  _creationTime: number;
1631
1449
  userId?: string | undefined;
1632
1450
  threadId?: string | undefined;
1633
1451
  model_table_userId?: string[] | undefined;
1634
1452
  model_table_threadId?: string[] | undefined;
1635
- vector: number[];
1636
1453
  model: string;
1637
1454
  table: string;
1455
+ vector: number[];
1638
1456
  };
1639
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1457
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1640
1458
  indexes: {
1641
1459
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1642
1460
  by_id: ["_id"];
@@ -1646,24 +1464,24 @@ export declare const vv: {
1646
1464
  vectorIndexes: {
1647
1465
  vector: {
1648
1466
  vectorField: "vector";
1649
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1467
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1650
1468
  filterFields: "model_table_userId" | "model_table_threadId";
1651
1469
  };
1652
1470
  };
1653
1471
  };
1654
- embeddings_768: {
1472
+ embeddings_1024: {
1655
1473
  document: {
1656
- _id: import("convex/values").GenericId<"embeddings_768">;
1474
+ _id: import("convex/values").GenericId<"embeddings_1024">;
1657
1475
  _creationTime: number;
1658
1476
  userId?: string | undefined;
1659
1477
  threadId?: string | undefined;
1660
1478
  model_table_userId?: string[] | undefined;
1661
1479
  model_table_threadId?: string[] | undefined;
1662
- vector: number[];
1663
1480
  model: string;
1664
1481
  table: string;
1482
+ vector: number[];
1665
1483
  };
1666
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1484
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1667
1485
  indexes: {
1668
1486
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1669
1487
  by_id: ["_id"];
@@ -1673,7 +1491,7 @@ export declare const vv: {
1673
1491
  vectorIndexes: {
1674
1492
  vector: {
1675
1493
  vectorField: "vector";
1676
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1494
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1677
1495
  filterFields: "model_table_userId" | "model_table_threadId";
1678
1496
  };
1679
1497
  };
@@ -1686,11 +1504,11 @@ export declare const vv: {
1686
1504
  threadId?: string | undefined;
1687
1505
  model_table_userId?: string[] | undefined;
1688
1506
  model_table_threadId?: string[] | undefined;
1689
- vector: number[];
1690
1507
  model: string;
1691
1508
  table: string;
1509
+ vector: number[];
1692
1510
  };
1693
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1511
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1694
1512
  indexes: {
1695
1513
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1696
1514
  by_id: ["_id"];
@@ -1700,7 +1518,7 @@ export declare const vv: {
1700
1518
  vectorIndexes: {
1701
1519
  vector: {
1702
1520
  vectorField: "vector";
1703
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1521
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1704
1522
  filterFields: "model_table_userId" | "model_table_threadId";
1705
1523
  };
1706
1524
  };
@@ -1713,11 +1531,11 @@ export declare const vv: {
1713
1531
  threadId?: string | undefined;
1714
1532
  model_table_userId?: string[] | undefined;
1715
1533
  model_table_threadId?: string[] | undefined;
1716
- vector: number[];
1717
1534
  model: string;
1718
1535
  table: string;
1536
+ vector: number[];
1719
1537
  };
1720
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1538
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1721
1539
  indexes: {
1722
1540
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1723
1541
  by_id: ["_id"];
@@ -1727,7 +1545,7 @@ export declare const vv: {
1727
1545
  vectorIndexes: {
1728
1546
  vector: {
1729
1547
  vectorField: "vector";
1730
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1548
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1731
1549
  filterFields: "model_table_userId" | "model_table_threadId";
1732
1550
  };
1733
1551
  };
@@ -1740,11 +1558,11 @@ export declare const vv: {
1740
1558
  threadId?: string | undefined;
1741
1559
  model_table_userId?: string[] | undefined;
1742
1560
  model_table_threadId?: string[] | undefined;
1743
- vector: number[];
1744
1561
  model: string;
1745
1562
  table: string;
1563
+ vector: number[];
1746
1564
  };
1747
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1565
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1748
1566
  indexes: {
1749
1567
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1750
1568
  by_id: ["_id"];
@@ -1754,7 +1572,7 @@ export declare const vv: {
1754
1572
  vectorIndexes: {
1755
1573
  vector: {
1756
1574
  vectorField: "vector";
1757
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1575
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1758
1576
  filterFields: "model_table_userId" | "model_table_threadId";
1759
1577
  };
1760
1578
  };
@@ -1767,11 +1585,11 @@ export declare const vv: {
1767
1585
  threadId?: string | undefined;
1768
1586
  model_table_userId?: string[] | undefined;
1769
1587
  model_table_threadId?: string[] | undefined;
1770
- vector: number[];
1771
1588
  model: string;
1772
1589
  table: string;
1590
+ vector: number[];
1773
1591
  };
1774
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1592
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1775
1593
  indexes: {
1776
1594
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1777
1595
  by_id: ["_id"];
@@ -1781,7 +1599,7 @@ export declare const vv: {
1781
1599
  vectorIndexes: {
1782
1600
  vector: {
1783
1601
  vectorField: "vector";
1784
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1602
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1785
1603
  filterFields: "model_table_userId" | "model_table_threadId";
1786
1604
  };
1787
1605
  };
@@ -1794,11 +1612,11 @@ export declare const vv: {
1794
1612
  threadId?: string | undefined;
1795
1613
  model_table_userId?: string[] | undefined;
1796
1614
  model_table_threadId?: string[] | undefined;
1797
- vector: number[];
1798
1615
  model: string;
1799
1616
  table: string;
1617
+ vector: number[];
1800
1618
  };
1801
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1619
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1802
1620
  indexes: {
1803
1621
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1804
1622
  by_id: ["_id"];
@@ -1808,145 +1626,11 @@ export declare const vv: {
1808
1626
  vectorIndexes: {
1809
1627
  vector: {
1810
1628
  vectorField: "vector";
1811
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1629
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1812
1630
  filterFields: "model_table_userId" | "model_table_threadId";
1813
1631
  };
1814
1632
  };
1815
1633
  };
1816
- streamingMessages: {
1817
- document: {
1818
- _id: import("convex/values").GenericId<"streamingMessages">;
1819
- _creationTime: number;
1820
- providerOptions?: Record<string, Record<string, any>> | undefined;
1821
- model?: string | undefined;
1822
- provider?: string | undefined;
1823
- userId?: string | undefined;
1824
- agentName?: string | undefined;
1825
- order: number;
1826
- threadId: import("convex/values").GenericId<"threads">;
1827
- stepOrder: number;
1828
- state: {
1829
- timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
1830
- kind: "streaming";
1831
- lastHeartbeat: number;
1832
- } | {
1833
- kind: "finished";
1834
- endedAt: number;
1835
- } | {
1836
- error: string;
1837
- kind: "error";
1838
- };
1839
- };
1840
- fieldPaths: "_id" | ("providerOptions" | `providerOptions.${string}` | "model" | "provider" | "_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt");
1841
- indexes: {
1842
- threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
1843
- by_id: ["_id"];
1844
- by_creation_time: ["_creationTime"];
1845
- };
1846
- searchIndexes: {};
1847
- vectorIndexes: {};
1848
- };
1849
- streamDeltas: {
1850
- document: {
1851
- _id: import("convex/values").GenericId<"streamDeltas">;
1852
- _creationTime: number;
1853
- parts: ({
1854
- providerOptions?: Record<string, Record<string, any>> | undefined;
1855
- type: "tool-call";
1856
- toolCallId: string;
1857
- toolName: string;
1858
- args: any;
1859
- } | {
1860
- providerOptions?: Record<string, Record<string, any>> | undefined;
1861
- args?: any;
1862
- experimental_content?: ({
1863
- type: "text";
1864
- text: string;
1865
- } | {
1866
- mimeType?: string | undefined;
1867
- type: "image";
1868
- data: string;
1869
- })[] | undefined;
1870
- isError?: boolean | undefined;
1871
- type: "tool-result";
1872
- toolCallId: string;
1873
- toolName: string;
1874
- result: any;
1875
- } | {
1876
- type: "text-delta";
1877
- textDelta: string;
1878
- } | {
1879
- type: "reasoning";
1880
- textDelta: string;
1881
- } | {
1882
- type: "source";
1883
- source: {
1884
- providerOptions?: Record<string, Record<string, any>> | undefined;
1885
- title?: string | undefined;
1886
- id: string;
1887
- sourceType: "url";
1888
- url: string;
1889
- };
1890
- } | {
1891
- type: "tool-call-streaming-start";
1892
- toolCallId: string;
1893
- toolName: string;
1894
- } | {
1895
- type: "tool-call-delta";
1896
- toolCallId: string;
1897
- toolName: string;
1898
- argsTextDelta: string;
1899
- })[];
1900
- streamId: import("convex/values").GenericId<"streamingMessages">;
1901
- start: number;
1902
- end: number;
1903
- };
1904
- fieldPaths: "_id" | ("parts" | "_creationTime" | "streamId" | "start" | "end");
1905
- indexes: {
1906
- streamId_start_end: ["streamId", "start", "end", "_creationTime"];
1907
- by_id: ["_id"];
1908
- by_creation_time: ["_creationTime"];
1909
- };
1910
- searchIndexes: {};
1911
- vectorIndexes: {};
1912
- };
1913
- memories: {
1914
- document: {
1915
- _id: import("convex/values").GenericId<"memories">;
1916
- _creationTime: number;
1917
- userId?: string | undefined;
1918
- threadId?: import("convex/values").GenericId<"threads"> | undefined;
1919
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
1920
- memory: string;
1921
- };
1922
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
1923
- indexes: {
1924
- threadId: ["threadId", "_creationTime"];
1925
- userId: ["userId", "_creationTime"];
1926
- embeddingId: ["embeddingId", "_creationTime"];
1927
- by_id: ["_id"];
1928
- by_creation_time: ["_creationTime"];
1929
- };
1930
- searchIndexes: {};
1931
- vectorIndexes: {};
1932
- };
1933
- }>>(tableName: TableName) => import("convex/values").VId<import("convex/values").GenericId<TableName>, "required">;
1934
- doc: <TableName extends import("convex/server").TableNamesInDataModel<{
1935
- apiKeys: {
1936
- document: {
1937
- _id: import("convex/values").GenericId<"apiKeys">;
1938
- _creationTime: number;
1939
- name?: string | undefined;
1940
- };
1941
- fieldPaths: "_id" | ("_creationTime" | "name");
1942
- indexes: {
1943
- name: ["name", "_creationTime"];
1944
- by_id: ["_id"];
1945
- by_creation_time: ["_creationTime"];
1946
- };
1947
- searchIndexes: {};
1948
- vectorIndexes: {};
1949
- };
1950
1634
  files: {
1951
1635
  document: {
1952
1636
  _id: import("convex/values").GenericId<"files">;
@@ -1958,7 +1642,7 @@ export declare const vv: {
1958
1642
  refcount: number;
1959
1643
  lastTouchedAt: number;
1960
1644
  };
1961
- fieldPaths: "_id" | ("mimeType" | "filename" | "_creationTime" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
1645
+ fieldPaths: "_id" | ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
1962
1646
  indexes: {
1963
1647
  hash: ["hash", "_creationTime"];
1964
1648
  refcount: ["refcount", "_creationTime"];
@@ -1972,11 +1656,16 @@ export declare const vv: {
1972
1656
  document: {
1973
1657
  _id: import("convex/values").GenericId<"messages">;
1974
1658
  _creationTime: number;
1975
- text?: string | undefined;
1976
1659
  id?: string | undefined;
1977
- providerOptions?: Record<string, Record<string, any>> | undefined;
1978
- reasoning?: string | undefined;
1660
+ userId?: string | undefined;
1661
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
1662
+ fileIds?: import("convex/values").GenericId<"files">[] | undefined;
1979
1663
  files?: any[] | undefined;
1664
+ error?: string | undefined;
1665
+ agentName?: string | undefined;
1666
+ model?: string | undefined;
1667
+ provider?: string | undefined;
1668
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1980
1669
  message?: {
1981
1670
  providerOptions?: Record<string, Record<string, any>> | undefined;
1982
1671
  role: "user";
@@ -2050,15 +1739,17 @@ export declare const vv: {
2050
1739
  role: "system";
2051
1740
  content: string;
2052
1741
  } | undefined;
2053
- fileIds?: import("convex/values").GenericId<"files">[] | undefined;
2054
- finishReason?: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined;
2055
- error?: string | undefined;
2056
- model?: string | undefined;
2057
- provider?: string | undefined;
1742
+ text?: string | undefined;
1743
+ reasoning?: string | undefined;
1744
+ usage?: {
1745
+ promptTokens: number;
1746
+ completionTokens: number;
1747
+ totalTokens: number;
1748
+ } | undefined;
2058
1749
  providerMetadata?: Record<string, Record<string, any>> | undefined;
2059
1750
  sources?: {
2060
- providerOptions?: Record<string, Record<string, any>> | undefined;
2061
1751
  title?: string | undefined;
1752
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2062
1753
  id: string;
2063
1754
  sourceType: "url";
2064
1755
  url: string;
@@ -2071,11 +1762,6 @@ export declare const vv: {
2071
1762
  type: "redacted";
2072
1763
  data: string;
2073
1764
  })[] | undefined;
2074
- usage?: {
2075
- promptTokens: number;
2076
- completionTokens: number;
2077
- totalTokens: number;
2078
- } | undefined;
2079
1765
  warnings?: ({
2080
1766
  details?: string | undefined;
2081
1767
  type: "unsupported-setting";
@@ -2088,18 +1774,16 @@ export declare const vv: {
2088
1774
  type: "other";
2089
1775
  message: string;
2090
1776
  })[] | undefined;
2091
- userId?: string | undefined;
2092
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
2093
- agentName?: string | undefined;
1777
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
2094
1778
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
2095
1779
  stepId?: string | undefined;
2096
- tool: boolean;
2097
1780
  status: "pending" | "success" | "failed";
2098
1781
  order: number;
2099
1782
  threadId: import("convex/values").GenericId<"threads">;
2100
1783
  stepOrder: number;
1784
+ tool: boolean;
2101
1785
  };
2102
- fieldPaths: "_id" | ("text" | "id" | "providerOptions" | `providerOptions.${string}` | "reasoning" | "tool" | "files" | "message" | "fileIds" | "finishReason" | "error" | "model" | "provider" | "providerMetadata" | "sources" | "reasoningDetails" | "usage" | "warnings" | "message.role" | "message.providerOptions" | `message.providerOptions.${string}` | "message.content" | `providerMetadata.${string}` | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "_creationTime" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "agentName" | "parentMessageId" | "stepId");
1786
+ fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`);
2103
1787
  indexes: {
2104
1788
  threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
2105
1789
  embeddingId: ["embeddingId", "_creationTime"];
@@ -2114,19 +1798,153 @@ export declare const vv: {
2114
1798
  };
2115
1799
  vectorIndexes: {};
2116
1800
  };
1801
+ streamingMessages: {
1802
+ document: {
1803
+ _id: import("convex/values").GenericId<"streamingMessages">;
1804
+ _creationTime: number;
1805
+ userId?: string | undefined;
1806
+ agentName?: string | undefined;
1807
+ model?: string | undefined;
1808
+ provider?: string | undefined;
1809
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1810
+ order: number;
1811
+ threadId: import("convex/values").GenericId<"threads">;
1812
+ stepOrder: number;
1813
+ state: {
1814
+ timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
1815
+ kind: "streaming";
1816
+ lastHeartbeat: number;
1817
+ } | {
1818
+ kind: "finished";
1819
+ endedAt: number;
1820
+ } | {
1821
+ error: string;
1822
+ kind: "error";
1823
+ };
1824
+ };
1825
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt");
1826
+ indexes: {
1827
+ threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
1828
+ by_id: ["_id"];
1829
+ by_creation_time: ["_creationTime"];
1830
+ };
1831
+ searchIndexes: {};
1832
+ vectorIndexes: {};
1833
+ };
1834
+ streamDeltas: {
1835
+ document: {
1836
+ _id: import("convex/values").GenericId<"streamDeltas">;
1837
+ _creationTime: number;
1838
+ streamId: import("convex/values").GenericId<"streamingMessages">;
1839
+ start: number;
1840
+ end: number;
1841
+ parts: ({
1842
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1843
+ type: "tool-call";
1844
+ toolCallId: string;
1845
+ toolName: string;
1846
+ args: any;
1847
+ } | {
1848
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1849
+ args?: any;
1850
+ experimental_content?: ({
1851
+ type: "text";
1852
+ text: string;
1853
+ } | {
1854
+ mimeType?: string | undefined;
1855
+ type: "image";
1856
+ data: string;
1857
+ })[] | undefined;
1858
+ isError?: boolean | undefined;
1859
+ type: "tool-result";
1860
+ toolCallId: string;
1861
+ toolName: string;
1862
+ result: any;
1863
+ } | {
1864
+ type: "text-delta";
1865
+ textDelta: string;
1866
+ } | {
1867
+ type: "reasoning";
1868
+ textDelta: string;
1869
+ } | {
1870
+ type: "source";
1871
+ source: {
1872
+ title?: string | undefined;
1873
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1874
+ id: string;
1875
+ sourceType: "url";
1876
+ url: string;
1877
+ };
1878
+ } | {
1879
+ type: "tool-call-streaming-start";
1880
+ toolCallId: string;
1881
+ toolName: string;
1882
+ } | {
1883
+ type: "tool-call-delta";
1884
+ toolCallId: string;
1885
+ toolName: string;
1886
+ argsTextDelta: string;
1887
+ })[];
1888
+ };
1889
+ fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
1890
+ indexes: {
1891
+ streamId_start_end: ["streamId", "start", "end", "_creationTime"];
1892
+ by_id: ["_id"];
1893
+ by_creation_time: ["_creationTime"];
1894
+ };
1895
+ searchIndexes: {};
1896
+ vectorIndexes: {};
1897
+ };
1898
+ memories: {
1899
+ document: {
1900
+ _id: import("convex/values").GenericId<"memories">;
1901
+ _creationTime: number;
1902
+ userId?: string | undefined;
1903
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1904
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
1905
+ memory: string;
1906
+ };
1907
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
1908
+ indexes: {
1909
+ threadId: ["threadId", "_creationTime"];
1910
+ userId: ["userId", "_creationTime"];
1911
+ embeddingId: ["embeddingId", "_creationTime"];
1912
+ by_id: ["_id"];
1913
+ by_creation_time: ["_creationTime"];
1914
+ };
1915
+ searchIndexes: {};
1916
+ vectorIndexes: {};
1917
+ };
1918
+ apiKeys: {
1919
+ document: {
1920
+ _id: import("convex/values").GenericId<"apiKeys">;
1921
+ _creationTime: number;
1922
+ name?: string | undefined;
1923
+ };
1924
+ fieldPaths: "_id" | ("_creationTime" | "name");
1925
+ indexes: {
1926
+ name: ["name", "_creationTime"];
1927
+ by_id: ["_id"];
1928
+ by_creation_time: ["_creationTime"];
1929
+ };
1930
+ searchIndexes: {};
1931
+ vectorIndexes: {};
1932
+ };
1933
+ }>>(tableName: TableName) => import("convex/values").VId<import("convex/values").GenericId<TableName>, "required">;
1934
+ doc: <TableName extends import("convex/server").TableNamesInDataModel<{
2117
1935
  threads: {
2118
1936
  document: {
2119
1937
  _id: import("convex/values").GenericId<"threads">;
2120
1938
  _creationTime: number;
2121
- title?: string | undefined;
2122
1939
  userId?: string | undefined;
1940
+ title?: string | undefined;
2123
1941
  summary?: string | undefined;
2124
1942
  defaultSystemPrompt?: string | undefined;
2125
1943
  parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
2126
1944
  order?: number | undefined;
2127
1945
  status: "active" | "archived";
2128
1946
  };
2129
- fieldPaths: "_id" | ("title" | "_creationTime" | "status" | "userId" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
1947
+ fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
2130
1948
  indexes: {
2131
1949
  userId: ["userId", "_creationTime"];
2132
1950
  by_id: ["_id"];
@@ -2135,19 +1953,19 @@ export declare const vv: {
2135
1953
  searchIndexes: {};
2136
1954
  vectorIndexes: {};
2137
1955
  };
2138
- embeddings_1024: {
1956
+ embeddings_128: {
2139
1957
  document: {
2140
- _id: import("convex/values").GenericId<"embeddings_1024">;
1958
+ _id: import("convex/values").GenericId<"embeddings_128">;
2141
1959
  _creationTime: number;
2142
1960
  userId?: string | undefined;
2143
1961
  threadId?: string | undefined;
2144
1962
  model_table_userId?: string[] | undefined;
2145
1963
  model_table_threadId?: string[] | undefined;
2146
- vector: number[];
2147
1964
  model: string;
2148
1965
  table: string;
1966
+ vector: number[];
2149
1967
  };
2150
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1968
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2151
1969
  indexes: {
2152
1970
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2153
1971
  by_id: ["_id"];
@@ -2157,24 +1975,24 @@ export declare const vv: {
2157
1975
  vectorIndexes: {
2158
1976
  vector: {
2159
1977
  vectorField: "vector";
2160
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1978
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2161
1979
  filterFields: "model_table_userId" | "model_table_threadId";
2162
1980
  };
2163
1981
  };
2164
1982
  };
2165
- embeddings_128: {
1983
+ embeddings_256: {
2166
1984
  document: {
2167
- _id: import("convex/values").GenericId<"embeddings_128">;
1985
+ _id: import("convex/values").GenericId<"embeddings_256">;
2168
1986
  _creationTime: number;
2169
1987
  userId?: string | undefined;
2170
1988
  threadId?: string | undefined;
2171
1989
  model_table_userId?: string[] | undefined;
2172
1990
  model_table_threadId?: string[] | undefined;
2173
- vector: number[];
2174
1991
  model: string;
2175
1992
  table: string;
1993
+ vector: number[];
2176
1994
  };
2177
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1995
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2178
1996
  indexes: {
2179
1997
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2180
1998
  by_id: ["_id"];
@@ -2184,24 +2002,24 @@ export declare const vv: {
2184
2002
  vectorIndexes: {
2185
2003
  vector: {
2186
2004
  vectorField: "vector";
2187
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2005
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2188
2006
  filterFields: "model_table_userId" | "model_table_threadId";
2189
2007
  };
2190
2008
  };
2191
2009
  };
2192
- embeddings_256: {
2010
+ embeddings_512: {
2193
2011
  document: {
2194
- _id: import("convex/values").GenericId<"embeddings_256">;
2012
+ _id: import("convex/values").GenericId<"embeddings_512">;
2195
2013
  _creationTime: number;
2196
2014
  userId?: string | undefined;
2197
2015
  threadId?: string | undefined;
2198
2016
  model_table_userId?: string[] | undefined;
2199
2017
  model_table_threadId?: string[] | undefined;
2200
- vector: number[];
2201
2018
  model: string;
2202
2019
  table: string;
2020
+ vector: number[];
2203
2021
  };
2204
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2022
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2205
2023
  indexes: {
2206
2024
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2207
2025
  by_id: ["_id"];
@@ -2211,24 +2029,24 @@ export declare const vv: {
2211
2029
  vectorIndexes: {
2212
2030
  vector: {
2213
2031
  vectorField: "vector";
2214
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2032
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2215
2033
  filterFields: "model_table_userId" | "model_table_threadId";
2216
2034
  };
2217
2035
  };
2218
2036
  };
2219
- embeddings_512: {
2037
+ embeddings_768: {
2220
2038
  document: {
2221
- _id: import("convex/values").GenericId<"embeddings_512">;
2039
+ _id: import("convex/values").GenericId<"embeddings_768">;
2222
2040
  _creationTime: number;
2223
2041
  userId?: string | undefined;
2224
2042
  threadId?: string | undefined;
2225
2043
  model_table_userId?: string[] | undefined;
2226
2044
  model_table_threadId?: string[] | undefined;
2227
- vector: number[];
2228
2045
  model: string;
2229
2046
  table: string;
2047
+ vector: number[];
2230
2048
  };
2231
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2049
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2232
2050
  indexes: {
2233
2051
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2234
2052
  by_id: ["_id"];
@@ -2238,24 +2056,24 @@ export declare const vv: {
2238
2056
  vectorIndexes: {
2239
2057
  vector: {
2240
2058
  vectorField: "vector";
2241
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2059
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2242
2060
  filterFields: "model_table_userId" | "model_table_threadId";
2243
2061
  };
2244
2062
  };
2245
2063
  };
2246
- embeddings_768: {
2064
+ embeddings_1024: {
2247
2065
  document: {
2248
- _id: import("convex/values").GenericId<"embeddings_768">;
2066
+ _id: import("convex/values").GenericId<"embeddings_1024">;
2249
2067
  _creationTime: number;
2250
2068
  userId?: string | undefined;
2251
2069
  threadId?: string | undefined;
2252
2070
  model_table_userId?: string[] | undefined;
2253
2071
  model_table_threadId?: string[] | undefined;
2254
- vector: number[];
2255
2072
  model: string;
2256
2073
  table: string;
2074
+ vector: number[];
2257
2075
  };
2258
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2076
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2259
2077
  indexes: {
2260
2078
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2261
2079
  by_id: ["_id"];
@@ -2265,7 +2083,7 @@ export declare const vv: {
2265
2083
  vectorIndexes: {
2266
2084
  vector: {
2267
2085
  vectorField: "vector";
2268
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2086
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2269
2087
  filterFields: "model_table_userId" | "model_table_threadId";
2270
2088
  };
2271
2089
  };
@@ -2278,11 +2096,11 @@ export declare const vv: {
2278
2096
  threadId?: string | undefined;
2279
2097
  model_table_userId?: string[] | undefined;
2280
2098
  model_table_threadId?: string[] | undefined;
2281
- vector: number[];
2282
2099
  model: string;
2283
2100
  table: string;
2101
+ vector: number[];
2284
2102
  };
2285
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2103
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2286
2104
  indexes: {
2287
2105
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2288
2106
  by_id: ["_id"];
@@ -2292,7 +2110,7 @@ export declare const vv: {
2292
2110
  vectorIndexes: {
2293
2111
  vector: {
2294
2112
  vectorField: "vector";
2295
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2113
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2296
2114
  filterFields: "model_table_userId" | "model_table_threadId";
2297
2115
  };
2298
2116
  };
@@ -2305,11 +2123,11 @@ export declare const vv: {
2305
2123
  threadId?: string | undefined;
2306
2124
  model_table_userId?: string[] | undefined;
2307
2125
  model_table_threadId?: string[] | undefined;
2308
- vector: number[];
2309
2126
  model: string;
2310
2127
  table: string;
2128
+ vector: number[];
2311
2129
  };
2312
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2130
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2313
2131
  indexes: {
2314
2132
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2315
2133
  by_id: ["_id"];
@@ -2319,7 +2137,7 @@ export declare const vv: {
2319
2137
  vectorIndexes: {
2320
2138
  vector: {
2321
2139
  vectorField: "vector";
2322
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2140
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2323
2141
  filterFields: "model_table_userId" | "model_table_threadId";
2324
2142
  };
2325
2143
  };
@@ -2332,11 +2150,11 @@ export declare const vv: {
2332
2150
  threadId?: string | undefined;
2333
2151
  model_table_userId?: string[] | undefined;
2334
2152
  model_table_threadId?: string[] | undefined;
2335
- vector: number[];
2336
2153
  model: string;
2337
2154
  table: string;
2155
+ vector: number[];
2338
2156
  };
2339
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2157
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2340
2158
  indexes: {
2341
2159
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2342
2160
  by_id: ["_id"];
@@ -2346,7 +2164,7 @@ export declare const vv: {
2346
2164
  vectorIndexes: {
2347
2165
  vector: {
2348
2166
  vectorField: "vector";
2349
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2167
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2350
2168
  filterFields: "model_table_userId" | "model_table_threadId";
2351
2169
  };
2352
2170
  };
@@ -2359,11 +2177,11 @@ export declare const vv: {
2359
2177
  threadId?: string | undefined;
2360
2178
  model_table_userId?: string[] | undefined;
2361
2179
  model_table_threadId?: string[] | undefined;
2362
- vector: number[];
2363
2180
  model: string;
2364
2181
  table: string;
2182
+ vector: number[];
2365
2183
  };
2366
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2184
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2367
2185
  indexes: {
2368
2186
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2369
2187
  by_id: ["_id"];
@@ -2373,7 +2191,7 @@ export declare const vv: {
2373
2191
  vectorIndexes: {
2374
2192
  vector: {
2375
2193
  vectorField: "vector";
2376
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2194
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2377
2195
  filterFields: "model_table_userId" | "model_table_threadId";
2378
2196
  };
2379
2197
  };
@@ -2386,34 +2204,201 @@ export declare const vv: {
2386
2204
  threadId?: string | undefined;
2387
2205
  model_table_userId?: string[] | undefined;
2388
2206
  model_table_threadId?: string[] | undefined;
2389
- vector: number[];
2390
2207
  model: string;
2391
2208
  table: string;
2209
+ vector: number[];
2210
+ };
2211
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2212
+ indexes: {
2213
+ model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2214
+ by_id: ["_id"];
2215
+ by_creation_time: ["_creationTime"];
2216
+ };
2217
+ searchIndexes: import("convex/server").GenericTableSearchIndexes;
2218
+ vectorIndexes: {
2219
+ vector: {
2220
+ vectorField: "vector";
2221
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2222
+ filterFields: "model_table_userId" | "model_table_threadId";
2223
+ };
2224
+ };
2225
+ };
2226
+ files: {
2227
+ document: {
2228
+ _id: import("convex/values").GenericId<"files">;
2229
+ _creationTime: number;
2230
+ filename?: string | undefined;
2231
+ mimeType: string;
2232
+ storageId: string;
2233
+ hash: string;
2234
+ refcount: number;
2235
+ lastTouchedAt: number;
2236
+ };
2237
+ fieldPaths: "_id" | ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
2238
+ indexes: {
2239
+ hash: ["hash", "_creationTime"];
2240
+ refcount: ["refcount", "_creationTime"];
2241
+ by_id: ["_id"];
2242
+ by_creation_time: ["_creationTime"];
2243
+ };
2244
+ searchIndexes: {};
2245
+ vectorIndexes: {};
2246
+ };
2247
+ messages: {
2248
+ document: {
2249
+ _id: import("convex/values").GenericId<"messages">;
2250
+ _creationTime: number;
2251
+ id?: string | undefined;
2252
+ userId?: string | undefined;
2253
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
2254
+ fileIds?: import("convex/values").GenericId<"files">[] | undefined;
2255
+ files?: any[] | undefined;
2256
+ error?: string | undefined;
2257
+ agentName?: string | undefined;
2258
+ model?: string | undefined;
2259
+ provider?: string | undefined;
2260
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2261
+ message?: {
2262
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2263
+ role: "user";
2264
+ content: string | ({
2265
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2266
+ type: "text";
2267
+ text: string;
2268
+ } | {
2269
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2270
+ mimeType?: string | undefined;
2271
+ type: "image";
2272
+ image: string | ArrayBuffer;
2273
+ } | {
2274
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2275
+ filename?: string | undefined;
2276
+ type: "file";
2277
+ mimeType: string;
2278
+ data: string | ArrayBuffer;
2279
+ })[];
2280
+ } | {
2281
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2282
+ role: "assistant";
2283
+ content: string | ({
2284
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2285
+ type: "text";
2286
+ text: string;
2287
+ } | {
2288
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2289
+ filename?: string | undefined;
2290
+ type: "file";
2291
+ mimeType: string;
2292
+ data: string | ArrayBuffer;
2293
+ } | {
2294
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2295
+ signature?: string | undefined;
2296
+ type: "reasoning";
2297
+ text: string;
2298
+ } | {
2299
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2300
+ type: "redacted-reasoning";
2301
+ data: string;
2302
+ } | {
2303
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2304
+ type: "tool-call";
2305
+ toolCallId: string;
2306
+ toolName: string;
2307
+ args: any;
2308
+ })[];
2309
+ } | {
2310
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2311
+ role: "tool";
2312
+ content: {
2313
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2314
+ args?: any;
2315
+ experimental_content?: ({
2316
+ type: "text";
2317
+ text: string;
2318
+ } | {
2319
+ mimeType?: string | undefined;
2320
+ type: "image";
2321
+ data: string;
2322
+ })[] | undefined;
2323
+ isError?: boolean | undefined;
2324
+ type: "tool-result";
2325
+ toolCallId: string;
2326
+ toolName: string;
2327
+ result: any;
2328
+ }[];
2329
+ } | {
2330
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2331
+ role: "system";
2332
+ content: string;
2333
+ } | undefined;
2334
+ text?: string | undefined;
2335
+ reasoning?: string | undefined;
2336
+ usage?: {
2337
+ promptTokens: number;
2338
+ completionTokens: number;
2339
+ totalTokens: number;
2340
+ } | undefined;
2341
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
2342
+ sources?: {
2343
+ title?: string | undefined;
2344
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2345
+ id: string;
2346
+ sourceType: "url";
2347
+ url: string;
2348
+ }[] | undefined;
2349
+ reasoningDetails?: ({
2350
+ signature?: string | undefined;
2351
+ type: "text";
2352
+ text: string;
2353
+ } | {
2354
+ type: "redacted";
2355
+ data: string;
2356
+ })[] | undefined;
2357
+ warnings?: ({
2358
+ details?: string | undefined;
2359
+ type: "unsupported-setting";
2360
+ setting: string;
2361
+ } | {
2362
+ details?: string | undefined;
2363
+ type: "unsupported-tool";
2364
+ tool: any;
2365
+ } | {
2366
+ type: "other";
2367
+ message: string;
2368
+ })[] | undefined;
2369
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
2370
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
2371
+ stepId?: string | undefined;
2372
+ status: "pending" | "success" | "failed";
2373
+ order: number;
2374
+ threadId: import("convex/values").GenericId<"threads">;
2375
+ stepOrder: number;
2376
+ tool: boolean;
2392
2377
  };
2393
- fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2378
+ fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`);
2394
2379
  indexes: {
2395
- model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2380
+ threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
2381
+ embeddingId: ["embeddingId", "_creationTime"];
2396
2382
  by_id: ["_id"];
2397
2383
  by_creation_time: ["_creationTime"];
2398
2384
  };
2399
- searchIndexes: import("convex/server").GenericTableSearchIndexes;
2400
- vectorIndexes: {
2401
- vector: {
2402
- vectorField: "vector";
2403
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2404
- filterFields: "model_table_userId" | "model_table_threadId";
2385
+ searchIndexes: {
2386
+ text_search: {
2387
+ searchField: "text";
2388
+ filterFields: "userId" | "threadId";
2405
2389
  };
2406
2390
  };
2391
+ vectorIndexes: {};
2407
2392
  };
2408
2393
  streamingMessages: {
2409
2394
  document: {
2410
2395
  _id: import("convex/values").GenericId<"streamingMessages">;
2411
2396
  _creationTime: number;
2412
- providerOptions?: Record<string, Record<string, any>> | undefined;
2413
- model?: string | undefined;
2414
- provider?: string | undefined;
2415
2397
  userId?: string | undefined;
2416
2398
  agentName?: string | undefined;
2399
+ model?: string | undefined;
2400
+ provider?: string | undefined;
2401
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2417
2402
  order: number;
2418
2403
  threadId: import("convex/values").GenericId<"threads">;
2419
2404
  stepOrder: number;
@@ -2429,7 +2414,7 @@ export declare const vv: {
2429
2414
  kind: "error";
2430
2415
  };
2431
2416
  };
2432
- fieldPaths: "_id" | ("providerOptions" | `providerOptions.${string}` | "model" | "provider" | "_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt");
2417
+ fieldPaths: "_id" | ("_creationTime" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt");
2433
2418
  indexes: {
2434
2419
  threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
2435
2420
  by_id: ["_id"];
@@ -2442,6 +2427,9 @@ export declare const vv: {
2442
2427
  document: {
2443
2428
  _id: import("convex/values").GenericId<"streamDeltas">;
2444
2429
  _creationTime: number;
2430
+ streamId: import("convex/values").GenericId<"streamingMessages">;
2431
+ start: number;
2432
+ end: number;
2445
2433
  parts: ({
2446
2434
  providerOptions?: Record<string, Record<string, any>> | undefined;
2447
2435
  type: "tool-call";
@@ -2473,8 +2461,8 @@ export declare const vv: {
2473
2461
  } | {
2474
2462
  type: "source";
2475
2463
  source: {
2476
- providerOptions?: Record<string, Record<string, any>> | undefined;
2477
2464
  title?: string | undefined;
2465
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2478
2466
  id: string;
2479
2467
  sourceType: "url";
2480
2468
  url: string;
@@ -2489,11 +2477,8 @@ export declare const vv: {
2489
2477
  toolName: string;
2490
2478
  argsTextDelta: string;
2491
2479
  })[];
2492
- streamId: import("convex/values").GenericId<"streamingMessages">;
2493
- start: number;
2494
- end: number;
2495
2480
  };
2496
- fieldPaths: "_id" | ("parts" | "_creationTime" | "streamId" | "start" | "end");
2481
+ fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
2497
2482
  indexes: {
2498
2483
  streamId_start_end: ["streamId", "start", "end", "_creationTime"];
2499
2484
  by_id: ["_id"];
@@ -2508,7 +2493,7 @@ export declare const vv: {
2508
2493
  _creationTime: number;
2509
2494
  userId?: string | undefined;
2510
2495
  threadId?: import("convex/values").GenericId<"threads"> | undefined;
2511
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
2496
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
2512
2497
  memory: string;
2513
2498
  };
2514
2499
  fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
@@ -2522,6 +2507,21 @@ export declare const vv: {
2522
2507
  searchIndexes: {};
2523
2508
  vectorIndexes: {};
2524
2509
  };
2510
+ apiKeys: {
2511
+ document: {
2512
+ _id: import("convex/values").GenericId<"apiKeys">;
2513
+ _creationTime: number;
2514
+ name?: string | undefined;
2515
+ };
2516
+ fieldPaths: "_id" | ("_creationTime" | "name");
2517
+ indexes: {
2518
+ name: ["name", "_creationTime"];
2519
+ by_id: ["_id"];
2520
+ by_creation_time: ["_creationTime"];
2521
+ };
2522
+ searchIndexes: {};
2523
+ vectorIndexes: {};
2524
+ };
2525
2525
  }>>(tableName: TableName) => import("convex-helpers/validators").AddFieldsToValidator<{
2526
2526
  apiKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
2527
2527
  name?: string | undefined;
@@ -2530,14 +2530,14 @@ export declare const vv: {
2530
2530
  }, "required", "name">, {
2531
2531
  name: ["name", "_creationTime"];
2532
2532
  }, {}, {}>;
2533
- embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
2533
+ embeddings_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
2534
2534
  userId?: string | undefined;
2535
2535
  threadId?: string | undefined;
2536
2536
  model_table_userId?: string[] | undefined;
2537
2537
  model_table_threadId?: string[] | undefined;
2538
- vector: number[];
2539
2538
  model: string;
2540
2539
  table: string;
2540
+ vector: number[];
2541
2541
  }, {
2542
2542
  model: import("convex/values").VString<string, "required">;
2543
2543
  table: import("convex/values").VString<string, "required">;
@@ -2546,23 +2546,23 @@ export declare const vv: {
2546
2546
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2547
2547
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2548
2548
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2549
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2549
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2550
2550
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2551
2551
  }, import("convex/server").GenericTableSearchIndexes, {
2552
2552
  vector: {
2553
2553
  vectorField: "vector";
2554
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2554
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2555
2555
  filterFields: "model_table_userId" | "model_table_threadId";
2556
2556
  };
2557
2557
  }>;
2558
- embeddings_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
2558
+ embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
2559
2559
  userId?: string | undefined;
2560
2560
  threadId?: string | undefined;
2561
2561
  model_table_userId?: string[] | undefined;
2562
2562
  model_table_threadId?: string[] | undefined;
2563
- vector: number[];
2564
2563
  model: string;
2565
2564
  table: string;
2565
+ vector: number[];
2566
2566
  }, {
2567
2567
  model: import("convex/values").VString<string, "required">;
2568
2568
  table: import("convex/values").VString<string, "required">;
@@ -2571,23 +2571,23 @@ export declare const vv: {
2571
2571
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2572
2572
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2573
2573
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2574
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2574
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2575
2575
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2576
2576
  }, import("convex/server").GenericTableSearchIndexes, {
2577
2577
  vector: {
2578
2578
  vectorField: "vector";
2579
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2579
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2580
2580
  filterFields: "model_table_userId" | "model_table_threadId";
2581
2581
  };
2582
2582
  }>;
2583
- embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
2583
+ embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
2584
2584
  userId?: string | undefined;
2585
2585
  threadId?: string | undefined;
2586
2586
  model_table_userId?: string[] | undefined;
2587
2587
  model_table_threadId?: string[] | undefined;
2588
- vector: number[];
2589
2588
  model: string;
2590
2589
  table: string;
2590
+ vector: number[];
2591
2591
  }, {
2592
2592
  model: import("convex/values").VString<string, "required">;
2593
2593
  table: import("convex/values").VString<string, "required">;
@@ -2596,23 +2596,23 @@ export declare const vv: {
2596
2596
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2597
2597
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2598
2598
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2599
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2599
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2600
2600
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2601
2601
  }, import("convex/server").GenericTableSearchIndexes, {
2602
2602
  vector: {
2603
2603
  vectorField: "vector";
2604
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2604
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2605
2605
  filterFields: "model_table_userId" | "model_table_threadId";
2606
2606
  };
2607
2607
  }>;
2608
- embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
2608
+ embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
2609
2609
  userId?: string | undefined;
2610
2610
  threadId?: string | undefined;
2611
2611
  model_table_userId?: string[] | undefined;
2612
2612
  model_table_threadId?: string[] | undefined;
2613
- vector: number[];
2614
2613
  model: string;
2615
2614
  table: string;
2615
+ vector: number[];
2616
2616
  }, {
2617
2617
  model: import("convex/values").VString<string, "required">;
2618
2618
  table: import("convex/values").VString<string, "required">;
@@ -2621,23 +2621,23 @@ export declare const vv: {
2621
2621
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2622
2622
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2623
2623
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2624
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2624
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2625
2625
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2626
2626
  }, import("convex/server").GenericTableSearchIndexes, {
2627
2627
  vector: {
2628
2628
  vectorField: "vector";
2629
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2629
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2630
2630
  filterFields: "model_table_userId" | "model_table_threadId";
2631
2631
  };
2632
2632
  }>;
2633
- embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
2633
+ embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
2634
2634
  userId?: string | undefined;
2635
2635
  threadId?: string | undefined;
2636
2636
  model_table_userId?: string[] | undefined;
2637
2637
  model_table_threadId?: string[] | undefined;
2638
- vector: number[];
2639
2638
  model: string;
2640
2639
  table: string;
2640
+ vector: number[];
2641
2641
  }, {
2642
2642
  model: import("convex/values").VString<string, "required">;
2643
2643
  table: import("convex/values").VString<string, "required">;
@@ -2646,12 +2646,12 @@ export declare const vv: {
2646
2646
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2647
2647
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2648
2648
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2649
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2649
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2650
2650
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2651
2651
  }, import("convex/server").GenericTableSearchIndexes, {
2652
2652
  vector: {
2653
2653
  vectorField: "vector";
2654
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2654
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2655
2655
  filterFields: "model_table_userId" | "model_table_threadId";
2656
2656
  };
2657
2657
  }>;
@@ -2660,9 +2660,9 @@ export declare const vv: {
2660
2660
  threadId?: string | undefined;
2661
2661
  model_table_userId?: string[] | undefined;
2662
2662
  model_table_threadId?: string[] | undefined;
2663
- vector: number[];
2664
2663
  model: string;
2665
2664
  table: string;
2665
+ vector: number[];
2666
2666
  }, {
2667
2667
  model: import("convex/values").VString<string, "required">;
2668
2668
  table: import("convex/values").VString<string, "required">;
@@ -2671,12 +2671,12 @@ export declare const vv: {
2671
2671
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2672
2672
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2673
2673
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2674
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2674
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2675
2675
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2676
2676
  }, import("convex/server").GenericTableSearchIndexes, {
2677
2677
  vector: {
2678
2678
  vectorField: "vector";
2679
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2679
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2680
2680
  filterFields: "model_table_userId" | "model_table_threadId";
2681
2681
  };
2682
2682
  }>;
@@ -2685,9 +2685,9 @@ export declare const vv: {
2685
2685
  threadId?: string | undefined;
2686
2686
  model_table_userId?: string[] | undefined;
2687
2687
  model_table_threadId?: string[] | undefined;
2688
- vector: number[];
2689
2688
  model: string;
2690
2689
  table: string;
2690
+ vector: number[];
2691
2691
  }, {
2692
2692
  model: import("convex/values").VString<string, "required">;
2693
2693
  table: import("convex/values").VString<string, "required">;
@@ -2696,12 +2696,12 @@ export declare const vv: {
2696
2696
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2697
2697
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2698
2698
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2699
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2699
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2700
2700
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2701
2701
  }, import("convex/server").GenericTableSearchIndexes, {
2702
2702
  vector: {
2703
2703
  vectorField: "vector";
2704
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2704
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2705
2705
  filterFields: "model_table_userId" | "model_table_threadId";
2706
2706
  };
2707
2707
  }>;
@@ -2710,9 +2710,9 @@ export declare const vv: {
2710
2710
  threadId?: string | undefined;
2711
2711
  model_table_userId?: string[] | undefined;
2712
2712
  model_table_threadId?: string[] | undefined;
2713
- vector: number[];
2714
2713
  model: string;
2715
2714
  table: string;
2715
+ vector: number[];
2716
2716
  }, {
2717
2717
  model: import("convex/values").VString<string, "required">;
2718
2718
  table: import("convex/values").VString<string, "required">;
@@ -2721,12 +2721,12 @@ export declare const vv: {
2721
2721
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2722
2722
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2723
2723
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2724
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2724
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2725
2725
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2726
2726
  }, import("convex/server").GenericTableSearchIndexes, {
2727
2727
  vector: {
2728
2728
  vectorField: "vector";
2729
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2729
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2730
2730
  filterFields: "model_table_userId" | "model_table_threadId";
2731
2731
  };
2732
2732
  }>;
@@ -2735,9 +2735,9 @@ export declare const vv: {
2735
2735
  threadId?: string | undefined;
2736
2736
  model_table_userId?: string[] | undefined;
2737
2737
  model_table_threadId?: string[] | undefined;
2738
- vector: number[];
2739
2738
  model: string;
2740
2739
  table: string;
2740
+ vector: number[];
2741
2741
  }, {
2742
2742
  model: import("convex/values").VString<string, "required">;
2743
2743
  table: import("convex/values").VString<string, "required">;
@@ -2746,12 +2746,12 @@ export declare const vv: {
2746
2746
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2747
2747
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2748
2748
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2749
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2749
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2750
2750
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2751
2751
  }, import("convex/server").GenericTableSearchIndexes, {
2752
2752
  vector: {
2753
2753
  vectorField: "vector";
2754
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2754
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2755
2755
  filterFields: "model_table_userId" | "model_table_threadId";
2756
2756
  };
2757
2757
  }>;
@@ -2760,9 +2760,9 @@ export declare const vv: {
2760
2760
  threadId?: string | undefined;
2761
2761
  model_table_userId?: string[] | undefined;
2762
2762
  model_table_threadId?: string[] | undefined;
2763
- vector: number[];
2764
2763
  model: string;
2765
2764
  table: string;
2765
+ vector: number[];
2766
2766
  }, {
2767
2767
  model: import("convex/values").VString<string, "required">;
2768
2768
  table: import("convex/values").VString<string, "required">;
@@ -2771,18 +2771,18 @@ export declare const vv: {
2771
2771
  model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2772
2772
  model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
2773
2773
  vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
2774
- }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2774
+ }, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2775
2775
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2776
2776
  }, import("convex/server").GenericTableSearchIndexes, {
2777
2777
  vector: {
2778
2778
  vectorField: "vector";
2779
- dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2779
+ dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2780
2780
  filterFields: "model_table_userId" | "model_table_threadId";
2781
2781
  };
2782
2782
  }>;
2783
2783
  threads: import("convex/server").TableDefinition<import("convex/values").VObject<{
2784
- title?: string | undefined;
2785
2784
  userId?: string | undefined;
2785
+ title?: string | undefined;
2786
2786
  summary?: string | undefined;
2787
2787
  defaultSystemPrompt?: string | undefined;
2788
2788
  parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
@@ -2796,15 +2796,20 @@ export declare const vv: {
2796
2796
  defaultSystemPrompt: import("convex/values").VString<string | undefined, "optional">;
2797
2797
  parentThreadIds: import("convex/values").VArray<import("convex/values").GenericId<"threads">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">, "optional">;
2798
2798
  order: import("convex/values").VFloat64<number | undefined, "optional">;
2799
- }, "required", "title" | "status" | "userId" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, {
2799
+ }, "required", "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, {
2800
2800
  userId: ["userId", "_creationTime"];
2801
2801
  }, {}, {}>;
2802
2802
  messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
2803
- text?: string | undefined;
2804
2803
  id?: string | undefined;
2805
- providerOptions?: Record<string, Record<string, any>> | undefined;
2806
- reasoning?: string | undefined;
2804
+ userId?: string | undefined;
2805
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
2806
+ fileIds?: import("convex/values").GenericId<"files">[] | undefined;
2807
2807
  files?: any[] | undefined;
2808
+ error?: string | undefined;
2809
+ agentName?: string | undefined;
2810
+ model?: string | undefined;
2811
+ provider?: string | undefined;
2812
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2808
2813
  message?: {
2809
2814
  providerOptions?: Record<string, Record<string, any>> | undefined;
2810
2815
  role: "user";
@@ -2878,15 +2883,17 @@ export declare const vv: {
2878
2883
  role: "system";
2879
2884
  content: string;
2880
2885
  } | undefined;
2881
- fileIds?: import("convex/values").GenericId<"files">[] | undefined;
2882
- finishReason?: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined;
2883
- error?: string | undefined;
2884
- model?: string | undefined;
2885
- provider?: string | undefined;
2886
+ text?: string | undefined;
2887
+ reasoning?: string | undefined;
2888
+ usage?: {
2889
+ promptTokens: number;
2890
+ completionTokens: number;
2891
+ totalTokens: number;
2892
+ } | undefined;
2886
2893
  providerMetadata?: Record<string, Record<string, any>> | undefined;
2887
2894
  sources?: {
2888
- providerOptions?: Record<string, Record<string, any>> | undefined;
2889
2895
  title?: string | undefined;
2896
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2890
2897
  id: string;
2891
2898
  sourceType: "url";
2892
2899
  url: string;
@@ -2899,11 +2906,6 @@ export declare const vv: {
2899
2906
  type: "redacted";
2900
2907
  data: string;
2901
2908
  })[] | undefined;
2902
- usage?: {
2903
- promptTokens: number;
2904
- completionTokens: number;
2905
- totalTokens: number;
2906
- } | undefined;
2907
2909
  warnings?: ({
2908
2910
  details?: string | undefined;
2909
2911
  type: "unsupported-setting";
@@ -2916,23 +2918,21 @@ export declare const vv: {
2916
2918
  type: "other";
2917
2919
  message: string;
2918
2920
  })[] | undefined;
2919
- userId?: string | undefined;
2920
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
2921
- agentName?: string | undefined;
2921
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
2922
2922
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
2923
2923
  stepId?: string | undefined;
2924
- tool: boolean;
2925
2924
  status: "pending" | "success" | "failed";
2926
2925
  order: number;
2927
2926
  threadId: import("convex/values").GenericId<"threads">;
2928
2927
  stepOrder: number;
2928
+ tool: boolean;
2929
2929
  }, {
2930
2930
  id: import("convex/values").VString<string | undefined, "optional">;
2931
2931
  userId: import("convex/values").VString<string | undefined, "optional">;
2932
2932
  threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
2933
2933
  order: import("convex/values").VFloat64<number, "required">;
2934
2934
  stepOrder: import("convex/values").VFloat64<number, "required">;
2935
- embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
2935
+ embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
2936
2936
  fileIds: import("convex/values").VArray<import("convex/values").GenericId<"files">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"files">, "required">, "optional">;
2937
2937
  error: import("convex/values").VString<string | undefined, "optional">;
2938
2938
  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>;
@@ -3086,7 +3086,7 @@ export declare const vv: {
3086
3086
  type: import("convex/values").VLiteral<"text", "required">;
3087
3087
  text: import("convex/values").VString<string, "required">;
3088
3088
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3089
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
3089
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
3090
3090
  providerOptions?: Record<string, Record<string, any>> | undefined;
3091
3091
  mimeType?: string | undefined;
3092
3092
  type: "image";
@@ -3108,9 +3108,9 @@ export declare const vv: {
3108
3108
  filename: import("convex/values").VString<string | undefined, "optional">;
3109
3109
  mimeType: import("convex/values").VString<string, "required">;
3110
3110
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3111
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
3111
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
3112
3112
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3113
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3113
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3114
3114
  providerOptions?: Record<string, Record<string, any>> | undefined;
3115
3115
  role: "assistant";
3116
3116
  content: string | ({
@@ -3224,7 +3224,7 @@ export declare const vv: {
3224
3224
  type: import("convex/values").VLiteral<"text", "required">;
3225
3225
  text: import("convex/values").VString<string, "required">;
3226
3226
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3227
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
3227
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
3228
3228
  providerOptions?: Record<string, Record<string, any>> | undefined;
3229
3229
  filename?: string | undefined;
3230
3230
  type: "file";
@@ -3246,7 +3246,7 @@ export declare const vv: {
3246
3246
  text: import("convex/values").VString<string, "required">;
3247
3247
  signature: import("convex/values").VString<string | undefined, "optional">;
3248
3248
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3249
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
3249
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
3250
3250
  providerOptions?: Record<string, Record<string, any>> | undefined;
3251
3251
  type: "redacted-reasoning";
3252
3252
  data: string;
@@ -3266,9 +3266,9 @@ export declare const vv: {
3266
3266
  toolName: import("convex/values").VString<string, "required">;
3267
3267
  args: import("convex/values").VAny<any, "required", string>;
3268
3268
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3269
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
3269
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
3270
3270
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3271
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3271
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3272
3272
  providerOptions?: Record<string, Record<string, any>> | undefined;
3273
3273
  role: "tool";
3274
3274
  content: {
@@ -3361,7 +3361,7 @@ export declare const vv: {
3361
3361
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3362
3362
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
3363
3363
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3364
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3364
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3365
3365
  providerOptions?: Record<string, Record<string, any>> | undefined;
3366
3366
  role: "system";
3367
3367
  content: string;
@@ -3369,7 +3369,7 @@ export declare const vv: {
3369
3369
  role: import("convex/values").VLiteral<"system", "required">;
3370
3370
  content: import("convex/values").VString<string, "required">;
3371
3371
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3372
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">], "optional", "role" | "providerOptions" | `providerOptions.${string}` | "content">;
3372
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
3373
3373
  tool: import("convex/values").VBoolean<boolean, "required">;
3374
3374
  text: import("convex/values").VString<string | undefined, "optional">;
3375
3375
  usage: import("convex/values").VObject<{
@@ -3383,14 +3383,14 @@ export declare const vv: {
3383
3383
  }, "optional", "promptTokens" | "completionTokens" | "totalTokens">;
3384
3384
  providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3385
3385
  sources: import("convex/values").VArray<{
3386
- providerOptions?: Record<string, Record<string, any>> | undefined;
3387
3386
  title?: string | undefined;
3387
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3388
3388
  id: string;
3389
3389
  sourceType: "url";
3390
3390
  url: string;
3391
3391
  }[] | undefined, import("convex/values").VObject<{
3392
- providerOptions?: Record<string, Record<string, any>> | undefined;
3393
3392
  title?: string | undefined;
3393
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3394
3394
  id: string;
3395
3395
  sourceType: "url";
3396
3396
  url: string;
@@ -3400,7 +3400,7 @@ export declare const vv: {
3400
3400
  url: import("convex/values").VString<string, "required">;
3401
3401
  title: import("convex/values").VString<string | undefined, "optional">;
3402
3402
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3403
- }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "optional">;
3403
+ }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "optional">;
3404
3404
  reasoning: import("convex/values").VString<string | undefined, "optional">;
3405
3405
  reasoningDetails: import("convex/values").VArray<({
3406
3406
  signature?: string | undefined;
@@ -3475,12 +3475,12 @@ export declare const vv: {
3475
3475
  }, {
3476
3476
  type: import("convex/values").VLiteral<"other", "required">;
3477
3477
  message: import("convex/values").VString<string, "required">;
3478
- }, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
3479
- finishReason: import("convex/values").VUnion<"length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
3478
+ }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
3479
+ finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
3480
3480
  parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
3481
3481
  stepId: import("convex/values").VString<string | undefined, "optional">;
3482
3482
  files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
3483
- }, "required", "text" | "id" | "providerOptions" | `providerOptions.${string}` | "reasoning" | "tool" | "files" | "message" | "fileIds" | "finishReason" | "error" | "model" | "provider" | "providerMetadata" | "sources" | "reasoningDetails" | "usage" | "warnings" | "message.role" | "message.providerOptions" | `message.providerOptions.${string}` | "message.content" | `providerMetadata.${string}` | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "agentName" | "parentMessageId" | "stepId">, {
3483
+ }, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>, {
3484
3484
  threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
3485
3485
  embeddingId: ["embeddingId", "_creationTime"];
3486
3486
  }, {
@@ -3490,11 +3490,11 @@ export declare const vv: {
3490
3490
  };
3491
3491
  }, {}>;
3492
3492
  streamingMessages: import("convex/server").TableDefinition<import("convex/values").VObject<{
3493
- providerOptions?: Record<string, Record<string, any>> | undefined;
3494
- model?: string | undefined;
3495
- provider?: string | undefined;
3496
3493
  userId?: string | undefined;
3497
3494
  agentName?: string | undefined;
3495
+ model?: string | undefined;
3496
+ provider?: string | undefined;
3497
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3498
3498
  order: number;
3499
3499
  threadId: import("convex/values").GenericId<"threads">;
3500
3500
  stepOrder: number;
@@ -3554,10 +3554,13 @@ export declare const vv: {
3554
3554
  kind: import("convex/values").VLiteral<"error", "required">;
3555
3555
  error: import("convex/values").VString<string, "required">;
3556
3556
  }, "required", "error" | "kind">], "required", "error" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt">;
3557
- }, "required", "providerOptions" | `providerOptions.${string}` | "model" | "provider" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
3557
+ }, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
3558
3558
  threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
3559
3559
  }, {}, {}>;
3560
3560
  streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
3561
+ streamId: import("convex/values").GenericId<"streamingMessages">;
3562
+ start: number;
3563
+ end: number;
3561
3564
  parts: ({
3562
3565
  providerOptions?: Record<string, Record<string, any>> | undefined;
3563
3566
  type: "tool-call";
@@ -3589,8 +3592,8 @@ export declare const vv: {
3589
3592
  } | {
3590
3593
  type: "source";
3591
3594
  source: {
3592
- providerOptions?: Record<string, Record<string, any>> | undefined;
3593
3595
  title?: string | undefined;
3596
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3594
3597
  id: string;
3595
3598
  sourceType: "url";
3596
3599
  url: string;
@@ -3605,9 +3608,6 @@ export declare const vv: {
3605
3608
  toolName: string;
3606
3609
  argsTextDelta: string;
3607
3610
  })[];
3608
- streamId: import("convex/values").GenericId<"streamingMessages">;
3609
- start: number;
3610
- end: number;
3611
3611
  }, {
3612
3612
  streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
3613
3613
  start: import("convex/values").VFloat64<number, "required">;
@@ -3643,8 +3643,8 @@ export declare const vv: {
3643
3643
  } | {
3644
3644
  type: "source";
3645
3645
  source: {
3646
- providerOptions?: Record<string, Record<string, any>> | undefined;
3647
3646
  title?: string | undefined;
3647
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3648
3648
  id: string;
3649
3649
  sourceType: "url";
3650
3650
  url: string;
@@ -3689,8 +3689,8 @@ export declare const vv: {
3689
3689
  } | {
3690
3690
  type: "source";
3691
3691
  source: {
3692
- providerOptions?: Record<string, Record<string, any>> | undefined;
3693
3692
  title?: string | undefined;
3693
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3694
3694
  id: string;
3695
3695
  sourceType: "url";
3696
3696
  url: string;
@@ -3719,8 +3719,8 @@ export declare const vv: {
3719
3719
  }, "required", "type" | "textDelta">, import("convex/values").VObject<{
3720
3720
  type: "source";
3721
3721
  source: {
3722
- providerOptions?: Record<string, Record<string, any>> | undefined;
3723
3722
  title?: string | undefined;
3723
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3724
3724
  id: string;
3725
3725
  sourceType: "url";
3726
3726
  url: string;
@@ -3728,8 +3728,8 @@ export declare const vv: {
3728
3728
  }, {
3729
3729
  type: import("convex/values").VLiteral<"source", "required">;
3730
3730
  source: import("convex/values").VObject<{
3731
- providerOptions?: Record<string, Record<string, any>> | undefined;
3732
3731
  title?: string | undefined;
3732
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3733
3733
  id: string;
3734
3734
  sourceType: "url";
3735
3735
  url: string;
@@ -3739,8 +3739,8 @@ export declare const vv: {
3739
3739
  url: import("convex/values").VString<string, "required">;
3740
3740
  title: import("convex/values").VString<string | undefined, "optional">;
3741
3741
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3742
- }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">;
3743
- }, "required", "type" | "source" | "source.id" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title">, import("convex/values").VObject<{
3742
+ }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
3743
+ }, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
3744
3744
  providerOptions?: Record<string, Record<string, any>> | undefined;
3745
3745
  type: "tool-call";
3746
3746
  toolCallId: string;
@@ -3823,20 +3823,20 @@ export declare const vv: {
3823
3823
  }, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
3824
3824
  isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
3825
3825
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
3826
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "source.title" | "argsTextDelta">, "required">;
3827
- }, "required", "parts" | "streamId" | "start" | "end">, {
3826
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, "required">;
3827
+ }, "required", "streamId" | "start" | "end" | "parts">, {
3828
3828
  streamId_start_end: ["streamId", "start", "end", "_creationTime"];
3829
3829
  }, {}, {}>;
3830
3830
  memories: import("convex/server").TableDefinition<import("convex/values").VObject<{
3831
3831
  userId?: string | undefined;
3832
3832
  threadId?: import("convex/values").GenericId<"threads"> | undefined;
3833
- embeddingId?: import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
3833
+ embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
3834
3834
  memory: string;
3835
3835
  }, {
3836
3836
  threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
3837
3837
  userId: import("convex/values").VString<string | undefined, "optional">;
3838
3838
  memory: import("convex/values").VString<string, "required">;
3839
- embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_1024" | "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
3839
+ embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
3840
3840
  }, "required", "userId" | "threadId" | "embeddingId" | "memory">, {
3841
3841
  threadId: ["threadId", "_creationTime"];
3842
3842
  userId: ["userId", "_creationTime"];
@@ -3882,8 +3882,8 @@ export declare const vv: {
3882
3882
  };
3883
3883
  export { vv as v };
3884
3884
  export declare const vThreadDoc: import("convex/values").VObject<{
3885
- title?: string | undefined;
3886
3885
  userId?: string | undefined;
3886
+ title?: string | undefined;
3887
3887
  summary?: string | undefined;
3888
3888
  _id: string;
3889
3889
  _creationTime: number;
@@ -3895,13 +3895,18 @@ export declare const vThreadDoc: import("convex/values").VObject<{
3895
3895
  title: import("convex/values").VString<string | undefined, "optional">;
3896
3896
  summary: import("convex/values").VString<string | undefined, "optional">;
3897
3897
  status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
3898
- }, "required", "title" | "_id" | "_creationTime" | "status" | "userId" | "summary">;
3898
+ }, "required", "_id" | "_creationTime" | "status" | "userId" | "title" | "summary">;
3899
3899
  export type ThreadDoc = Infer<typeof vThreadDoc>;
3900
3900
  export declare const vMessageDoc: import("convex/values").VObject<{
3901
- text?: string | undefined;
3902
3901
  id?: string | undefined;
3902
+ userId?: string | undefined;
3903
+ embeddingId?: string | undefined;
3904
+ fileIds?: string[] | undefined;
3905
+ error?: string | undefined;
3906
+ agentName?: string | undefined;
3907
+ model?: string | undefined;
3908
+ provider?: string | undefined;
3903
3909
  providerOptions?: Record<string, Record<string, any>> | undefined;
3904
- reasoning?: string | undefined;
3905
3910
  message?: {
3906
3911
  providerOptions?: Record<string, Record<string, any>> | undefined;
3907
3912
  role: "user";
@@ -3975,15 +3980,17 @@ export declare const vMessageDoc: import("convex/values").VObject<{
3975
3980
  role: "system";
3976
3981
  content: string;
3977
3982
  } | undefined;
3978
- fileIds?: string[] | undefined;
3979
- finishReason?: "length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined;
3980
- error?: string | undefined;
3981
- model?: string | undefined;
3982
- provider?: string | undefined;
3983
+ text?: string | undefined;
3984
+ reasoning?: string | undefined;
3985
+ usage?: {
3986
+ promptTokens: number;
3987
+ completionTokens: number;
3988
+ totalTokens: number;
3989
+ } | undefined;
3983
3990
  providerMetadata?: Record<string, Record<string, any>> | undefined;
3984
3991
  sources?: {
3985
- providerOptions?: Record<string, Record<string, any>> | undefined;
3986
3992
  title?: string | undefined;
3993
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3987
3994
  id: string;
3988
3995
  sourceType: "url";
3989
3996
  url: string;
@@ -3996,11 +4003,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
3996
4003
  type: "redacted";
3997
4004
  data: string;
3998
4005
  })[] | undefined;
3999
- usage?: {
4000
- promptTokens: number;
4001
- completionTokens: number;
4002
- totalTokens: number;
4003
- } | undefined;
4004
4006
  warnings?: ({
4005
4007
  details?: string | undefined;
4006
4008
  type: "unsupported-setting";
@@ -4013,16 +4015,14 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4013
4015
  type: "other";
4014
4016
  message: string;
4015
4017
  })[] | undefined;
4016
- userId?: string | undefined;
4017
- embeddingId?: string | undefined;
4018
- agentName?: string | undefined;
4019
- tool: boolean;
4018
+ finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
4020
4019
  _id: string;
4021
4020
  _creationTime: number;
4022
4021
  status: "pending" | "success" | "failed";
4023
4022
  order: number;
4024
4023
  threadId: string;
4025
4024
  stepOrder: number;
4025
+ tool: boolean;
4026
4026
  }, {
4027
4027
  threadId: import("convex/values").VString<string, "required">;
4028
4028
  embeddingId: import("convex/values").VString<string | undefined, "optional">;
@@ -4183,7 +4183,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4183
4183
  type: import("convex/values").VLiteral<"text", "required">;
4184
4184
  text: import("convex/values").VString<string, "required">;
4185
4185
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4186
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
4186
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4187
4187
  providerOptions?: Record<string, Record<string, any>> | undefined;
4188
4188
  mimeType?: string | undefined;
4189
4189
  type: "image";
@@ -4205,9 +4205,9 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4205
4205
  filename: import("convex/values").VString<string | undefined, "optional">;
4206
4206
  mimeType: import("convex/values").VString<string, "required">;
4207
4207
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4208
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
4208
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
4209
4209
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4210
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4210
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4211
4211
  providerOptions?: Record<string, Record<string, any>> | undefined;
4212
4212
  role: "assistant";
4213
4213
  content: string | ({
@@ -4321,7 +4321,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4321
4321
  type: import("convex/values").VLiteral<"text", "required">;
4322
4322
  text: import("convex/values").VString<string, "required">;
4323
4323
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4324
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}`>, import("convex/values").VObject<{
4324
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4325
4325
  providerOptions?: Record<string, Record<string, any>> | undefined;
4326
4326
  filename?: string | undefined;
4327
4327
  type: "file";
@@ -4343,7 +4343,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4343
4343
  text: import("convex/values").VString<string, "required">;
4344
4344
  signature: import("convex/values").VString<string | undefined, "optional">;
4345
4345
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4346
- }, "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
4346
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
4347
4347
  providerOptions?: Record<string, Record<string, any>> | undefined;
4348
4348
  type: "redacted-reasoning";
4349
4349
  data: string;
@@ -4363,9 +4363,9 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4363
4363
  toolName: import("convex/values").VString<string, "required">;
4364
4364
  args: import("convex/values").VAny<any, "required", string>;
4365
4365
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4366
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "text" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
4366
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
4367
4367
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4368
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4368
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4369
4369
  providerOptions?: Record<string, Record<string, any>> | undefined;
4370
4370
  role: "tool";
4371
4371
  content: {
@@ -4458,7 +4458,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4458
4458
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4459
4459
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
4460
4460
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4461
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4461
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4462
4462
  providerOptions?: Record<string, Record<string, any>> | undefined;
4463
4463
  role: "system";
4464
4464
  content: string;
@@ -4466,7 +4466,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4466
4466
  role: import("convex/values").VLiteral<"system", "required">;
4467
4467
  content: import("convex/values").VString<string, "required">;
4468
4468
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4469
- }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">], "optional", "role" | "providerOptions" | `providerOptions.${string}` | "content">;
4469
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
4470
4470
  tool: import("convex/values").VBoolean<boolean, "required">;
4471
4471
  text: import("convex/values").VString<string | undefined, "optional">;
4472
4472
  usage: import("convex/values").VObject<{
@@ -4480,14 +4480,14 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4480
4480
  }, "optional", "promptTokens" | "completionTokens" | "totalTokens">;
4481
4481
  providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4482
4482
  sources: import("convex/values").VArray<{
4483
- providerOptions?: Record<string, Record<string, any>> | undefined;
4484
4483
  title?: string | undefined;
4484
+ providerOptions?: Record<string, Record<string, any>> | undefined;
4485
4485
  id: string;
4486
4486
  sourceType: "url";
4487
4487
  url: string;
4488
4488
  }[] | undefined, import("convex/values").VObject<{
4489
- providerOptions?: Record<string, Record<string, any>> | undefined;
4490
4489
  title?: string | undefined;
4490
+ providerOptions?: Record<string, Record<string, any>> | undefined;
4491
4491
  id: string;
4492
4492
  sourceType: "url";
4493
4493
  url: string;
@@ -4497,7 +4497,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4497
4497
  url: import("convex/values").VString<string, "required">;
4498
4498
  title: import("convex/values").VString<string | undefined, "optional">;
4499
4499
  providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
4500
- }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "optional">;
4500
+ }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "optional">;
4501
4501
  reasoning: import("convex/values").VString<string | undefined, "optional">;
4502
4502
  reasoningDetails: import("convex/values").VArray<({
4503
4503
  signature?: string | undefined;
@@ -4572,11 +4572,11 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4572
4572
  }, {
4573
4573
  type: import("convex/values").VLiteral<"other", "required">;
4574
4574
  message: import("convex/values").VString<string, "required">;
4575
- }, "required", "type" | "message">], "required", "type" | "tool" | "message" | "setting" | "details" | `tool.${string}`>, "optional">;
4576
- finishReason: import("convex/values").VUnion<"length" | "stop" | "content-filter" | "tool-calls" | "error" | "other" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
4575
+ }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
4576
+ finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
4577
4577
  _id: import("convex/values").VString<string, "required">;
4578
4578
  _creationTime: import("convex/values").VFloat64<number, "required">;
4579
- }, "required", "text" | "id" | "providerOptions" | `providerOptions.${string}` | "reasoning" | "tool" | "message" | "fileIds" | "finishReason" | "error" | "model" | "provider" | "providerMetadata" | "sources" | "reasoningDetails" | "usage" | "warnings" | "message.role" | "message.providerOptions" | `message.providerOptions.${string}` | "message.content" | `providerMetadata.${string}` | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "_id" | "_creationTime" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "agentName">;
4579
+ }, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>;
4580
4580
  export type MessageDoc = Infer<typeof vMessageDoc>;
4581
4581
  export default schema;
4582
4582
  //# sourceMappingURL=schema.d.ts.map