@mastra/lance 0.3.10 → 1.0.0-beta.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/CHANGELOG.md +193 -33
- package/README.md +61 -4
- package/dist/index.cjs +295 -644
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +295 -644
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +15 -39
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +5 -5
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +4 -11
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +27 -88
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/vector/index.d.ts +3 -1
- package/dist/vector/index.d.ts.map +1 -1
- package/package.json +13 -15
- package/dist/storage/domains/legacy-evals/index.d.ts +0 -25
- package/dist/storage/domains/legacy-evals/index.d.ts.map +0 -1
- package/dist/storage/domains/traces/index.d.ts +0 -34
- package/dist/storage/domains/traces/index.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Connection } from '@lancedb/lancedb';
|
|
2
2
|
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
3
|
-
import type {
|
|
3
|
+
import type { MastraDBMessage, StorageThreadType } from '@mastra/core/memory';
|
|
4
4
|
import { MemoryStorage } from '@mastra/core/storage';
|
|
5
|
-
import type {
|
|
5
|
+
import type { StorageResourceType, StorageListMessagesInput, StorageListMessagesOutput, StorageListThreadsByResourceIdInput, StorageListThreadsByResourceIdOutput } from '@mastra/core/storage';
|
|
6
6
|
import type { StoreOperationsLance } from '../operations/index.js';
|
|
7
7
|
export declare class StoreMemoryLance extends MemoryStorage {
|
|
8
8
|
private client;
|
|
@@ -11,12 +11,10 @@ export declare class StoreMemoryLance extends MemoryStorage {
|
|
|
11
11
|
client: Connection;
|
|
12
12
|
operations: StoreOperationsLance;
|
|
13
13
|
});
|
|
14
|
+
private escapeSql;
|
|
14
15
|
getThreadById({ threadId }: {
|
|
15
16
|
threadId: string;
|
|
16
17
|
}): Promise<StorageThreadType | null>;
|
|
17
|
-
getThreadsByResourceId({ resourceId }: {
|
|
18
|
-
resourceId: string;
|
|
19
|
-
}): Promise<StorageThreadType[]>;
|
|
20
18
|
/**
|
|
21
19
|
* Saves a thread to the database. This function doesn't overwrite existing threads.
|
|
22
20
|
* @param thread - The thread to save
|
|
@@ -34,35 +32,18 @@ export declare class StoreMemoryLance extends MemoryStorage {
|
|
|
34
32
|
threadId: string;
|
|
35
33
|
}): Promise<void>;
|
|
36
34
|
private normalizeMessage;
|
|
37
|
-
|
|
38
|
-
format?: 'v1';
|
|
39
|
-
}): Promise<MastraMessageV1[]>;
|
|
40
|
-
getMessages(args: StorageGetMessagesArg & {
|
|
41
|
-
format: 'v2';
|
|
42
|
-
}): Promise<MastraMessageV2[]>;
|
|
43
|
-
getMessagesById({ messageIds, format, }: {
|
|
44
|
-
messageIds: string[];
|
|
45
|
-
format: 'v1';
|
|
46
|
-
}): Promise<MastraMessageV1[]>;
|
|
47
|
-
getMessagesById({ messageIds, format, }: {
|
|
35
|
+
listMessagesById({ messageIds }: {
|
|
48
36
|
messageIds: string[];
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
format?: undefined | 'v1';
|
|
54
|
-
}): Promise<MastraMessageV1[]>;
|
|
37
|
+
}): Promise<{
|
|
38
|
+
messages: MastraDBMessage[];
|
|
39
|
+
}>;
|
|
40
|
+
listMessages(args: StorageListMessagesInput): Promise<StorageListMessagesOutput>;
|
|
55
41
|
saveMessages(args: {
|
|
56
|
-
messages:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
getThreadsByResourceIdPaginated(args: {
|
|
60
|
-
resourceId: string;
|
|
61
|
-
page?: number;
|
|
62
|
-
perPage?: number;
|
|
63
|
-
}): Promise<PaginationInfo & {
|
|
64
|
-
threads: StorageThreadType[];
|
|
42
|
+
messages: MastraDBMessage[];
|
|
43
|
+
}): Promise<{
|
|
44
|
+
messages: MastraDBMessage[];
|
|
65
45
|
}>;
|
|
46
|
+
listThreadsByResourceId(args: StorageListThreadsByResourceIdInput): Promise<StorageListThreadsByResourceIdOutput>;
|
|
66
47
|
/**
|
|
67
48
|
* Processes messages to include context messages based on withPreviousMessages and withNextMessages
|
|
68
49
|
* @param records - The sorted array of records to process
|
|
@@ -70,24 +51,19 @@ export declare class StoreMemoryLance extends MemoryStorage {
|
|
|
70
51
|
* @returns The processed array with context messages included
|
|
71
52
|
*/
|
|
72
53
|
private processMessagesWithContext;
|
|
73
|
-
getMessagesPaginated(args: StorageGetMessagesArg & {
|
|
74
|
-
format?: 'v1' | 'v2';
|
|
75
|
-
}): Promise<PaginationInfo & {
|
|
76
|
-
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
77
|
-
}>;
|
|
78
54
|
/**
|
|
79
|
-
* Parse message data from LanceDB record format to
|
|
55
|
+
* Parse message data from LanceDB record format to MastraDBMessage format
|
|
80
56
|
*/
|
|
81
57
|
private parseMessageData;
|
|
82
58
|
updateMessages(args: {
|
|
83
|
-
messages: Partial<Omit<
|
|
59
|
+
messages: Partial<Omit<MastraDBMessage, 'createdAt'>> & {
|
|
84
60
|
id: string;
|
|
85
61
|
content?: {
|
|
86
62
|
metadata?: MastraMessageContentV2['metadata'];
|
|
87
63
|
content?: MastraMessageContentV2['content'];
|
|
88
64
|
};
|
|
89
65
|
}[];
|
|
90
|
-
}): Promise<
|
|
66
|
+
}): Promise<MastraDBMessage[]>;
|
|
91
67
|
getResourceById({ resourceId }: {
|
|
92
68
|
resourceId: string;
|
|
93
69
|
}): Promise<StorageResourceType | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/memory/index.ts"],"names":[],"mappings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AAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAiG5F,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,mBAAmB,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAyB3F,cAAc,CAAC,EACnB,UAAU,EACV,aAAa,EACb,QAAQ,GACT,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC,GAAG,OAAO,CAAC,mBAAmB,CAAC;CA+DjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
-
import type { ScoreRowData, ScoringSource } from '@mastra/core/
|
|
2
|
+
import type { ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
3
3
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
4
|
import type { PaginationInfo, StoragePagination } from '@mastra/core/storage';
|
|
5
5
|
export declare class StoreScoresLance extends ScoresStorage {
|
|
@@ -13,7 +13,7 @@ export declare class StoreScoresLance extends ScoresStorage {
|
|
|
13
13
|
getScoreById({ id }: {
|
|
14
14
|
id: string;
|
|
15
15
|
}): Promise<ScoreRowData | null>;
|
|
16
|
-
|
|
16
|
+
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
17
17
|
scorerId: string;
|
|
18
18
|
pagination: StoragePagination;
|
|
19
19
|
entityId?: string;
|
|
@@ -23,14 +23,14 @@ export declare class StoreScoresLance extends ScoresStorage {
|
|
|
23
23
|
pagination: PaginationInfo;
|
|
24
24
|
scores: ScoreRowData[];
|
|
25
25
|
}>;
|
|
26
|
-
|
|
26
|
+
listScoresByRunId({ runId, pagination, }: {
|
|
27
27
|
runId: string;
|
|
28
28
|
pagination: StoragePagination;
|
|
29
29
|
}): Promise<{
|
|
30
30
|
pagination: PaginationInfo;
|
|
31
31
|
scores: ScoreRowData[];
|
|
32
32
|
}>;
|
|
33
|
-
|
|
33
|
+
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
34
34
|
pagination: StoragePagination;
|
|
35
35
|
entityId: string;
|
|
36
36
|
entityType: string;
|
|
@@ -38,7 +38,7 @@ export declare class StoreScoresLance extends ScoresStorage {
|
|
|
38
38
|
pagination: PaginationInfo;
|
|
39
39
|
scores: ScoreRowData[];
|
|
40
40
|
}>;
|
|
41
|
-
|
|
41
|
+
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
42
42
|
traceId: string;
|
|
43
43
|
spanId: string;
|
|
44
44
|
pagination: StoragePagination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAA6B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAA6B,MAAM,oBAAoB,CAAC;AAEjG,OAAO,EAAE,aAAa,EAAwD,MAAM,sBAAsB,CAAC;AAC3G,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9E,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,OAAO,CAAC,MAAM,CAAa;gBACf,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,UAAU,CAAA;KAAE;IAKxC,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAwDhE,YAAY,CAAC,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@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAgB,cAAc,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAgB,cAAc,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,EAAE,CAO/D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,WAAW,EAAE,UAAU,GAAG,IAAI,CA4BzF;AAED,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EACtD,WAAW,EAAE,UAAU,GACtB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAqD7C;AAED,wBAAsB,cAAc,CAAC,EACnC,SAAS,EACT,MAAM,GACP,EAAE;IACD,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,UAAU,CAAC;CACpB,GAAG,OAAO,CAAC,UAAU,CAAC,CA6CtB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StorageListWorkflowRunsInput, WorkflowRuns } from '@mastra/core/storage';
|
|
3
3
|
import { WorkflowsStorage } from '@mastra/core/storage';
|
|
4
|
+
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
4
5
|
export declare class StoreWorkflowsLance extends WorkflowsStorage {
|
|
5
6
|
client: Connection;
|
|
6
7
|
constructor({ client }: {
|
|
@@ -11,7 +12,7 @@ export declare class StoreWorkflowsLance extends WorkflowsStorage {
|
|
|
11
12
|
runId: string;
|
|
12
13
|
stepId: string;
|
|
13
14
|
result: StepResult<any, any, any, any>;
|
|
14
|
-
|
|
15
|
+
requestContext: Record<string, any>;
|
|
15
16
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
16
17
|
updateWorkflowState({}: {
|
|
17
18
|
workflowName: string;
|
|
@@ -44,14 +45,6 @@ export declare class StoreWorkflowsLance extends WorkflowsStorage {
|
|
|
44
45
|
createdAt: Date;
|
|
45
46
|
updatedAt: Date;
|
|
46
47
|
} | null>;
|
|
47
|
-
|
|
48
|
-
namespace?: string;
|
|
49
|
-
resourceId?: string;
|
|
50
|
-
workflowName?: string;
|
|
51
|
-
fromDate?: Date;
|
|
52
|
-
toDate?: Date;
|
|
53
|
-
limit?: number;
|
|
54
|
-
offset?: number;
|
|
55
|
-
}): Promise<WorkflowRuns>;
|
|
48
|
+
listWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
56
49
|
}
|
|
57
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK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QAAQ,GACT,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,GAAG,OAAO,CAAC,IAAI,CAAC;IA4CX,oBAAoB,CAAC,EACzB,YAAY,EACZ,KAAK,GACN,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAmB9B,kBAAkB,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAChF,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,GAAG,CAAC;QACd,SAAS,EAAE,IAAI,CAAC;QAChB,SAAS,EAAE,IAAI,CAAC;KACjB,GAAG,IAAI,CAAC;IAyBH,gBAAgB,CAAC,IAAI,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,YAAY,CAAC;CAkFnF"}
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { ConnectionOptions } from '@lancedb/lancedb';
|
|
2
2
|
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
3
|
+
import type { ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
4
|
+
import type { MastraDBMessage, StorageThreadType } from '@mastra/core/memory';
|
|
5
5
|
import { MastraStorage } from '@mastra/core/storage';
|
|
6
|
-
import type { TABLE_NAMES, PaginationInfo,
|
|
7
|
-
import type { Trace } from '@mastra/core/telemetry';
|
|
6
|
+
import type { TABLE_NAMES, PaginationInfo, StorageColumn, WorkflowRuns, StoragePagination, StorageDomains, StorageResourceType, StorageListWorkflowRunsInput } from '@mastra/core/storage';
|
|
8
7
|
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
9
8
|
export declare class LanceStorage extends MastraStorage {
|
|
10
9
|
stores: StorageDomains;
|
|
11
10
|
private lanceClient;
|
|
12
11
|
/**
|
|
13
12
|
* Creates a new instance of LanceStorage
|
|
13
|
+
* @param id The unique identifier for this storage instance
|
|
14
|
+
* @param name The name for this storage instance
|
|
14
15
|
* @param uri The URI to connect to LanceDB
|
|
15
16
|
* @param options connection options
|
|
16
17
|
*
|
|
@@ -18,20 +19,20 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
18
19
|
*
|
|
19
20
|
* Connect to a local database
|
|
20
21
|
* ```ts
|
|
21
|
-
* const store = await LanceStorage.create('/path/to/db');
|
|
22
|
+
* const store = await LanceStorage.create('my-storage-id', 'MyStorage', '/path/to/db');
|
|
22
23
|
* ```
|
|
23
24
|
*
|
|
24
25
|
* Connect to a LanceDB cloud database
|
|
25
26
|
* ```ts
|
|
26
|
-
* const store = await LanceStorage.create('db://host:port');
|
|
27
|
+
* const store = await LanceStorage.create('my-storage-id', 'MyStorage', 'db://host:port');
|
|
27
28
|
* ```
|
|
28
29
|
*
|
|
29
30
|
* Connect to a cloud database
|
|
30
31
|
* ```ts
|
|
31
|
-
* const store = await LanceStorage.create('s3://bucket/db', { storageOptions: { timeout: '60s' } });
|
|
32
|
+
* const store = await LanceStorage.create('my-storage-id', 'MyStorage', 's3://bucket/db', { storageOptions: { timeout: '60s' } });
|
|
32
33
|
* ```
|
|
33
34
|
*/
|
|
34
|
-
static create(name: string, uri: string, options?: ConnectionOptions): Promise<LanceStorage>;
|
|
35
|
+
static create(id: string, name: string, uri: string, options?: ConnectionOptions): Promise<LanceStorage>;
|
|
35
36
|
/**
|
|
36
37
|
* @internal
|
|
37
38
|
* Private constructor to enforce using the create factory method
|
|
@@ -67,9 +68,6 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
67
68
|
getThreadById({ threadId }: {
|
|
68
69
|
threadId: string;
|
|
69
70
|
}): Promise<StorageThreadType | null>;
|
|
70
|
-
getThreadsByResourceId({ resourceId }: {
|
|
71
|
-
resourceId: string;
|
|
72
|
-
}): Promise<StorageThreadType[]>;
|
|
73
71
|
/**
|
|
74
72
|
* Saves a thread to the database. This function doesn't overwrite existing threads.
|
|
75
73
|
* @param thread - The thread to save
|
|
@@ -92,7 +90,7 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
92
90
|
hasColumn: boolean;
|
|
93
91
|
createTable: boolean;
|
|
94
92
|
deleteMessages: boolean;
|
|
95
|
-
|
|
93
|
+
listScoresBySpan: boolean;
|
|
96
94
|
};
|
|
97
95
|
getResourceById({ resourceId }: {
|
|
98
96
|
resourceId: string;
|
|
@@ -112,85 +110,26 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
112
110
|
* @returns The processed array with context messages included
|
|
113
111
|
*/
|
|
114
112
|
private processMessagesWithContext;
|
|
115
|
-
|
|
116
|
-
format?: 'v1';
|
|
117
|
-
}): Promise<MastraMessageV1[]>;
|
|
118
|
-
getMessages(args: StorageGetMessagesArg & {
|
|
119
|
-
format: 'v2';
|
|
120
|
-
}): Promise<MastraMessageV2[]>;
|
|
121
|
-
getMessagesById({ messageIds, format }: {
|
|
122
|
-
messageIds: string[];
|
|
123
|
-
format: 'v1';
|
|
124
|
-
}): Promise<MastraMessageV1[]>;
|
|
125
|
-
getMessagesById({ messageIds, format }: {
|
|
113
|
+
listMessagesById({ messageIds }: {
|
|
126
114
|
messageIds: string[];
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
saveMessages(args: {
|
|
130
|
-
messages: MastraMessageV1[];
|
|
131
|
-
format?: undefined | 'v1';
|
|
132
|
-
}): Promise<MastraMessageV1[]>;
|
|
133
|
-
saveMessages(args: {
|
|
134
|
-
messages: MastraMessageV2[];
|
|
135
|
-
format: 'v2';
|
|
136
|
-
}): Promise<MastraMessageV2[]>;
|
|
137
|
-
getThreadsByResourceIdPaginated(args: {
|
|
138
|
-
resourceId: string;
|
|
139
|
-
page: number;
|
|
140
|
-
perPage: number;
|
|
141
|
-
}): Promise<PaginationInfo & {
|
|
142
|
-
threads: StorageThreadType[];
|
|
115
|
+
}): Promise<{
|
|
116
|
+
messages: MastraDBMessage[];
|
|
143
117
|
}>;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}): Promise<
|
|
147
|
-
messages:
|
|
118
|
+
saveMessages(args: {
|
|
119
|
+
messages: MastraDBMessage[];
|
|
120
|
+
}): Promise<{
|
|
121
|
+
messages: MastraDBMessage[];
|
|
148
122
|
}>;
|
|
149
123
|
updateMessages(_args: {
|
|
150
|
-
messages: Partial<Omit<
|
|
124
|
+
messages: (Partial<Omit<MastraDBMessage, 'createdAt'>> & {
|
|
151
125
|
id: string;
|
|
152
126
|
content?: {
|
|
153
127
|
metadata?: MastraMessageContentV2['metadata'];
|
|
154
128
|
content?: MastraMessageContentV2['content'];
|
|
155
129
|
};
|
|
156
|
-
}[];
|
|
157
|
-
}): Promise<
|
|
158
|
-
|
|
159
|
-
traceId: string;
|
|
160
|
-
}): Promise<TraceType>;
|
|
161
|
-
getTraces(args: {
|
|
162
|
-
name?: string;
|
|
163
|
-
scope?: string;
|
|
164
|
-
page: number;
|
|
165
|
-
perPage: number;
|
|
166
|
-
attributes?: Record<string, string>;
|
|
167
|
-
}): Promise<Trace[]>;
|
|
168
|
-
getTracesPaginated(args: StorageGetTracesPaginatedArg): Promise<PaginationInfo & {
|
|
169
|
-
traces: Trace[];
|
|
170
|
-
}>;
|
|
171
|
-
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
172
|
-
getEvals(options: {
|
|
173
|
-
agentName?: string;
|
|
174
|
-
type?: 'test' | 'live';
|
|
175
|
-
page?: number;
|
|
176
|
-
perPage?: number;
|
|
177
|
-
fromDate?: Date;
|
|
178
|
-
toDate?: Date;
|
|
179
|
-
dateRange?: {
|
|
180
|
-
start?: Date;
|
|
181
|
-
end?: Date;
|
|
182
|
-
};
|
|
183
|
-
}): Promise<PaginationInfo & {
|
|
184
|
-
evals: EvalRow[];
|
|
185
|
-
}>;
|
|
186
|
-
getWorkflowRuns(args?: {
|
|
187
|
-
namespace?: string;
|
|
188
|
-
workflowName?: string;
|
|
189
|
-
fromDate?: Date;
|
|
190
|
-
toDate?: Date;
|
|
191
|
-
limit?: number;
|
|
192
|
-
offset?: number;
|
|
193
|
-
}): Promise<WorkflowRuns>;
|
|
130
|
+
})[];
|
|
131
|
+
}): Promise<MastraDBMessage[]>;
|
|
132
|
+
listWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
194
133
|
getWorkflowRunById(args: {
|
|
195
134
|
runId: string;
|
|
196
135
|
workflowName?: string;
|
|
@@ -201,12 +140,12 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
201
140
|
createdAt: Date;
|
|
202
141
|
updatedAt: Date;
|
|
203
142
|
} | null>;
|
|
204
|
-
updateWorkflowResults({ workflowName, runId, stepId, result,
|
|
143
|
+
updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, }: {
|
|
205
144
|
workflowName: string;
|
|
206
145
|
runId: string;
|
|
207
146
|
stepId: string;
|
|
208
147
|
result: StepResult<any, any, any, any>;
|
|
209
|
-
|
|
148
|
+
requestContext: Record<string, any>;
|
|
210
149
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
211
150
|
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
212
151
|
workflowName: string;
|
|
@@ -232,7 +171,7 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
232
171
|
getScoreById({ id: _id }: {
|
|
233
172
|
id: string;
|
|
234
173
|
}): Promise<ScoreRowData | null>;
|
|
235
|
-
|
|
174
|
+
listScoresByScorerId({ scorerId, source, entityId, entityType, pagination, }: {
|
|
236
175
|
scorerId: string;
|
|
237
176
|
pagination: StoragePagination;
|
|
238
177
|
source?: ScoringSource;
|
|
@@ -245,14 +184,14 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
245
184
|
saveScore(_score: ScoreRowData): Promise<{
|
|
246
185
|
score: ScoreRowData;
|
|
247
186
|
}>;
|
|
248
|
-
|
|
187
|
+
listScoresByRunId({ runId, pagination, }: {
|
|
249
188
|
runId: string;
|
|
250
189
|
pagination: StoragePagination;
|
|
251
190
|
}): Promise<{
|
|
252
191
|
pagination: PaginationInfo;
|
|
253
192
|
scores: ScoreRowData[];
|
|
254
193
|
}>;
|
|
255
|
-
|
|
194
|
+
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
256
195
|
pagination: StoragePagination;
|
|
257
196
|
entityId: string;
|
|
258
197
|
entityType: string;
|
|
@@ -260,7 +199,7 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
260
199
|
pagination: PaginationInfo;
|
|
261
200
|
scores: ScoreRowData[];
|
|
262
201
|
}>;
|
|
263
|
-
|
|
202
|
+
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
264
203
|
traceId: string;
|
|
265
204
|
spanId: string;
|
|
266
205
|
pagination: StoragePagination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC9E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AU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAI7D,gBAAgB,CAAC,EACrB,OAAO,EACP,MAAM,EACN,UAAU,GACX,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,iBAAiB,CAAC;KAC/B,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;CAGpE"}
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -43,7 +43,9 @@ export declare class LanceVectorStore extends MastraVector<LanceVectorFilter> {
|
|
|
43
43
|
* const store = await LanceVectorStore.create('s3://bucket/db', { storageOptions: { timeout: '60s' } });
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
static create(uri: string, options?: ConnectionOptions
|
|
46
|
+
static create(uri: string, options?: ConnectionOptions & {
|
|
47
|
+
id: string;
|
|
48
|
+
}): Promise<LanceVectorStore>;
|
|
47
49
|
/**
|
|
48
50
|
* @internal
|
|
49
51
|
* Private constructor to enforce using the create factory method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vector/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,iBAAiB,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG5G,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,M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,aAAa;IAYf,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,SAAS,EAC3C,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GACpC,OAAO,CAAC,KAAK,CAAC;IA+BX,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAwB/B,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IA2BrD;;OAEG;IACG,WAAW,CAAC,EAChB,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAiB,EACjB,WAAgB,GACjB,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkFnC,WAAW,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAkChC,aAAa,CAAC,EAAE,SAAS,EAAE,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;IAkEtE,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgDlE;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBhC,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B7C,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAuH1E,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAiExE;;;OAGG;IACH,OAAO,CAAC,eAAe;CAgCxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/lance",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Lance provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,23 +19,25 @@
|
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@lancedb/lancedb": "^0.22.
|
|
22
|
+
"@lancedb/lancedb": "^0.22.3",
|
|
23
23
|
"apache-arrow": "^18.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@microsoft/api-extractor": "^7.52.8",
|
|
27
|
-
"@types/node": "
|
|
27
|
+
"@types/node": "22.13.17",
|
|
28
|
+
"@vitest/coverage-v8": "4.0.8",
|
|
29
|
+
"@vitest/ui": "4.0.8",
|
|
28
30
|
"eslint": "^9.37.0",
|
|
29
31
|
"tsup": "^8.5.0",
|
|
30
32
|
"typescript": "^5.8.3",
|
|
31
|
-
"vitest": "^
|
|
32
|
-
"@internal/lint": "0.0.
|
|
33
|
-
"@internal/
|
|
34
|
-
"@mastra/core": "^0.
|
|
35
|
-
"@internal/
|
|
33
|
+
"vitest": "^4.0.8",
|
|
34
|
+
"@internal/lint": "0.0.53",
|
|
35
|
+
"@internal/types-builder": "0.0.28",
|
|
36
|
+
"@mastra/core": "^1.0.0-beta.3",
|
|
37
|
+
"@internal/storage-test-utils": "0.0.49"
|
|
36
38
|
},
|
|
37
39
|
"peerDependencies": {
|
|
38
|
-
"@mastra/core": ">=0.
|
|
40
|
+
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|
|
39
41
|
},
|
|
40
42
|
"files": [
|
|
41
43
|
"dist",
|
|
@@ -50,12 +52,8 @@
|
|
|
50
52
|
"bugs": {
|
|
51
53
|
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
52
54
|
},
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"publish-branch": [
|
|
56
|
-
"main",
|
|
57
|
-
"0.x"
|
|
58
|
-
]
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=22.13.0"
|
|
59
57
|
},
|
|
60
58
|
"scripts": {
|
|
61
59
|
"build": "tsup --silent --config tsup.config.ts",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
-
import { LegacyEvalsStorage } from '@mastra/core/storage';
|
|
3
|
-
import type { EvalRow, PaginationInfo } from '@mastra/core/storage';
|
|
4
|
-
export declare class StoreLegacyEvalsLance extends LegacyEvalsStorage {
|
|
5
|
-
private client;
|
|
6
|
-
constructor({ client }: {
|
|
7
|
-
client: Connection;
|
|
8
|
-
});
|
|
9
|
-
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
10
|
-
getEvals(options: {
|
|
11
|
-
agentName?: string;
|
|
12
|
-
type?: 'test' | 'live';
|
|
13
|
-
page?: number;
|
|
14
|
-
perPage?: number;
|
|
15
|
-
fromDate?: Date;
|
|
16
|
-
toDate?: Date;
|
|
17
|
-
dateRange?: {
|
|
18
|
-
start?: Date;
|
|
19
|
-
end?: Date;
|
|
20
|
-
};
|
|
21
|
-
}): Promise<PaginationInfo & {
|
|
22
|
-
evals: EvalRow[];
|
|
23
|
-
}>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/legacy-evals/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAe,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEpE,qBAAa,qBAAsB,SAAQ,kBAAkB;IAC3D,OAAO,CAAC,MAAM,CAAa;gBACf,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,UAAU,CAAA;KAAE;IAKxC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA4ClF,QAAQ,CAAC,OAAO,EAAE;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,MAAM,CAAC,EAAE,IAAI,CAAC;QACd,SAAS,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,IAAI,CAAC;YAAC,GAAG,CAAC,EAAE,IAAI,CAAA;SAAE,CAAC;KAC1C,GAAG,OAAO,CAAC,cAAc,GAAG;QAAE,KAAK,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC;CA2FnD"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
-
import type { TraceType } from '@mastra/core/memory';
|
|
3
|
-
import { TracesStorage } from '@mastra/core/storage';
|
|
4
|
-
import type { PaginationInfo, StorageGetTracesPaginatedArg } from '@mastra/core/storage';
|
|
5
|
-
import type { Trace } from '@mastra/core/telemetry';
|
|
6
|
-
import type { StoreOperationsLance } from '../operations/index.js';
|
|
7
|
-
export declare class StoreTracesLance extends TracesStorage {
|
|
8
|
-
private client;
|
|
9
|
-
private operations;
|
|
10
|
-
constructor({ client, operations }: {
|
|
11
|
-
client: Connection;
|
|
12
|
-
operations: StoreOperationsLance;
|
|
13
|
-
});
|
|
14
|
-
saveTrace({ trace }: {
|
|
15
|
-
trace: TraceType;
|
|
16
|
-
}): Promise<TraceType>;
|
|
17
|
-
getTraceById({ traceId }: {
|
|
18
|
-
traceId: string;
|
|
19
|
-
}): Promise<TraceType>;
|
|
20
|
-
getTraces({ name, scope, page, perPage, attributes, }: {
|
|
21
|
-
name?: string;
|
|
22
|
-
scope?: string;
|
|
23
|
-
page: number;
|
|
24
|
-
perPage: number;
|
|
25
|
-
attributes?: Record<string, string>;
|
|
26
|
-
}): Promise<Trace[]>;
|
|
27
|
-
getTracesPaginated(args: StorageGetTracesPaginatedArg): Promise<PaginationInfo & {
|
|
28
|
-
traces: Trace[];
|
|
29
|
-
}>;
|
|
30
|
-
batchTraceInsert({ records }: {
|
|
31
|
-
records: Record<string, any>[];
|
|
32
|
-
}): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/traces/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAgB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,UAAU,CAAuB;gBAC7B,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE;QAAE,MAAM,EAAE,UAAU,CAAC;QAAC,UAAU,EAAE,oBAAoB,CAAA;KAAE;IAMtF,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,CAAC;IAyB9D,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,CAAC;IA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