pub struct MemoryApiLimits {
pub default_k: usize,
pub max_k: usize,
pub default_neighbor_depth: usize,
pub max_neighbor_depth: usize,
pub max_neighbors: usize,
pub max_history_depth: usize,
pub default_list: usize,
pub max_list: usize,
pub max_batch: usize,
pub default_context_items: usize,
pub max_context_items: usize,
pub default_context_episodic: usize,
}Expand description
Request size and result size limits for these endpoints.
Fields§
§default_k: usizeResults returned by hybrid search when k is not given.
max_k: usizeMost results one hybrid search may ask for.
default_neighbor_depth: usizeHops walked by the neighbors endpoint when depth is not given.
max_neighbor_depth: usizeMost hops the neighbors endpoint walks.
max_neighbors: usizeMost memories the neighbors endpoint returns.
max_history_depth: usizeMost predecessors the history endpoint walks.
default_list: usizeItems returned by list endpoints when limit is not given.
max_list: usizeMost items one list request may ask for.
max_batch: usizeMost memories one batch store may carry.
default_context_items: usizeRanked context items (beyond pins) when max_items is not given.
max_context_items: usizeMost ranked context items one request may ask for.
default_context_episodic: usizeVerbatim episodic items within the context when not given.
Trait Implementations§
Source§impl Clone for MemoryApiLimits
impl Clone for MemoryApiLimits
Source§impl Debug for MemoryApiLimits
impl Debug for MemoryApiLimits
Auto Trait Implementations§
impl Freeze for MemoryApiLimits
impl RefUnwindSafe for MemoryApiLimits
impl Send for MemoryApiLimits
impl Sync for MemoryApiLimits
impl Unpin for MemoryApiLimits
impl UnsafeUnpin for MemoryApiLimits
impl UnwindSafe for MemoryApiLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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>
Wrap the input message
T in a tonic::Request