Skip to main content

Interface: LibrarySourcePlan

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:359

A source's plan, from planSource: embed toEmbed (in order, in one call or several) and hand the vectors to applySourcePlan. The other fields are what applySourcePlan writes; read them, never change them.

Properties​

counts​

readonly counts: LibraryPlanCounts

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:366


digest​

readonly digest: string | null

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:368

The digest of the source's stored rows when the plan was made; null on a store that cannot plan by content.


embedding​

readonly embedding: LibraryEmbedding

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:363


patches​

readonly patches: readonly PassagePatch[]

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:372

Kept rows whose metadata, or metadata and text, the plan rewrites.


remove​

readonly remove: readonly string[]

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:370

Ids of the stored rows the plan removes.


rows​

readonly rows: readonly object[]

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:374

New rows, each with the place of its input in toEmbed.


sourceId​

readonly sourceId: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:360


tenantId​

readonly tenantId: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:362

The source's tenant, whose lock applySourcePlan holds in shared mode beside the source's.


toEmbed​

readonly toEmbed: readonly string[]

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:365

The inputs that need a vector, in order. Empty when every passage keeps a stored vector.