UNPKG

@mastra/core

Version:
16 lines • 963 B
import type { KnowledgePage, KnowledgeReadScope, KnowledgeStorage } from '../storage/domains/knowledge/index.js'; export interface KnowledgePageRefs { /** Page id → the ref `knowledge_read` accepts: the scope address, `<scope>#<key>/<key>…`, or the page id. */ refs: Map<string, string>; /** Scope page id → scope address, for every readable home scope reached. */ scopes: Map<string, string>; } /** * The full ref of each page, in the form a page ref resolves: a scope page's address, an ordinary * page's key path from its scope (`docs:acme#guides/cli`), or its id when a page on that path has * no key or an ancestor can't be read. Ancestors are fetched one level at a time, one store call * per level, under the same read scope. * @internal */ export declare function knowledgePageRefs(storage: KnowledgeStorage, read: KnowledgeReadScope, pages: KnowledgePage[]): Promise<KnowledgePageRefs>; //# sourceMappingURL=page-refs.d.ts.map