pub enum RecallScope {
Recent,
Persistent,
All,
}Expand description
Which slice of memory a recall should search.
These doc comments are not documentation for a reader; they are the schema descriptions the model chooses from, and the choice is a hard filter. A model that picks the wrong slice does not get a worse answer, it gets no answer — while lower-relevance records from the slice it did pick come back looking like the best memory has. So each variant says what it excludes, in the vocabulary of a question rather than of this crate’s taxonomy.
Observed before that was true: asked “what did I promise to bring to the
housewarming”, the model chose persistent — a promise feels like a durable
fact — which filters out Commitment, the kind the answer was filed under.
The commitment was excluded, another guest’s plans came back instead, and
the model correctly reported that it did not know.
Variants§
Recent
Only memories with a time attached: things that happened, plans, promises and commitments. Excludes standing facts about the person.
Persistent
Only timeless facts: identity, preferences, relationships, routines, how they like to be spoken to. Excludes anything that happened, and excludes every promise, plan and commitment.
All
Everything. Choose this unless the question is explicitly limited to one of the other two.
Implementations§
Source§impl RecallScope
impl RecallScope
Sourcepub fn kinds(self) -> Vec<MemoryKind>
pub fn kinds(self) -> Vec<MemoryKind>
The memory kinds this scope admits; empty means no restriction.
Trait Implementations§
Source§impl Clone for RecallScope
impl Clone for RecallScope
Source§fn clone(&self) -> RecallScope
fn clone(&self) -> RecallScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RecallScope
Source§impl Debug for RecallScope
impl Debug for RecallScope
Source§impl Default for RecallScope
impl Default for RecallScope
Source§fn default() -> RecallScope
fn default() -> RecallScope
Source§impl<'de> Deserialize<'de> for RecallScope
impl<'de> Deserialize<'de> for RecallScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RecallScope
Source§impl JsonSchema for RecallScope
impl JsonSchema for RecallScope
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more