@convex-dev/agent 0.0.1-alpha.1 → 0.0.1-alpha.3

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