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