pub struct AgentRole {
pub name: String,
pub description: String,
pub system_prompt: Option<String>,
}Expand description
A role within a team — describes what an agent specializes in.
Fields§
§name: StringRole name (used for routing).
description: StringDescription of the role’s responsibilities.
system_prompt: Option<String>Optional system prompt override for this role.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentRole
impl<'de> Deserialize<'de> for AgentRole
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 AgentRole
impl RefUnwindSafe for AgentRole
impl Send for AgentRole
impl Sync for AgentRole
impl Unpin for AgentRole
impl UnsafeUnpin for AgentRole
impl UnwindSafe for AgentRole
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