pub struct ManagingAgent {
_attributes: BasicAgent,
fact_sheet: FactSheet,
agents: Vec<Box<dyn SpecialFunctions>>,
}
Expand description
Represents a managing agent responsible for overseeing the workflow of other agents and managing the fact sheet.
Fields§
§_attributes: BasicAgent
Attributes of the managing agent, including its objective, position, state, and memory.
fact_sheet: FactSheet
The fact sheet containing the project description and other related information.
agents: Vec<Box<dyn SpecialFunctions>>
A collection of agents implementing SpecialFunctions
that perform specific tasks.
Implementations§
source§impl ManagingAgent
impl ManagingAgent
sourcefn add_agent(&mut self, agent: Box<dyn SpecialFunctions>)
fn add_agent(&mut self, agent: Box<dyn SpecialFunctions>)
Adds a new agent to the ManagingAgent
.
§Parameters
agent
: A boxed instance of a struct implementing theSpecialFunctions
trait.
sourcefn create_agents(&mut self)
fn create_agents(&mut self)
Creates and initializes agents to handle specific tasks related to the project.
sourcepub async fn execute_project(&mut self)
pub async fn execute_project(&mut self)
Executes the project workflow by iterating through all agents and invoking their execute
methods.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManagingAgent
impl !RefUnwindSafe for ManagingAgent
impl !Send for ManagingAgent
impl !Sync for ManagingAgent
impl Unpin for ManagingAgent
impl !UnwindSafe for ManagingAgent
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