pub struct RecallSettings {
pub results: usize,
pub budget_chars: usize,
pub min_query_chars: usize,
pub include_this_session: bool,
}Expand description
What [hooks.recall-sessions] accepts, with what a bare [hooks] gets.
Fields§
§results: usizeEarlier sessions a single prompt may draw on.
budget_chars: usizeHard cap on the injected text, heading and pointer included.
min_query_chars: usizePrompts shorter than this are not searched: “yes” is not a query.
include_this_session: boolWhether a hit in the session being written is allowed. Off by default: this is a memory of earlier sessions, and the current transcript is already in the request.
Trait Implementations§
Source§impl Clone for RecallSettings
impl Clone for RecallSettings
impl Copy for RecallSettings
Source§impl Debug for RecallSettings
impl Debug for RecallSettings
Source§impl Default for RecallSettings
impl Default for RecallSettings
impl Eq for RecallSettings
Source§impl PartialEq for RecallSettings
impl PartialEq for RecallSettings
impl StructuralPartialEq for RecallSettings
Auto Trait Implementations§
impl Forget for RecallSettings
impl Freeze for RecallSettings
impl Move for RecallSettings
impl RefUnwindSafe for RecallSettings
impl Send for RecallSettings
impl Sync for RecallSettings
impl Unpin for RecallSettings
impl UnsafeUnpin for RecallSettings
impl UnwindSafe for RecallSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.