@mastra/libsql 1.29.0-alpha.1 → 1.29.0-alpha.2
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/_types/@internal_core@0.1.4/dist/knowledge-compat/index.d.ts +9 -4
- package/dist/index.cjs +216 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +216 -30
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/knowledge/index.d.ts +6 -0
- package/dist/storage/domains/knowledge/index.d.ts.map +1 -1
- package/dist/storage/domains/knowledge/pages.d.ts +24 -12
- package/dist/storage/domains/knowledge/pages.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/docs/SKILL.md +0 -54
- package/dist/docs/assets/SOURCE_MAP.json +0 -6
- package/dist/docs/references/docs-agents-human-in-the-loop.md +0 -773
- package/dist/docs/references/docs-agents-networks.md +0 -186
- package/dist/docs/references/docs-deployment-workers.md +0 -404
- package/dist/docs/references/docs-memory-memory-processors.md +0 -442
- package/dist/docs/references/docs-memory-message-history.md +0 -424
- package/dist/docs/references/docs-memory-multi-user-threads.md +0 -210
- package/dist/docs/references/docs-memory-overview.md +0 -305
- package/dist/docs/references/docs-memory-semantic-recall.md +0 -485
- package/dist/docs/references/docs-memory-working-memory.md +0 -450
- package/dist/docs/references/docs-signals-overview.md +0 -94
- package/dist/docs/references/docs-storage.md +0 -224
- package/dist/docs/references/docs-studio-editor.md +0 -372
- package/dist/docs/references/docs-workflows-snapshots.md +0 -244
- package/dist/docs/references/integrations-channels-github.md +0 -156
- package/dist/docs/references/integrations-databases-dynamodb.md +0 -286
- package/dist/docs/references/integrations-databases-libsql.md +0 -161
- package/dist/docs/references/integrations-vectors-libsql.md +0 -325
- package/dist/docs/references/reference-ai-sdk-overview.md +0 -144
- package/dist/docs/references/reference-core-getMemory.md +0 -53
- package/dist/docs/references/reference-core-listMemory.md +0 -59
- package/dist/docs/references/reference-core-mastra-class.md +0 -177
- package/dist/docs/references/reference-file-based-agents-memory.md +0 -60
- package/dist/docs/references/reference-file-based-agents-storage.md +0 -32
- package/dist/docs/references/reference-memory-memory-class.md +0 -237
- package/dist/docs/references/reference-rag-retrieval.md +0 -672
- package/dist/docs/references/reference-storage-composite.md +0 -433
- package/dist/docs/references/reference-storage-retention.md +0 -310
|
@@ -15,6 +15,7 @@ export declare class KnowledgeLibSQL extends KnowledgeStorage {
|
|
|
15
15
|
readonly schemaVersion: 4;
|
|
16
16
|
readonly supportsSchemaInspection: true;
|
|
17
17
|
readonly supportsExplicitReset: true;
|
|
18
|
+
readonly supportsPinKinds: true;
|
|
18
19
|
};
|
|
19
20
|
dangerouslyClearAll(): Promise<void>;
|
|
20
21
|
inspectSchema(): Promise<import("../../../_types/@internal_core@0.1.4/dist/knowledge-compat/index.js").KnowledgePagesSchemaInspection>;
|
|
@@ -25,6 +26,7 @@ export declare class KnowledgeLibSQL extends KnowledgeStorage {
|
|
|
25
26
|
renameScopeDeclaration(input: Parameters<KnowledgePageStore['renameScopeDeclaration']>[0]): ReturnType<KnowledgePageStore['renameScopeDeclaration']>;
|
|
26
27
|
getScopesByAddress(input: Parameters<KnowledgePageStore['getScopesByAddress']>[0]): ReturnType<KnowledgePageStore['getScopesByAddress']>;
|
|
27
28
|
listChildScopes(input: Parameters<KnowledgePageStore['listChildScopes']>[0]): ReturnType<KnowledgePageStore['listChildScopes']>;
|
|
29
|
+
countChildScopes(input: Parameters<KnowledgePageStore['countChildScopes']>[0]): ReturnType<KnowledgePageStore['countChildScopes']>;
|
|
28
30
|
getPage(input: Parameters<KnowledgePageStore['getPage']>[0]): ReturnType<KnowledgePageStore['getPage']>;
|
|
29
31
|
getPageByPath(input: Parameters<KnowledgePageStore['getPageByPath']>[0]): ReturnType<KnowledgePageStore['getPageByPath']>;
|
|
30
32
|
findPagesByName(input: Parameters<KnowledgePageStore['findPagesByName']>[0]): ReturnType<KnowledgePageStore['findPagesByName']>;
|
|
@@ -38,6 +40,10 @@ export declare class KnowledgeLibSQL extends KnowledgeStorage {
|
|
|
38
40
|
getNote(input: Parameters<KnowledgePageStore['getNote']>[0]): ReturnType<KnowledgePageStore['getNote']>;
|
|
39
41
|
listNotes(input: Parameters<KnowledgePageStore['listNotes']>[0]): ReturnType<KnowledgePageStore['listNotes']>;
|
|
40
42
|
countChildPages(input: Parameters<KnowledgePageStore['countChildPages']>[0]): ReturnType<KnowledgePageStore['countChildPages']>;
|
|
43
|
+
replacePageBodyLinks(input: Parameters<KnowledgePageStore['replacePageBodyLinks']>[0]): ReturnType<KnowledgePageStore['replacePageBodyLinks']>;
|
|
44
|
+
listPageBodyLinkSources(input: Parameters<KnowledgePageStore['listPageBodyLinkSources']>[0]): ReturnType<KnowledgePageStore['listPageBodyLinkSources']>;
|
|
45
|
+
countPageLinks(input: Parameters<KnowledgePageStore['countPageLinks']>[0]): ReturnType<KnowledgePageStore['countPageLinks']>;
|
|
46
|
+
listPageLinks(input: Parameters<KnowledgePageStore['listPageLinks']>[0]): ReturnType<KnowledgePageStore['listPageLinks']>;
|
|
41
47
|
countNotes(input: Parameters<KnowledgePageStore['countNotes']>[0]): ReturnType<KnowledgePageStore['countNotes']>;
|
|
42
48
|
listNotesMentioning(input: Parameters<KnowledgePageStore['listNotesMentioning']>[0]): ReturnType<KnowledgePageStore['listNotesMentioning']>;
|
|
43
49
|
addNote(input: Parameters<KnowledgePageStore['addNote']>[0]): ReturnType<KnowledgePageStore['addNote']>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAqC,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EACV,YAAY,IAAI,MAAM,EAIvB,MAAM,iBAAiB,CAAC;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,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,GAC5D,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAErD;IAEQ,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAElH;IAEQ,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAElH;CAmBF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddKnowledgeNoteInput, CreateKnowledgePageInput, KnowledgeNote, KnowledgeNoteListOutput, KnowledgePage, KnowledgePageActivityEvent, KnowledgePageListOutput, KnowledgePageSearchHit, KnowledgePageStore, KnowledgeListedPin, KnowledgeScopeDeclarationCount, KnowledgeScopeDeclarationRename, KnowledgePin, KnowledgeProvenance, KnowledgeReadScope, MaterializeKnowledgeScopeInput, MaterializeKnowledgeScopeResult, MergeKnowledgePagesInput, MoveKnowledgePageInput, SearchKnowledgePagesInput, UpdateKnowledgePageInput } from '@mastra/core/storage';
|
|
1
|
+
import type { AddKnowledgeNoteInput, CreateKnowledgePageInput, KnowledgeNote, KnowledgeNoteListOutput, KnowledgePage, KnowledgePageActivityEvent, KnowledgePageListOutput, KnowledgePageSearchHit, KnowledgePageStore, KnowledgeListedPin, KnowledgeScopeDeclarationCount, KnowledgeScopeDeclarationRename, KnowledgePin, KnowledgePinKind, KnowledgeProvenance, KnowledgeReadScope, MaterializeKnowledgeScopeInput, MaterializeKnowledgeScopeResult, MergeKnowledgePagesInput, MoveKnowledgePageInput, SearchKnowledgePagesInput, UpdateKnowledgePageInput } from '@mastra/core/storage';
|
|
2
2
|
import type { SqliteInValue as InValue, SqliteResultSet as ResultSet } from '../../db/client.js';
|
|
3
3
|
export interface PageExecutor {
|
|
4
4
|
execute(statement: string | {
|
|
@@ -16,7 +16,14 @@ export declare const KNOWLEDGE_PAGE_TABLES: {
|
|
|
16
16
|
readonly pins: 'mastra_knowledge_pins';
|
|
17
17
|
readonly pinAudiences: 'mastra_knowledge_pin_audiences';
|
|
18
18
|
readonly activity: 'mastra_knowledge_activity';
|
|
19
|
+
readonly links: 'mastra_knowledge_page_links';
|
|
19
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Pins tables from before pin kinds kept one pin per page (`pageId UNIQUE`). SQLite can't drop that
|
|
23
|
+
* constraint in place, so the table is rebuilt with every existing pin as a `page` pin. Run after
|
|
24
|
+
* {@link KNOWLEDGE_PAGE_DDL}, in the same transaction; a no-op once `kind` exists.
|
|
25
|
+
*/
|
|
26
|
+
export declare function upgradeKnowledgePinKinds(tx: PageExecutor): Promise<void>;
|
|
20
27
|
/** DDL for the schema-4 page tables, in creation order. Every statement is idempotent. */
|
|
21
28
|
export declare const KNOWLEDGE_PAGE_DDL: string[];
|
|
22
29
|
export declare class LibSQLKnowledgePages implements KnowledgePageStore {
|
|
@@ -25,7 +32,7 @@ export declare class LibSQLKnowledgePages implements KnowledgePageStore {
|
|
|
25
32
|
read: PageExecutor;
|
|
26
33
|
transaction: PageTransaction;
|
|
27
34
|
});
|
|
28
|
-
/** Deletes every row from the page tables (scopes, pages, notes, pins, activity). */
|
|
35
|
+
/** Deletes every row from the page tables (scopes, pages, notes, pins, activity, links). */
|
|
29
36
|
clearAll(): Promise<void>;
|
|
30
37
|
materializeScope(input: MaterializeKnowledgeScopeInput): Promise<MaterializeKnowledgeScopeResult>;
|
|
31
38
|
listScopeDeclarations(): Promise<KnowledgeScopeDeclarationCount[]>;
|
|
@@ -37,6 +44,7 @@ export declare class LibSQLKnowledgePages implements KnowledgePageStore {
|
|
|
37
44
|
getScopesByAddress(addresses: string[]): Promise<KnowledgePage[]>;
|
|
38
45
|
listChildScopes(input: {
|
|
39
46
|
parentId: string | null;
|
|
47
|
+
read?: KnowledgeReadScope;
|
|
40
48
|
cursor?: string;
|
|
41
49
|
limit?: number;
|
|
42
50
|
}): Promise<KnowledgePageListOutput>;
|
|
@@ -93,10 +101,21 @@ export declare class LibSQLKnowledgePages implements KnowledgePageStore {
|
|
|
93
101
|
limit?: number;
|
|
94
102
|
includeDeleted?: boolean;
|
|
95
103
|
}): Promise<KnowledgeNoteListOutput>;
|
|
104
|
+
countChildScopes(input: {
|
|
105
|
+
parentIds: string[];
|
|
106
|
+
read: KnowledgeReadScope;
|
|
107
|
+
}): Promise<Record<string, number>>;
|
|
96
108
|
countChildPages(input: {
|
|
97
109
|
parentIds: string[];
|
|
98
110
|
read: KnowledgeReadScope;
|
|
99
111
|
}): Promise<Record<string, number>>;
|
|
112
|
+
replacePageBodyLinks(input: Parameters<KnowledgePageStore['replacePageBodyLinks']>[0]): Promise<void>;
|
|
113
|
+
listPageBodyLinkSources(input: Parameters<KnowledgePageStore['listPageBodyLinkSources']>[0]): Promise<string[]>;
|
|
114
|
+
countPageLinks(input: Parameters<KnowledgePageStore['countPageLinks']>[0]): Promise<Record<string, {
|
|
115
|
+
in: number;
|
|
116
|
+
out: number;
|
|
117
|
+
}>>;
|
|
118
|
+
listPageLinks(input: Parameters<KnowledgePageStore['listPageLinks']>[0]): ReturnType<KnowledgePageStore['listPageLinks']>;
|
|
100
119
|
countNotes(input: {
|
|
101
120
|
pageIds: string[];
|
|
102
121
|
read: KnowledgeReadScope;
|
|
@@ -134,19 +153,12 @@ export declare class LibSQLKnowledgePages implements KnowledgePageStore {
|
|
|
134
153
|
events: KnowledgePageActivityEvent[];
|
|
135
154
|
nextCursor?: string;
|
|
136
155
|
}>;
|
|
137
|
-
addPinAudience(input:
|
|
138
|
-
|
|
139
|
-
audience: string[];
|
|
140
|
-
createdBy: string;
|
|
141
|
-
}): Promise<KnowledgePin>;
|
|
142
|
-
removePinAudience(input: {
|
|
143
|
-
pageId: string;
|
|
144
|
-
audience: string[];
|
|
145
|
-
removedBy: string;
|
|
146
|
-
}): Promise<KnowledgePin | null>;
|
|
156
|
+
addPinAudience(input: Parameters<KnowledgePageStore['addPinAudience']>[0]): Promise<KnowledgePin>;
|
|
157
|
+
removePinAudience(input: Parameters<KnowledgePageStore['removePinAudience']>[0]): Promise<KnowledgePin | null>;
|
|
147
158
|
listPins(input: {
|
|
148
159
|
audience: string[] | 'all';
|
|
149
160
|
read: KnowledgeReadScope;
|
|
161
|
+
kind?: KnowledgePinKind;
|
|
150
162
|
pageIds?: string[];
|
|
151
163
|
excludePageIds?: string[];
|
|
152
164
|
withBody?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/pages.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACvB,aAAa,EAEb,0BAA0B,EAC1B,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,+BAA+B,EAC/B,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,8BAA8B,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,IAAI,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ9F,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CACpF;AAED,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,OAAO,C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AC;QACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAmD/E;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "1.29.0-alpha.
|
|
3
|
+
"version": "1.29.0-alpha.2",
|
|
4
4
|
"description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@copilotkit/aimock": "^1.46.0",
|
|
27
27
|
"@types/node": "22.19.15",
|
|
28
|
-
"@vitest/coverage-v8": "
|
|
29
|
-
"@vitest/ui": "
|
|
28
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
29
|
+
"@vitest/ui": "5.1.0",
|
|
30
30
|
"tsdown": "0.23.1",
|
|
31
31
|
"tsx": "^4.23.15",
|
|
32
32
|
"typescript": "^7.0.2",
|
|
33
|
-
"vitest": "
|
|
34
|
-
"@internal/core": "0.1.4",
|
|
33
|
+
"vitest": "5.1.0",
|
|
35
34
|
"@internal/lint": "0.0.147",
|
|
36
|
-
"@internal/storage-test-utils": "0.0.143",
|
|
37
35
|
"@internal/types-builder": "0.0.122",
|
|
38
|
-
"@
|
|
39
|
-
"@mastra/pg": "1.35.0-alpha.
|
|
36
|
+
"@internal/storage-test-utils": "0.0.143",
|
|
37
|
+
"@mastra/pg": "1.35.0-alpha.3",
|
|
38
|
+
"@internal/core": "0.1.4",
|
|
39
|
+
"@mastra/core": "0.0.0-pltfrm-2990-billing-main-20261103212101"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@mastra/core": ">=1.76.0-0 <2.0.0-0"
|
package/dist/docs/SKILL.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: mastra-libsql
|
|
3
|
-
description: Documentation for @mastra/libsql. Use when working with @mastra/libsql APIs, configuration, or implementation.
|
|
4
|
-
metadata:
|
|
5
|
-
package: "@mastra/libsql"
|
|
6
|
-
version: "1.29.0-alpha.1"
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## When to use
|
|
10
|
-
|
|
11
|
-
Use this skill whenever you are working with @mastra/libsql to obtain the domain-specific knowledge.
|
|
12
|
-
|
|
13
|
-
## How to use
|
|
14
|
-
|
|
15
|
-
Read the individual reference documents for detailed explanations and code examples.
|
|
16
|
-
|
|
17
|
-
### Docs
|
|
18
|
-
|
|
19
|
-
- [Human-in-the-loop](references/docs-agents-human-in-the-loop.md) - Add human-in-the-loop controls to Mastra agents with tool approval and suspended execution, so people can provide input before a run resumes or stops.
|
|
20
|
-
- [Agent networks](references/docs-agents-networks.md) - Understand deprecated Mastra agent networks, including multi-agent routing, structured output, tool approvals, and migration to supervisor agents.
|
|
21
|
-
- [Workers](references/docs-deployment-workers.md) - Run Mastra workflow orchestration, schedules, and long-running background tasks in dedicated workers to keep API processes responsive under load.
|
|
22
|
-
- [Memory processors](references/docs-memory-memory-processors.md) - Configure Mastra memory processors to filter, trim, transform, and deduplicate messages before they reach the model while managing context limits.
|
|
23
|
-
- [Message history](references/docs-memory-message-history.md) - Store and retrieve recent Mastra conversation messages, configure history limits and thread titles, and query threads for chat interfaces.
|
|
24
|
-
- [Multi-user threads](references/docs-memory-multi-user-threads.md) - Share one Mastra memory thread across multiple users by preserving speaker identity in messages and combining history with observational or working memory.
|
|
25
|
-
- [Memory](references/docs-memory-overview.md) - Add memory to Mastra agents with message history, semantic recall, working memory, and observational memory across threads and multi-agent delegation.
|
|
26
|
-
- [Semantic recall](references/docs-memory-semantic-recall.md) - Retrieve relevant messages from past Mastra conversations with semantic recall, vector search, embeddings, metadata filters, and configurable storage.
|
|
27
|
-
- [Working memory](references/docs-memory-working-memory.md) - Persist user profiles, preferences, and application data with Mastra working memory using resource- or thread-scoped templates and storage adapters.
|
|
28
|
-
- [Signals](references/docs-signals-overview.md) - Send asynchronous input into a Mastra agent thread while Mastra manages whether the agent is active or idle.
|
|
29
|
-
- [Storage](references/docs-storage.md) - Configure Mastra storage to persist memory, workflow state, observability data, evals, schedules, and long-running agent state across restarts.
|
|
30
|
-
- [Editor](references/docs-studio-editor.md) - Use Mastra Studio Editor so collaborators can change agent instructions and tools without modifying source code, from draft testing through publication.
|
|
31
|
-
- [Snapshots](references/docs-workflows-snapshots.md) - Store and retrieve Mastra workflow snapshots so suspended executions preserve step results and state and can resume reliably across processes.
|
|
32
|
-
|
|
33
|
-
### Integrations
|
|
34
|
-
|
|
35
|
-
- [GitHub](references/integrations-channels-github.md) - Subscribe Mastra agents to GitHub pull requests with @mastra/github-signals, polling modes, notification signals, and subscription management tools.
|
|
36
|
-
- [DynamoDB](references/integrations-databases-dynamodb.md) - Persist Mastra data in Amazon DynamoDB with a single-table ElectroDB design, configurable indexes, TTL support, credentials, and table initialization.
|
|
37
|
-
- [libSQL](references/integrations-databases-libsql.md) - Persist Mastra messages, workflow snapshots, traces, and eval scores in local or remote libSQL with managed tables and initialization options.
|
|
38
|
-
- [libSQL](references/integrations-vectors-libsql.md) - Store embeddings in a local libSQL database or Turso and run similarity search with metadata filtering from Mastra.
|
|
39
|
-
|
|
40
|
-
### Reference
|
|
41
|
-
|
|
42
|
-
- [AI SDK overview](references/reference-ai-sdk-overview.md) - Wrap Vercel AI SDK models with Mastra processors and memory using withMastra(), while retaining existing AI SDK generation, streaming, and UI integrations.
|
|
43
|
-
- [Reference: Mastra.getMemory()](references/reference-core-getMemory.md) - The .getMemory() method retrieves a memory instance from the Mastra registry by its key.
|
|
44
|
-
- [Reference: Mastra.listMemory()](references/reference-core-listMemory.md) - The .listMemory() method returns all memory instances registered with the Mastra instance.
|
|
45
|
-
- [Reference: Mastra class](references/reference-core-mastra-class.md) - The Mastra class is the central orchestrator in any Mastra application, managing agents, workflows, storage, logging, observability, and more.
|
|
46
|
-
- [Memory](references/reference-file-based-agents-memory.md) - A file-based agent gets memory from a memory.ts file that default-exports a Memory instance.
|
|
47
|
-
- [Storage](references/reference-file-based-agents-storage.md) - Mastra sets the project's default storage from a storage.ts file directly under src/mastra/.
|
|
48
|
-
- [Reference: Memory class](references/reference-memory-memory-class.md) - The Memory class provides a reliable system for managing conversation history and thread-based message storage in Mastra.
|
|
49
|
-
- [Retrieval, semantic search, reranking](references/reference-rag-retrieval.md) - After storing embeddings, you need to retrieve relevant chunks to answer user queries.
|
|
50
|
-
- [Reference: Composite storage](references/reference-storage-composite.md) - MastraCompositeStore can compose storage domains from different providers. Use it when you need different databases for different purposes.
|
|
51
|
-
- [Reference: Storage retention (prune)](references/reference-storage-retention.md) - prune() deletes rows. It caps growth and is safe to run against large tables (batched, bounded, resumable, cancellable).
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
|