pub struct OxiosAgentGroup {
pub id: Uuid,
pub parent_seed_id: Uuid,
pub agents: Vec<OxiosGroupAgent>,
}Expand description
A group of agents executing in parallel.
Fields§
§id: UuidUnique group ID.
parent_seed_id: UuidThe parent seed that spawned this group.
agents: Vec<OxiosGroupAgent>Agents in this group.
Implementations§
Source§impl OxiosAgentGroup
impl OxiosAgentGroup
Sourcepub fn new(parent_seed: &Seed, subtask_descriptions: Vec<String>) -> Self
pub fn new(parent_seed: &Seed, subtask_descriptions: Vec<String>) -> Self
Create a new agent group by splitting a parent seed into subtasks.
Sourcepub fn pending_agents(&self) -> Vec<&OxiosGroupAgent>
pub fn pending_agents(&self) -> Vec<&OxiosGroupAgent>
Get all pending agents.
Sourcepub fn completed_agents(&self) -> Vec<&OxiosGroupAgent>
pub fn completed_agents(&self) -> Vec<&OxiosGroupAgent>
Get all completed agents.
Sourcepub fn failed_agents(&self) -> Vec<&OxiosGroupAgent>
pub fn failed_agents(&self) -> Vec<&OxiosGroupAgent>
Get all failed agents.
Sourcepub fn all_completed(&self) -> bool
pub fn all_completed(&self) -> bool
Check if all agents in the group have completed.
Sourcepub fn any_failed(&self) -> bool
pub fn any_failed(&self) -> bool
Check if any agent has failed.
Sourcepub fn completion_pct(&self) -> f64
pub fn completion_pct(&self) -> f64
Get completion percentage.
Sourcepub fn combined_results(&self) -> String
pub fn combined_results(&self) -> String
Combine results from all completed agents.
Trait Implementations§
Source§impl Clone for OxiosAgentGroup
impl Clone for OxiosAgentGroup
Source§fn clone(&self) -> OxiosAgentGroup
fn clone(&self) -> OxiosAgentGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OxiosAgentGroup
impl Debug for OxiosAgentGroup
Source§impl<'de> Deserialize<'de> for OxiosAgentGroup
impl<'de> Deserialize<'de> for OxiosAgentGroup
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
Auto Trait Implementations§
impl Freeze for OxiosAgentGroup
impl RefUnwindSafe for OxiosAgentGroup
impl Send for OxiosAgentGroup
impl Sync for OxiosAgentGroup
impl Unpin for OxiosAgentGroup
impl UnsafeUnpin for OxiosAgentGroup
impl UnwindSafe for OxiosAgentGroup
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