pub struct TaskContext {
pub task_id: String,
pub session_id: String,
pub triage_class: String,
pub profile_intent: String,
pub profile_complexity: String,
pub filtered_lines: usize,
pub start_time: Instant,
pub envelope: TaskEnvelopeV1,
pub profile: TaskProfileLocal,
pub surface: ToolSurface,
pub runtime: RuntimeContext,
pub entitlements: ProductEntitlements,
/* private fields */
}Expand description
Handle shared by surface adapters for one idempotent execution.
Fields§
§task_id: String§session_id: String§triage_class: String§profile_intent: String§profile_complexity: String§filtered_lines: usize§start_time: Instant§envelope: TaskEnvelopeV1§profile: TaskProfileLocal§surface: ToolSurface§runtime: RuntimeContext§entitlements: ProductEntitlementsImplementations§
Source§impl TaskContext
impl TaskContext
pub fn planning_query(&self) -> Option<&str>
Sourcepub fn autopilot_decision(&self) -> Option<&TaskAutopilotDecision>
pub fn autopilot_decision(&self) -> Option<&TaskAutopilotDecision>
Canonical planning evidence; this alone is not execution/acceptance evidence.
pub fn attach_autopilot( &self, prepared: Arc<PreparedKernelContext>, ) -> Result<()>
pub fn autopilot_task_class(&self) -> TaskClass
pub fn advance(&self, stage: LifecycleStage) -> bool
pub fn skip(&self, stage: LifecycleStage, reason: &'static str) -> bool
pub fn advance_through(&self, target: LifecycleStage)
pub fn completed_stages(&self) -> Vec<LifecycleStage>
pub fn stage_executions(&self) -> Vec<StageExecution>
pub fn outcome(&self) -> Option<LifecycleOutcome>
Trait Implementations§
Source§impl Clone for TaskContext
impl Clone for TaskContext
Auto Trait Implementations§
impl Forget for TaskContext
impl Freeze for TaskContext
impl Move for TaskContext
impl RefUnwindSafe for TaskContext
impl Send for TaskContext
impl Sync for TaskContext
impl Unpin for TaskContext
impl UnsafeUnpin for TaskContext
impl UnwindSafe for TaskContext
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more