pub struct PersonaPolicy {
pub auto_persona_trigger_every_n_memories: Option<u32>,
pub auto_export_personas_to_filesystem: Option<bool>,
}Expand description
#880 — QW-2 persona auto-regeneration + file-backed export
sub-struct of GovernancePolicy.
Fields§
§auto_persona_trigger_every_n_memories: Option<u32>v0.7.0 QW-2 — auto-regenerate the Persona artefact for an
entity every N writes to a same-entity Reflection memory.
None (default) disables the cadence — operators trigger
regeneration explicitly via memory_persona_generate or
ai-memory persona <entity_id> --regenerate. Inherits via
the same leaf-first ancestor walk as every other field on
this struct (G1 governance). skip_serializing_if keeps
the absent shape on the wire for pre-QW-2 federation peers.
auto_export_personas_to_filesystem: Option<bool>v0.7.0 QW-2 companion to
auto_export_reflections_to_filesystem — when Some(true),
the substrate writes generated Personas to
~/.ai-memory/personas/<namespace>/<entity_id>.md so
operators can cat the persona without learning SQL. The
canonical persona is the SQL row; the file is a derived
artefact. None / Some(false) keeps the substrate quiet.
Trait Implementations§
Source§impl Clone for PersonaPolicy
impl Clone for PersonaPolicy
Source§fn clone(&self) -> PersonaPolicy
fn clone(&self) -> PersonaPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PersonaPolicy
impl Debug for PersonaPolicy
Source§impl Default for PersonaPolicy
impl Default for PersonaPolicy
Source§fn default() -> PersonaPolicy
fn default() -> PersonaPolicy
Source§impl<'de> Deserialize<'de> for PersonaPolicy
impl<'de> Deserialize<'de> for PersonaPolicy
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 PersonaPolicy
Source§impl PartialEq for PersonaPolicy
impl PartialEq for PersonaPolicy
Source§fn eq(&self, other: &PersonaPolicy) -> bool
fn eq(&self, other: &PersonaPolicy) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PersonaPolicy
impl Serialize for PersonaPolicy
impl StructuralPartialEq for PersonaPolicy
Auto Trait Implementations§
impl Freeze for PersonaPolicy
impl RefUnwindSafe for PersonaPolicy
impl Send for PersonaPolicy
impl Sync for PersonaPolicy
impl Unpin for PersonaPolicy
impl UnsafeUnpin for PersonaPolicy
impl UnwindSafe for PersonaPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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