pub struct PrincipleCandidate {
pub statement: String,
pub supporting_memory_ids: Vec<MemoryId>,
pub contradicting_memory_ids: Vec<MemoryId>,
pub domains_observed: Vec<String>,
pub applies_when: Vec<String>,
pub does_not_apply_when: Vec<String>,
pub alternative_interpretations: Vec<String>,
pub confidence: f64,
pub overgeneralisation_risk: f64,
}Expand description
Principle candidate from BUILD_SPEC §13.2.
Fields§
§statement: StringPrinciple statement.
supporting_memory_ids: Vec<MemoryId>Supporting accepted memories.
contradicting_memory_ids: Vec<MemoryId>Contradicting accepted memories.
domains_observed: Vec<String>Domains where the pattern was observed.
applies_when: Vec<String>Conditions where the principle applies.
does_not_apply_when: Vec<String>Conditions where the principle should not be applied.
alternative_interpretations: Vec<String>Plausible narrower or competing explanations.
confidence: f64Model confidence in [0.0, 1.0].
overgeneralisation_risk: f64Risk score for overgeneralisation in [0.0, 1.0].
Trait Implementations§
Source§impl Clone for PrincipleCandidate
impl Clone for PrincipleCandidate
Source§fn clone(&self) -> PrincipleCandidate
fn clone(&self) -> PrincipleCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrincipleCandidate
impl Debug for PrincipleCandidate
Source§impl<'de> Deserialize<'de> for PrincipleCandidate
impl<'de> Deserialize<'de> for PrincipleCandidate
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PrincipleCandidate
impl JsonSchema for PrincipleCandidate
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PrincipleCandidate
impl PartialEq for PrincipleCandidate
Source§fn eq(&self, other: &PrincipleCandidate) -> bool
fn eq(&self, other: &PrincipleCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrincipleCandidate
impl Serialize for PrincipleCandidate
impl StructuralPartialEq for PrincipleCandidate
Auto Trait Implementations§
impl Freeze for PrincipleCandidate
impl RefUnwindSafe for PrincipleCandidate
impl Send for PrincipleCandidate
impl Sync for PrincipleCandidate
impl Unpin for PrincipleCandidate
impl UnsafeUnpin for PrincipleCandidate
impl UnwindSafe for PrincipleCandidate
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