pub struct NodeContext {
pub workspace: String,
pub session_key: String,
pub required_capabilities: Vec<String>,
}Expand description
Execution context attached to every NodeTask.
Provides the agent with workspace identity, session continuity, and the
capability tags the caller intends to use. Remote P2P peers use
required_capabilities to decide whether to accept the task.
Fields§
§workspace: StringWorkspace path (local execution) or originating node ID (P2P).
session_key: StringSession key for memory/transcript continuity (matches ChatSession key).
required_capabilities: Vec<String>Capability tags the caller expects to exercise (e.g. ["python", "web"]).
Trait Implementations§
Source§impl Clone for NodeContext
impl Clone for NodeContext
Source§fn clone(&self) -> NodeContext
fn clone(&self) -> NodeContext
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 NodeContext
impl Debug for NodeContext
Source§impl<'de> Deserialize<'de> for NodeContext
impl<'de> Deserialize<'de> for NodeContext
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 NodeContext
impl RefUnwindSafe for NodeContext
impl Send for NodeContext
impl Sync for NodeContext
impl Unpin for NodeContext
impl UnsafeUnpin for NodeContext
impl UnwindSafe for NodeContext
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