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 moreSource§impl Debug for DelegatedTask
impl Debug for DelegatedTask
Source§impl<'de> Deserialize<'de> for DelegatedTask
impl<'de> Deserialize<'de> for DelegatedTask
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DelegatedTask, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DelegatedTask, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for DelegatedTask
impl Serialize for DelegatedTask
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for DelegatedTask
impl RefUnwindSafe for DelegatedTask
impl Send for DelegatedTask
impl Sync for DelegatedTask
impl Unpin for DelegatedTask
impl UnsafeUnpin for DelegatedTask
impl UnwindSafe for DelegatedTask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].