pub struct NodeTask {
pub id: String,
pub description: String,
pub context: NodeContext,
pub tool_hint: Option<String>,
}Expand description
Standard task unit — the universal input for local execution and P2P routing.
Fields§
§id: StringUnique task identifier (UUIDv4 or monotonic counter string).
description: StringNatural-language description of what the agent should accomplish.
context: NodeContextExecution context (workspace, session, capabilities).
tool_hint: Option<String>Optional hint for which skill or tool to prefer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeTask
impl<'de> Deserialize<'de> for NodeTask
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 NodeTask
impl RefUnwindSafe for NodeTask
impl Send for NodeTask
impl Sync for NodeTask
impl Unpin for NodeTask
impl UnsafeUnpin for NodeTask
impl UnwindSafe for NodeTask
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