#[non_exhaustive]pub enum AgentType {
Router,
Orchestrator,
Product,
Invoice,
Sales,
Finance,
HR,
Custom(String),
}Expand description
Available agent types in the system.
This enum supports both built-in agent types and custom user-defined agents.
The Custom variant allows for extensibility without modifying this enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Router
Routes requests to appropriate specialized agents.
Orchestrator
Orchestrates complex multi-step tasks.
Product
Handles product-related queries.
Invoice
Handles invoice and billing queries.
Sales
Handles sales-related queries.
Finance
Handles financial queries and analysis.
HR
Handles HR and employee-related queries.
Custom(String)
Custom user-defined agent type. The string contains the agent’s unique identifier/name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentType
impl<'de> Deserialize<'de> for AgentType
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
impl Eq for AgentType
impl StructuralPartialEq for AgentType
Auto Trait Implementations§
impl Freeze for AgentType
impl RefUnwindSafe for AgentType
impl Send for AgentType
impl Sync for AgentType
impl Unpin for AgentType
impl UnsafeUnpin for AgentType
impl UnwindSafe for AgentType
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