pub struct VectorContext {
pub hook: Arc<dyn VectorHook>,
pub hook_ext_id: String,
pub batcher: Option<Arc<VectorBatcher>>,
pub mappings: Vec<FieldMapping>,
pub cache: Option<Arc<dyn KvBackend>>,
}Expand description
Per-app vector capabilities. Set once at startup, never changes per-request.
Stored on BackendManager via OnceLock so any code with access to the
backend manager can reach vector hooks without threading them through Context.
Fields§
§hook: Arc<dyn VectorHook>Vector embedding hook (from yeti-ai plugin)
hook_ext_id: StringPlugin app_id that provided the vector hook
batcher: Option<Arc<VectorBatcher>>Vector micro-batcher for server-side batching
mappings: Vec<FieldMapping>Pre-parsed vector field mappings
cache: Option<Arc<dyn KvBackend>>Vector embedding cache backend
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VectorContext
impl !UnwindSafe for VectorContext
impl Freeze for VectorContext
impl Send for VectorContext
impl Sync for VectorContext
impl Unpin for VectorContext
impl UnsafeUnpin for VectorContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more