pub struct TaskInfo {
pub task_id: String,
pub kind: TaskType,
pub status: TaskStatus,
pub started_ms: i64,
pub ended_ms: Option<i64>,
pub detail: Value,
pub error: Option<String>,
pub waiting_for: Vec<String>,
pub usage: Option<Usage>,
pub structured_output: Option<Value>,
}Expand description
A task as session.tasks lists it and the task_* events carry it.
Fields§
§task_id: String§kind: TaskTypeagent, teammate, member, shell, monitor, cron, code or mcp_task.
status: TaskStatus§started_ms: i64Unix millis.
ended_ms: Option<i64>Unix millis; null while it runs.
detail: Value§error: Option<String>§waiting_for: Vec<String>The prompt ids the work waits on; empty unless status is waiting.
usage: Option<Usage>§structured_output: Option<Value>Trait Implementations§
Source§impl JsonSchema for TaskInfo
impl JsonSchema for TaskInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for TaskInfo
Auto Trait Implementations§
impl Forget for TaskInfo
impl Freeze for TaskInfowhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for TaskInfo
impl RefUnwindSafe for TaskInfo
impl Send for TaskInfo
impl Sync for TaskInfo
impl Unpin for TaskInfo
impl UnsafeUnpin for TaskInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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