pub struct Persona {
pub name: String,
pub system_prompt: String,
pub preferred_model: Option<String>,
pub allowed_tools: Option<Vec<String>>,
}Expand description
A persona (system prompt fragment + metadata).
Fields§
§name: StringPersona name.
system_prompt: StringSystem prompt body.
preferred_model: Option<String>Optional model preferences.
allowed_tools: Option<Vec<String>>Optional tool restrictions.
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