#[non_exhaustive]pub struct MemoryContextRequest {
pub budget_tokens: Option<usize>,
pub query: Option<String>,
pub referenced_paths: Vec<String>,
pub include_knowledge: Option<bool>,
pub include_personal: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.budget_tokens: Option<usize>§query: Option<String>§referenced_paths: Vec<String>§include_knowledge: Option<bool>§include_personal: Option<bool>Implementations§
Source§impl MemoryContextRequest
impl MemoryContextRequest
pub fn new() -> Self
pub fn budget_tokens(self, tokens: usize) -> Self
pub fn query(self, query: impl Into<String>) -> Self
pub fn referenced_paths( self, paths: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn include_knowledge(self, include: bool) -> Self
pub fn include_personal(self, include: bool) -> Self
Trait Implementations§
Source§impl Clone for MemoryContextRequest
impl Clone for MemoryContextRequest
Source§impl Debug for MemoryContextRequest
impl Debug for MemoryContextRequest
Auto Trait Implementations§
impl Forget for MemoryContextRequest
impl Freeze for MemoryContextRequest
impl Move for MemoryContextRequest
impl RefUnwindSafe for MemoryContextRequest
impl Send for MemoryContextRequestwhere
RawVecInner: Send,
impl Sync for MemoryContextRequestwhere
RawVecInner: Sync,
impl Unpin for MemoryContextRequest
impl UnsafeUnpin for MemoryContextRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for MemoryContextRequestwhere
RawVecInner: UnwindSafe,
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