@agentuity/core 0.0.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.
@@ -0,0 +1,219 @@
1
+ import { FetchAdapter } from './adapter';
2
+ /**
3
+ * Base properties shared by all vector upsert operations
4
+ */
5
+ export interface VectorUpsertBase {
6
+ /**
7
+ * the key of the vector object which can be used as a reference. the value of this key is opaque to the vector storage.
8
+ */
9
+ key: string;
10
+ /**
11
+ * the metadata to upsert
12
+ */
13
+ metadata?: Record<string, unknown>;
14
+ }
15
+ /**
16
+ * Upsert using pre-computed embeddings
17
+ */
18
+ export interface VectorUpsertEmbeddings extends VectorUpsertBase {
19
+ /**
20
+ * the embeddings to upsert
21
+ */
22
+ embeddings: Array<number>;
23
+ document?: never;
24
+ }
25
+ /**
26
+ * Upsert using text that will be converted to embeddings
27
+ */
28
+ export interface VectorUpsertText extends VectorUpsertBase {
29
+ /**
30
+ * the text to use for the embedding
31
+ */
32
+ document: string;
33
+ embeddings?: never;
34
+ }
35
+ /**
36
+ * Parameters for upserting a vector
37
+ */
38
+ export type VectorUpsertParams = VectorUpsertEmbeddings | VectorUpsertText;
39
+ /**
40
+ * Parameters for searching vectors
41
+ */
42
+ export interface VectorSearchParams<T extends Record<string, unknown> = Record<string, unknown>> {
43
+ /**
44
+ * The text query to search for in the vector storage. This will be converted to embeddings
45
+ * and used to find semantically similar documents.
46
+ *
47
+ * @example "comfortable office chair"
48
+ * @example "machine learning algorithms"
49
+ */
50
+ query: string;
51
+ /**
52
+ * Maximum number of search results to return. If not specified, the server default will be used.
53
+ * Must be a positive integer.
54
+ *
55
+ * @default 10
56
+ * @example 5
57
+ * @example 20
58
+ */
59
+ limit?: number;
60
+ /**
61
+ * Minimum similarity threshold for results. Only vectors with similarity scores greater than or equal
62
+ * to this value will be returned. Value must be between 0.0 and 1.0, where 1.0 means exact match
63
+ * and 0.0 means no similarity requirement.
64
+ *
65
+ * @minimum 0.0
66
+ * @maximum 1.0
67
+ * @example 0.7
68
+ * @example 0.5
69
+ */
70
+ similarity?: number;
71
+ /**
72
+ * Metadata filters to apply to the search. Only vectors whose metadata matches all specified
73
+ * key-value pairs will be included in results. Must be a valid JSON object if provided.
74
+ *
75
+ * @example { category: "furniture", inStock: true }
76
+ * @example { userId: "123", type: "product" }
77
+ */
78
+ metadata?: T;
79
+ }
80
+ /**
81
+ * Result of a vector search operation with optional type-safe metadata
82
+ */
83
+ export interface VectorSearchResult<T extends Record<string, unknown> = Record<string, unknown>> {
84
+ /**
85
+ * the unique id of the object in vector storage
86
+ */
87
+ id: string;
88
+ /**
89
+ * the key used when the vector object was added to vector storage
90
+ */
91
+ key: string;
92
+ /**
93
+ * the metadata of the vector object when it was stored
94
+ */
95
+ metadata?: T;
96
+ /**
97
+ * the distance of the vector object from the query from 0-1. The larger the number, the more similar the vector object is to the query.
98
+ */
99
+ similarity: number;
100
+ }
101
+ /**
102
+ * Extended search result that includes the document and embeddings
103
+ */
104
+ export interface VectorSearchResultWithDocument<T extends Record<string, unknown> = Record<string, unknown>> extends VectorSearchResult<T> {
105
+ /**
106
+ * the document that was used to create the vector object
107
+ */
108
+ document?: string;
109
+ /**
110
+ * the embeddings of the vector object
111
+ */
112
+ embeddings?: Array<number>;
113
+ }
114
+ /**
115
+ * Result of a vector upsert operation
116
+ */
117
+ export interface VectorUpsertResult {
118
+ /**
119
+ * the key from the original upsert document
120
+ */
121
+ key: string;
122
+ /**
123
+ * the generated id for this vector in storage
124
+ */
125
+ id: string;
126
+ }
127
+ /**
128
+ * Result when a vector is found by key
129
+ */
130
+ export interface VectorResultFound<T extends Record<string, unknown> = Record<string, unknown>> {
131
+ /**
132
+ * the vector data
133
+ */
134
+ data: VectorSearchResultWithDocument<T>;
135
+ /**
136
+ * the vector was found
137
+ */
138
+ exists: true;
139
+ }
140
+ /**
141
+ * Result when a vector is not found by key
142
+ */
143
+ export interface VectorResultNotFound {
144
+ /**
145
+ * no data available
146
+ */
147
+ data: never;
148
+ /**
149
+ * the vector was not found
150
+ */
151
+ exists: false;
152
+ }
153
+ /**
154
+ * Result of a get operation
155
+ */
156
+ export type VectorResult<T extends Record<string, unknown> = Record<string, unknown>> = VectorResultFound<T> | VectorResultNotFound;
157
+ /**
158
+ * Vector storage service for managing vector embeddings
159
+ */
160
+ export interface VectorStorage {
161
+ /**
162
+ * upsert a vector into the vector storage
163
+ *
164
+ * @param name - the name of the vector storage
165
+ * @param documents - the documents for the vector upsert
166
+ * @returns array of results with key-to-id mappings for the upserted vectors
167
+ */
168
+ upsert(name: string, ...documents: VectorUpsertParams[]): Promise<VectorUpsertResult[]>;
169
+ /**
170
+ * get a vector from the vector storage by key
171
+ *
172
+ * @param name - the name of the vector storage
173
+ * @param key - the key of the vector to get
174
+ * @returns VectorResult with exists field for type-safe checking
175
+ */
176
+ get<T extends Record<string, unknown> = Record<string, unknown>>(name: string, key: string): Promise<VectorResult<T>>;
177
+ /**
178
+ * get multiple vectors from the vector storage by keys
179
+ *
180
+ * @param name - the name of the vector storage
181
+ * @param keys - the keys of the vectors to get
182
+ * @returns a Map of key to vector data for found vectors
183
+ */
184
+ getMany<T extends Record<string, unknown> = Record<string, unknown>>(name: string, ...keys: string[]): Promise<Map<string, VectorSearchResultWithDocument<T>>>;
185
+ /**
186
+ * search for vectors in the vector storage
187
+ *
188
+ * @param name - the name of the vector storage
189
+ * @param params - the parameters for the vector search
190
+ * @returns the results of the vector search with type-safe metadata
191
+ */
192
+ search<T extends Record<string, unknown> = Record<string, unknown>>(name: string, params: VectorSearchParams<T>): Promise<VectorSearchResult<T>[]>;
193
+ /**
194
+ * delete vectors from the vector storage
195
+ *
196
+ * @param name - the name of the vector storage
197
+ * @param keys - the keys of the vectors to delete
198
+ * @returns the number of vector objects that were deleted
199
+ */
200
+ delete(name: string, ...keys: string[]): Promise<number>;
201
+ /**
202
+ * check if a vector storage exists
203
+ *
204
+ * @param name - the name of the vector storage
205
+ * @returns true if the storage exists, false otherwise
206
+ */
207
+ exists(name: string): Promise<boolean>;
208
+ }
209
+ export declare class VectorStorageService implements VectorStorage {
210
+ #private;
211
+ constructor(baseUrl: string, adapter: FetchAdapter);
212
+ upsert(name: string, ...documents: VectorUpsertParams[]): Promise<VectorUpsertResult[]>;
213
+ get<T extends Record<string, unknown> = Record<string, unknown>>(name: string, key: string): Promise<VectorResult<T>>;
214
+ getMany<T extends Record<string, unknown> = Record<string, unknown>>(name: string, ...keys: string[]): Promise<Map<string, VectorSearchResultWithDocument<T>>>;
215
+ search<T extends Record<string, unknown> = Record<string, unknown>>(name: string, params: VectorSearchParams<T>): Promise<VectorSearchResult<T>[]>;
216
+ delete(name: string, ...keys: string[]): Promise<number>;
217
+ exists(name: string): Promise<boolean>;
218
+ }
219
+ //# sourceMappingURL=vector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../src/services/vector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIzC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC/D;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,gBAAgB,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,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AG,OAAO,CAAC,MAAM,CAAC;IAsDxD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAkB5C"}
@@ -0,0 +1,56 @@
1
+ /** The Standard Schema interface. */
2
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
3
+ /** The Standard Schema properties. */
4
+ readonly '~standard': StandardSchemaV1.Props<Input, Output>;
5
+ }
6
+ export declare namespace StandardSchemaV1 {
7
+ /** The Standard Schema properties interface. */
8
+ interface Props<Input = unknown, Output = Input> {
9
+ /** The version number of the standard. */
10
+ readonly version: 1;
11
+ /** The vendor name of the schema library. */
12
+ readonly vendor: string;
13
+ /** Validates unknown input values. */
14
+ readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
15
+ /** Inferred types associated with the schema. */
16
+ readonly types?: Types<Input, Output> | undefined;
17
+ }
18
+ /** The result interface of the validate function. */
19
+ type Result<Output> = SuccessResult<Output> | FailureResult;
20
+ /** The result interface if validation succeeds. */
21
+ interface SuccessResult<Output> {
22
+ /** The typed output value. */
23
+ readonly value: Output;
24
+ /** The non-existent issues. */
25
+ readonly issues?: undefined;
26
+ }
27
+ /** The result interface if validation fails. */
28
+ interface FailureResult {
29
+ /** The issues of failed validation. */
30
+ readonly issues: ReadonlyArray<Issue>;
31
+ }
32
+ /** The issue interface of the failure output. */
33
+ interface Issue {
34
+ /** The error message of the issue. */
35
+ readonly message: string;
36
+ /** The path of the issue, if any. */
37
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
38
+ }
39
+ /** The path segment interface of the issue. */
40
+ interface PathSegment {
41
+ /** The key representing a path segment. */
42
+ readonly key: PropertyKey;
43
+ }
44
+ /** The Standard Schema types interface. */
45
+ interface Types<Input = unknown, Output = Input> {
46
+ /** The input type of the schema. */
47
+ readonly input: Input;
48
+ /** The output type of the schema. */
49
+ readonly output: Output;
50
+ }
51
+ /** Infers the input type of a Standard Schema. */
52
+ type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'];
53
+ /** Infers the output type of a Standard Schema. */
54
+ type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
55
+ }
56
+ //# sourceMappingURL=standard_schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard_schema.d.ts","sourceRoot":"","sources":["../src/standard_schema.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,WAAW,gBAAgB,CAAC,KAAK,GAAG,OAAO,EAAE,MAAM,GAAG,KAAK;IAChE,sCAAsC;IACtC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAC5D;AAGD,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACzC,gDAAgD;IAChD,UAAiB,KAAK,CAAC,KAAK,GAAG,OAAO,EAAE,MAAM,GAAG,KAAK;QACrD,0CAA0C;QAC1C,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;QACpB,6CAA6C;QAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,sCAAsC;QACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAChF,iDAAiD;QACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;KAClD;IAED,qDAAqD;IACrD,KAAY,MAAM,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC;IAEnE,mDAAmD;IACnD,UAAiB,aAAa,CAAC,MAAM;QACpC,8BAA8B;QAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,+BAA+B;QAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;KAC5B;IAED,gDAAgD;IAChD,UAAiB,aAAa;QAC7B,uCAAuC;QACvC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;KACtC;IAED,iDAAiD;IACjD,UAAiB,KAAK;QACrB,sCAAsC;QACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,qCAAqC;QACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,SAAS,CAAC;KACrE;IAED,+CAA+C;IAC/C,UAAiB,WAAW;QAC3B,2CAA2C;QAC3C,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;KAC1B;IAED,2CAA2C;IAC3C,UAAiB,KAAK,CAAC,KAAK,GAAG,OAAO,EAAE,MAAM,GAAG,KAAK;QACrD,oCAAoC;QACpC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,qCAAqC;QACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACxB;IAED,kDAAkD;IAClD,KAAY,UAAU,CAAC,MAAM,SAAS,gBAAgB,IAAI,WAAW,CACpE,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAC5B,CAAC,OAAO,CAAC,CAAC;IAEX,mDAAmD;IACnD,KAAY,WAAW,CAAC,MAAM,SAAS,gBAAgB,IAAI,WAAW,CACrE,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAC5B,CAAC,QAAQ,CAAC,CAAC;CACZ"}
@@ -0,0 +1,4 @@
1
+ import type { StandardSchemaV1 } from './standard_schema';
2
+ export type InferInput<T> = T extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<T> : never;
3
+ export type InferOutput<T> = T extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<T> : void;
4
+ //# sourceMappingURL=typehelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typehelper.d.ts","sourceRoot":"","sources":["../src/typehelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAEjG,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@agentuity/core",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "scripts": {
17
+ "clean": "rm -rf dist",
18
+ "build": "bun build --target bun src/index.ts --outdir ./dist && bunx tsc --build --emitDeclarationOnly --force",
19
+ "typecheck": "bunx tsc --noEmit",
20
+ "prepublishOnly": "bun run clean && bun run build"
21
+ },
22
+ "dependencies": {},
23
+ "devDependencies": {
24
+ "typescript": "^5.9.0"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ }
29
+ }