pub struct DelegatedTask {Show 24 fields
pub id: String,
pub agent_id: String,
pub prompt: String,
pub context: Option<Value>,
pub required_tools: Vec<String>,
pub priority: u8,
pub session_id: Option<String>,
pub directive_id: Option<String>,
pub tracking_task_id: Option<String>,
pub run_id: Option<String>,
pub parent_task_id: Option<String>,
pub depends_on: Vec<String>,
pub role: Option<AgentRole>,
pub delegation_brief: Option<DelegationBrief>,
pub planning_only: bool,
pub approval_required: bool,
pub reviewer_required: bool,
pub test_required: bool,
pub workspace_dir: Option<PathBuf>,
pub execution_mode: AgentExecutionMode,
pub environment_id: Option<String>,
pub remote_target: Option<RemoteAgentTarget>,
pub memory_tags: Vec<String>,
pub name: Option<String>,
}Expand description
Task that can be delegated to a subagent
Fields§
§id: StringUnique task identifier
agent_id: StringAgent ID to delegate to
prompt: StringTask description/prompt
context: Option<Value>Optional context from parent
required_tools: Vec<String>Required tools for the task
priority: u8Priority (lower = higher priority)
session_id: Option<String>Session ID for UI integration
directive_id: Option<String>Shared directive identifier for cross-agent coordination.
tracking_task_id: Option<String>Optional task identifier in the session task list used for lifecycle tracking.
run_id: Option<String>Supervisor run identifier.
parent_task_id: Option<String>Parent delegated task identifier for hierarchical delegation.
depends_on: Vec<String>Dependencies that must complete before execution can start.
role: Option<AgentRole>Specialist role requested for the assignee.
delegation_brief: Option<DelegationBrief>Structured brief generated by the supervisor.
planning_only: boolWhether the task should stop after planning.
approval_required: boolWhether execution requires explicit approval before running.
reviewer_required: boolWhether review must occur before the task is considered complete.
test_required: boolWhether test validation must occur before the task is considered complete.
workspace_dir: Option<PathBuf>Workspace root for sandboxing and durable memory persistence.
execution_mode: AgentExecutionModeAssigned execution mode.
environment_id: Option<String>Optional environment identifier managed by the supervisor.
remote_target: Option<RemoteAgentTarget>Optional remote execution target.
Tags used for targeted memory retrieval and promotion.
name: Option<String>Human-readable task name for UI display
Trait Implementations§
Source§impl Clone for DelegatedTask
impl Clone for DelegatedTask
Source§fn clone(&self) -> DelegatedTask
fn clone(&self) -> DelegatedTask
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more