pub struct TaskInfo {
pub id: u64,
pub parent_id: Option<u64>,
pub agent: CompactString,
pub status: String,
pub description: String,
pub result: Option<String>,
pub error: Option<String>,
pub created_by: CompactString,
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub alive_secs: u64,
pub blocked_on: Option<String>,
}Expand description
Summary of a task in the task registry.
Fields§
§id: u64Task identifier.
parent_id: Option<u64>Parent task ID (if sub-task).
agent: CompactStringAgent assigned to this task.
status: StringCurrent status.
description: StringTask description / message.
result: Option<String>Result content (if finished).
error: Option<String>Error message (if failed).
created_by: CompactStringOrigin of this task.
prompt_tokens: u64Cumulative prompt tokens.
completion_tokens: u64Cumulative completion tokens.
alive_secs: u64Seconds since task was created.
blocked_on: Option<String>Pending inbox question (if blocked).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskInfo
impl<'de> Deserialize<'de> for TaskInfo
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 TaskInfo
impl RefUnwindSafe for TaskInfo
impl Send for TaskInfo
impl Sync for TaskInfo
impl Unpin for TaskInfo
impl UnsafeUnpin for TaskInfo
impl UnwindSafe for TaskInfo
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