pub struct RetrievalRequest {
pub query: String,
pub limit: usize,
pub already_surfaced: HashSet<String>,
pub recent_tools: Vec<String>,
pub model_name: String,
pub session_id: Option<String>,
}Expand description
What a turn is asking for.
Fields§
§query: StringWhat the user said, which is what recall is about.
limit: usize§already_surfaced: HashSet<String>Already shown this session. Surfacing one twice spends context to tell the model something it was told.
recent_tools: Vec<String>Tool names in play, so a memory whose name collides with a tool is not pulled in by the ambiguity.
model_name: String§session_id: Option<String>Trait Implementations§
Source§impl Clone for RetrievalRequest
impl Clone for RetrievalRequest
Auto Trait Implementations§
impl Forget for RetrievalRequest
impl Freeze for RetrievalRequestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, ())>: Freeze,
PhantomData<String>: Freeze,
impl Move for RetrievalRequest
impl RefUnwindSafe for RetrievalRequest
impl Send for RetrievalRequest
impl Sync for RetrievalRequest
impl Unpin for RetrievalRequest
impl UnsafeUnpin for RetrievalRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RetrievalRequest
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