pub struct Agent {
pub id: String,
pub capabilities: Vec<String>,
pub context_used: Arc<RwLock<usize>>,
}Expand description
Represents a single autonomous agent in the swarm
Fields§
§id: StringUnique agent identifier
capabilities: Vec<String>List of agent capabilities
context_used: Arc<RwLock<usize>>Current context tokens used by this agent
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Agent
impl !RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl !UnwindSafe for Agent
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