pub struct MemoryToolFacts {
pub scope: Option<semantics>,
pub low_signal_result: bool,
pub summary_from_action: bool,
pub keep_result_excerpt: bool,
pub evidence: Evidence,
pub evidence_modeled: bool,
pub representative_calls: &'static [&'static str],
pub output_is_report: Option<fn(&str, Option<&str>) -> bool>,
pub stores: fn(&str) -> bool,
}Expand description
How a host’s turn treats one memory tool’s calls and results.
Fields§
§scope: Option<semantics>§low_signal_result: boolThe result says little worth carrying into a checkpoint.
summary_from_action: boolOlder calls are summarized by their action argument.
keep_result_excerpt: boolAn older result stays as an excerpt, because it may be the evidence behind an answer.
evidence: EvidenceWhat a call with these arguments can prove.
evidence_modeled: boolevidence is complete enough to rule this tool out for an inquiry.
representative_calls: &'static [&'static str]§output_is_report: Option<fn(&str, Option<&str>) -> bool>A successful read whose text must not be mistaken for a failure.
stores: fn(&str) -> boolA call with these arguments stores something new in memory (not a read, a deletion, a visibility change or requested work): what a turn opted out of learning may not do.
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryToolFacts
impl !UnwindSafe for MemoryToolFacts
impl Forget for MemoryToolFacts
impl Freeze for MemoryToolFacts
impl Move for MemoryToolFacts
impl Send for MemoryToolFacts
impl Sync for MemoryToolFacts
impl Unpin for MemoryToolFacts
impl UnsafeUnpin for MemoryToolFactswhere
*const dyn Fn(&str) -> Vec<ToolEvidenceCapability> + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Fn(&str) -> Vec<ToolEvidenceCapability> + Send + Sync>: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
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> 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 more