@convex-dev/agent 0.1.1-alpha.0 → 0.1.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/commonjs/client/createTool.d.ts +49 -0
- package/dist/commonjs/client/createTool.d.ts.map +1 -0
- package/dist/commonjs/client/createTool.js +45 -0
- package/dist/commonjs/client/createTool.js.map +1 -0
- package/dist/commonjs/client/index.d.ts +101 -322
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +142 -194
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/streaming.d.ts +54 -0
- package/dist/commonjs/client/streaming.d.ts.map +1 -0
- package/dist/commonjs/client/streaming.js +121 -0
- package/dist/commonjs/client/streaming.js.map +1 -0
- package/dist/commonjs/client/types.d.ts +290 -2
- package/dist/commonjs/client/types.d.ts.map +1 -1
- package/dist/commonjs/component/messages.d.ts +109 -143
- package/dist/commonjs/component/messages.d.ts.map +1 -1
- package/dist/commonjs/component/messages.js +15 -14
- package/dist/commonjs/component/messages.js.map +1 -1
- package/dist/commonjs/component/schema.d.ts +1026 -52
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +39 -1
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/streams.d.ts +191 -0
- package/dist/commonjs/component/streams.d.ts.map +1 -0
- package/dist/commonjs/component/streams.js +169 -0
- package/dist/commonjs/component/streams.js.map +1 -0
- package/dist/commonjs/component/threads.d.ts +1 -1
- package/dist/commonjs/component/threads.js +3 -3
- package/dist/commonjs/component/threads.js.map +1 -1
- package/dist/commonjs/component/users.js +2 -2
- package/dist/commonjs/component/users.js.map +1 -1
- package/dist/commonjs/component/vector/index.d.ts +8 -8
- package/dist/commonjs/component/vector/index.d.ts.map +1 -1
- package/dist/commonjs/component/vector/tables.d.ts +5 -5
- package/dist/commonjs/component/vector/tables.d.ts.map +1 -1
- package/dist/commonjs/component/vector/tables.js +1 -1
- package/dist/commonjs/component/vector/tables.js.map +1 -1
- package/dist/commonjs/mapping.d.ts.map +1 -1
- package/dist/commonjs/mapping.js +3 -1
- package/dist/commonjs/mapping.js.map +1 -1
- package/dist/commonjs/react/index.d.ts +99 -0
- package/dist/commonjs/react/index.d.ts.map +1 -1
- package/dist/commonjs/react/index.js +505 -1
- package/dist/commonjs/react/index.js.map +1 -1
- package/dist/commonjs/react/toUIMessages.d.ts +8 -0
- package/dist/commonjs/react/toUIMessages.d.ts.map +1 -0
- package/dist/commonjs/react/toUIMessages.js +134 -0
- package/dist/commonjs/react/toUIMessages.js.map +1 -0
- package/dist/commonjs/validators.d.ts +513 -11
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +49 -2
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/esm/client/createTool.d.ts +49 -0
- package/dist/esm/client/createTool.d.ts.map +1 -0
- package/dist/esm/client/createTool.js +45 -0
- package/dist/esm/client/createTool.js.map +1 -0
- package/dist/esm/client/index.d.ts +101 -322
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +142 -194
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/streaming.d.ts +54 -0
- package/dist/esm/client/streaming.d.ts.map +1 -0
- package/dist/esm/client/streaming.js +121 -0
- package/dist/esm/client/streaming.js.map +1 -0
- package/dist/esm/client/types.d.ts +290 -2
- package/dist/esm/client/types.d.ts.map +1 -1
- package/dist/esm/component/messages.d.ts +109 -143
- package/dist/esm/component/messages.d.ts.map +1 -1
- package/dist/esm/component/messages.js +15 -14
- package/dist/esm/component/messages.js.map +1 -1
- package/dist/esm/component/schema.d.ts +1026 -52
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +39 -1
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/streams.d.ts +191 -0
- package/dist/esm/component/streams.d.ts.map +1 -0
- package/dist/esm/component/streams.js +169 -0
- package/dist/esm/component/streams.js.map +1 -0
- package/dist/esm/component/threads.d.ts +1 -1
- package/dist/esm/component/threads.js +3 -3
- package/dist/esm/component/threads.js.map +1 -1
- package/dist/esm/component/users.js +2 -2
- package/dist/esm/component/users.js.map +1 -1
- package/dist/esm/component/vector/index.d.ts +8 -8
- package/dist/esm/component/vector/index.d.ts.map +1 -1
- package/dist/esm/component/vector/tables.d.ts +5 -5
- package/dist/esm/component/vector/tables.d.ts.map +1 -1
- package/dist/esm/component/vector/tables.js +1 -1
- package/dist/esm/component/vector/tables.js.map +1 -1
- package/dist/esm/mapping.d.ts.map +1 -1
- package/dist/esm/mapping.js +3 -1
- package/dist/esm/mapping.js.map +1 -1
- package/dist/esm/react/index.d.ts +99 -0
- package/dist/esm/react/index.d.ts.map +1 -1
- package/dist/esm/react/index.js +505 -1
- package/dist/esm/react/index.js.map +1 -1
- package/dist/esm/react/toUIMessages.d.ts +8 -0
- package/dist/esm/react/toUIMessages.d.ts.map +1 -0
- package/dist/esm/react/toUIMessages.js +134 -0
- package/dist/esm/react/toUIMessages.js.map +1 -0
- package/dist/esm/validators.d.ts +513 -11
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +49 -2
- package/dist/esm/validators.js.map +1 -1
- package/package.json +6 -2
- package/src/client/createTool.ts +108 -0
- package/src/client/index.ts +270 -689
- package/src/client/streaming.ts +166 -0
- package/src/client/types.ts +430 -5
- package/src/component/_generated/api.d.ts +367 -190
- package/src/component/messages.ts +15 -14
- package/src/component/schema.ts +46 -0
- package/src/component/streams.ts +206 -0
- package/src/component/threads.ts +3 -3
- package/src/component/users.ts +2 -2
- package/src/component/vector/tables.ts +1 -1
- package/src/mapping.ts +3 -1
- package/src/react/index.ts +687 -1
- package/src/react/toUIMessages.ts +153 -0
- package/src/validators.test.ts +18 -0
- package/src/validators.ts +72 -2
- package/dist/commonjs/deltaStreaming.d.ts +0 -2
- package/dist/commonjs/deltaStreaming.d.ts.map +0 -1
- package/dist/commonjs/deltaStreaming.js +0 -2
- package/dist/commonjs/deltaStreaming.js.map +0 -1
- package/dist/esm/deltaStreaming.d.ts +0 -2
- package/dist/esm/deltaStreaming.d.ts.map +0 -1
- package/dist/esm/deltaStreaming.js +0 -2
- package/dist/esm/deltaStreaming.js.map +0 -1
- package/src/deltaStreaming.ts +0 -1
|
@@ -28,7 +28,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
28
28
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
29
29
|
vector: {
|
|
30
30
|
vectorField: "vector";
|
|
31
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
31
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
32
32
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
33
33
|
};
|
|
34
34
|
}>;
|
|
@@ -53,7 +53,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
53
53
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
54
54
|
vector: {
|
|
55
55
|
vectorField: "vector";
|
|
56
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
56
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
57
57
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
58
58
|
};
|
|
59
59
|
}>;
|
|
@@ -78,7 +78,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
78
78
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
79
79
|
vector: {
|
|
80
80
|
vectorField: "vector";
|
|
81
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
81
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
82
82
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
83
83
|
};
|
|
84
84
|
}>;
|
|
@@ -103,7 +103,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
103
103
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
104
104
|
vector: {
|
|
105
105
|
vectorField: "vector";
|
|
106
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
106
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
107
107
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
@@ -128,7 +128,32 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
128
128
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
129
129
|
vector: {
|
|
130
130
|
vectorField: "vector";
|
|
131
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
131
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
132
|
+
filterFields: "model_table_userId" | "model_table_threadId";
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
embeddings_1408: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
136
|
+
userId?: string | undefined;
|
|
137
|
+
threadId?: string | undefined;
|
|
138
|
+
model_table_userId?: string[] | undefined;
|
|
139
|
+
model_table_threadId?: string[] | undefined;
|
|
140
|
+
model: string;
|
|
141
|
+
table: string;
|
|
142
|
+
vector: number[];
|
|
143
|
+
}, {
|
|
144
|
+
model: import("convex/values").VString<string, "required">;
|
|
145
|
+
table: import("convex/values").VString<string, "required">;
|
|
146
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
147
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
148
|
+
model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
149
|
+
model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
150
|
+
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
151
|
+
}, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
|
|
152
|
+
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
153
|
+
}, import("convex/server").GenericTableSearchIndexes, {
|
|
154
|
+
vector: {
|
|
155
|
+
vectorField: "vector";
|
|
156
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
132
157
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
133
158
|
};
|
|
134
159
|
}>;
|
|
@@ -153,7 +178,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
153
178
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
154
179
|
vector: {
|
|
155
180
|
vectorField: "vector";
|
|
156
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
181
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
157
182
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
158
183
|
};
|
|
159
184
|
}>;
|
|
@@ -178,7 +203,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
178
203
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
179
204
|
vector: {
|
|
180
205
|
vectorField: "vector";
|
|
181
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
206
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
182
207
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
183
208
|
};
|
|
184
209
|
}>;
|
|
@@ -203,7 +228,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
203
228
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
204
229
|
vector: {
|
|
205
230
|
vectorField: "vector";
|
|
206
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
231
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
207
232
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
208
233
|
};
|
|
209
234
|
}>;
|
|
@@ -228,7 +253,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
228
253
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
229
254
|
vector: {
|
|
230
255
|
vectorField: "vector";
|
|
231
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
256
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
232
257
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
233
258
|
};
|
|
234
259
|
}>;
|
|
@@ -254,7 +279,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
254
279
|
messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
255
280
|
id?: string | undefined;
|
|
256
281
|
userId?: string | undefined;
|
|
257
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
282
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
258
283
|
error?: string | undefined;
|
|
259
284
|
agentName?: string | undefined;
|
|
260
285
|
model?: string | undefined;
|
|
@@ -386,7 +411,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
386
411
|
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
387
412
|
order: import("convex/values").VFloat64<number, "required">;
|
|
388
413
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
389
|
-
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
414
|
+
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
390
415
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
391
416
|
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>;
|
|
392
417
|
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -2137,16 +2162,354 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
2137
2162
|
status_threadId_order_stepOrder: ["status", "threadId", "order", "stepOrder", "_creationTime"];
|
|
2138
2163
|
parentMessageId_order_stepOrder: ["parentMessageId", "order", "stepOrder", "_creationTime"];
|
|
2139
2164
|
}, {}, {}>;
|
|
2165
|
+
streamingMessages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2166
|
+
userId?: string | undefined;
|
|
2167
|
+
agentName?: string | undefined;
|
|
2168
|
+
model?: string | undefined;
|
|
2169
|
+
provider?: string | undefined;
|
|
2170
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2171
|
+
order: number;
|
|
2172
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
2173
|
+
stepOrder: number;
|
|
2174
|
+
state: {
|
|
2175
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
2176
|
+
kind: "streaming";
|
|
2177
|
+
lastHeartbeat: number;
|
|
2178
|
+
} | {
|
|
2179
|
+
kind: "finished";
|
|
2180
|
+
endedAt: number;
|
|
2181
|
+
} | {
|
|
2182
|
+
error: string;
|
|
2183
|
+
kind: "error";
|
|
2184
|
+
};
|
|
2185
|
+
}, {
|
|
2186
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
2187
|
+
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
2188
|
+
model: import("convex/values").VString<string | undefined, "optional">;
|
|
2189
|
+
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
2190
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2191
|
+
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
2192
|
+
order: import("convex/values").VFloat64<number, "required">;
|
|
2193
|
+
/**
|
|
2194
|
+
* The step order of the first message in the stream.
|
|
2195
|
+
* If the stream ends up with both a tool call and a tool result,
|
|
2196
|
+
* the stepOrder of the result will be +1 of the tool call.
|
|
2197
|
+
*/
|
|
2198
|
+
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
2199
|
+
state: import("convex/values").VUnion<{
|
|
2200
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
2201
|
+
kind: "streaming";
|
|
2202
|
+
lastHeartbeat: number;
|
|
2203
|
+
} | {
|
|
2204
|
+
kind: "finished";
|
|
2205
|
+
endedAt: number;
|
|
2206
|
+
} | {
|
|
2207
|
+
error: string;
|
|
2208
|
+
kind: "error";
|
|
2209
|
+
}, [import("convex/values").VObject<{
|
|
2210
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
2211
|
+
kind: "streaming";
|
|
2212
|
+
lastHeartbeat: number;
|
|
2213
|
+
}, {
|
|
2214
|
+
kind: import("convex/values").VLiteral<"streaming", "required">;
|
|
2215
|
+
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
2216
|
+
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
2217
|
+
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
2218
|
+
kind: "finished";
|
|
2219
|
+
endedAt: number;
|
|
2220
|
+
}, {
|
|
2221
|
+
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
2222
|
+
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
2223
|
+
}, "required", "kind" | "endedAt">, import("convex/values").VObject<{
|
|
2224
|
+
error: string;
|
|
2225
|
+
kind: "error";
|
|
2226
|
+
}, {
|
|
2227
|
+
kind: import("convex/values").VLiteral<"error", "required">;
|
|
2228
|
+
error: import("convex/values").VString<string, "required">;
|
|
2229
|
+
}, "required", "error" | "kind">], "required", "error" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt">;
|
|
2230
|
+
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
|
|
2231
|
+
threadId_order_stepOrder: ["threadId", "order", "stepOrder", "_creationTime"];
|
|
2232
|
+
}, {}, {}>;
|
|
2233
|
+
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2234
|
+
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
2235
|
+
start: number;
|
|
2236
|
+
end: number;
|
|
2237
|
+
parts: ({
|
|
2238
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2239
|
+
type: "tool-call";
|
|
2240
|
+
toolCallId: string;
|
|
2241
|
+
toolName: string;
|
|
2242
|
+
args: any;
|
|
2243
|
+
} | {
|
|
2244
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2245
|
+
args?: any;
|
|
2246
|
+
experimental_content?: ({
|
|
2247
|
+
type: "text";
|
|
2248
|
+
text: string;
|
|
2249
|
+
} | {
|
|
2250
|
+
mimeType?: string | undefined;
|
|
2251
|
+
type: "image";
|
|
2252
|
+
data: string;
|
|
2253
|
+
})[] | undefined;
|
|
2254
|
+
isError?: boolean | undefined;
|
|
2255
|
+
type: "tool-result";
|
|
2256
|
+
toolCallId: string;
|
|
2257
|
+
toolName: string;
|
|
2258
|
+
result: any;
|
|
2259
|
+
} | {
|
|
2260
|
+
type: "text-delta";
|
|
2261
|
+
textDelta: string;
|
|
2262
|
+
} | {
|
|
2263
|
+
type: "reasoning";
|
|
2264
|
+
textDelta: string;
|
|
2265
|
+
} | {
|
|
2266
|
+
type: "source";
|
|
2267
|
+
source: {
|
|
2268
|
+
title?: string | undefined;
|
|
2269
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2270
|
+
id: string;
|
|
2271
|
+
url: string;
|
|
2272
|
+
sourceType: "url";
|
|
2273
|
+
};
|
|
2274
|
+
} | {
|
|
2275
|
+
type: "tool-call-streaming-start";
|
|
2276
|
+
toolCallId: string;
|
|
2277
|
+
toolName: string;
|
|
2278
|
+
} | {
|
|
2279
|
+
type: "tool-call-delta";
|
|
2280
|
+
toolCallId: string;
|
|
2281
|
+
toolName: string;
|
|
2282
|
+
argsTextDelta: string;
|
|
2283
|
+
})[];
|
|
2284
|
+
}, {
|
|
2285
|
+
streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
|
|
2286
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
2287
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
2288
|
+
parts: import("convex/values").VArray<({
|
|
2289
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2290
|
+
type: "tool-call";
|
|
2291
|
+
toolCallId: string;
|
|
2292
|
+
toolName: string;
|
|
2293
|
+
args: any;
|
|
2294
|
+
} | {
|
|
2295
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2296
|
+
args?: any;
|
|
2297
|
+
experimental_content?: ({
|
|
2298
|
+
type: "text";
|
|
2299
|
+
text: string;
|
|
2300
|
+
} | {
|
|
2301
|
+
mimeType?: string | undefined;
|
|
2302
|
+
type: "image";
|
|
2303
|
+
data: string;
|
|
2304
|
+
})[] | undefined;
|
|
2305
|
+
isError?: boolean | undefined;
|
|
2306
|
+
type: "tool-result";
|
|
2307
|
+
toolCallId: string;
|
|
2308
|
+
toolName: string;
|
|
2309
|
+
result: any;
|
|
2310
|
+
} | {
|
|
2311
|
+
type: "text-delta";
|
|
2312
|
+
textDelta: string;
|
|
2313
|
+
} | {
|
|
2314
|
+
type: "reasoning";
|
|
2315
|
+
textDelta: string;
|
|
2316
|
+
} | {
|
|
2317
|
+
type: "source";
|
|
2318
|
+
source: {
|
|
2319
|
+
title?: string | undefined;
|
|
2320
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2321
|
+
id: string;
|
|
2322
|
+
url: string;
|
|
2323
|
+
sourceType: "url";
|
|
2324
|
+
};
|
|
2325
|
+
} | {
|
|
2326
|
+
type: "tool-call-streaming-start";
|
|
2327
|
+
toolCallId: string;
|
|
2328
|
+
toolName: string;
|
|
2329
|
+
} | {
|
|
2330
|
+
type: "tool-call-delta";
|
|
2331
|
+
toolCallId: string;
|
|
2332
|
+
toolName: string;
|
|
2333
|
+
argsTextDelta: string;
|
|
2334
|
+
})[], import("convex/values").VUnion<{
|
|
2335
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2336
|
+
type: "tool-call";
|
|
2337
|
+
toolCallId: string;
|
|
2338
|
+
toolName: string;
|
|
2339
|
+
args: any;
|
|
2340
|
+
} | {
|
|
2341
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2342
|
+
args?: any;
|
|
2343
|
+
experimental_content?: ({
|
|
2344
|
+
type: "text";
|
|
2345
|
+
text: string;
|
|
2346
|
+
} | {
|
|
2347
|
+
mimeType?: string | undefined;
|
|
2348
|
+
type: "image";
|
|
2349
|
+
data: string;
|
|
2350
|
+
})[] | undefined;
|
|
2351
|
+
isError?: boolean | undefined;
|
|
2352
|
+
type: "tool-result";
|
|
2353
|
+
toolCallId: string;
|
|
2354
|
+
toolName: string;
|
|
2355
|
+
result: any;
|
|
2356
|
+
} | {
|
|
2357
|
+
type: "text-delta";
|
|
2358
|
+
textDelta: string;
|
|
2359
|
+
} | {
|
|
2360
|
+
type: "reasoning";
|
|
2361
|
+
textDelta: string;
|
|
2362
|
+
} | {
|
|
2363
|
+
type: "source";
|
|
2364
|
+
source: {
|
|
2365
|
+
title?: string | undefined;
|
|
2366
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2367
|
+
id: string;
|
|
2368
|
+
url: string;
|
|
2369
|
+
sourceType: "url";
|
|
2370
|
+
};
|
|
2371
|
+
} | {
|
|
2372
|
+
type: "tool-call-streaming-start";
|
|
2373
|
+
toolCallId: string;
|
|
2374
|
+
toolName: string;
|
|
2375
|
+
} | {
|
|
2376
|
+
type: "tool-call-delta";
|
|
2377
|
+
toolCallId: string;
|
|
2378
|
+
toolName: string;
|
|
2379
|
+
argsTextDelta: string;
|
|
2380
|
+
}, [import("convex/values").VObject<{
|
|
2381
|
+
type: "text-delta";
|
|
2382
|
+
textDelta: string;
|
|
2383
|
+
}, {
|
|
2384
|
+
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
2385
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
2386
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
2387
|
+
type: "reasoning";
|
|
2388
|
+
textDelta: string;
|
|
2389
|
+
}, {
|
|
2390
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
2391
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
2392
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
2393
|
+
type: "source";
|
|
2394
|
+
source: {
|
|
2395
|
+
title?: string | undefined;
|
|
2396
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2397
|
+
id: string;
|
|
2398
|
+
url: string;
|
|
2399
|
+
sourceType: "url";
|
|
2400
|
+
};
|
|
2401
|
+
}, {
|
|
2402
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
2403
|
+
source: import("convex/values").VObject<{
|
|
2404
|
+
title?: string | undefined;
|
|
2405
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2406
|
+
id: string;
|
|
2407
|
+
url: string;
|
|
2408
|
+
sourceType: "url";
|
|
2409
|
+
}, {
|
|
2410
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
2411
|
+
id: import("convex/values").VString<string, "required">;
|
|
2412
|
+
url: import("convex/values").VString<string, "required">;
|
|
2413
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2414
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2415
|
+
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "url" | "sourceType">;
|
|
2416
|
+
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType">, import("convex/values").VObject<{
|
|
2417
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2418
|
+
type: "tool-call";
|
|
2419
|
+
toolCallId: string;
|
|
2420
|
+
toolName: string;
|
|
2421
|
+
args: any;
|
|
2422
|
+
}, {
|
|
2423
|
+
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
2424
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
2425
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
2426
|
+
args: import("convex/values").VAny<any, "required", string>;
|
|
2427
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2428
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
2429
|
+
type: "tool-call-streaming-start";
|
|
2430
|
+
toolCallId: string;
|
|
2431
|
+
toolName: string;
|
|
2432
|
+
}, {
|
|
2433
|
+
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
2434
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
2435
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
2436
|
+
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
2437
|
+
type: "tool-call-delta";
|
|
2438
|
+
toolCallId: string;
|
|
2439
|
+
toolName: string;
|
|
2440
|
+
argsTextDelta: string;
|
|
2441
|
+
}, {
|
|
2442
|
+
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
2443
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
2444
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
2445
|
+
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
2446
|
+
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
2447
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2448
|
+
args?: any;
|
|
2449
|
+
experimental_content?: ({
|
|
2450
|
+
type: "text";
|
|
2451
|
+
text: string;
|
|
2452
|
+
} | {
|
|
2453
|
+
mimeType?: string | undefined;
|
|
2454
|
+
type: "image";
|
|
2455
|
+
data: string;
|
|
2456
|
+
})[] | undefined;
|
|
2457
|
+
isError?: boolean | undefined;
|
|
2458
|
+
type: "tool-result";
|
|
2459
|
+
toolCallId: string;
|
|
2460
|
+
toolName: string;
|
|
2461
|
+
result: any;
|
|
2462
|
+
}, {
|
|
2463
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
2464
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
2465
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
2466
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
2467
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
2468
|
+
experimental_content: import("convex/values").VArray<({
|
|
2469
|
+
type: "text";
|
|
2470
|
+
text: string;
|
|
2471
|
+
} | {
|
|
2472
|
+
mimeType?: string | undefined;
|
|
2473
|
+
type: "image";
|
|
2474
|
+
data: string;
|
|
2475
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
2476
|
+
type: "text";
|
|
2477
|
+
text: string;
|
|
2478
|
+
} | {
|
|
2479
|
+
mimeType?: string | undefined;
|
|
2480
|
+
type: "image";
|
|
2481
|
+
data: string;
|
|
2482
|
+
}, [import("convex/values").VObject<{
|
|
2483
|
+
type: "text";
|
|
2484
|
+
text: string;
|
|
2485
|
+
}, {
|
|
2486
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
2487
|
+
text: import("convex/values").VString<string, "required">;
|
|
2488
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
2489
|
+
mimeType?: string | undefined;
|
|
2490
|
+
type: "image";
|
|
2491
|
+
data: string;
|
|
2492
|
+
}, {
|
|
2493
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
2494
|
+
data: import("convex/values").VString<string, "required">;
|
|
2495
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
2496
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
2497
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
2498
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2499
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType" | "argsTextDelta">, "required">;
|
|
2500
|
+
}, "required", "streamId" | "start" | "end" | "parts">, {
|
|
2501
|
+
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
2502
|
+
}, {}, {}>;
|
|
2140
2503
|
memories: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2141
2504
|
userId?: string | undefined;
|
|
2142
2505
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
2143
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
2506
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
2144
2507
|
memory: string;
|
|
2145
2508
|
}, {
|
|
2146
2509
|
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
|
|
2147
2510
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
2148
2511
|
memory: import("convex/values").VString<string, "required">;
|
|
2149
|
-
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
2512
|
+
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
2150
2513
|
}, "required", "userId" | "threadId" | "embeddingId" | "memory">, {
|
|
2151
2514
|
threadId: ["threadId", "_creationTime"];
|
|
2152
2515
|
userId: ["userId", "_creationTime"];
|
|
@@ -2210,7 +2573,7 @@ export declare const vv: {
|
|
|
2210
2573
|
vectorIndexes: {
|
|
2211
2574
|
vector: {
|
|
2212
2575
|
vectorField: "vector";
|
|
2213
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2576
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2214
2577
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2215
2578
|
};
|
|
2216
2579
|
};
|
|
@@ -2237,7 +2600,7 @@ export declare const vv: {
|
|
|
2237
2600
|
vectorIndexes: {
|
|
2238
2601
|
vector: {
|
|
2239
2602
|
vectorField: "vector";
|
|
2240
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2603
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2241
2604
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2242
2605
|
};
|
|
2243
2606
|
};
|
|
@@ -2264,7 +2627,7 @@ export declare const vv: {
|
|
|
2264
2627
|
vectorIndexes: {
|
|
2265
2628
|
vector: {
|
|
2266
2629
|
vectorField: "vector";
|
|
2267
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2630
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2268
2631
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2269
2632
|
};
|
|
2270
2633
|
};
|
|
@@ -2291,7 +2654,7 @@ export declare const vv: {
|
|
|
2291
2654
|
vectorIndexes: {
|
|
2292
2655
|
vector: {
|
|
2293
2656
|
vectorField: "vector";
|
|
2294
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2657
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2295
2658
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2296
2659
|
};
|
|
2297
2660
|
};
|
|
@@ -2318,7 +2681,34 @@ export declare const vv: {
|
|
|
2318
2681
|
vectorIndexes: {
|
|
2319
2682
|
vector: {
|
|
2320
2683
|
vectorField: "vector";
|
|
2321
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2684
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2685
|
+
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2686
|
+
};
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
embeddings_1408: {
|
|
2690
|
+
document: {
|
|
2691
|
+
_id: import("convex/values").GenericId<"embeddings_1408">;
|
|
2692
|
+
_creationTime: number;
|
|
2693
|
+
userId?: string | undefined;
|
|
2694
|
+
threadId?: string | undefined;
|
|
2695
|
+
model_table_userId?: string[] | undefined;
|
|
2696
|
+
model_table_threadId?: string[] | undefined;
|
|
2697
|
+
model: string;
|
|
2698
|
+
table: string;
|
|
2699
|
+
vector: number[];
|
|
2700
|
+
};
|
|
2701
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
2702
|
+
indexes: {
|
|
2703
|
+
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
2704
|
+
by_id: ["_id"];
|
|
2705
|
+
by_creation_time: ["_creationTime"];
|
|
2706
|
+
};
|
|
2707
|
+
searchIndexes: import("convex/server").GenericTableSearchIndexes;
|
|
2708
|
+
vectorIndexes: {
|
|
2709
|
+
vector: {
|
|
2710
|
+
vectorField: "vector";
|
|
2711
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2322
2712
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2323
2713
|
};
|
|
2324
2714
|
};
|
|
@@ -2345,7 +2735,7 @@ export declare const vv: {
|
|
|
2345
2735
|
vectorIndexes: {
|
|
2346
2736
|
vector: {
|
|
2347
2737
|
vectorField: "vector";
|
|
2348
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2738
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2349
2739
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2350
2740
|
};
|
|
2351
2741
|
};
|
|
@@ -2372,7 +2762,7 @@ export declare const vv: {
|
|
|
2372
2762
|
vectorIndexes: {
|
|
2373
2763
|
vector: {
|
|
2374
2764
|
vectorField: "vector";
|
|
2375
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2765
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2376
2766
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2377
2767
|
};
|
|
2378
2768
|
};
|
|
@@ -2399,7 +2789,7 @@ export declare const vv: {
|
|
|
2399
2789
|
vectorIndexes: {
|
|
2400
2790
|
vector: {
|
|
2401
2791
|
vectorField: "vector";
|
|
2402
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2792
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2403
2793
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2404
2794
|
};
|
|
2405
2795
|
};
|
|
@@ -2426,7 +2816,7 @@ export declare const vv: {
|
|
|
2426
2816
|
vectorIndexes: {
|
|
2427
2817
|
vector: {
|
|
2428
2818
|
vectorField: "vector";
|
|
2429
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2819
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2430
2820
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2431
2821
|
};
|
|
2432
2822
|
};
|
|
@@ -2455,7 +2845,7 @@ export declare const vv: {
|
|
|
2455
2845
|
_creationTime: number;
|
|
2456
2846
|
id?: string | undefined;
|
|
2457
2847
|
userId?: string | undefined;
|
|
2458
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
2848
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
2459
2849
|
error?: string | undefined;
|
|
2460
2850
|
agentName?: string | undefined;
|
|
2461
2851
|
model?: string | undefined;
|
|
@@ -2772,13 +3162,110 @@ export declare const vv: {
|
|
|
2772
3162
|
searchIndexes: {};
|
|
2773
3163
|
vectorIndexes: {};
|
|
2774
3164
|
};
|
|
3165
|
+
streamingMessages: {
|
|
3166
|
+
document: {
|
|
3167
|
+
_id: import("convex/values").GenericId<"streamingMessages">;
|
|
3168
|
+
_creationTime: number;
|
|
3169
|
+
userId?: string | undefined;
|
|
3170
|
+
agentName?: string | undefined;
|
|
3171
|
+
model?: string | undefined;
|
|
3172
|
+
provider?: string | undefined;
|
|
3173
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3174
|
+
order: number;
|
|
3175
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
3176
|
+
stepOrder: number;
|
|
3177
|
+
state: {
|
|
3178
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3179
|
+
kind: "streaming";
|
|
3180
|
+
lastHeartbeat: number;
|
|
3181
|
+
} | {
|
|
3182
|
+
kind: "finished";
|
|
3183
|
+
endedAt: number;
|
|
3184
|
+
} | {
|
|
3185
|
+
error: string;
|
|
3186
|
+
kind: "error";
|
|
3187
|
+
};
|
|
3188
|
+
};
|
|
3189
|
+
fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt") | "_id";
|
|
3190
|
+
indexes: {
|
|
3191
|
+
threadId_order_stepOrder: ["threadId", "order", "stepOrder", "_creationTime"];
|
|
3192
|
+
by_id: ["_id"];
|
|
3193
|
+
by_creation_time: ["_creationTime"];
|
|
3194
|
+
};
|
|
3195
|
+
searchIndexes: {};
|
|
3196
|
+
vectorIndexes: {};
|
|
3197
|
+
};
|
|
3198
|
+
streamDeltas: {
|
|
3199
|
+
document: {
|
|
3200
|
+
_id: import("convex/values").GenericId<"streamDeltas">;
|
|
3201
|
+
_creationTime: number;
|
|
3202
|
+
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
3203
|
+
start: number;
|
|
3204
|
+
end: number;
|
|
3205
|
+
parts: ({
|
|
3206
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3207
|
+
type: "tool-call";
|
|
3208
|
+
toolCallId: string;
|
|
3209
|
+
toolName: string;
|
|
3210
|
+
args: any;
|
|
3211
|
+
} | {
|
|
3212
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3213
|
+
args?: any;
|
|
3214
|
+
experimental_content?: ({
|
|
3215
|
+
type: "text";
|
|
3216
|
+
text: string;
|
|
3217
|
+
} | {
|
|
3218
|
+
mimeType?: string | undefined;
|
|
3219
|
+
type: "image";
|
|
3220
|
+
data: string;
|
|
3221
|
+
})[] | undefined;
|
|
3222
|
+
isError?: boolean | undefined;
|
|
3223
|
+
type: "tool-result";
|
|
3224
|
+
toolCallId: string;
|
|
3225
|
+
toolName: string;
|
|
3226
|
+
result: any;
|
|
3227
|
+
} | {
|
|
3228
|
+
type: "text-delta";
|
|
3229
|
+
textDelta: string;
|
|
3230
|
+
} | {
|
|
3231
|
+
type: "reasoning";
|
|
3232
|
+
textDelta: string;
|
|
3233
|
+
} | {
|
|
3234
|
+
type: "source";
|
|
3235
|
+
source: {
|
|
3236
|
+
title?: string | undefined;
|
|
3237
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3238
|
+
id: string;
|
|
3239
|
+
url: string;
|
|
3240
|
+
sourceType: "url";
|
|
3241
|
+
};
|
|
3242
|
+
} | {
|
|
3243
|
+
type: "tool-call-streaming-start";
|
|
3244
|
+
toolCallId: string;
|
|
3245
|
+
toolName: string;
|
|
3246
|
+
} | {
|
|
3247
|
+
type: "tool-call-delta";
|
|
3248
|
+
toolCallId: string;
|
|
3249
|
+
toolName: string;
|
|
3250
|
+
argsTextDelta: string;
|
|
3251
|
+
})[];
|
|
3252
|
+
};
|
|
3253
|
+
fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id";
|
|
3254
|
+
indexes: {
|
|
3255
|
+
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
3256
|
+
by_id: ["_id"];
|
|
3257
|
+
by_creation_time: ["_creationTime"];
|
|
3258
|
+
};
|
|
3259
|
+
searchIndexes: {};
|
|
3260
|
+
vectorIndexes: {};
|
|
3261
|
+
};
|
|
2775
3262
|
memories: {
|
|
2776
3263
|
document: {
|
|
2777
3264
|
_id: import("convex/values").GenericId<"memories">;
|
|
2778
3265
|
_creationTime: number;
|
|
2779
3266
|
userId?: string | undefined;
|
|
2780
3267
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
2781
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
3268
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
2782
3269
|
memory: string;
|
|
2783
3270
|
};
|
|
2784
3271
|
fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id";
|
|
@@ -2852,7 +3339,7 @@ export declare const vv: {
|
|
|
2852
3339
|
vectorIndexes: {
|
|
2853
3340
|
vector: {
|
|
2854
3341
|
vectorField: "vector";
|
|
2855
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3342
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2856
3343
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2857
3344
|
};
|
|
2858
3345
|
};
|
|
@@ -2879,7 +3366,7 @@ export declare const vv: {
|
|
|
2879
3366
|
vectorIndexes: {
|
|
2880
3367
|
vector: {
|
|
2881
3368
|
vectorField: "vector";
|
|
2882
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3369
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2883
3370
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2884
3371
|
};
|
|
2885
3372
|
};
|
|
@@ -2906,7 +3393,7 @@ export declare const vv: {
|
|
|
2906
3393
|
vectorIndexes: {
|
|
2907
3394
|
vector: {
|
|
2908
3395
|
vectorField: "vector";
|
|
2909
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3396
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2910
3397
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2911
3398
|
};
|
|
2912
3399
|
};
|
|
@@ -2933,7 +3420,7 @@ export declare const vv: {
|
|
|
2933
3420
|
vectorIndexes: {
|
|
2934
3421
|
vector: {
|
|
2935
3422
|
vectorField: "vector";
|
|
2936
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3423
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2937
3424
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2938
3425
|
};
|
|
2939
3426
|
};
|
|
@@ -2960,7 +3447,34 @@ export declare const vv: {
|
|
|
2960
3447
|
vectorIndexes: {
|
|
2961
3448
|
vector: {
|
|
2962
3449
|
vectorField: "vector";
|
|
2963
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3450
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3451
|
+
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3454
|
+
};
|
|
3455
|
+
embeddings_1408: {
|
|
3456
|
+
document: {
|
|
3457
|
+
_id: import("convex/values").GenericId<"embeddings_1408">;
|
|
3458
|
+
_creationTime: number;
|
|
3459
|
+
userId?: string | undefined;
|
|
3460
|
+
threadId?: string | undefined;
|
|
3461
|
+
model_table_userId?: string[] | undefined;
|
|
3462
|
+
model_table_threadId?: string[] | undefined;
|
|
3463
|
+
model: string;
|
|
3464
|
+
table: string;
|
|
3465
|
+
vector: number[];
|
|
3466
|
+
};
|
|
3467
|
+
fieldPaths: "_id" | ("userId" | "_creationTime" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector");
|
|
3468
|
+
indexes: {
|
|
3469
|
+
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
3470
|
+
by_id: ["_id"];
|
|
3471
|
+
by_creation_time: ["_creationTime"];
|
|
3472
|
+
};
|
|
3473
|
+
searchIndexes: import("convex/server").GenericTableSearchIndexes;
|
|
3474
|
+
vectorIndexes: {
|
|
3475
|
+
vector: {
|
|
3476
|
+
vectorField: "vector";
|
|
3477
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2964
3478
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2965
3479
|
};
|
|
2966
3480
|
};
|
|
@@ -2987,7 +3501,7 @@ export declare const vv: {
|
|
|
2987
3501
|
vectorIndexes: {
|
|
2988
3502
|
vector: {
|
|
2989
3503
|
vectorField: "vector";
|
|
2990
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3504
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2991
3505
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
2992
3506
|
};
|
|
2993
3507
|
};
|
|
@@ -3014,7 +3528,7 @@ export declare const vv: {
|
|
|
3014
3528
|
vectorIndexes: {
|
|
3015
3529
|
vector: {
|
|
3016
3530
|
vectorField: "vector";
|
|
3017
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3531
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3018
3532
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3019
3533
|
};
|
|
3020
3534
|
};
|
|
@@ -3041,7 +3555,7 @@ export declare const vv: {
|
|
|
3041
3555
|
vectorIndexes: {
|
|
3042
3556
|
vector: {
|
|
3043
3557
|
vectorField: "vector";
|
|
3044
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3558
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3045
3559
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3046
3560
|
};
|
|
3047
3561
|
};
|
|
@@ -3068,7 +3582,7 @@ export declare const vv: {
|
|
|
3068
3582
|
vectorIndexes: {
|
|
3069
3583
|
vector: {
|
|
3070
3584
|
vectorField: "vector";
|
|
3071
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3585
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3072
3586
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3073
3587
|
};
|
|
3074
3588
|
};
|
|
@@ -3097,7 +3611,7 @@ export declare const vv: {
|
|
|
3097
3611
|
_creationTime: number;
|
|
3098
3612
|
id?: string | undefined;
|
|
3099
3613
|
userId?: string | undefined;
|
|
3100
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
3614
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
3101
3615
|
error?: string | undefined;
|
|
3102
3616
|
agentName?: string | undefined;
|
|
3103
3617
|
model?: string | undefined;
|
|
@@ -3414,13 +3928,110 @@ export declare const vv: {
|
|
|
3414
3928
|
searchIndexes: {};
|
|
3415
3929
|
vectorIndexes: {};
|
|
3416
3930
|
};
|
|
3931
|
+
streamingMessages: {
|
|
3932
|
+
document: {
|
|
3933
|
+
_id: import("convex/values").GenericId<"streamingMessages">;
|
|
3934
|
+
_creationTime: number;
|
|
3935
|
+
userId?: string | undefined;
|
|
3936
|
+
agentName?: string | undefined;
|
|
3937
|
+
model?: string | undefined;
|
|
3938
|
+
provider?: string | undefined;
|
|
3939
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3940
|
+
order: number;
|
|
3941
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
3942
|
+
stepOrder: number;
|
|
3943
|
+
state: {
|
|
3944
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3945
|
+
kind: "streaming";
|
|
3946
|
+
lastHeartbeat: number;
|
|
3947
|
+
} | {
|
|
3948
|
+
kind: "finished";
|
|
3949
|
+
endedAt: number;
|
|
3950
|
+
} | {
|
|
3951
|
+
error: string;
|
|
3952
|
+
kind: "error";
|
|
3953
|
+
};
|
|
3954
|
+
};
|
|
3955
|
+
fieldPaths: ("userId" | "order" | "_creationTime" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt") | "_id";
|
|
3956
|
+
indexes: {
|
|
3957
|
+
threadId_order_stepOrder: ["threadId", "order", "stepOrder", "_creationTime"];
|
|
3958
|
+
by_id: ["_id"];
|
|
3959
|
+
by_creation_time: ["_creationTime"];
|
|
3960
|
+
};
|
|
3961
|
+
searchIndexes: {};
|
|
3962
|
+
vectorIndexes: {};
|
|
3963
|
+
};
|
|
3964
|
+
streamDeltas: {
|
|
3965
|
+
document: {
|
|
3966
|
+
_id: import("convex/values").GenericId<"streamDeltas">;
|
|
3967
|
+
_creationTime: number;
|
|
3968
|
+
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
3969
|
+
start: number;
|
|
3970
|
+
end: number;
|
|
3971
|
+
parts: ({
|
|
3972
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3973
|
+
type: "tool-call";
|
|
3974
|
+
toolCallId: string;
|
|
3975
|
+
toolName: string;
|
|
3976
|
+
args: any;
|
|
3977
|
+
} | {
|
|
3978
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3979
|
+
args?: any;
|
|
3980
|
+
experimental_content?: ({
|
|
3981
|
+
type: "text";
|
|
3982
|
+
text: string;
|
|
3983
|
+
} | {
|
|
3984
|
+
mimeType?: string | undefined;
|
|
3985
|
+
type: "image";
|
|
3986
|
+
data: string;
|
|
3987
|
+
})[] | undefined;
|
|
3988
|
+
isError?: boolean | undefined;
|
|
3989
|
+
type: "tool-result";
|
|
3990
|
+
toolCallId: string;
|
|
3991
|
+
toolName: string;
|
|
3992
|
+
result: any;
|
|
3993
|
+
} | {
|
|
3994
|
+
type: "text-delta";
|
|
3995
|
+
textDelta: string;
|
|
3996
|
+
} | {
|
|
3997
|
+
type: "reasoning";
|
|
3998
|
+
textDelta: string;
|
|
3999
|
+
} | {
|
|
4000
|
+
type: "source";
|
|
4001
|
+
source: {
|
|
4002
|
+
title?: string | undefined;
|
|
4003
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4004
|
+
id: string;
|
|
4005
|
+
url: string;
|
|
4006
|
+
sourceType: "url";
|
|
4007
|
+
};
|
|
4008
|
+
} | {
|
|
4009
|
+
type: "tool-call-streaming-start";
|
|
4010
|
+
toolCallId: string;
|
|
4011
|
+
toolName: string;
|
|
4012
|
+
} | {
|
|
4013
|
+
type: "tool-call-delta";
|
|
4014
|
+
toolCallId: string;
|
|
4015
|
+
toolName: string;
|
|
4016
|
+
argsTextDelta: string;
|
|
4017
|
+
})[];
|
|
4018
|
+
};
|
|
4019
|
+
fieldPaths: ("_creationTime" | "streamId" | "start" | "end" | "parts") | "_id";
|
|
4020
|
+
indexes: {
|
|
4021
|
+
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
4022
|
+
by_id: ["_id"];
|
|
4023
|
+
by_creation_time: ["_creationTime"];
|
|
4024
|
+
};
|
|
4025
|
+
searchIndexes: {};
|
|
4026
|
+
vectorIndexes: {};
|
|
4027
|
+
};
|
|
3417
4028
|
memories: {
|
|
3418
4029
|
document: {
|
|
3419
4030
|
_id: import("convex/values").GenericId<"memories">;
|
|
3420
4031
|
_creationTime: number;
|
|
3421
4032
|
userId?: string | undefined;
|
|
3422
4033
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
3423
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
4034
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
3424
4035
|
memory: string;
|
|
3425
4036
|
};
|
|
3426
4037
|
fieldPaths: ("userId" | "_creationTime" | "threadId" | "embeddingId" | "memory") | "_id";
|
|
@@ -3478,11 +4089,36 @@ export declare const vv: {
|
|
|
3478
4089
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3479
4090
|
vector: {
|
|
3480
4091
|
vectorField: "vector";
|
|
3481
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4092
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
4093
|
+
filterFields: "model_table_userId" | "model_table_threadId";
|
|
4094
|
+
};
|
|
4095
|
+
}>;
|
|
4096
|
+
embeddings_256: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4097
|
+
userId?: string | undefined;
|
|
4098
|
+
threadId?: string | undefined;
|
|
4099
|
+
model_table_userId?: string[] | undefined;
|
|
4100
|
+
model_table_threadId?: string[] | undefined;
|
|
4101
|
+
model: string;
|
|
4102
|
+
table: string;
|
|
4103
|
+
vector: number[];
|
|
4104
|
+
}, {
|
|
4105
|
+
model: import("convex/values").VString<string, "required">;
|
|
4106
|
+
table: import("convex/values").VString<string, "required">;
|
|
4107
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
4108
|
+
threadId: import("convex/values").VString<string | undefined, "optional">;
|
|
4109
|
+
model_table_userId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
4110
|
+
model_table_threadId: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
4111
|
+
vector: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
4112
|
+
}, "required", "userId" | "threadId" | "model" | "table" | "model_table_userId" | "model_table_threadId" | "vector">, {
|
|
4113
|
+
model_table_threadId: ["model", "table", "threadId", "_creationTime"];
|
|
4114
|
+
}, import("convex/server").GenericTableSearchIndexes, {
|
|
4115
|
+
vector: {
|
|
4116
|
+
vectorField: "vector";
|
|
4117
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3482
4118
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3483
4119
|
};
|
|
3484
4120
|
}>;
|
|
3485
|
-
|
|
4121
|
+
embeddings_512: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3486
4122
|
userId?: string | undefined;
|
|
3487
4123
|
threadId?: string | undefined;
|
|
3488
4124
|
model_table_userId?: string[] | undefined;
|
|
@@ -3503,11 +4139,11 @@ export declare const vv: {
|
|
|
3503
4139
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3504
4140
|
vector: {
|
|
3505
4141
|
vectorField: "vector";
|
|
3506
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4142
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3507
4143
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3508
4144
|
};
|
|
3509
4145
|
}>;
|
|
3510
|
-
|
|
4146
|
+
embeddings_768: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3511
4147
|
userId?: string | undefined;
|
|
3512
4148
|
threadId?: string | undefined;
|
|
3513
4149
|
model_table_userId?: string[] | undefined;
|
|
@@ -3528,11 +4164,11 @@ export declare const vv: {
|
|
|
3528
4164
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3529
4165
|
vector: {
|
|
3530
4166
|
vectorField: "vector";
|
|
3531
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4167
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3532
4168
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3533
4169
|
};
|
|
3534
4170
|
}>;
|
|
3535
|
-
|
|
4171
|
+
embeddings_1024: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3536
4172
|
userId?: string | undefined;
|
|
3537
4173
|
threadId?: string | undefined;
|
|
3538
4174
|
model_table_userId?: string[] | undefined;
|
|
@@ -3553,11 +4189,11 @@ export declare const vv: {
|
|
|
3553
4189
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3554
4190
|
vector: {
|
|
3555
4191
|
vectorField: "vector";
|
|
3556
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4192
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3557
4193
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3558
4194
|
};
|
|
3559
4195
|
}>;
|
|
3560
|
-
|
|
4196
|
+
embeddings_1408: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3561
4197
|
userId?: string | undefined;
|
|
3562
4198
|
threadId?: string | undefined;
|
|
3563
4199
|
model_table_userId?: string[] | undefined;
|
|
@@ -3578,7 +4214,7 @@ export declare const vv: {
|
|
|
3578
4214
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3579
4215
|
vector: {
|
|
3580
4216
|
vectorField: "vector";
|
|
3581
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4217
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3582
4218
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3583
4219
|
};
|
|
3584
4220
|
}>;
|
|
@@ -3603,7 +4239,7 @@ export declare const vv: {
|
|
|
3603
4239
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3604
4240
|
vector: {
|
|
3605
4241
|
vectorField: "vector";
|
|
3606
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4242
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3607
4243
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3608
4244
|
};
|
|
3609
4245
|
}>;
|
|
@@ -3628,7 +4264,7 @@ export declare const vv: {
|
|
|
3628
4264
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3629
4265
|
vector: {
|
|
3630
4266
|
vectorField: "vector";
|
|
3631
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4267
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3632
4268
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3633
4269
|
};
|
|
3634
4270
|
}>;
|
|
@@ -3653,7 +4289,7 @@ export declare const vv: {
|
|
|
3653
4289
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3654
4290
|
vector: {
|
|
3655
4291
|
vectorField: "vector";
|
|
3656
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4292
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3657
4293
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3658
4294
|
};
|
|
3659
4295
|
}>;
|
|
@@ -3678,7 +4314,7 @@ export declare const vv: {
|
|
|
3678
4314
|
}, import("convex/server").GenericTableSearchIndexes, {
|
|
3679
4315
|
vector: {
|
|
3680
4316
|
vectorField: "vector";
|
|
3681
|
-
dimensions: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
4317
|
+
dimensions: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3682
4318
|
filterFields: "model_table_userId" | "model_table_threadId";
|
|
3683
4319
|
};
|
|
3684
4320
|
}>;
|
|
@@ -3704,7 +4340,7 @@ export declare const vv: {
|
|
|
3704
4340
|
messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3705
4341
|
id?: string | undefined;
|
|
3706
4342
|
userId?: string | undefined;
|
|
3707
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
4343
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
3708
4344
|
error?: string | undefined;
|
|
3709
4345
|
agentName?: string | undefined;
|
|
3710
4346
|
model?: string | undefined;
|
|
@@ -3836,7 +4472,7 @@ export declare const vv: {
|
|
|
3836
4472
|
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
3837
4473
|
order: import("convex/values").VFloat64<number, "required">;
|
|
3838
4474
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
3839
|
-
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
4475
|
+
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
3840
4476
|
error: import("convex/values").VString<string | undefined, "optional">;
|
|
3841
4477
|
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>;
|
|
3842
4478
|
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -5587,16 +6223,354 @@ export declare const vv: {
|
|
|
5587
6223
|
status_threadId_order_stepOrder: ["status", "threadId", "order", "stepOrder", "_creationTime"];
|
|
5588
6224
|
parentMessageId_order_stepOrder: ["parentMessageId", "order", "stepOrder", "_creationTime"];
|
|
5589
6225
|
}, {}, {}>;
|
|
6226
|
+
streamingMessages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
6227
|
+
userId?: string | undefined;
|
|
6228
|
+
agentName?: string | undefined;
|
|
6229
|
+
model?: string | undefined;
|
|
6230
|
+
provider?: string | undefined;
|
|
6231
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6232
|
+
order: number;
|
|
6233
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
6234
|
+
stepOrder: number;
|
|
6235
|
+
state: {
|
|
6236
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
6237
|
+
kind: "streaming";
|
|
6238
|
+
lastHeartbeat: number;
|
|
6239
|
+
} | {
|
|
6240
|
+
kind: "finished";
|
|
6241
|
+
endedAt: number;
|
|
6242
|
+
} | {
|
|
6243
|
+
error: string;
|
|
6244
|
+
kind: "error";
|
|
6245
|
+
};
|
|
6246
|
+
}, {
|
|
6247
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
6248
|
+
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
6249
|
+
model: import("convex/values").VString<string | undefined, "optional">;
|
|
6250
|
+
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
6251
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6252
|
+
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
6253
|
+
order: import("convex/values").VFloat64<number, "required">;
|
|
6254
|
+
/**
|
|
6255
|
+
* The step order of the first message in the stream.
|
|
6256
|
+
* If the stream ends up with both a tool call and a tool result,
|
|
6257
|
+
* the stepOrder of the result will be +1 of the tool call.
|
|
6258
|
+
*/
|
|
6259
|
+
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
6260
|
+
state: import("convex/values").VUnion<{
|
|
6261
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
6262
|
+
kind: "streaming";
|
|
6263
|
+
lastHeartbeat: number;
|
|
6264
|
+
} | {
|
|
6265
|
+
kind: "finished";
|
|
6266
|
+
endedAt: number;
|
|
6267
|
+
} | {
|
|
6268
|
+
error: string;
|
|
6269
|
+
kind: "error";
|
|
6270
|
+
}, [import("convex/values").VObject<{
|
|
6271
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
6272
|
+
kind: "streaming";
|
|
6273
|
+
lastHeartbeat: number;
|
|
6274
|
+
}, {
|
|
6275
|
+
kind: import("convex/values").VLiteral<"streaming", "required">;
|
|
6276
|
+
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
6277
|
+
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
6278
|
+
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
6279
|
+
kind: "finished";
|
|
6280
|
+
endedAt: number;
|
|
6281
|
+
}, {
|
|
6282
|
+
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
6283
|
+
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
6284
|
+
}, "required", "kind" | "endedAt">, import("convex/values").VObject<{
|
|
6285
|
+
error: string;
|
|
6286
|
+
kind: "error";
|
|
6287
|
+
}, {
|
|
6288
|
+
kind: import("convex/values").VLiteral<"error", "required">;
|
|
6289
|
+
error: import("convex/values").VString<string, "required">;
|
|
6290
|
+
}, "required", "error" | "kind">], "required", "error" | "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt">;
|
|
6291
|
+
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.error" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt">, {
|
|
6292
|
+
threadId_order_stepOrder: ["threadId", "order", "stepOrder", "_creationTime"];
|
|
6293
|
+
}, {}, {}>;
|
|
6294
|
+
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
6295
|
+
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
6296
|
+
start: number;
|
|
6297
|
+
end: number;
|
|
6298
|
+
parts: ({
|
|
6299
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6300
|
+
type: "tool-call";
|
|
6301
|
+
toolCallId: string;
|
|
6302
|
+
toolName: string;
|
|
6303
|
+
args: any;
|
|
6304
|
+
} | {
|
|
6305
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6306
|
+
args?: any;
|
|
6307
|
+
experimental_content?: ({
|
|
6308
|
+
type: "text";
|
|
6309
|
+
text: string;
|
|
6310
|
+
} | {
|
|
6311
|
+
mimeType?: string | undefined;
|
|
6312
|
+
type: "image";
|
|
6313
|
+
data: string;
|
|
6314
|
+
})[] | undefined;
|
|
6315
|
+
isError?: boolean | undefined;
|
|
6316
|
+
type: "tool-result";
|
|
6317
|
+
toolCallId: string;
|
|
6318
|
+
toolName: string;
|
|
6319
|
+
result: any;
|
|
6320
|
+
} | {
|
|
6321
|
+
type: "text-delta";
|
|
6322
|
+
textDelta: string;
|
|
6323
|
+
} | {
|
|
6324
|
+
type: "reasoning";
|
|
6325
|
+
textDelta: string;
|
|
6326
|
+
} | {
|
|
6327
|
+
type: "source";
|
|
6328
|
+
source: {
|
|
6329
|
+
title?: string | undefined;
|
|
6330
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6331
|
+
id: string;
|
|
6332
|
+
url: string;
|
|
6333
|
+
sourceType: "url";
|
|
6334
|
+
};
|
|
6335
|
+
} | {
|
|
6336
|
+
type: "tool-call-streaming-start";
|
|
6337
|
+
toolCallId: string;
|
|
6338
|
+
toolName: string;
|
|
6339
|
+
} | {
|
|
6340
|
+
type: "tool-call-delta";
|
|
6341
|
+
toolCallId: string;
|
|
6342
|
+
toolName: string;
|
|
6343
|
+
argsTextDelta: string;
|
|
6344
|
+
})[];
|
|
6345
|
+
}, {
|
|
6346
|
+
streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
|
|
6347
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
6348
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
6349
|
+
parts: import("convex/values").VArray<({
|
|
6350
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6351
|
+
type: "tool-call";
|
|
6352
|
+
toolCallId: string;
|
|
6353
|
+
toolName: string;
|
|
6354
|
+
args: any;
|
|
6355
|
+
} | {
|
|
6356
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6357
|
+
args?: any;
|
|
6358
|
+
experimental_content?: ({
|
|
6359
|
+
type: "text";
|
|
6360
|
+
text: string;
|
|
6361
|
+
} | {
|
|
6362
|
+
mimeType?: string | undefined;
|
|
6363
|
+
type: "image";
|
|
6364
|
+
data: string;
|
|
6365
|
+
})[] | undefined;
|
|
6366
|
+
isError?: boolean | undefined;
|
|
6367
|
+
type: "tool-result";
|
|
6368
|
+
toolCallId: string;
|
|
6369
|
+
toolName: string;
|
|
6370
|
+
result: any;
|
|
6371
|
+
} | {
|
|
6372
|
+
type: "text-delta";
|
|
6373
|
+
textDelta: string;
|
|
6374
|
+
} | {
|
|
6375
|
+
type: "reasoning";
|
|
6376
|
+
textDelta: string;
|
|
6377
|
+
} | {
|
|
6378
|
+
type: "source";
|
|
6379
|
+
source: {
|
|
6380
|
+
title?: string | undefined;
|
|
6381
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6382
|
+
id: string;
|
|
6383
|
+
url: string;
|
|
6384
|
+
sourceType: "url";
|
|
6385
|
+
};
|
|
6386
|
+
} | {
|
|
6387
|
+
type: "tool-call-streaming-start";
|
|
6388
|
+
toolCallId: string;
|
|
6389
|
+
toolName: string;
|
|
6390
|
+
} | {
|
|
6391
|
+
type: "tool-call-delta";
|
|
6392
|
+
toolCallId: string;
|
|
6393
|
+
toolName: string;
|
|
6394
|
+
argsTextDelta: string;
|
|
6395
|
+
})[], import("convex/values").VUnion<{
|
|
6396
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6397
|
+
type: "tool-call";
|
|
6398
|
+
toolCallId: string;
|
|
6399
|
+
toolName: string;
|
|
6400
|
+
args: any;
|
|
6401
|
+
} | {
|
|
6402
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6403
|
+
args?: any;
|
|
6404
|
+
experimental_content?: ({
|
|
6405
|
+
type: "text";
|
|
6406
|
+
text: string;
|
|
6407
|
+
} | {
|
|
6408
|
+
mimeType?: string | undefined;
|
|
6409
|
+
type: "image";
|
|
6410
|
+
data: string;
|
|
6411
|
+
})[] | undefined;
|
|
6412
|
+
isError?: boolean | undefined;
|
|
6413
|
+
type: "tool-result";
|
|
6414
|
+
toolCallId: string;
|
|
6415
|
+
toolName: string;
|
|
6416
|
+
result: any;
|
|
6417
|
+
} | {
|
|
6418
|
+
type: "text-delta";
|
|
6419
|
+
textDelta: string;
|
|
6420
|
+
} | {
|
|
6421
|
+
type: "reasoning";
|
|
6422
|
+
textDelta: string;
|
|
6423
|
+
} | {
|
|
6424
|
+
type: "source";
|
|
6425
|
+
source: {
|
|
6426
|
+
title?: string | undefined;
|
|
6427
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6428
|
+
id: string;
|
|
6429
|
+
url: string;
|
|
6430
|
+
sourceType: "url";
|
|
6431
|
+
};
|
|
6432
|
+
} | {
|
|
6433
|
+
type: "tool-call-streaming-start";
|
|
6434
|
+
toolCallId: string;
|
|
6435
|
+
toolName: string;
|
|
6436
|
+
} | {
|
|
6437
|
+
type: "tool-call-delta";
|
|
6438
|
+
toolCallId: string;
|
|
6439
|
+
toolName: string;
|
|
6440
|
+
argsTextDelta: string;
|
|
6441
|
+
}, [import("convex/values").VObject<{
|
|
6442
|
+
type: "text-delta";
|
|
6443
|
+
textDelta: string;
|
|
6444
|
+
}, {
|
|
6445
|
+
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
6446
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
6447
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
6448
|
+
type: "reasoning";
|
|
6449
|
+
textDelta: string;
|
|
6450
|
+
}, {
|
|
6451
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
6452
|
+
textDelta: import("convex/values").VString<string, "required">;
|
|
6453
|
+
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
6454
|
+
type: "source";
|
|
6455
|
+
source: {
|
|
6456
|
+
title?: string | undefined;
|
|
6457
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6458
|
+
id: string;
|
|
6459
|
+
url: string;
|
|
6460
|
+
sourceType: "url";
|
|
6461
|
+
};
|
|
6462
|
+
}, {
|
|
6463
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
6464
|
+
source: import("convex/values").VObject<{
|
|
6465
|
+
title?: string | undefined;
|
|
6466
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6467
|
+
id: string;
|
|
6468
|
+
url: string;
|
|
6469
|
+
sourceType: "url";
|
|
6470
|
+
}, {
|
|
6471
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
6472
|
+
id: import("convex/values").VString<string, "required">;
|
|
6473
|
+
url: import("convex/values").VString<string, "required">;
|
|
6474
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
6475
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6476
|
+
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "url" | "sourceType">;
|
|
6477
|
+
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType">, import("convex/values").VObject<{
|
|
6478
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6479
|
+
type: "tool-call";
|
|
6480
|
+
toolCallId: string;
|
|
6481
|
+
toolName: string;
|
|
6482
|
+
args: any;
|
|
6483
|
+
}, {
|
|
6484
|
+
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
6485
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
6486
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
6487
|
+
args: import("convex/values").VAny<any, "required", string>;
|
|
6488
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6489
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
6490
|
+
type: "tool-call-streaming-start";
|
|
6491
|
+
toolCallId: string;
|
|
6492
|
+
toolName: string;
|
|
6493
|
+
}, {
|
|
6494
|
+
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
6495
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
6496
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
6497
|
+
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
6498
|
+
type: "tool-call-delta";
|
|
6499
|
+
toolCallId: string;
|
|
6500
|
+
toolName: string;
|
|
6501
|
+
argsTextDelta: string;
|
|
6502
|
+
}, {
|
|
6503
|
+
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
6504
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
6505
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
6506
|
+
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
6507
|
+
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
6508
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
6509
|
+
args?: any;
|
|
6510
|
+
experimental_content?: ({
|
|
6511
|
+
type: "text";
|
|
6512
|
+
text: string;
|
|
6513
|
+
} | {
|
|
6514
|
+
mimeType?: string | undefined;
|
|
6515
|
+
type: "image";
|
|
6516
|
+
data: string;
|
|
6517
|
+
})[] | undefined;
|
|
6518
|
+
isError?: boolean | undefined;
|
|
6519
|
+
type: "tool-result";
|
|
6520
|
+
toolCallId: string;
|
|
6521
|
+
toolName: string;
|
|
6522
|
+
result: any;
|
|
6523
|
+
}, {
|
|
6524
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
6525
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
6526
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
6527
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
6528
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
6529
|
+
experimental_content: import("convex/values").VArray<({
|
|
6530
|
+
type: "text";
|
|
6531
|
+
text: string;
|
|
6532
|
+
} | {
|
|
6533
|
+
mimeType?: string | undefined;
|
|
6534
|
+
type: "image";
|
|
6535
|
+
data: string;
|
|
6536
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
6537
|
+
type: "text";
|
|
6538
|
+
text: string;
|
|
6539
|
+
} | {
|
|
6540
|
+
mimeType?: string | undefined;
|
|
6541
|
+
type: "image";
|
|
6542
|
+
data: string;
|
|
6543
|
+
}, [import("convex/values").VObject<{
|
|
6544
|
+
type: "text";
|
|
6545
|
+
text: string;
|
|
6546
|
+
}, {
|
|
6547
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
6548
|
+
text: import("convex/values").VString<string, "required">;
|
|
6549
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
6550
|
+
mimeType?: string | undefined;
|
|
6551
|
+
type: "image";
|
|
6552
|
+
data: string;
|
|
6553
|
+
}, {
|
|
6554
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
6555
|
+
data: import("convex/values").VString<string, "required">;
|
|
6556
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
6557
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
6558
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
6559
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
6560
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.url" | "source.sourceType" | "argsTextDelta">, "required">;
|
|
6561
|
+
}, "required", "streamId" | "start" | "end" | "parts">, {
|
|
6562
|
+
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
6563
|
+
}, {}, {}>;
|
|
5590
6564
|
memories: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
5591
6565
|
userId?: string | undefined;
|
|
5592
6566
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
5593
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
6567
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
5594
6568
|
memory: string;
|
|
5595
6569
|
}, {
|
|
5596
6570
|
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
|
|
5597
6571
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
5598
6572
|
memory: import("convex/values").VString<string, "required">;
|
|
5599
|
-
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
6573
|
+
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
5600
6574
|
}, "required", "userId" | "threadId" | "embeddingId" | "memory">, {
|
|
5601
6575
|
threadId: ["threadId", "_creationTime"];
|
|
5602
6576
|
userId: ["userId", "_creationTime"];
|