Skip to content
1 min read · 203 words

Interface: VectorRetrievableGlueOptions

Defined in: src/batteries/vector/retrievable_glue.ts:19

Configuration for wiring a vector store to the ADK's retrievable lifecycle callbacks.

Properties

PropertyTypeDescriptionDefined in
collectionstringCollection the retrievables live in.src/batteries/vector/retrievable_glue.ts:23
deriveQuery?(ctx: TurnContext) => | string | number[] | Promise<string | number[] | undefined> | undefinedDerives the retrieval query from the turn context; defaults to the last user message.src/batteries/vector/retrievable_glue.ts:31
filter?VectorFilterOptional filter applied to every retrieval query.src/batteries/vector/retrievable_glue.ts:29
storeCallableVectorStoreThe callable vector store the callbacks query and write to.src/batteries/vector/retrievable_glue.ts:21
topK?numberMaximum number of retrievables to fetch per turn (default 5).src/batteries/vector/retrievable_glue.ts:27
toRetrievable?(m: VectorMatch) => Omit<RawRetrievable, "trustTier">Maps a VectorMatch to a raw retrievable (trust tier applied separately).src/batteries/vector/retrievable_glue.ts:35
trustTier| RetrievableTrustTier | ((m: VectorMatch) => RetrievableTrustTier)Trust tier for fetched matches — a fixed tier, or a per-match function.src/batteries/vector/retrievable_glue.ts:25