@convex-dev/agent 0.0.1-alpha.2 → 0.0.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,57 +1,57 @@
1
1
  import { Id } from "./_generated/dataModel.js";
2
- export declare const getChat: import("convex/server").RegisteredQuery<"public", {
3
- chatId: import("convex/values").GenericId<"chats">;
2
+ export declare const getThread: import("convex/server").RegisteredQuery<"public", {
3
+ threadId: import("convex/values").GenericId<"threads">;
4
4
  }, Promise<{
5
- _id: import("convex/values").GenericId<"chats">;
5
+ _id: import("convex/values").GenericId<"threads">;
6
6
  _creationTime: number;
7
7
  title?: string | undefined;
8
8
  userId?: string | undefined;
9
9
  order?: number | undefined;
10
10
  defaultSystemPrompt?: string | undefined;
11
11
  summary?: string | undefined;
12
- parentChatIds?: import("convex/values").GenericId<"chats">[] | undefined;
12
+ parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
13
13
  status: "active" | "archived";
14
14
  } | null>>;
15
- export declare const getChatsByUserId: import("convex/server").RegisteredQuery<"public", {
15
+ export declare const getThreadsByUserId: import("convex/server").RegisteredQuery<"public", {
16
16
  limit?: number | undefined;
17
17
  cursor?: string | null | undefined;
18
18
  offset?: number | undefined;
19
19
  statuses?: ("active" | "archived")[] | undefined;
20
20
  userId: string;
21
21
  }, Promise<{
22
- chats: {
23
- _id: import("convex/values").GenericId<"chats">;
22
+ threads: {
23
+ _id: import("convex/values").GenericId<"threads">;
24
24
  _creationTime: number;
25
25
  title?: string | undefined;
26
26
  userId?: string | undefined;
27
27
  order?: number | undefined;
28
28
  defaultSystemPrompt?: string | undefined;
29
29
  summary?: string | undefined;
30
- parentChatIds?: import("convex/values").GenericId<"chats">[] | undefined;
30
+ parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
31
31
  status: "active" | "archived";
32
32
  }[];
33
33
  continueCursor: string;
34
34
  isDone: boolean;
35
35
  }>>;
36
- export declare const createChat: import("convex/server").RegisteredMutation<"public", {
36
+ export declare const createThread: import("convex/server").RegisteredMutation<"public", {
37
37
  title?: string | undefined;
38
38
  userId?: string | undefined;
39
39
  defaultSystemPrompt?: string | undefined;
40
40
  summary?: string | undefined;
41
- parentChatIds?: import("convex/values").GenericId<"chats">[] | undefined;
41
+ parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
42
42
  }, Promise<{
43
- _id: import("convex/values").GenericId<"chats">;
43
+ _id: import("convex/values").GenericId<"threads">;
44
44
  _creationTime: number;
45
45
  title?: string | undefined;
46
46
  userId?: string | undefined;
47
47
  order?: number | undefined;
48
48
  defaultSystemPrompt?: string | undefined;
49
49
  summary?: string | undefined;
50
- parentChatIds?: import("convex/values").GenericId<"chats">[] | undefined;
50
+ parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
51
51
  status: "active" | "archived";
52
52
  }>>;
53
- export declare const updateChat: import("convex/server").RegisteredMutation<"public", {
54
- chatId: import("convex/values").GenericId<"chats">;
53
+ export declare const updateThread: import("convex/server").RegisteredMutation<"public", {
54
+ threadId: import("convex/values").GenericId<"threads">;
55
55
  patch: {
56
56
  title?: string | undefined;
57
57
  status?: "active" | "archived" | undefined;
@@ -59,27 +59,27 @@ export declare const updateChat: import("convex/server").RegisteredMutation<"pub
59
59
  summary?: string | undefined;
60
60
  };
61
61
  }, Promise<{
62
- _id: import("convex/values").GenericId<"chats">;
62
+ _id: import("convex/values").GenericId<"threads">;
63
63
  _creationTime: number;
64
64
  title?: string | undefined;
65
65
  userId?: string | undefined;
66
66
  order?: number | undefined;
67
67
  defaultSystemPrompt?: string | undefined;
68
68
  summary?: string | undefined;
69
- parentChatIds?: import("convex/values").GenericId<"chats">[] | undefined;
69
+ parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
70
70
  status: "active" | "archived";
71
71
  }>>;
72
- export declare const archiveChat: import("convex/server").RegisteredMutation<"public", {
73
- chatId: import("convex/values").GenericId<"chats">;
72
+ export declare const archiveThread: import("convex/server").RegisteredMutation<"public", {
73
+ threadId: import("convex/values").GenericId<"threads">;
74
74
  }, Promise<{
75
- _id: import("convex/values").GenericId<"chats">;
75
+ _id: import("convex/values").GenericId<"threads">;
76
76
  _creationTime: number;
77
77
  title?: string | undefined;
78
78
  userId?: string | undefined;
79
79
  order?: number | undefined;
80
80
  defaultSystemPrompt?: string | undefined;
81
81
  summary?: string | undefined;
82
- parentChatIds?: import("convex/values").GenericId<"chats">[] | undefined;
82
+ parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
83
83
  status: "active" | "archived";
84
84
  }>>;
85
85
  export declare const deleteAllForUserId: import("convex/server").RegisteredAction<"public", {
@@ -91,37 +91,37 @@ export declare const deleteAllForUserIdAsync: import("convex/server").Registered
91
91
  export declare const _deleteAllForUserIdAsync: import("convex/server").RegisteredMutation<"internal", {
92
92
  userId: string;
93
93
  messagesCursor: string | null;
94
- chatsCursor: string | null;
94
+ threadsCursor: string | null;
95
95
  }, Promise<boolean>>;
96
96
  export declare const _deletePageForUserId: import("convex/server").RegisteredMutation<"internal", {
97
97
  userId: string;
98
98
  messagesCursor: string | null;
99
- chatsCursor: string | null;
99
+ threadsCursor: string | null;
100
100
  }, Promise<{
101
101
  isDone: boolean;
102
102
  messagesCursor: string;
103
- chatsCursor: string | null;
103
+ threadsCursor: string | null;
104
104
  }>>;
105
- export declare const deleteAllForChatIdSync: import("convex/server").RegisteredAction<"public", {
105
+ export declare const deleteAllForThreadIdSync: import("convex/server").RegisteredAction<"public", {
106
106
  limit?: number | undefined;
107
107
  cursor?: string | undefined;
108
- chatId: import("convex/values").GenericId<"chats">;
108
+ threadId: import("convex/values").GenericId<"threads">;
109
109
  }, Promise<{
110
110
  isDone: boolean;
111
111
  cursor: string;
112
112
  }>>;
113
- export declare const deleteAllForChatIdAsync: import("convex/server").RegisteredMutation<"public", {
113
+ export declare const deleteAllForThreadIdAsync: import("convex/server").RegisteredMutation<"public", {
114
114
  limit?: number | undefined;
115
115
  cursor?: string | undefined;
116
- chatId: import("convex/values").GenericId<"chats">;
116
+ threadId: import("convex/values").GenericId<"threads">;
117
117
  }, Promise<{
118
118
  isDone: boolean;
119
119
  cursor: string;
120
120
  }>>;
121
- export declare const _deletePageForChatId: import("convex/server").RegisteredMutation<"internal", {
121
+ export declare const _deletePageForThreadId: import("convex/server").RegisteredMutation<"internal", {
122
122
  limit?: number | undefined;
123
123
  cursor?: string | undefined;
124
- chatId: import("convex/values").GenericId<"chats">;
124
+ threadId: import("convex/values").GenericId<"threads">;
125
125
  }, Promise<{
126
126
  isDone: boolean;
127
127
  cursor: string;
@@ -229,8 +229,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
229
229
  fileId?: import("convex/values").GenericId<"files"> | undefined;
230
230
  model?: string | undefined;
231
231
  userId?: string | undefined;
232
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
233
- threadId?: import("convex/values").GenericId<"messages"> | undefined;
232
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
233
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
234
234
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
235
235
  agentName?: string | undefined;
236
236
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
@@ -241,8 +241,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
241
241
  }, {
242
242
  id: import("convex/values").VString<string | undefined, "optional">;
243
243
  userId: import("convex/values").VString<string | undefined, "optional">;
244
- chatId: import("convex/values").VId<import("convex/values").GenericId<"chats"> | undefined, "optional">;
245
- threadId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
244
+ threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
245
+ parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
246
246
  stepId: import("convex/values").VId<import("convex/values").GenericId<"steps"> | undefined, "optional">;
247
247
  agentName: import("convex/values").VString<string | undefined, "optional">;
248
248
  message: import("convex/values").VUnion<{
@@ -735,16 +735,16 @@ export declare const vMessageDoc: import("convex/values").VObject<{
735
735
  stepOrder: import("convex/values").VFloat64<number | undefined, "optional">;
736
736
  fileId: import("convex/values").VId<import("convex/values").GenericId<"files"> | undefined, "optional">;
737
737
  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>;
738
- }, "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">;
738
+ }, "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">;
739
739
  export declare const messageStatuses: ("pending" | "success" | "failed")[];
740
740
  export declare const addMessages: import("convex/server").RegisteredMutation<"public", {
741
741
  pending?: boolean | undefined;
742
742
  model?: string | undefined;
743
743
  userId?: string | undefined;
744
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
744
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
745
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
745
746
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
746
747
  agentName?: string | undefined;
747
- parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
748
748
  failPendingSteps?: boolean | undefined;
749
749
  messages: {
750
750
  id?: string | undefined;
@@ -925,8 +925,8 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
925
925
  fileId?: import("convex/values").GenericId<"files"> | undefined;
926
926
  model?: string | undefined;
927
927
  userId?: string | undefined;
928
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
929
- threadId?: import("convex/values").GenericId<"messages"> | undefined;
928
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
929
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
930
930
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
931
931
  agentName?: string | undefined;
932
932
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
@@ -938,7 +938,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
938
938
  }>>;
939
939
  export declare const addSteps: import("convex/server").RegisteredMutation<"public", {
940
940
  failPendingSteps?: boolean | undefined;
941
- chatId: import("convex/values").GenericId<"chats">;
941
+ threadId: import("convex/values").GenericId<"threads">;
942
942
  steps: {
943
943
  messages: {
944
944
  id?: string | undefined;
@@ -1358,11 +1358,11 @@ export declare const addSteps: import("convex/server").RegisteredMutation<"publi
1358
1358
  result: any;
1359
1359
  }[];
1360
1360
  };
1361
- chatId: import("convex/values").GenericId<"chats">;
1361
+ threadId: import("convex/values").GenericId<"threads">;
1362
1362
  status: "pending" | "success" | "failed";
1363
1363
  order: number;
1364
- stepOrder: number;
1365
1364
  parentMessageId: import("convex/values").GenericId<"messages">;
1365
+ stepOrder: number;
1366
1366
  }[]>>;
1367
1367
  export declare const rollbackMessage: import("convex/server").RegisteredMutation<"public", {
1368
1368
  error?: string | undefined;
@@ -1371,14 +1371,14 @@ export declare const rollbackMessage: import("convex/server").RegisteredMutation
1371
1371
  export declare const commitMessage: import("convex/server").RegisteredMutation<"public", {
1372
1372
  messageId: Id<"messages">;
1373
1373
  }, Promise<void>>;
1374
- export declare const getChatMessages: import("convex/server").RegisteredQuery<"public", {
1374
+ export declare const getThreadMessages: import("convex/server").RegisteredQuery<"public", {
1375
1375
  limit?: number | undefined;
1376
1376
  order?: "asc" | "desc" | undefined;
1377
1377
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1378
1378
  cursor?: string | undefined;
1379
1379
  statuses?: ("pending" | "success" | "failed")[] | undefined;
1380
1380
  isTool?: boolean | undefined;
1381
- chatId: import("convex/values").GenericId<"chats">;
1381
+ threadId: import("convex/values").GenericId<"threads">;
1382
1382
  }, Promise<{
1383
1383
  messages: {
1384
1384
  _id: import("convex/values").GenericId<"messages">;
@@ -1471,8 +1471,8 @@ export declare const getChatMessages: import("convex/server").RegisteredQuery<"p
1471
1471
  fileId?: import("convex/values").GenericId<"files"> | undefined;
1472
1472
  model?: string | undefined;
1473
1473
  userId?: string | undefined;
1474
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1475
- threadId?: import("convex/values").GenericId<"messages"> | undefined;
1474
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1475
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1476
1476
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
1477
1477
  agentName?: string | undefined;
1478
1478
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
@@ -1493,7 +1493,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1493
1493
  after: number;
1494
1494
  } | undefined;
1495
1495
  userId?: string | undefined;
1496
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1496
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1497
1497
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1498
1498
  limit: number;
1499
1499
  }, Promise<{
@@ -1587,8 +1587,8 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1587
1587
  fileId?: import("convex/values").GenericId<"files"> | undefined;
1588
1588
  model?: string | undefined;
1589
1589
  userId?: string | undefined;
1590
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1591
- threadId?: import("convex/values").GenericId<"messages"> | undefined;
1590
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1591
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1592
1592
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
1593
1593
  agentName?: string | undefined;
1594
1594
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
@@ -1599,7 +1599,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1599
1599
  }[]>>;
1600
1600
  export declare const _fetchVectorMessages: import("convex/server").RegisteredQuery<"internal", {
1601
1601
  userId?: string | undefined;
1602
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1602
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1603
1603
  parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1604
1604
  textSearchMessages?: {
1605
1605
  id?: string | undefined;
@@ -1690,8 +1690,8 @@ export declare const _fetchVectorMessages: import("convex/server").RegisteredQue
1690
1690
  fileId?: import("convex/values").GenericId<"files"> | undefined;
1691
1691
  model?: string | undefined;
1692
1692
  userId?: string | undefined;
1693
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1694
- threadId?: import("convex/values").GenericId<"messages"> | undefined;
1693
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1694
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1695
1695
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
1696
1696
  agentName?: string | undefined;
1697
1697
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
@@ -1799,8 +1799,8 @@ export declare const _fetchVectorMessages: import("convex/server").RegisteredQue
1799
1799
  fileId?: import("convex/values").GenericId<"files"> | undefined;
1800
1800
  model?: string | undefined;
1801
1801
  userId?: string | undefined;
1802
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1803
- threadId?: import("convex/values").GenericId<"messages"> | undefined;
1802
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1803
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1804
1804
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
1805
1805
  agentName?: string | undefined;
1806
1806
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
@@ -1811,7 +1811,7 @@ export declare const _fetchVectorMessages: import("convex/server").RegisteredQue
1811
1811
  }[]>>;
1812
1812
  export declare const textSearch: import("convex/server").RegisteredQuery<"public", {
1813
1813
  userId?: string | undefined;
1814
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1814
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1815
1815
  text: string;
1816
1816
  limit: number;
1817
1817
  }, Promise<{
@@ -1905,8 +1905,8 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1905
1905
  fileId?: import("convex/values").GenericId<"files"> | undefined;
1906
1906
  model?: string | undefined;
1907
1907
  userId?: string | undefined;
1908
- chatId?: import("convex/values").GenericId<"chats"> | undefined;
1909
- threadId?: import("convex/values").GenericId<"messages"> | undefined;
1908
+ threadId?: import("convex/values").GenericId<"threads"> | undefined;
1909
+ parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
1910
1910
  stepId?: import("convex/values").GenericId<"steps"> | undefined;
1911
1911
  agentName?: string | undefined;
1912
1912
  embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/component/messages.ts"],"names":[],"mappings":"AAcA,OAAO,EAAO,EAAE,EAAE,MAAM,2BAA2B,CAAC;AAkBpD,eAAO,MAAM,OAAO;;;;;;;;;;;;UAMlB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;GAmC3B,CAAC;AAKH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;GAqBrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;GAqBrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;GAStB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAsB7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;oBAalC,CAAC;AAeH,eAAO,MAAM,wBAAwB;;;;oBAInC,CAAC;AAqBH,eAAO,MAAM,oBAAoB;;;;;;;;GAI/B,CAAC;AAsEH,eAA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