pub struct SessionTask {Show 23 fields
pub id: String,
pub session_id: SessionId,
pub kind: String,
pub display_name: String,
pub spec: Value,
pub state: SessionTaskState,
pub state_detail: Option<String>,
pub progress: Option<TaskProgress>,
pub input_request: Option<TaskInputRequest>,
pub cancel_requested_at: Option<DateTime<Utc>>,
pub summary: Option<String>,
pub result_path: Option<String>,
pub artifacts: Vec<TaskArtifact>,
pub error: Option<TaskError>,
pub attempt: i32,
pub worker_id: Option<String>,
pub heartbeat_at: Option<DateTime<Utc>>,
pub links: TaskLinks,
pub wake_policy: TaskWakePolicy,
pub created_at: DateTime<Utc>,
pub started_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
pub updated_at: DateTime<Utc>,
}Expand description
A unit of background work owned by a session.
Fields§
§id: Stringtask_* public ID.
session_id: SessionIdOwning session.
kind: StringTask kind: “subagent”, “external_agent”, “background_tool”, “monitor”, …
display_name: StringHuman-readable label.
spec: ValueKind-specific input (instructions, tool args, external agent id).
state: SessionTaskState§state_detail: Option<String>Short live status line (“polling remote task”, “iteration 4/10”).
progress: Option<TaskProgress>§input_request: Option<TaskInputRequest>Pending ask while awaiting_input; cleared when answered.
cancel_requested_at: Option<DateTime<Utc>>Cooperative cancel intent. A flag, not a state.
summary: Option<String>Human-readable outcome.
result_path: Option<String>Machine result in the session VFS: /.tasks/{task_id}/result.json.
artifacts: Vec<TaskArtifact>§error: Option<TaskError>§attempt: i32Execution attempt, starting at 1. Incremented on re-attach.
worker_id: Option<String>§heartbeat_at: Option<DateTime<Utc>>§links: TaskLinks§wake_policy: TaskWakePolicy§created_at: DateTime<Utc>§started_at: Option<DateTime<Utc>>§finished_at: Option<DateTime<Utc>>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for SessionTask
impl Clone for SessionTask
Source§fn clone(&self) -> SessionTask
fn clone(&self) -> SessionTask
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 SessionTask
impl Debug for SessionTask
Source§impl<'de> Deserialize<'de> for SessionTask
impl<'de> Deserialize<'de> for SessionTask
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 SessionTask
impl RefUnwindSafe for SessionTask
impl Send for SessionTask
impl Sync for SessionTask
impl Unpin for SessionTask
impl UnsafeUnpin for SessionTask
impl UnwindSafe for SessionTask
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request