pub struct Personality {
pub description: String,
pub id: String,
pub name: String,
pub prompt: String,
}Expand description
One enabled personality loaded from a workspace agent definition.
Fields§
§description: StringShort explanation shown beside the personality name.
id: StringStable identifier persisted on the owning session.
name: StringHuman-readable picker label.
prompt: StringBehavioral preamble injected into agent turns.
Implementations§
Source§impl Personality
impl Personality
Sourcepub fn summary(&self) -> PersonalitySummary
pub fn summary(&self) -> PersonalitySummary
Returns lightweight picker metadata without retaining the prompt body.
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Returns a deterministic fingerprint for the selected ID and prompt.
Fingerprints only detect changes; they are not used for cryptographic verification. The versioned FNV-1a encoding is stable across processes, platforms, and Rust toolchain upgrades.
Trait Implementations§
Source§impl Clone for Personality
impl Clone for Personality
Source§impl Debug for Personality
impl Debug for Personality
impl Eq for Personality
Source§impl PartialEq for Personality
impl PartialEq for Personality
impl StructuralPartialEq for Personality
Auto Trait Implementations§
impl Freeze for Personality
impl RefUnwindSafe for Personality
impl Send for Personality
impl Sync for Personality
impl Unpin for Personality
impl UnsafeUnpin for Personality
impl UnwindSafe for Personality
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