pub enum AgentRole {
Planner,
Worker,
Critic,
Judge,
Verifier,
Voice,
User,
System,
Tool,
Retriever,
Recorder,
Custom(Symbol),
}Expand description
Role an agent plays in a multi-agent exchange.
Variants§
Planner
Decomposes goals and directs other agents.
Worker
Carries out assigned work.
Critic
Critiques outputs.
Judge
Judges or scores outputs.
Verifier
Verifies correctness of outputs.
Voice
Produces user-facing voice or narration.
User
The human or external user.
System
System-level instruction source.
Tool
A tool invocation participant.
Retriever
Retrieves supporting context.
Recorder
Records events and traces.
Custom(Symbol)
A caller-defined role tagged by symbol.
Implementations§
Trait Implementations§
impl Eq for AgentRole
impl StructuralPartialEq for AgentRole
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