pub struct AgentGraph {
pub nodes: Vec<AgentNode>,
pub edges: Vec<AgentEdge>,
}Expand description
The complete agent collaboration graph for a session.
Fields§
§nodes: Vec<AgentNode>§edges: Vec<AgentEdge>Implementations§
Source§impl AgentGraph
impl AgentGraph
Sourcepub fn from_events(events: &[SessionEvent]) -> Self
pub fn from_events(events: &[SessionEvent]) -> Self
Build an agent graph from a sequence of session events.
Sourcepub fn host_ids(&self) -> BTreeSet<String>
pub fn host_ids(&self) -> BTreeSet<String>
Return the set of unique host IDs across all agents.
Sourcepub fn handoff_count(&self) -> u32
pub fn handoff_count(&self) -> u32
Total number of handoff edges.
Sourcepub fn spawn_count(&self) -> u32
pub fn spawn_count(&self) -> u32
Total number of spawn (parent-child) edges.
Trait Implementations§
Source§impl Clone for AgentGraph
impl Clone for AgentGraph
Source§fn clone(&self) -> AgentGraph
fn clone(&self) -> AgentGraph
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentGraph
impl Debug for AgentGraph
Source§impl Default for AgentGraph
impl Default for AgentGraph
Source§fn default() -> AgentGraph
fn default() -> AgentGraph
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentGraph
impl<'de> Deserialize<'de> for AgentGraph
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 AgentGraph
impl RefUnwindSafe for AgentGraph
impl Send for AgentGraph
impl Sync for AgentGraph
impl Unpin for AgentGraph
impl UnsafeUnpin for AgentGraph
impl UnwindSafe for AgentGraph
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