pub struct AgentNode {Show 14 fields
pub agent_id: String,
pub agent_instance_id: String,
pub agent_name: String,
pub agent_role: Option<String>,
pub host_id: String,
pub started_at: Option<String>,
pub completed_at: Option<String>,
pub status: Option<String>,
pub depth: u32,
pub tool_calls: u32,
pub model: Option<String>,
pub tokens_in: u64,
pub tokens_out: u64,
pub provider: Option<String>,
}Expand description
A node in the agent graph representing one agent instance.
Fields§
§agent_id: String§agent_instance_id: String§agent_name: String§agent_role: Option<String>§host_id: String§started_at: Option<String>§completed_at: Option<String>§status: Option<String>§depth: u32§tool_calls: u32Number of tool calls made by this agent.
model: Option<String>Model identifier (e.g. “claude-opus-4-6”). Populated from decision events.
tokens_in: u64Cumulative input tokens across all decisions by this agent.
tokens_out: u64Cumulative output tokens across all decisions by this agent.
provider: Option<String>Provider e.g. “anthropic”, “openrouter”, “bedrock”
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentNode
impl<'de> Deserialize<'de> for AgentNode
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 AgentNode
impl RefUnwindSafe for AgentNode
impl Send for AgentNode
impl Sync for AgentNode
impl Unpin for AgentNode
impl UnsafeUnpin for AgentNode
impl UnwindSafe for AgentNode
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