pub struct AgentManager { /* private fields */ }Expand description
Agent manager
Implementations§
Source§impl AgentManager
impl AgentManager
pub fn new(config: AgentConfig) -> Self
pub async fn spawn_agent( &mut self, agent_type: AgentType, capabilities: Vec<String>, custom_config: Option<HashMap<String, String>>, ) -> Result<Agent>
pub async fn get_agent(&self, agent_id: &str) -> Result<Agent>
pub async fn get_agent_count(&self) -> u64
Auto Trait Implementations§
impl Freeze for AgentManager
impl RefUnwindSafe for AgentManager
impl Send for AgentManager
impl Sync for AgentManager
impl Unpin for AgentManager
impl UnwindSafe for AgentManager
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