pub struct ExecuteRequest {
pub role: Role,
pub instruction: String,
pub context: ContextPacket,
pub workspace: PathBuf,
pub constraints: Constraints,
pub tools: Vec<ToolSpec>,
pub mcp_servers: Vec<McpServerSpec>,
}Expand description
Everything a worker needs to do one unit of work (CONTEXT.md §8).
Fields§
§role: Role§instruction: String§context: ContextPacket§workspace: PathBufThe repository / working directory the worker operates in.
constraints: Constraints§tools: Vec<ToolSpec>MCP tools this node may call via the host agentic loop (MCP_SKILLS.md
§6). Empty for nodes that attach none; only API workers act on it. Built
by the engine from node.tools against the run’s tool catalog.
mcp_servers: Vec<McpServerSpec>MCP servers to provision into a harness so it calls the node’s tools
natively — the provision path (MCP_SKILLS.md §6). The harness sibling of
tools: both are filled from node.tools; an API worker reads tools, a
harness reads mcp_servers.
Trait Implementations§
Source§impl Clone for ExecuteRequest
impl Clone for ExecuteRequest
Source§fn clone(&self) -> ExecuteRequest
fn clone(&self) -> ExecuteRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecuteRequest
impl RefUnwindSafe for ExecuteRequest
impl Send for ExecuteRequest
impl Sync for ExecuteRequest
impl Unpin for ExecuteRequest
impl UnsafeUnpin for ExecuteRequest
impl UnwindSafe for ExecuteRequest
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