pub struct SubTask {
pub id: Uuid,
pub description: String,
pub required_capability: Option<String>,
pub result: Option<String>,
pub success: bool,
pub role: AgentRole,
}Expand description
A subtask within a multi-agent plan.
Fields§
§id: UuidUnique subtask ID.
description: StringHuman-readable description.
required_capability: Option<String>Capability required (e.g., “code-review”, “testing”).
result: Option<String>Result of the subtask (filled after execution).
success: boolWhether this subtask succeeded.
role: AgentRoleRole of the agent assigned to this subtask.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SubTask
impl<'de> Deserialize<'de> for SubTask
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 SubTask
impl RefUnwindSafe for SubTask
impl Send for SubTask
impl Sync for SubTask
impl Unpin for SubTask
impl UnsafeUnpin for SubTask
impl UnwindSafe for SubTask
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