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
readonlycounts:LibraryPlanCounts
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:366
digest
readonlydigest: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
readonlyembedding:LibraryEmbedding
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:363
patches
readonlypatches: readonlyPassagePatch[]
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:372
Kept rows whose metadata, or metadata and text, the plan rewrites.
remove
readonlyremove: readonlystring[]
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:370
Ids of the stored rows the plan removes.
rows
readonlyrows: readonlyobject[]
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:374
New rows, each with the place of its input in toEmbed.
sourceId
readonlysourceId:string
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:360
tenantId
readonlytenantId: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
readonlytoEmbed: readonlystring[]
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.