pub struct TaskSnapshot {
pub task_id: String,
pub agent_id: String,
pub status: TaskStatus,
pub executor: Executor,
pub started_at: i64,
pub last_event_at: i64,
pub ended_at: Option<i64>,
pub preview: Option<String>,
}Expand description
Snapshot returned by the supervisor tools (get_task, list_my_tasks).
Fields§
§task_id: String§agent_id: String§status: TaskStatus§executor: Executor§started_at: i64§last_event_at: i64§ended_at: Option<i64>§preview: Option<String>Optional — best-effort partial result (last assistant text) if running, or final result content if done.
Trait Implementations§
Source§impl Clone for TaskSnapshot
impl Clone for TaskSnapshot
Source§fn clone(&self) -> TaskSnapshot
fn clone(&self) -> TaskSnapshot
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 moreSource§impl Debug for TaskSnapshot
impl Debug for TaskSnapshot
Source§impl<'de> Deserialize<'de> for TaskSnapshot
impl<'de> Deserialize<'de> for TaskSnapshot
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 TaskSnapshot
impl RefUnwindSafe for TaskSnapshot
impl Send for TaskSnapshot
impl Sync for TaskSnapshot
impl Unpin for TaskSnapshot
impl UnsafeUnpin for TaskSnapshot
impl UnwindSafe for TaskSnapshot
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