pub struct NodeResult {
pub task_id: String,
pub response: String,
pub task_completed: bool,
pub tool_calls: usize,
pub new_skill: Option<NewSkill>,
}Expand description
Standard result unit — the universal output for local execution and P2P routing.
Maps from AgentResult internally; fields are intentionally minimal so
that routing layers and remote peers can parse results without knowing agent internals.
Fields§
§task_id: StringEchoed task ID (matches caller’s task id when available; otherwise a generated UUID).
response: StringAgent’s final response text.
task_completed: boolWhether the agent marked the task as completed.
tool_calls: usizeTotal tool calls made during execution.
new_skill: Option<NewSkill>Newly synthesised skill, if the Evolution Engine produced one.
Trait Implementations§
Source§impl Clone for NodeResult
impl Clone for NodeResult
Source§fn clone(&self) -> NodeResult
fn clone(&self) -> NodeResult
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 NodeResult
impl Debug for NodeResult
Source§impl<'de> Deserialize<'de> for NodeResult
impl<'de> Deserialize<'de> for NodeResult
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 NodeResult
impl RefUnwindSafe for NodeResult
impl Send for NodeResult
impl Sync for NodeResult
impl Unpin for NodeResult
impl UnsafeUnpin for NodeResult
impl UnwindSafe for NodeResult
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