@convex-dev/agent 0.1.1-alpha.0 → 0.1.1
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/dist/commonjs/component/messages.d.ts +5 -5
- package/dist/commonjs/component/schema.d.ts +152 -48
- package/dist/commonjs/component/schema.d.ts.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/validators.d.ts +7 -7
- package/dist/esm/component/messages.d.ts +5 -5
- package/dist/esm/component/schema.d.ts +152 -48
- package/dist/esm/component/schema.d.ts.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/validators.d.ts +7 -7
- package/package.json +2 -2
- package/src/component/_generated/api.d.ts +28 -2
- package/src/component/vector/tables.ts +1 -1
- 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
|
@@ -4,10 +4,10 @@ export declare const paginate: import("convex/server").RegisteredQuery<"public",
|
|
|
4
4
|
table?: string | undefined;
|
|
5
5
|
cursor?: string | undefined;
|
|
6
6
|
limit: number;
|
|
7
|
-
vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
7
|
+
vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
8
8
|
targetModel: string;
|
|
9
9
|
}, Promise<{
|
|
10
|
-
ids: (import("convex/values").GenericId<"embeddings_128"> | import("convex/values").GenericId<"embeddings_256"> | import("convex/values").GenericId<"embeddings_512"> | import("convex/values").GenericId<"embeddings_768"> | import("convex/values").GenericId<"embeddings_1024"> | import("convex/values").GenericId<"embeddings_1536"> | import("convex/values").GenericId<"embeddings_2048"> | import("convex/values").GenericId<"embeddings_3072"> | import("convex/values").GenericId<"embeddings_4096">)[];
|
|
10
|
+
ids: (import("convex/values").GenericId<"embeddings_128"> | import("convex/values").GenericId<"embeddings_256"> | import("convex/values").GenericId<"embeddings_512"> | import("convex/values").GenericId<"embeddings_768"> | import("convex/values").GenericId<"embeddings_1024"> | import("convex/values").GenericId<"embeddings_1408"> | import("convex/values").GenericId<"embeddings_1536"> | import("convex/values").GenericId<"embeddings_2048"> | import("convex/values").GenericId<"embeddings_3072"> | import("convex/values").GenericId<"embeddings_4096">)[];
|
|
11
11
|
isDone: boolean;
|
|
12
12
|
continueCursor: string;
|
|
13
13
|
}>>;
|
|
@@ -16,7 +16,7 @@ export declare const deleteBatchForThread: import("convex/server").RegisteredMut
|
|
|
16
16
|
threadId: string;
|
|
17
17
|
model: string;
|
|
18
18
|
limit: number;
|
|
19
|
-
vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
19
|
+
vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
20
20
|
}, Promise<{
|
|
21
21
|
isDone: boolean;
|
|
22
22
|
continueCursor: string;
|
|
@@ -29,9 +29,9 @@ export declare const insertBatch: import("convex/server").RegisteredMutation<"pu
|
|
|
29
29
|
table: string;
|
|
30
30
|
vector: number[];
|
|
31
31
|
}[];
|
|
32
|
-
vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
32
|
+
vectorDimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
33
33
|
}, Promise<void>>;
|
|
34
|
-
export declare function insertVector(ctx: MutationCtx, dimension: VectorDimension, v: EmbeddingsWithoutDenormalizedFields): Promise<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">>;
|
|
34
|
+
export declare function insertVector(ctx: MutationCtx, dimension: VectorDimension, v: EmbeddingsWithoutDenormalizedFields): Promise<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">>;
|
|
35
35
|
export declare function searchVectors(ctx: ActionCtx, vector: number[], args: {
|
|
36
36
|
dimension: VectorDimension;
|
|
37
37
|
model: string;
|
|
@@ -40,17 +40,17 @@ export declare function searchVectors(ctx: ActionCtx, vector: number[], args: {
|
|
|
40
40
|
threadId?: string;
|
|
41
41
|
limit?: number;
|
|
42
42
|
}): Promise<{
|
|
43
|
-
_id: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">;
|
|
43
|
+
_id: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">;
|
|
44
44
|
_score: number;
|
|
45
45
|
}[]>;
|
|
46
46
|
export declare const updateBatch: import("convex/server").RegisteredMutation<"public", {
|
|
47
47
|
vectors: {
|
|
48
|
-
id: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">;
|
|
48
|
+
id: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">;
|
|
49
49
|
model: string;
|
|
50
50
|
vector: number[];
|
|
51
51
|
}[];
|
|
52
52
|
}, Promise<void>>;
|
|
53
53
|
export declare const deleteBatch: import("convex/server").RegisteredMutation<"public", {
|
|
54
|
-
ids: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">[];
|
|
54
|
+
ids: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">[];
|
|
55
55
|
}, Promise<void>>;
|
|
56
56
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/component/vector/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,WAAW,EAAS,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EACL,mCAAmC,EAEnC,eAAe,EAIhB,MAAM,UAAU,CAAC;AAKlB,eAAO,MAAM,QAAQ;;;;;;;;;;GAmCnB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;GAqC/B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;iBAWtB,CAAC;AAEH,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,eAAe,EAC1B,CAAC,EAAE,mCAAmC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/component/vector/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,WAAW,EAAS,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EACL,mCAAmC,EAEnC,eAAe,EAIhB,MAAM,UAAU,CAAC;AAKlB,eAAO,MAAM,QAAQ;;;;;;;;;;GAmCnB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;GAqC/B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;iBAWtB,CAAC;AAEH,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,eAAe,EAC1B,CAAC,EAAE,mCAAmC,iPASvC;AAED,wBAAgB,aAAa,CAC3B,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,MAAM,EAAE,EAChB,IAAI,EAAE;IACJ,SAAS,EAAE,eAAe,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;KAgBF;AAED,eAAO,MAAM,WAAW;;;;;;iBAqBtB,CAAC;AAEH,eAAO,MAAM,WAAW;;iBAQtB,CAAC"}
|
|
@@ -39,19 +39,19 @@ type VectorIndex<D extends number> = {
|
|
|
39
39
|
export type VectorSchema = SchemaDefinition<{
|
|
40
40
|
[key in VectorTableName]: Table<128>;
|
|
41
41
|
}, true>;
|
|
42
|
-
export declare const VectorDimensions: readonly [128, 256, 512, 768, 1024, 1536, 2048, 3072, 4096];
|
|
42
|
+
export declare const VectorDimensions: readonly [128, 256, 512, 768, 1024, 1408, 1536, 2048, 3072, 4096];
|
|
43
43
|
export declare function validateVectorDimension(dimension: number): asserts dimension is VectorDimension;
|
|
44
44
|
export type VectorDimension = (typeof VectorDimensions)[number];
|
|
45
45
|
export declare const VectorTableNames: `embeddings_${(typeof VectorDimensions)[number]}`[];
|
|
46
46
|
export type VectorTableName = (typeof VectorTableNames)[number];
|
|
47
47
|
export type VectorTableId = GenericId<(typeof VectorTableNames)[number]>;
|
|
48
|
-
export declare const vVectorDimension: VUnion<128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
49
|
-
export declare const vVectorTableName: VUnion<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", any, "required", any>;
|
|
48
|
+
export declare const vVectorDimension: VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
49
|
+
export declare const vVectorTableName: VUnion<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", any, "required", any>;
|
|
50
50
|
export declare const vVectorId: VUnion<GenericId<(typeof VectorTableNames)[number]>, VId<(typeof VectorTableNames)[number]>[]>;
|
|
51
51
|
export declare function getVectorTableName(dimension: VectorDimension): VectorTableName;
|
|
52
52
|
export declare function getVectorIdInfo(ctx: QueryCtx, id: VectorTableId): {
|
|
53
|
-
tableName: "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096";
|
|
54
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
53
|
+
tableName: "embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096";
|
|
54
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
55
55
|
};
|
|
56
56
|
declare const tables: {
|
|
57
57
|
[K in keyof typeof VectorDimensions & number as `embeddings_${(typeof VectorDimensions)[K]}`]: Table<(typeof VectorDimensions)[K]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../../../src/component/vector/tables.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,SAAS,EACT,KAAK,EACL,UAAU,EAEV,GAAG,EACH,OAAO,EACP,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;;;;;CAUf,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;oHAEhD,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG,KAAK,CACrD,OAAO,oCAAoC,CAC5C,CAAC;AAYF,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,IAAI,eAAe,CAC5C,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,EAAE,OAAO,UAAU,CAAC,EACzD;IAAE,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAA;CAAE,EACzE,yBAAyB,EACzB,WAAW,CAAC,CAAC,CAAC,CACf,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,SAAS,MAAM,IAAI;IACnC,MAAM,EAAE;QACN,WAAW,EAAE,QAAQ,CAAC;QACtB,UAAU,EAAE,CAAC,CAAC;QACd,YAAY,EAAE,oBAAoB,GAAG,sBAAsB,CAAC;KAC7D,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,CACzC;KAAG,GAAG,IAAI,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC;CAAE,EACxC,IAAI,CACL,CAAC;AAEF,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AMtC;AACD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB,EAExB,cAAc,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,gBAAgB,+FAAgC,CAAC;AAC9D,eAAO,MAAM,gBAAgB,iOAAgC,CAAC;AAC9D,eAAO,MAAM,SAAS,EAEjB,MAAM,CACT,SAAS,CAAC,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,CAAC,EAC5C,GAAG,CAAC,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,CAAC,EAAE,CACzC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,eAAe,GACvB,eAAe,CACpD;AACD,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,aAAa;;;EAQ/D;AAED,QAAA,MAAM,MAAM,EAAE;KACX,CAAC,IAAI,MAAM,OAAO,gBAAgB,GACjC,MAAM,IAAI,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAC9D,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAC7B;CASF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -25,7 +25,7 @@ function table(dimensions) {
|
|
|
25
25
|
.index("model_table_threadId", ["model", "table", "threadId"]);
|
|
26
26
|
}
|
|
27
27
|
export const VectorDimensions = [
|
|
28
|
-
128, 256, 512, 768, 1024, 1536, 2048, 3072, 4096,
|
|
28
|
+
128, 256, 512, 768, 1024, 1408, 1536, 2048, 3072, 4096,
|
|
29
29
|
];
|
|
30
30
|
export function validateVectorDimension(dimension) {
|
|
31
31
|
if (!VectorDimensions.includes(dimension)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.js","sourceRoot":"","sources":["../../../../src/component/vector/tables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EACL,WAAW,GAIZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,CAAC,GAIF,MAAM,eAAe,CAAC;AAGvB,gEAAgE;AAChE,MAAM,UAAU,GAAG;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,4DAA4D;IAC5D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,8BAA8B;IAC9B,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACnD,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAC1D,IAAI,CAAC,UAAU,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC,CACjE,CAAC;AAKF,SAAS,KAAK,CAAmB,UAAa;IAC5C,OAAO,WAAW,CAAC,UAAU,CAAC;SAC3B,WAAW,CAAC,Q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AAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAI9C,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,SAA0B;IAC3D,OAAO,cAAc,SAAS,EAAqB,CAAC;AACtD,CAAC;AACD,MAAM,UAAU,eAAe,CAAC,GAAa,EAAE,EAAiB;IAC9D,KAAK,MAAM,SAAS,IAAI,gBAAgB,EAAE,CAAC;QACzC,MAAM,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;QAChD,IAAI,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC;YACtC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;QAClC,CAAC;IACH,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,4BAA4B,EAAE,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,MAAM,GAKR,MAAM,CAAC,WAAW,CACpB,gBAAgB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC;IACnC,cAAc,UAAU,EAAE;IAC1B,KAAK,CAAC,UAAU,CAAC;CAClB,CAAC,CAIH,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -2870,11 +2870,11 @@ export declare const vMessageWithMetadata: import("convex/values").VObject<{
|
|
|
2870
2870
|
export type MessageWithMetadata = Infer<typeof vMessageWithMetadata>;
|
|
2871
2871
|
export declare const vMessageEmbeddings: import("convex/values").VObject<{
|
|
2872
2872
|
model: string;
|
|
2873
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
2873
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
2874
2874
|
vectors: (number[] | null)[];
|
|
2875
2875
|
}, {
|
|
2876
2876
|
model: import("convex/values").VString<string, "required">;
|
|
2877
|
-
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
2877
|
+
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
2878
2878
|
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
2879
2879
|
}, "required", "model" | "dimension" | "vectors" | `dimension.${any}`>;
|
|
2880
2880
|
export declare const vStep: import("convex/values").VObject<{
|
|
@@ -3904,7 +3904,7 @@ export type Step = Infer<typeof vStep>;
|
|
|
3904
3904
|
export declare const vStepWithMessages: import("convex/values").VObject<{
|
|
3905
3905
|
embeddings?: {
|
|
3906
3906
|
model: string;
|
|
3907
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
3907
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
3908
3908
|
vectors: (number[] | null)[];
|
|
3909
3909
|
} | undefined;
|
|
3910
3910
|
messages: {
|
|
@@ -5987,11 +5987,11 @@ export declare const vStepWithMessages: import("convex/values").VObject<{
|
|
|
5987
5987
|
}, "required", "id" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "files" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>, "required">;
|
|
5988
5988
|
embeddings: import("convex/values").VObject<{
|
|
5989
5989
|
model: string;
|
|
5990
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
5990
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
5991
5991
|
vectors: (number[] | null)[];
|
|
5992
5992
|
} | undefined, {
|
|
5993
5993
|
model: import("convex/values").VString<string, "required">;
|
|
5994
|
-
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
5994
|
+
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
5995
5995
|
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
5996
5996
|
}, "optional", "model" | "dimension" | "vectors" | `dimension.${any}`>;
|
|
5997
5997
|
}, "required", "messages" | "step" | "step.text" | "step.reasoning" | "step.files" | "step.usage" | "step.providerMetadata" | "step.sources" | "step.reasoningDetails" | "step.warnings" | "step.finishReason" | "step.usage.promptTokens" | "step.usage.completionTokens" | "step.usage.totalTokens" | `step.providerMetadata.${string}` | "step.isContinued" | "step.logprobs" | "step.experimental_providerMetadata" | "step.request" | "step.response" | "step.stepType" | "step.toolCalls" | "step.toolResults" | `step.logprobs.${string}` | `step.experimental_providerMetadata.${string}` | "step.request.url" | "step.request.body" | "step.request.headers" | "step.request.method" | `step.request.body.${string}` | `step.request.headers.${string}` | "step.response.id" | "step.response.messages" | "step.response.body" | "step.response.headers" | `step.response.body.${string}` | `step.response.headers.${string}` | "step.response.timestamp" | "step.response.modelId" | "embeddings" | "embeddings.model" | "embeddings.dimension" | "embeddings.vectors" | `embeddings.dimension.${any}`>;
|
|
@@ -7538,11 +7538,11 @@ export declare const vSafeObjectArgs: import("convex/values").VObject<{
|
|
|
7538
7538
|
export type SafeObjectArgs = Infer<typeof vSafeObjectArgs>;
|
|
7539
7539
|
export declare const vEmbeddingsWithMetadata: import("convex/values").VObject<{
|
|
7540
7540
|
model: string;
|
|
7541
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
7541
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
7542
7542
|
vectors: (number[] | null)[];
|
|
7543
7543
|
}, {
|
|
7544
7544
|
vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
|
|
7545
|
-
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
7545
|
+
dimension: import("convex/values").VUnion<128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096, any, "required", any>;
|
|
7546
7546
|
model: import("convex/values").VString<string, "required">;
|
|
7547
7547
|
}, "required", "model" | "dimension" | "vectors" | `dimension.${any}`>;
|
|
7548
7548
|
export type EmbeddingsWithMetadata = Infer<typeof vEmbeddingsWithMetadata>;
|
|
@@ -62,7 +62,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
62
62
|
stepId?: import("convex/values").GenericId<"steps"> | undefined;
|
|
63
63
|
embeddings?: {
|
|
64
64
|
model: string;
|
|
65
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
65
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
66
66
|
vectors: (number[] | null)[];
|
|
67
67
|
} | undefined;
|
|
68
68
|
promptMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
@@ -193,7 +193,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
193
193
|
_creationTime: number;
|
|
194
194
|
id?: string | undefined;
|
|
195
195
|
userId?: string | undefined;
|
|
196
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
196
|
+
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;
|
|
197
197
|
error?: string | undefined;
|
|
198
198
|
agentName?: string | undefined;
|
|
199
199
|
model?: string | undefined;
|
|
@@ -326,7 +326,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
326
326
|
_creationTime: number;
|
|
327
327
|
id?: string | undefined;
|
|
328
328
|
userId?: string | undefined;
|
|
329
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
329
|
+
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;
|
|
330
330
|
error?: string | undefined;
|
|
331
331
|
agentName?: string | undefined;
|
|
332
332
|
model?: string | undefined;
|
|
@@ -460,7 +460,7 @@ export declare const addStep: import("convex/server").RegisteredMutation<"public
|
|
|
460
460
|
step: {
|
|
461
461
|
embeddings?: {
|
|
462
462
|
model: string;
|
|
463
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1536 | 2048 | 3072 | 4096;
|
|
463
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
464
464
|
vectors: (number[] | null)[];
|
|
465
465
|
} | undefined;
|
|
466
466
|
messages: {
|
|
@@ -1347,7 +1347,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1347
1347
|
before: number;
|
|
1348
1348
|
after: number;
|
|
1349
1349
|
};
|
|
1350
|
-
vectorIds: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">[];
|
|
1350
|
+
vectorIds: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">[];
|
|
1351
1351
|
}, Promise<{
|
|
1352
1352
|
id?: string | undefined;
|
|
1353
1353
|
userId?: string | undefined;
|