pub struct SemanticRecallRawParams<'a> {
pub recall_limit: usize,
pub context_format: ContextFormat,
pub query: &'a str,
pub token_budget: usize,
pub tc: &'a TokenCounter,
pub low_confidence_threshold: Option<f32>,
}Expand description
Read-only inputs for fetch_semantic_recall_raw: the query, its retrieval
limits/format, and the confidence threshold used to flag low-confidence recall for
telemetry.
Distinct from crate::service::SemanticRecallParams (the service-level façade
struct, which additionally carries tiered-retrieval provider/config fields) — this is
the smaller subset of fields actually read by the flat (non-tiered) recall path.
memory and router are kept as separate arguments on the function since they are
resource handles rather than per-call query configuration.
Fields§
§recall_limit: usizeMaximum number of memories to retrieve.
context_format: ContextFormatFormat applied when serialising recalled memories.
query: &'a strQuery string used for retrieval.
token_budget: usizeMaximum number of tokens the injected recall may consume.
tc: &'a TokenCounterToken counter used to enforce token_budget.
low_confidence_threshold: Option<f32>When Some(t), results with a top score below t are classified as
low-confidence and logged via the memory’s retrieval failure logger.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SemanticRecallRawParams<'a>
impl<'a> !UnwindSafe for SemanticRecallRawParams<'a>
impl<'a> Freeze for SemanticRecallRawParams<'a>
impl<'a> Send for SemanticRecallRawParams<'a>
impl<'a> Sync for SemanticRecallRawParams<'a>
impl<'a> Unpin for SemanticRecallRawParams<'a>
impl<'a> UnsafeUnpin for SemanticRecallRawParams<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request