Skip to main content

ContextQueryService

Struct ContextQueryService 

Source
pub struct ContextQueryService { /* private fields */ }

Implementations§

Source§

impl ContextQueryService

Source

pub fn new(store: Arc<dyn NodeStore>) -> Self

Create a context query service over the shared node store.

Source

pub async fn get_context_async( &self, session_id: &str, stability: f32, friction: f32, logic: f32, autonomy: f32, limit: usize, ) -> RetrieveResult

Source

pub async fn get_context_global_async( &self, stability: f32, friction: f32, logic: f32, autonomy: f32, limit: usize, ) -> RetrieveResult

Retrieve context across all sessions (global memory mode).

Source

pub async fn get_context_global_filtered_async( &self, stability: f32, friction: f32, logic: f32, autonomy: f32, from_utc: Option<DateTime<Utc>>, to_utc: Option<DateTime<Utc>>, tiers: Option<&[String]>, limit: usize, ) -> RetrieveResult

Source

pub async fn get_context_scoped_async( &self, session_id: Option<&str>, stability: f32, friction: f32, logic: f32, autonomy: f32, limit: usize, ) -> RetrieveResult

Retrieve context with an optional session scope.

Source

pub async fn get_context_scoped_filtered_async( &self, session_id: Option<&str>, stability: f32, friction: f32, logic: f32, autonomy: f32, from_utc: Option<DateTime<Utc>>, to_utc: Option<DateTime<Utc>>, tiers: Option<&[String]>, limit: usize, ) -> RetrieveResult

Retrieve resonance-ranked context with optional scope and tier/date filters.

Source

pub async fn get_context_hybrid_async( &self, session_id: &str, stability: f32, friction: f32, logic: f32, autonomy: f32, query_embedding: Option<&[f32]>, alpha: f32, beta: f32, limit: usize, ) -> RetrieveResult

Source

pub async fn get_context_hybrid_global_async( &self, stability: f32, friction: f32, logic: f32, autonomy: f32, query_embedding: Option<&[f32]>, alpha: f32, beta: f32, limit: usize, ) -> RetrieveResult

Retrieve hybrid context across all sessions (global memory mode).

Source

pub async fn get_context_hybrid_global_filtered_async( &self, stability: f32, friction: f32, logic: f32, autonomy: f32, from_utc: Option<DateTime<Utc>>, to_utc: Option<DateTime<Utc>>, tiers: Option<&[String]>, query_embedding: Option<&[f32]>, alpha: f32, beta: f32, limit: usize, ) -> RetrieveResult

Source

pub async fn get_context_hybrid_scoped_async( &self, session_id: Option<&str>, stability: f32, friction: f32, logic: f32, autonomy: f32, query_embedding: Option<&[f32]>, alpha: f32, beta: f32, limit: usize, ) -> RetrieveResult

Retrieve hybrid context with an optional session scope.

Source

pub async fn get_context_hybrid_scoped_filtered_async( &self, session_id: Option<&str>, stability: f32, friction: f32, logic: f32, autonomy: f32, from_utc: Option<DateTime<Utc>>, to_utc: Option<DateTime<Utc>>, tiers: Option<&[String]>, query_embedding: Option<&[f32]>, alpha: f32, beta: f32, limit: usize, ) -> RetrieveResult

Retrieve hybrid-ranked context with optional scope and tier/date filters.

Source

pub async fn list_nodes_async( &self, limit: usize, session_id: Option<&str>, ) -> Result<ListNodesResult>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.