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

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 (97) hide show
  1. package/README.md +55 -21
  2. package/dist/commonjs/client/index.d.ts +51 -51
  3. package/dist/commonjs/client/streaming.d.ts +3 -3
  4. package/dist/commonjs/client/streaming.d.ts.map +1 -1
  5. package/dist/commonjs/component/apiKeys.js +1 -1
  6. package/dist/commonjs/component/apiKeys.js.map +1 -1
  7. package/dist/commonjs/component/messages.d.ts +155 -155
  8. package/dist/commonjs/component/schema.d.ts +753 -753
  9. package/dist/commonjs/component/streams.d.ts +18 -18
  10. package/dist/commonjs/component/streams.d.ts.map +1 -1
  11. package/dist/commonjs/component/streams.js +4 -4
  12. package/dist/commonjs/component/streams.js.map +1 -1
  13. package/dist/commonjs/component/threads.d.ts +6 -6
  14. package/dist/commonjs/component/vector/index.d.ts +12 -12
  15. package/dist/commonjs/component/vector/tables.d.ts +6 -6
  16. package/dist/commonjs/mapping.d.ts +1 -1
  17. package/dist/commonjs/mapping.d.ts.map +1 -1
  18. package/dist/commonjs/react/deltas.d.ts +4 -4
  19. package/dist/commonjs/react/deltas.d.ts.map +1 -1
  20. package/dist/commonjs/react/deltas.js +1 -1
  21. package/dist/commonjs/react/deltas.js.map +1 -1
  22. package/dist/commonjs/react/index.d.ts +5 -5
  23. package/dist/commonjs/react/index.d.ts.map +1 -1
  24. package/dist/commonjs/react/index.js +5 -5
  25. package/dist/commonjs/react/index.js.map +1 -1
  26. package/dist/commonjs/react/optimisticallySendMessage.d.ts +2 -2
  27. package/dist/commonjs/react/optimisticallySendMessage.d.ts.map +1 -1
  28. package/dist/commonjs/react/toUIMessages.d.ts +2 -2
  29. package/dist/commonjs/react/toUIMessages.d.ts.map +1 -1
  30. package/dist/commonjs/react/toUIMessages.js +1 -1
  31. package/dist/commonjs/react/toUIMessages.js.map +1 -1
  32. package/dist/commonjs/react/usePaginatedQuery.d.ts.map +1 -1
  33. package/dist/commonjs/react/usePaginatedQuery.js +0 -1
  34. package/dist/commonjs/react/usePaginatedQuery.js.map +1 -1
  35. package/dist/commonjs/shared.d.ts +1 -1
  36. package/dist/commonjs/shared.d.ts.map +1 -1
  37. package/dist/commonjs/validators.d.ts +161 -161
  38. package/dist/commonjs/vitest.config.d.ts +3 -0
  39. package/dist/commonjs/vitest.config.d.ts.map +1 -0
  40. package/dist/commonjs/vitest.config.js +7 -0
  41. package/dist/commonjs/vitest.config.js.map +1 -0
  42. package/dist/commonjs.tsbuildinfo +1 -1
  43. package/dist/esm/client/index.d.ts +17 -17
  44. package/dist/esm/client/streaming.d.ts +3 -3
  45. package/dist/esm/client/streaming.d.ts.map +1 -1
  46. package/dist/esm/component/apiKeys.js +1 -1
  47. package/dist/esm/component/apiKeys.js.map +1 -1
  48. package/dist/esm/component/messages.d.ts +27 -27
  49. package/dist/esm/component/schema.d.ts +48 -48
  50. package/dist/esm/component/streams.d.ts.map +1 -1
  51. package/dist/esm/component/streams.js +4 -4
  52. package/dist/esm/component/streams.js.map +1 -1
  53. package/dist/esm/component/threads.d.ts +8 -8
  54. package/dist/esm/mapping.d.ts +1 -1
  55. package/dist/esm/mapping.d.ts.map +1 -1
  56. package/dist/esm/react/deltas.d.ts +4 -4
  57. package/dist/esm/react/deltas.d.ts.map +1 -1
  58. package/dist/esm/react/deltas.js +1 -1
  59. package/dist/esm/react/deltas.js.map +1 -1
  60. package/dist/esm/react/index.d.ts +5 -5
  61. package/dist/esm/react/index.d.ts.map +1 -1
  62. package/dist/esm/react/index.js +5 -5
  63. package/dist/esm/react/index.js.map +1 -1
  64. package/dist/esm/react/optimisticallySendMessage.d.ts +2 -2
  65. package/dist/esm/react/optimisticallySendMessage.d.ts.map +1 -1
  66. package/dist/esm/react/toUIMessages.d.ts +2 -2
  67. package/dist/esm/react/toUIMessages.d.ts.map +1 -1
  68. package/dist/esm/react/toUIMessages.js +1 -1
  69. package/dist/esm/react/toUIMessages.js.map +1 -1
  70. package/dist/esm/react/usePaginatedQuery.d.ts.map +1 -1
  71. package/dist/esm/react/usePaginatedQuery.js +0 -1
  72. package/dist/esm/react/usePaginatedQuery.js.map +1 -1
  73. package/dist/esm/shared.d.ts +1 -1
  74. package/dist/esm/shared.d.ts.map +1 -1
  75. package/dist/esm/validators.d.ts +19 -19
  76. package/dist/esm/vitest.config.d.ts +3 -0
  77. package/dist/esm/vitest.config.d.ts.map +1 -0
  78. package/dist/esm/vitest.config.js +7 -0
  79. package/dist/esm/vitest.config.js.map +1 -0
  80. package/dist/esm.tsbuildinfo +1 -1
  81. package/package.json +6 -5
  82. package/src/client/index.test.ts +271 -4
  83. package/src/client/streaming.ts +3 -3
  84. package/src/component/apiKeys.ts +1 -1
  85. package/src/component/streams.ts +9 -5
  86. package/src/mapping.test.ts +4 -4
  87. package/src/mapping.ts +1 -1
  88. package/src/react/deltas.test.ts +17 -3
  89. package/src/react/deltas.ts +4 -4
  90. package/src/react/index.ts +10 -10
  91. package/src/react/optimisticallySendMessage.ts +2 -2
  92. package/src/react/toUIMessages.test.ts +2 -8
  93. package/src/react/toUIMessages.ts +3 -3
  94. package/src/react/usePaginatedQuery.ts +0 -1
  95. package/src/shared.ts +1 -1
  96. package/src/validators.test.ts +4 -4
  97. package/src/vitest.config.ts +7 -0
@@ -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_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
10
+ embeddings_1024: 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[];
15
16
  model: string;
16
17
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
26
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
27
27
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
28
28
  }, import("convex/server").GenericTableSearchIndexes, {
29
29
  vector: {
30
30
  vectorField: "vector";
31
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
31
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
32
32
  filterFields: "model_table_userId" | "model_table_threadId";
33
33
  };
34
34
  }>;
35
- embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
35
+ embeddings_128: 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[];
40
41
  model: string;
41
42
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
51
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
52
52
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
53
53
  }, import("convex/server").GenericTableSearchIndexes, {
54
54
  vector: {
55
55
  vectorField: "vector";
56
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
56
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
57
57
  filterFields: "model_table_userId" | "model_table_threadId";
58
58
  };
59
59
  }>;
60
- embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
60
+ embeddings_256: 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[];
65
66
  model: string;
66
67
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
76
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
77
77
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
78
78
  }, import("convex/server").GenericTableSearchIndexes, {
79
79
  vector: {
80
80
  vectorField: "vector";
81
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
81
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
82
82
  filterFields: "model_table_userId" | "model_table_threadId";
83
83
  };
84
84
  }>;
85
- embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
85
+ embeddings_512: 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[];
90
91
  model: string;
91
92
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
101
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
102
102
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
103
103
  }, import("convex/server").GenericTableSearchIndexes, {
104
104
  vector: {
105
105
  vectorField: "vector";
106
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
106
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
107
107
  filterFields: "model_table_userId" | "model_table_threadId";
108
108
  };
109
109
  }>;
110
- embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
110
+ embeddings_768: 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[];
115
116
  model: string;
116
117
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
126
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
127
127
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
128
128
  }, import("convex/server").GenericTableSearchIndexes, {
129
129
  vector: {
130
130
  vectorField: "vector";
131
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
131
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
140
141
  model: string;
141
142
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
151
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
152
152
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
153
153
  }, import("convex/server").GenericTableSearchIndexes, {
154
154
  vector: {
155
155
  vectorField: "vector";
156
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
156
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
165
166
  model: string;
166
167
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
176
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
177
177
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
178
178
  }, import("convex/server").GenericTableSearchIndexes, {
179
179
  vector: {
180
180
  vectorField: "vector";
181
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
181
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
190
191
  model: string;
191
192
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
201
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
202
202
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
203
203
  }, import("convex/server").GenericTableSearchIndexes, {
204
204
  vector: {
205
205
  vectorField: "vector";
206
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
206
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
215
216
  model: string;
216
217
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
226
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
227
227
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
228
228
  }, import("convex/server").GenericTableSearchIndexes, {
229
229
  vector: {
230
230
  vectorField: "vector";
231
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
231
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
240
241
  model: string;
241
242
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
251
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
252
252
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
253
253
  }, import("convex/server").GenericTableSearchIndexes, {
254
254
  vector: {
255
255
  vectorField: "vector";
256
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
256
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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
- userId?: string | undefined;
262
261
  title?: string | undefined;
262
+ userId?: string | undefined;
263
263
  summary?: string | undefined;
264
264
  defaultSystemPrompt?: string | undefined;
265
265
  parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
@@ -273,20 +273,15 @@ 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", "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, {
276
+ }, "required", "title" | "status" | "userId" | "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;
280
281
  id?: 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
- files?: any[] | undefined;
285
- error?: string | undefined;
286
- agentName?: string | undefined;
287
- model?: string | undefined;
288
- provider?: string | undefined;
289
282
  providerOptions?: Record<string, Record<string, any>> | undefined;
283
+ reasoning?: string | undefined;
284
+ files?: any[] | undefined;
290
285
  message?: {
291
286
  providerOptions?: Record<string, Record<string, any>> | undefined;
292
287
  role: "user";
@@ -360,17 +355,15 @@ export declare const schema: import("convex/server").SchemaDefinition<{
360
355
  role: "system";
361
356
  content: string;
362
357
  } | undefined;
363
- text?: string | undefined;
364
- reasoning?: string | undefined;
365
- usage?: {
366
- promptTokens: number;
367
- completionTokens: number;
368
- totalTokens: number;
369
- } | 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;
370
363
  providerMetadata?: Record<string, Record<string, any>> | undefined;
371
364
  sources?: {
372
- title?: string | undefined;
373
365
  providerOptions?: Record<string, Record<string, any>> | undefined;
366
+ title?: string | undefined;
374
367
  id: string;
375
368
  sourceType: "url";
376
369
  url: string;
@@ -383,6 +376,11 @@ export declare const schema: import("convex/server").SchemaDefinition<{
383
376
  type: "redacted";
384
377
  data: string;
385
378
  })[] | undefined;
379
+ usage?: {
380
+ promptTokens: number;
381
+ completionTokens: number;
382
+ totalTokens: number;
383
+ } | undefined;
386
384
  warnings?: ({
387
385
  details?: string | undefined;
388
386
  type: "unsupported-setting";
@@ -395,21 +393,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
395
393
  type: "other";
396
394
  message: string;
397
395
  })[] | undefined;
398
- finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | 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;
399
399
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
400
400
  stepId?: string | undefined;
401
+ tool: boolean;
401
402
  status: "pending" | "success" | "failed";
402
403
  order: number;
403
404
  threadId: import("convex/values").GenericId<"threads">;
404
405
  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_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>;
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>;
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" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
566
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
588
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
590
+ }, "required", "role" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
704
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
726
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `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" | "text" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
748
+ }, "required", "role" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
841
+ }, "required", "role" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
849
+ }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">], "optional", "role" | "providerOptions" | `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
- title?: string | undefined;
864
863
  providerOptions?: Record<string, Record<string, any>> | undefined;
864
+ title?: string | undefined;
865
865
  id: string;
866
866
  sourceType: "url";
867
867
  url: string;
868
868
  }[] | undefined, import("convex/values").VObject<{
869
- title?: string | undefined;
870
869
  providerOptions?: Record<string, Record<string, any>> | undefined;
870
+ title?: string | 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" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "optional">;
880
+ }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "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" | "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>;
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>;
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", "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}`>, {
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">, {
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
- userId?: string | undefined;
971
- agentName?: string | undefined;
970
+ providerOptions?: Record<string, Record<string, any>> | undefined;
972
971
  model?: string | undefined;
973
972
  provider?: string | undefined;
974
- providerOptions?: Record<string, Record<string, any>> | undefined;
973
+ userId?: string | undefined;
974
+ agentName?: string | undefined;
975
975
  order: number;
976
976
  threadId: import("convex/values").GenericId<"threads">;
977
977
  stepOrder: number;
@@ -1031,13 +1031,10 @@ 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", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
1034
+ }, "required", "providerOptions" | `providerOptions.${string}` | "model" | "provider" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "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;
1041
1038
  parts: ({
1042
1039
  providerOptions?: Record<string, Record<string, any>> | undefined;
1043
1040
  type: "tool-call";
@@ -1069,8 +1066,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1069
1066
  } | {
1070
1067
  type: "source";
1071
1068
  source: {
1072
- title?: string | undefined;
1073
1069
  providerOptions?: Record<string, Record<string, any>> | undefined;
1070
+ title?: string | undefined;
1074
1071
  id: string;
1075
1072
  sourceType: "url";
1076
1073
  url: string;
@@ -1085,6 +1082,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
1085
1082
  toolName: string;
1086
1083
  argsTextDelta: string;
1087
1084
  })[];
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
- title?: string | undefined;
1124
1123
  providerOptions?: Record<string, Record<string, any>> | undefined;
1124
+ title?: string | 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
- title?: string | undefined;
1170
1169
  providerOptions?: Record<string, Record<string, any>> | undefined;
1170
+ title?: string | 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
- title?: string | undefined;
1200
1199
  providerOptions?: Record<string, Record<string, any>> | undefined;
1200
+ title?: string | 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
- title?: string | undefined;
1209
1208
  providerOptions?: Record<string, Record<string, any>> | undefined;
1209
+ title?: string | 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" | "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<{
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<{
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.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, "required">;
1304
- }, "required", "streamId" | "start" | "end" | "parts">, {
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">, {
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_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | 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;
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_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>;
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>;
1317
1317
  }, "required", "userId" | "threadId" | "embeddingId" | "memory">, {
1318
1318
  threadId: ["threadId", "_creationTime"];
1319
1319
  userId: ["userId", "_creationTime"];
@@ -1340,67 +1340,222 @@ 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
- threads: {
1343
+ apiKeys: {
1344
1344
  document: {
1345
- _id: import("convex/values").GenericId<"threads">;
1345
+ _id: import("convex/values").GenericId<"apiKeys">;
1346
1346
  _creationTime: number;
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";
1347
+ name?: string | undefined;
1354
1348
  };
1355
- fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
1349
+ fieldPaths: "_id" | ("_creationTime" | "name");
1356
1350
  indexes: {
1357
- userId: ["userId", "_creationTime"];
1351
+ name: ["name", "_creationTime"];
1358
1352
  by_id: ["_id"];
1359
1353
  by_creation_time: ["_creationTime"];
1360
1354
  };
1361
1355
  searchIndexes: {};
1362
1356
  vectorIndexes: {};
1363
1357
  };
1364
- embeddings_128: {
1358
+ files: {
1365
1359
  document: {
1366
- _id: import("convex/values").GenericId<"embeddings_128">;
1360
+ _id: import("convex/values").GenericId<"files">;
1367
1361
  _creationTime: 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[];
1362
+ filename?: string | undefined;
1363
+ mimeType: string;
1364
+ storageId: string;
1365
+ hash: string;
1366
+ refcount: number;
1367
+ lastTouchedAt: number;
1375
1368
  };
1376
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1369
+ fieldPaths: "_id" | ("mimeType" | "filename" | "_creationTime" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
1377
1370
  indexes: {
1378
- model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1371
+ hash: ["hash", "_creationTime"];
1372
+ refcount: ["refcount", "_creationTime"];
1379
1373
  by_id: ["_id"];
1380
1374
  by_creation_time: ["_creationTime"];
1381
1375
  };
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
- };
1376
+ searchIndexes: {};
1377
+ vectorIndexes: {};
1390
1378
  };
1391
- embeddings_256: {
1379
+ messages: {
1392
1380
  document: {
1393
- _id: import("convex/values").GenericId<"embeddings_256">;
1381
+ _id: import("convex/values").GenericId<"messages">;
1394
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;
1395
1499
  userId?: string | undefined;
1396
- threadId?: string | undefined;
1397
- model_table_userId?: string[] | undefined;
1398
- model_table_threadId?: 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">;
1549
+ _creationTime: number;
1550
+ userId?: string | undefined;
1551
+ threadId?: string | undefined;
1552
+ model_table_userId?: string[] | undefined;
1553
+ model_table_threadId?: string[] | undefined;
1554
+ vector: number[];
1399
1555
  model: string;
1400
1556
  table: string;
1401
- vector: number[];
1402
1557
  };
1403
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1558
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1404
1559
  indexes: {
1405
1560
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1406
1561
  by_id: ["_id"];
@@ -1410,24 +1565,24 @@ export declare const vv: {
1410
1565
  vectorIndexes: {
1411
1566
  vector: {
1412
1567
  vectorField: "vector";
1413
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1568
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1414
1569
  filterFields: "model_table_userId" | "model_table_threadId";
1415
1570
  };
1416
1571
  };
1417
1572
  };
1418
- embeddings_512: {
1573
+ embeddings_128: {
1419
1574
  document: {
1420
- _id: import("convex/values").GenericId<"embeddings_512">;
1575
+ _id: import("convex/values").GenericId<"embeddings_128">;
1421
1576
  _creationTime: number;
1422
1577
  userId?: string | undefined;
1423
1578
  threadId?: string | undefined;
1424
1579
  model_table_userId?: string[] | undefined;
1425
1580
  model_table_threadId?: string[] | undefined;
1581
+ vector: number[];
1426
1582
  model: string;
1427
1583
  table: string;
1428
- vector: number[];
1429
1584
  };
1430
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1585
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1431
1586
  indexes: {
1432
1587
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1433
1588
  by_id: ["_id"];
@@ -1437,24 +1592,24 @@ export declare const vv: {
1437
1592
  vectorIndexes: {
1438
1593
  vector: {
1439
1594
  vectorField: "vector";
1440
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1595
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1441
1596
  filterFields: "model_table_userId" | "model_table_threadId";
1442
1597
  };
1443
1598
  };
1444
1599
  };
1445
- embeddings_768: {
1600
+ embeddings_256: {
1446
1601
  document: {
1447
- _id: import("convex/values").GenericId<"embeddings_768">;
1602
+ _id: import("convex/values").GenericId<"embeddings_256">;
1448
1603
  _creationTime: number;
1449
1604
  userId?: string | undefined;
1450
1605
  threadId?: string | undefined;
1451
1606
  model_table_userId?: string[] | undefined;
1452
1607
  model_table_threadId?: string[] | undefined;
1608
+ vector: number[];
1453
1609
  model: string;
1454
1610
  table: string;
1455
- vector: number[];
1456
1611
  };
1457
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1612
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1458
1613
  indexes: {
1459
1614
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1460
1615
  by_id: ["_id"];
@@ -1464,24 +1619,51 @@ export declare const vv: {
1464
1619
  vectorIndexes: {
1465
1620
  vector: {
1466
1621
  vectorField: "vector";
1467
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1622
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1468
1623
  filterFields: "model_table_userId" | "model_table_threadId";
1469
1624
  };
1470
1625
  };
1471
1626
  };
1472
- embeddings_1024: {
1627
+ embeddings_512: {
1473
1628
  document: {
1474
- _id: import("convex/values").GenericId<"embeddings_1024">;
1629
+ _id: import("convex/values").GenericId<"embeddings_512">;
1475
1630
  _creationTime: number;
1476
1631
  userId?: string | undefined;
1477
1632
  threadId?: string | undefined;
1478
1633
  model_table_userId?: string[] | undefined;
1479
1634
  model_table_threadId?: string[] | undefined;
1635
+ vector: number[];
1480
1636
  model: string;
1481
1637
  table: string;
1638
+ };
1639
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1640
+ indexes: {
1641
+ model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1642
+ by_id: ["_id"];
1643
+ by_creation_time: ["_creationTime"];
1644
+ };
1645
+ searchIndexes: import("convex/server").GenericTableSearchIndexes;
1646
+ vectorIndexes: {
1647
+ vector: {
1648
+ vectorField: "vector";
1649
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1650
+ filterFields: "model_table_userId" | "model_table_threadId";
1651
+ };
1652
+ };
1653
+ };
1654
+ embeddings_768: {
1655
+ document: {
1656
+ _id: import("convex/values").GenericId<"embeddings_768">;
1657
+ _creationTime: number;
1658
+ userId?: string | undefined;
1659
+ threadId?: string | undefined;
1660
+ model_table_userId?: string[] | undefined;
1661
+ model_table_threadId?: string[] | undefined;
1482
1662
  vector: number[];
1663
+ model: string;
1664
+ table: string;
1483
1665
  };
1484
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1666
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1485
1667
  indexes: {
1486
1668
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1487
1669
  by_id: ["_id"];
@@ -1491,7 +1673,7 @@ export declare const vv: {
1491
1673
  vectorIndexes: {
1492
1674
  vector: {
1493
1675
  vectorField: "vector";
1494
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1676
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1495
1677
  filterFields: "model_table_userId" | "model_table_threadId";
1496
1678
  };
1497
1679
  };
@@ -1504,11 +1686,11 @@ export declare const vv: {
1504
1686
  threadId?: string | undefined;
1505
1687
  model_table_userId?: string[] | undefined;
1506
1688
  model_table_threadId?: string[] | undefined;
1689
+ vector: number[];
1507
1690
  model: string;
1508
1691
  table: string;
1509
- vector: number[];
1510
1692
  };
1511
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1693
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1512
1694
  indexes: {
1513
1695
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1514
1696
  by_id: ["_id"];
@@ -1518,7 +1700,7 @@ export declare const vv: {
1518
1700
  vectorIndexes: {
1519
1701
  vector: {
1520
1702
  vectorField: "vector";
1521
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1703
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1522
1704
  filterFields: "model_table_userId" | "model_table_threadId";
1523
1705
  };
1524
1706
  };
@@ -1531,11 +1713,11 @@ export declare const vv: {
1531
1713
  threadId?: string | undefined;
1532
1714
  model_table_userId?: string[] | undefined;
1533
1715
  model_table_threadId?: string[] | undefined;
1716
+ vector: number[];
1534
1717
  model: string;
1535
1718
  table: string;
1536
- vector: number[];
1537
1719
  };
1538
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1720
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1539
1721
  indexes: {
1540
1722
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1541
1723
  by_id: ["_id"];
@@ -1545,7 +1727,7 @@ export declare const vv: {
1545
1727
  vectorIndexes: {
1546
1728
  vector: {
1547
1729
  vectorField: "vector";
1548
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1730
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1549
1731
  filterFields: "model_table_userId" | "model_table_threadId";
1550
1732
  };
1551
1733
  };
@@ -1558,11 +1740,11 @@ export declare const vv: {
1558
1740
  threadId?: string | undefined;
1559
1741
  model_table_userId?: string[] | undefined;
1560
1742
  model_table_threadId?: string[] | undefined;
1743
+ vector: number[];
1561
1744
  model: string;
1562
1745
  table: string;
1563
- vector: number[];
1564
1746
  };
1565
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1747
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1566
1748
  indexes: {
1567
1749
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1568
1750
  by_id: ["_id"];
@@ -1572,7 +1754,7 @@ export declare const vv: {
1572
1754
  vectorIndexes: {
1573
1755
  vector: {
1574
1756
  vectorField: "vector";
1575
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1757
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1576
1758
  filterFields: "model_table_userId" | "model_table_threadId";
1577
1759
  };
1578
1760
  };
@@ -1585,11 +1767,11 @@ export declare const vv: {
1585
1767
  threadId?: string | undefined;
1586
1768
  model_table_userId?: string[] | undefined;
1587
1769
  model_table_threadId?: string[] | undefined;
1770
+ vector: number[];
1588
1771
  model: string;
1589
1772
  table: string;
1590
- vector: number[];
1591
1773
  };
1592
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1774
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1593
1775
  indexes: {
1594
1776
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1595
1777
  by_id: ["_id"];
@@ -1599,7 +1781,7 @@ export declare const vv: {
1599
1781
  vectorIndexes: {
1600
1782
  vector: {
1601
1783
  vectorField: "vector";
1602
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1784
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1603
1785
  filterFields: "model_table_userId" | "model_table_threadId";
1604
1786
  };
1605
1787
  };
@@ -1612,11 +1794,11 @@ export declare const vv: {
1612
1794
  threadId?: string | undefined;
1613
1795
  model_table_userId?: string[] | undefined;
1614
1796
  model_table_threadId?: string[] | undefined;
1797
+ vector: number[];
1615
1798
  model: string;
1616
1799
  table: string;
1617
- vector: number[];
1618
1800
  };
1619
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1801
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1620
1802
  indexes: {
1621
1803
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1622
1804
  by_id: ["_id"];
@@ -1626,11 +1808,145 @@ export declare const vv: {
1626
1808
  vectorIndexes: {
1627
1809
  vector: {
1628
1810
  vectorField: "vector";
1629
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1811
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
1630
1812
  filterFields: "model_table_userId" | "model_table_threadId";
1631
1813
  };
1632
1814
  };
1633
1815
  };
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
+ };
1634
1950
  files: {
1635
1951
  document: {
1636
1952
  _id: import("convex/values").GenericId<"files">;
@@ -1642,7 +1958,7 @@ export declare const vv: {
1642
1958
  refcount: number;
1643
1959
  lastTouchedAt: number;
1644
1960
  };
1645
- fieldPaths: "_id" | ("_creationTime" | "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
1961
+ fieldPaths: "_id" | ("mimeType" | "filename" | "_creationTime" | "storageId" | "hash" | "refcount" | "lastTouchedAt");
1646
1962
  indexes: {
1647
1963
  hash: ["hash", "_creationTime"];
1648
1964
  refcount: ["refcount", "_creationTime"];
@@ -1656,16 +1972,11 @@ export declare const vv: {
1656
1972
  document: {
1657
1973
  _id: import("convex/values").GenericId<"messages">;
1658
1974
  _creationTime: number;
1975
+ text?: string | undefined;
1659
1976
  id?: 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;
1663
- files?: any[] | undefined;
1664
- error?: string | undefined;
1665
- agentName?: string | undefined;
1666
- model?: string | undefined;
1667
- provider?: string | undefined;
1668
1977
  providerOptions?: Record<string, Record<string, any>> | undefined;
1978
+ reasoning?: string | undefined;
1979
+ files?: any[] | undefined;
1669
1980
  message?: {
1670
1981
  providerOptions?: Record<string, Record<string, any>> | undefined;
1671
1982
  role: "user";
@@ -1739,17 +2050,15 @@ export declare const vv: {
1739
2050
  role: "system";
1740
2051
  content: string;
1741
2052
  } | undefined;
1742
- text?: string | undefined;
1743
- reasoning?: string | undefined;
1744
- usage?: {
1745
- promptTokens: number;
1746
- completionTokens: number;
1747
- totalTokens: number;
1748
- } | 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;
1749
2058
  providerMetadata?: Record<string, Record<string, any>> | undefined;
1750
2059
  sources?: {
1751
- title?: string | undefined;
1752
2060
  providerOptions?: Record<string, Record<string, any>> | undefined;
2061
+ title?: string | undefined;
1753
2062
  id: string;
1754
2063
  sourceType: "url";
1755
2064
  url: string;
@@ -1762,6 +2071,11 @@ export declare const vv: {
1762
2071
  type: "redacted";
1763
2072
  data: string;
1764
2073
  })[] | undefined;
2074
+ usage?: {
2075
+ promptTokens: number;
2076
+ completionTokens: number;
2077
+ totalTokens: number;
2078
+ } | undefined;
1765
2079
  warnings?: ({
1766
2080
  details?: string | undefined;
1767
2081
  type: "unsupported-setting";
@@ -1774,16 +2088,18 @@ export declare const vv: {
1774
2088
  type: "other";
1775
2089
  message: string;
1776
2090
  })[] | undefined;
1777
- finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | 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;
1778
2094
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1779
2095
  stepId?: string | undefined;
2096
+ tool: boolean;
1780
2097
  status: "pending" | "success" | "failed";
1781
2098
  order: number;
1782
2099
  threadId: import("convex/values").GenericId<"threads">;
1783
2100
  stepOrder: number;
1784
- tool: boolean;
1785
2101
  };
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}`);
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");
1787
2103
  indexes: {
1788
2104
  threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
1789
2105
  embeddingId: ["embeddingId", "_creationTime"];
@@ -1798,153 +2114,19 @@ export declare const vv: {
1798
2114
  };
1799
2115
  vectorIndexes: {};
1800
2116
  };
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<{
1935
2117
  threads: {
1936
2118
  document: {
1937
2119
  _id: import("convex/values").GenericId<"threads">;
1938
2120
  _creationTime: number;
1939
- userId?: string | undefined;
1940
2121
  title?: string | undefined;
2122
+ userId?: string | undefined;
1941
2123
  summary?: string | undefined;
1942
2124
  defaultSystemPrompt?: string | undefined;
1943
2125
  parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
1944
2126
  order?: number | undefined;
1945
2127
  status: "active" | "archived";
1946
2128
  };
1947
- fieldPaths: "_id" | ("_creationTime" | "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
2129
+ fieldPaths: "_id" | ("title" | "_creationTime" | "status" | "userId" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order");
1948
2130
  indexes: {
1949
2131
  userId: ["userId", "_creationTime"];
1950
2132
  by_id: ["_id"];
@@ -1953,46 +2135,19 @@ export declare const vv: {
1953
2135
  searchIndexes: {};
1954
2136
  vectorIndexes: {};
1955
2137
  };
1956
- embeddings_128: {
2138
+ embeddings_1024: {
1957
2139
  document: {
1958
- _id: import("convex/values").GenericId<"embeddings_128">;
2140
+ _id: import("convex/values").GenericId<"embeddings_1024">;
1959
2141
  _creationTime: number;
1960
2142
  userId?: string | undefined;
1961
2143
  threadId?: string | undefined;
1962
2144
  model_table_userId?: string[] | undefined;
1963
2145
  model_table_threadId?: string[] | undefined;
1964
- model: string;
1965
- table: string;
1966
2146
  vector: number[];
1967
- };
1968
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
1969
- indexes: {
1970
- model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1971
- by_id: ["_id"];
1972
- by_creation_time: ["_creationTime"];
1973
- };
1974
- searchIndexes: import("convex/server").GenericTableSearchIndexes;
1975
- vectorIndexes: {
1976
- vector: {
1977
- vectorField: "vector";
1978
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
1979
- filterFields: "model_table_userId" | "model_table_threadId";
1980
- };
1981
- };
1982
- };
1983
- embeddings_256: {
1984
- document: {
1985
- _id: import("convex/values").GenericId<"embeddings_256">;
1986
- _creationTime: number;
1987
- userId?: string | undefined;
1988
- threadId?: string | undefined;
1989
- model_table_userId?: string[] | undefined;
1990
- model_table_threadId?: string[] | undefined;
1991
2147
  model: string;
1992
2148
  table: string;
1993
- vector: number[];
1994
2149
  };
1995
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2150
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
1996
2151
  indexes: {
1997
2152
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
1998
2153
  by_id: ["_id"];
@@ -2002,51 +2157,24 @@ export declare const vv: {
2002
2157
  vectorIndexes: {
2003
2158
  vector: {
2004
2159
  vectorField: "vector";
2005
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2160
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2006
2161
  filterFields: "model_table_userId" | "model_table_threadId";
2007
2162
  };
2008
2163
  };
2009
2164
  };
2010
- embeddings_512: {
2165
+ embeddings_128: {
2011
2166
  document: {
2012
- _id: import("convex/values").GenericId<"embeddings_512">;
2167
+ _id: import("convex/values").GenericId<"embeddings_128">;
2013
2168
  _creationTime: number;
2014
2169
  userId?: string | undefined;
2015
2170
  threadId?: string | undefined;
2016
2171
  model_table_userId?: string[] | undefined;
2017
2172
  model_table_threadId?: string[] | undefined;
2018
- model: string;
2019
- table: string;
2020
2173
  vector: number[];
2021
- };
2022
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2023
- indexes: {
2024
- model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2025
- by_id: ["_id"];
2026
- by_creation_time: ["_creationTime"];
2027
- };
2028
- searchIndexes: import("convex/server").GenericTableSearchIndexes;
2029
- vectorIndexes: {
2030
- vector: {
2031
- vectorField: "vector";
2032
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2033
- filterFields: "model_table_userId" | "model_table_threadId";
2034
- };
2035
- };
2036
- };
2037
- embeddings_768: {
2038
- document: {
2039
- _id: import("convex/values").GenericId<"embeddings_768">;
2040
- _creationTime: number;
2041
- userId?: string | undefined;
2042
- threadId?: string | undefined;
2043
- model_table_userId?: string[] | undefined;
2044
- model_table_threadId?: string[] | undefined;
2045
2174
  model: string;
2046
2175
  table: string;
2047
- vector: number[];
2048
2176
  };
2049
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2177
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2050
2178
  indexes: {
2051
2179
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2052
2180
  by_id: ["_id"];
@@ -2056,51 +2184,24 @@ export declare const vv: {
2056
2184
  vectorIndexes: {
2057
2185
  vector: {
2058
2186
  vectorField: "vector";
2059
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2187
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2060
2188
  filterFields: "model_table_userId" | "model_table_threadId";
2061
2189
  };
2062
2190
  };
2063
2191
  };
2064
- embeddings_1024: {
2192
+ embeddings_256: {
2065
2193
  document: {
2066
- _id: import("convex/values").GenericId<"embeddings_1024">;
2194
+ _id: import("convex/values").GenericId<"embeddings_256">;
2067
2195
  _creationTime: number;
2068
2196
  userId?: string | undefined;
2069
2197
  threadId?: string | undefined;
2070
2198
  model_table_userId?: string[] | undefined;
2071
2199
  model_table_threadId?: string[] | undefined;
2072
- model: string;
2073
- table: string;
2074
2200
  vector: number[];
2075
- };
2076
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2077
- indexes: {
2078
- model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2079
- by_id: ["_id"];
2080
- by_creation_time: ["_creationTime"];
2081
- };
2082
- searchIndexes: import("convex/server").GenericTableSearchIndexes;
2083
- vectorIndexes: {
2084
- vector: {
2085
- vectorField: "vector";
2086
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2087
- filterFields: "model_table_userId" | "model_table_threadId";
2088
- };
2089
- };
2090
- };
2091
- embeddings_1408: {
2092
- document: {
2093
- _id: import("convex/values").GenericId<"embeddings_1408">;
2094
- _creationTime: number;
2095
- userId?: string | undefined;
2096
- threadId?: string | undefined;
2097
- model_table_userId?: string[] | undefined;
2098
- model_table_threadId?: string[] | undefined;
2099
2201
  model: string;
2100
2202
  table: string;
2101
- vector: number[];
2102
2203
  };
2103
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2204
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2104
2205
  indexes: {
2105
2206
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2106
2207
  by_id: ["_id"];
@@ -2110,51 +2211,24 @@ export declare const vv: {
2110
2211
  vectorIndexes: {
2111
2212
  vector: {
2112
2213
  vectorField: "vector";
2113
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2214
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2114
2215
  filterFields: "model_table_userId" | "model_table_threadId";
2115
2216
  };
2116
2217
  };
2117
2218
  };
2118
- embeddings_1536: {
2219
+ embeddings_512: {
2119
2220
  document: {
2120
- _id: import("convex/values").GenericId<"embeddings_1536">;
2221
+ _id: import("convex/values").GenericId<"embeddings_512">;
2121
2222
  _creationTime: number;
2122
2223
  userId?: string | undefined;
2123
2224
  threadId?: string | undefined;
2124
2225
  model_table_userId?: string[] | undefined;
2125
2226
  model_table_threadId?: string[] | undefined;
2126
- model: string;
2127
- table: string;
2128
2227
  vector: number[];
2129
- };
2130
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2131
- indexes: {
2132
- model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2133
- by_id: ["_id"];
2134
- by_creation_time: ["_creationTime"];
2135
- };
2136
- searchIndexes: import("convex/server").GenericTableSearchIndexes;
2137
- vectorIndexes: {
2138
- vector: {
2139
- vectorField: "vector";
2140
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2141
- filterFields: "model_table_userId" | "model_table_threadId";
2142
- };
2143
- };
2144
- };
2145
- embeddings_2048: {
2146
- document: {
2147
- _id: import("convex/values").GenericId<"embeddings_2048">;
2148
- _creationTime: number;
2149
- userId?: string | undefined;
2150
- threadId?: string | undefined;
2151
- model_table_userId?: string[] | undefined;
2152
- model_table_threadId?: string[] | undefined;
2153
2228
  model: string;
2154
2229
  table: string;
2155
- vector: number[];
2156
2230
  };
2157
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2231
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2158
2232
  indexes: {
2159
2233
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2160
2234
  by_id: ["_id"];
@@ -2164,24 +2238,24 @@ export declare const vv: {
2164
2238
  vectorIndexes: {
2165
2239
  vector: {
2166
2240
  vectorField: "vector";
2167
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2241
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2168
2242
  filterFields: "model_table_userId" | "model_table_threadId";
2169
2243
  };
2170
2244
  };
2171
2245
  };
2172
- embeddings_3072: {
2246
+ embeddings_768: {
2173
2247
  document: {
2174
- _id: import("convex/values").GenericId<"embeddings_3072">;
2248
+ _id: import("convex/values").GenericId<"embeddings_768">;
2175
2249
  _creationTime: number;
2176
2250
  userId?: string | undefined;
2177
2251
  threadId?: string | undefined;
2178
2252
  model_table_userId?: string[] | undefined;
2179
2253
  model_table_threadId?: string[] | undefined;
2254
+ vector: number[];
2180
2255
  model: string;
2181
2256
  table: string;
2182
- vector: number[];
2183
2257
  };
2184
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2258
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2185
2259
  indexes: {
2186
2260
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2187
2261
  by_id: ["_id"];
@@ -2191,24 +2265,24 @@ export declare const vv: {
2191
2265
  vectorIndexes: {
2192
2266
  vector: {
2193
2267
  vectorField: "vector";
2194
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2268
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2195
2269
  filterFields: "model_table_userId" | "model_table_threadId";
2196
2270
  };
2197
2271
  };
2198
2272
  };
2199
- embeddings_4096: {
2273
+ embeddings_1408: {
2200
2274
  document: {
2201
- _id: import("convex/values").GenericId<"embeddings_4096">;
2275
+ _id: import("convex/values").GenericId<"embeddings_1408">;
2202
2276
  _creationTime: number;
2203
2277
  userId?: string | undefined;
2204
2278
  threadId?: string | undefined;
2205
2279
  model_table_userId?: string[] | undefined;
2206
2280
  model_table_threadId?: string[] | undefined;
2281
+ vector: number[];
2207
2282
  model: string;
2208
2283
  table: string;
2209
- vector: number[];
2210
2284
  };
2211
- fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
2285
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2212
2286
  indexes: {
2213
2287
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2214
2288
  by_id: ["_id"];
@@ -2218,187 +2292,128 @@ export declare const vv: {
2218
2292
  vectorIndexes: {
2219
2293
  vector: {
2220
2294
  vectorField: "vector";
2221
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2295
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2222
2296
  filterFields: "model_table_userId" | "model_table_threadId";
2223
2297
  };
2224
2298
  };
2225
2299
  };
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;
2300
+ embeddings_1536: {
2301
+ document: {
2302
+ _id: import("convex/values").GenericId<"embeddings_1536">;
2303
+ _creationTime: number;
2304
+ userId?: string | undefined;
2305
+ threadId?: string | undefined;
2306
+ model_table_userId?: string[] | undefined;
2307
+ model_table_threadId?: string[] | undefined;
2308
+ vector: number[];
2309
+ model: string;
2310
+ table: string;
2377
2311
  };
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}`);
2312
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2379
2313
  indexes: {
2380
- threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
2381
- embeddingId: ["embeddingId", "_creationTime"];
2314
+ model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2382
2315
  by_id: ["_id"];
2383
2316
  by_creation_time: ["_creationTime"];
2384
2317
  };
2385
- searchIndexes: {
2386
- text_search: {
2387
- searchField: "text";
2388
- filterFields: "userId" | "threadId";
2318
+ searchIndexes: import("convex/server").GenericTableSearchIndexes;
2319
+ vectorIndexes: {
2320
+ vector: {
2321
+ vectorField: "vector";
2322
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2323
+ filterFields: "model_table_userId" | "model_table_threadId";
2324
+ };
2325
+ };
2326
+ };
2327
+ embeddings_2048: {
2328
+ document: {
2329
+ _id: import("convex/values").GenericId<"embeddings_2048">;
2330
+ _creationTime: number;
2331
+ userId?: string | undefined;
2332
+ threadId?: string | undefined;
2333
+ model_table_userId?: string[] | undefined;
2334
+ model_table_threadId?: string[] | undefined;
2335
+ vector: number[];
2336
+ model: string;
2337
+ table: string;
2338
+ };
2339
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2340
+ indexes: {
2341
+ model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2342
+ by_id: ["_id"];
2343
+ by_creation_time: ["_creationTime"];
2344
+ };
2345
+ searchIndexes: import("convex/server").GenericTableSearchIndexes;
2346
+ vectorIndexes: {
2347
+ vector: {
2348
+ vectorField: "vector";
2349
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2350
+ filterFields: "model_table_userId" | "model_table_threadId";
2351
+ };
2352
+ };
2353
+ };
2354
+ embeddings_3072: {
2355
+ document: {
2356
+ _id: import("convex/values").GenericId<"embeddings_3072">;
2357
+ _creationTime: number;
2358
+ userId?: string | undefined;
2359
+ threadId?: string | undefined;
2360
+ model_table_userId?: string[] | undefined;
2361
+ model_table_threadId?: string[] | undefined;
2362
+ vector: number[];
2363
+ model: string;
2364
+ table: string;
2365
+ };
2366
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2367
+ indexes: {
2368
+ model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2369
+ by_id: ["_id"];
2370
+ by_creation_time: ["_creationTime"];
2371
+ };
2372
+ searchIndexes: import("convex/server").GenericTableSearchIndexes;
2373
+ vectorIndexes: {
2374
+ vector: {
2375
+ vectorField: "vector";
2376
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2377
+ filterFields: "model_table_userId" | "model_table_threadId";
2378
+ };
2379
+ };
2380
+ };
2381
+ embeddings_4096: {
2382
+ document: {
2383
+ _id: import("convex/values").GenericId<"embeddings_4096">;
2384
+ _creationTime: number;
2385
+ userId?: string | undefined;
2386
+ threadId?: string | undefined;
2387
+ model_table_userId?: string[] | undefined;
2388
+ model_table_threadId?: string[] | undefined;
2389
+ vector: number[];
2390
+ model: string;
2391
+ table: string;
2392
+ };
2393
+ fieldPaths: "_id" | ("vector" | "model" | "_creationTime" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId");
2394
+ indexes: {
2395
+ model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2396
+ by_id: ["_id"];
2397
+ by_creation_time: ["_creationTime"];
2398
+ };
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";
2389
2405
  };
2390
2406
  };
2391
- vectorIndexes: {};
2392
2407
  };
2393
2408
  streamingMessages: {
2394
2409
  document: {
2395
2410
  _id: import("convex/values").GenericId<"streamingMessages">;
2396
2411
  _creationTime: number;
2397
- userId?: string | undefined;
2398
- agentName?: string | undefined;
2412
+ providerOptions?: Record<string, Record<string, any>> | undefined;
2399
2413
  model?: string | undefined;
2400
2414
  provider?: string | undefined;
2401
- providerOptions?: Record<string, Record<string, any>> | undefined;
2415
+ userId?: string | undefined;
2416
+ agentName?: string | undefined;
2402
2417
  order: number;
2403
2418
  threadId: import("convex/values").GenericId<"threads">;
2404
2419
  stepOrder: number;
@@ -2414,7 +2429,7 @@ export declare const vv: {
2414
2429
  kind: "error";
2415
2430
  };
2416
2431
  };
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");
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");
2418
2433
  indexes: {
2419
2434
  threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
2420
2435
  by_id: ["_id"];
@@ -2427,9 +2442,6 @@ export declare const vv: {
2427
2442
  document: {
2428
2443
  _id: import("convex/values").GenericId<"streamDeltas">;
2429
2444
  _creationTime: number;
2430
- streamId: import("convex/values").GenericId<"streamingMessages">;
2431
- start: number;
2432
- end: number;
2433
2445
  parts: ({
2434
2446
  providerOptions?: Record<string, Record<string, any>> | undefined;
2435
2447
  type: "tool-call";
@@ -2461,8 +2473,8 @@ export declare const vv: {
2461
2473
  } | {
2462
2474
  type: "source";
2463
2475
  source: {
2464
- title?: string | undefined;
2465
2476
  providerOptions?: Record<string, Record<string, any>> | undefined;
2477
+ title?: string | undefined;
2466
2478
  id: string;
2467
2479
  sourceType: "url";
2468
2480
  url: string;
@@ -2477,8 +2489,11 @@ export declare const vv: {
2477
2489
  toolName: string;
2478
2490
  argsTextDelta: string;
2479
2491
  })[];
2492
+ streamId: import("convex/values").GenericId<"streamingMessages">;
2493
+ start: number;
2494
+ end: number;
2480
2495
  };
2481
- fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
2496
+ fieldPaths: "_id" | ("parts" | "_creationTime" | "streamId" | "start" | "end");
2482
2497
  indexes: {
2483
2498
  streamId_start_end: ["streamId", "start", "end", "_creationTime"];
2484
2499
  by_id: ["_id"];
@@ -2493,7 +2508,7 @@ export declare const vv: {
2493
2508
  _creationTime: number;
2494
2509
  userId?: string | undefined;
2495
2510
  threadId?: import("convex/values").GenericId<"threads"> | 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;
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;
2497
2512
  memory: string;
2498
2513
  };
2499
2514
  fieldPaths: "_id" | ("_creationTime" | "userId" | "threadId" | "embeddingId" | "memory");
@@ -2507,21 +2522,6 @@ export declare const vv: {
2507
2522
  searchIndexes: {};
2508
2523
  vectorIndexes: {};
2509
2524
  };
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_128: import("convex/server").TableDefinition<import("convex/values").VObject<{
2533
+ embeddings_1024: 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[];
2538
2539
  model: string;
2539
2540
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2549
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2550
2550
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2551
2551
  }, import("convex/server").GenericTableSearchIndexes, {
2552
2552
  vector: {
2553
2553
  vectorField: "vector";
2554
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2554
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2555
2555
  filterFields: "model_table_userId" | "model_table_threadId";
2556
2556
  };
2557
2557
  }>;
2558
- embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
2558
+ embeddings_128: 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[];
2563
2564
  model: string;
2564
2565
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2574
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2575
2575
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2576
2576
  }, import("convex/server").GenericTableSearchIndexes, {
2577
2577
  vector: {
2578
2578
  vectorField: "vector";
2579
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2579
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2580
2580
  filterFields: "model_table_userId" | "model_table_threadId";
2581
2581
  };
2582
2582
  }>;
2583
- embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
2583
+ embeddings_256: 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[];
2588
2589
  model: string;
2589
2590
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2599
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2600
2600
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2601
2601
  }, import("convex/server").GenericTableSearchIndexes, {
2602
2602
  vector: {
2603
2603
  vectorField: "vector";
2604
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2604
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2605
2605
  filterFields: "model_table_userId" | "model_table_threadId";
2606
2606
  };
2607
2607
  }>;
2608
- embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
2608
+ embeddings_512: 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[];
2613
2614
  model: string;
2614
2615
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2624
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2625
2625
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2626
2626
  }, import("convex/server").GenericTableSearchIndexes, {
2627
2627
  vector: {
2628
2628
  vectorField: "vector";
2629
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2629
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 1408 | 1536 | 2048 | 3072 | 4096;
2630
2630
  filterFields: "model_table_userId" | "model_table_threadId";
2631
2631
  };
2632
2632
  }>;
2633
- embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
2633
+ embeddings_768: 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[];
2638
2639
  model: string;
2639
2640
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2649
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2650
2650
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2651
2651
  }, import("convex/server").GenericTableSearchIndexes, {
2652
2652
  vector: {
2653
2653
  vectorField: "vector";
2654
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2654
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
2663
2664
  model: string;
2664
2665
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2674
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2675
2675
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2676
2676
  }, import("convex/server").GenericTableSearchIndexes, {
2677
2677
  vector: {
2678
2678
  vectorField: "vector";
2679
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2679
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
2688
2689
  model: string;
2689
2690
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2699
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2700
2700
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2701
2701
  }, import("convex/server").GenericTableSearchIndexes, {
2702
2702
  vector: {
2703
2703
  vectorField: "vector";
2704
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2704
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
2713
2714
  model: string;
2714
2715
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2724
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2725
2725
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2726
2726
  }, import("convex/server").GenericTableSearchIndexes, {
2727
2727
  vector: {
2728
2728
  vectorField: "vector";
2729
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2729
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
2738
2739
  model: string;
2739
2740
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2749
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2750
2750
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2751
2751
  }, import("convex/server").GenericTableSearchIndexes, {
2752
2752
  vector: {
2753
2753
  vectorField: "vector";
2754
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2754
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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[];
2763
2764
  model: string;
2764
2765
  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", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
2774
+ }, "required", "vector" | "model" | "userId" | "threadId" | "table" | "model_table_userId" | "model_table_threadId">, {
2775
2775
  model_table_threadId: ["model", "table", "threadId", "_creationTime"];
2776
2776
  }, import("convex/server").GenericTableSearchIndexes, {
2777
2777
  vector: {
2778
2778
  vectorField: "vector";
2779
- dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
2779
+ dimensions: 1024 | 128 | 256 | 512 | 768 | 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
- userId?: string | undefined;
2785
2784
  title?: string | undefined;
2785
+ userId?: string | undefined;
2786
2786
  summary?: string | undefined;
2787
2787
  defaultSystemPrompt?: string | undefined;
2788
2788
  parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
@@ -2796,20 +2796,15 @@ 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", "status" | "userId" | "title" | "summary" | "defaultSystemPrompt" | "parentThreadIds" | "order">, {
2799
+ }, "required", "title" | "status" | "userId" | "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;
2803
2804
  id?: 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
- files?: any[] | undefined;
2808
- error?: string | undefined;
2809
- agentName?: string | undefined;
2810
- model?: string | undefined;
2811
- provider?: string | undefined;
2812
2805
  providerOptions?: Record<string, Record<string, any>> | undefined;
2806
+ reasoning?: string | undefined;
2807
+ files?: any[] | undefined;
2813
2808
  message?: {
2814
2809
  providerOptions?: Record<string, Record<string, any>> | undefined;
2815
2810
  role: "user";
@@ -2883,17 +2878,15 @@ export declare const vv: {
2883
2878
  role: "system";
2884
2879
  content: string;
2885
2880
  } | undefined;
2886
- text?: string | undefined;
2887
- reasoning?: string | undefined;
2888
- usage?: {
2889
- promptTokens: number;
2890
- completionTokens: number;
2891
- totalTokens: number;
2892
- } | 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;
2893
2886
  providerMetadata?: Record<string, Record<string, any>> | undefined;
2894
2887
  sources?: {
2895
- title?: string | undefined;
2896
2888
  providerOptions?: Record<string, Record<string, any>> | undefined;
2889
+ title?: string | undefined;
2897
2890
  id: string;
2898
2891
  sourceType: "url";
2899
2892
  url: string;
@@ -2906,6 +2899,11 @@ export declare const vv: {
2906
2899
  type: "redacted";
2907
2900
  data: string;
2908
2901
  })[] | undefined;
2902
+ usage?: {
2903
+ promptTokens: number;
2904
+ completionTokens: number;
2905
+ totalTokens: number;
2906
+ } | undefined;
2909
2907
  warnings?: ({
2910
2908
  details?: string | undefined;
2911
2909
  type: "unsupported-setting";
@@ -2918,21 +2916,23 @@ export declare const vv: {
2918
2916
  type: "other";
2919
2917
  message: string;
2920
2918
  })[] | undefined;
2921
- finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | 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;
2922
2922
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
2923
2923
  stepId?: string | undefined;
2924
+ tool: boolean;
2924
2925
  status: "pending" | "success" | "failed";
2925
2926
  order: number;
2926
2927
  threadId: import("convex/values").GenericId<"threads">;
2927
2928
  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_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>;
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>;
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" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
3089
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
3111
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3113
+ }, "required", "role" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
3227
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
3249
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `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" | "text" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3271
+ }, "required", "role" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3364
+ }, "required", "role" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
3372
+ }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">], "optional", "role" | "providerOptions" | `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
- title?: string | undefined;
3387
3386
  providerOptions?: Record<string, Record<string, any>> | undefined;
3387
+ title?: string | undefined;
3388
3388
  id: string;
3389
3389
  sourceType: "url";
3390
3390
  url: string;
3391
3391
  }[] | undefined, import("convex/values").VObject<{
3392
- title?: string | undefined;
3393
3392
  providerOptions?: Record<string, Record<string, any>> | undefined;
3393
+ title?: string | 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" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "optional">;
3403
+ }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "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" | "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>;
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>;
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", "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}`>, {
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">, {
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
- userId?: string | undefined;
3494
- agentName?: string | undefined;
3493
+ providerOptions?: Record<string, Record<string, any>> | undefined;
3495
3494
  model?: string | undefined;
3496
3495
  provider?: string | undefined;
3497
- providerOptions?: Record<string, Record<string, any>> | undefined;
3496
+ userId?: string | undefined;
3497
+ agentName?: string | undefined;
3498
3498
  order: number;
3499
3499
  threadId: import("convex/values").GenericId<"threads">;
3500
3500
  stepOrder: number;
@@ -3554,13 +3554,10 @@ 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", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
3557
+ }, "required", "providerOptions" | `providerOptions.${string}` | "model" | "provider" | "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "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;
3564
3561
  parts: ({
3565
3562
  providerOptions?: Record<string, Record<string, any>> | undefined;
3566
3563
  type: "tool-call";
@@ -3592,8 +3589,8 @@ export declare const vv: {
3592
3589
  } | {
3593
3590
  type: "source";
3594
3591
  source: {
3595
- title?: string | undefined;
3596
3592
  providerOptions?: Record<string, Record<string, any>> | undefined;
3593
+ title?: string | undefined;
3597
3594
  id: string;
3598
3595
  sourceType: "url";
3599
3596
  url: string;
@@ -3608,6 +3605,9 @@ export declare const vv: {
3608
3605
  toolName: string;
3609
3606
  argsTextDelta: string;
3610
3607
  })[];
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
- title?: string | undefined;
3647
3646
  providerOptions?: Record<string, Record<string, any>> | undefined;
3647
+ title?: string | 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
- title?: string | undefined;
3693
3692
  providerOptions?: Record<string, Record<string, any>> | undefined;
3693
+ title?: string | 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
- title?: string | undefined;
3723
3722
  providerOptions?: Record<string, Record<string, any>> | undefined;
3723
+ title?: string | 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
- title?: string | undefined;
3732
3731
  providerOptions?: Record<string, Record<string, any>> | undefined;
3732
+ title?: string | 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" | "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<{
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<{
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.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, "required">;
3827
- }, "required", "streamId" | "start" | "end" | "parts">, {
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">, {
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_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | 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;
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_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>;
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>;
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
- userId?: string | undefined;
3886
3885
  title?: string | undefined;
3886
+ userId?: string | undefined;
3887
3887
  summary?: string | undefined;
3888
3888
  _id: string;
3889
3889
  _creationTime: number;
@@ -3895,18 +3895,13 @@ 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", "_id" | "_creationTime" | "status" | "userId" | "title" | "summary">;
3898
+ }, "required", "title" | "_id" | "_creationTime" | "status" | "userId" | "summary">;
3899
3899
  export type ThreadDoc = Infer<typeof vThreadDoc>;
3900
3900
  export declare const vMessageDoc: import("convex/values").VObject<{
3901
+ text?: string | undefined;
3901
3902
  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;
3909
3903
  providerOptions?: Record<string, Record<string, any>> | undefined;
3904
+ reasoning?: string | undefined;
3910
3905
  message?: {
3911
3906
  providerOptions?: Record<string, Record<string, any>> | undefined;
3912
3907
  role: "user";
@@ -3980,17 +3975,15 @@ export declare const vMessageDoc: import("convex/values").VObject<{
3980
3975
  role: "system";
3981
3976
  content: string;
3982
3977
  } | undefined;
3983
- text?: string | undefined;
3984
- reasoning?: string | undefined;
3985
- usage?: {
3986
- promptTokens: number;
3987
- completionTokens: number;
3988
- totalTokens: number;
3989
- } | 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;
3990
3983
  providerMetadata?: Record<string, Record<string, any>> | undefined;
3991
3984
  sources?: {
3992
- title?: string | undefined;
3993
3985
  providerOptions?: Record<string, Record<string, any>> | undefined;
3986
+ title?: string | undefined;
3994
3987
  id: string;
3995
3988
  sourceType: "url";
3996
3989
  url: string;
@@ -4003,6 +3996,11 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4003
3996
  type: "redacted";
4004
3997
  data: string;
4005
3998
  })[] | undefined;
3999
+ usage?: {
4000
+ promptTokens: number;
4001
+ completionTokens: number;
4002
+ totalTokens: number;
4003
+ } | undefined;
4006
4004
  warnings?: ({
4007
4005
  details?: string | undefined;
4008
4006
  type: "unsupported-setting";
@@ -4015,14 +4013,16 @@ export declare const vMessageDoc: import("convex/values").VObject<{
4015
4013
  type: "other";
4016
4014
  message: string;
4017
4015
  })[] | undefined;
4018
- finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
4016
+ userId?: string | undefined;
4017
+ embeddingId?: string | undefined;
4018
+ agentName?: string | undefined;
4019
+ tool: boolean;
4019
4020
  _id: string;
4020
4021
  _creationTime: number;
4021
4022
  status: "pending" | "success" | "failed";
4022
4023
  order: number;
4023
4024
  threadId: string;
4024
4025
  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" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4186
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
4208
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "text" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4210
+ }, "required", "role" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4324
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
4346
+ }, "required", "type" | "text" | "providerOptions" | `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" | "providerOptions" | "text" | `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" | "text" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4368
+ }, "required", "role" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4461
+ }, "required", "role" | "providerOptions" | `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", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "optional", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
4469
+ }, "required", "role" | "providerOptions" | `providerOptions.${string}` | "content">], "optional", "role" | "providerOptions" | `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
- title?: string | undefined;
4484
4483
  providerOptions?: Record<string, Record<string, any>> | undefined;
4484
+ title?: string | undefined;
4485
4485
  id: string;
4486
4486
  sourceType: "url";
4487
4487
  url: string;
4488
4488
  }[] | undefined, import("convex/values").VObject<{
4489
- title?: string | undefined;
4490
4489
  providerOptions?: Record<string, Record<string, any>> | undefined;
4490
+ title?: string | 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" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "optional">;
4500
+ }, "required", "id" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url" | "title">, "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" | "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>;
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>;
4577
4577
  _id: import("convex/values").VString<string, "required">;
4578
4578
  _creationTime: import("convex/values").VFloat64<number, "required">;
4579
- }, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>;
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">;
4580
4580
  export type MessageDoc = Infer<typeof vMessageDoc>;
4581
4581
  export default schema;
4582
4582
  //# sourceMappingURL=schema.d.ts.map