pub struct Persona {
pub id: String,
pub name: String,
pub role: String,
pub description: String,
pub system_prompt: String,
pub enabled: bool,
pub model: Option<String>,
pub personality_traits: Vec<String>,
}Expand description
A persona is an AI character with its own voice and specialization. Multiple personas can be active simultaneously (future multi-agent chat support).
Fields§
§id: StringUnique identifier.
name: StringDisplay name.
role: StringRole or archetype (developer, qa, architect, researcher…).
description: StringBrief description of this persona.
system_prompt: StringThe persona’s character definition (system prompt).
enabled: boolWhether this persona is enabled for use.
model: Option<String>Optional model override for this persona.
personality_traits: Vec<String>Personality traits (curious, skeptical, creative…).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Persona
impl<'de> Deserialize<'de> for Persona
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
Auto Trait Implementations§
impl Freeze for Persona
impl RefUnwindSafe for Persona
impl Send for Persona
impl Sync for Persona
impl Unpin for Persona
impl UnsafeUnpin for Persona
impl UnwindSafe for Persona
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