pub struct TaskItem {
pub id: String,
pub description: String,
pub assigned_to: AgentId,
pub status: TaskStatus,
pub result: Option<String>,
pub dependencies: Vec<String>,
pub metadata: HashMap<String, String>,
}Expand description
A task in the collaborative plan.
Fields§
§id: StringUnique identifier for the task.
description: StringDescription of the task.
assigned_to: AgentIdAgent assigned to this task.
status: TaskStatusCurrent status of the task.
result: Option<String>Result/output from the task execution.
dependencies: Vec<String>Dependencies (task IDs that must complete before this one).
metadata: HashMap<String, String>Metadata about the task.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskItem
impl RefUnwindSafe for TaskItem
impl Send for TaskItem
impl Sync for TaskItem
impl Unpin for TaskItem
impl UnwindSafe for TaskItem
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