pub struct WorkerJob {Show 14 fields
pub session: Arc<Session>,
pub identity: AgentIdentity,
pub class: EventClass,
pub payload: Value,
pub text: String,
pub analyze_loop: bool,
pub status: StatusId,
pub stop_reason: Option<StopReason>,
pub native_stop_reason: Option<String>,
pub metrics: EventMetrics,
pub cost_usd_micros: u64,
pub atif: Option<AtifCapture>,
pub response_marker: Option<String>,
pub response_attempt: Option<ResponseAttempt>,
}Expand description
Work copied from the hot path for asynchronous processing.
Fields§
§session: Arc<Session>Session receiving the resulting event and trajectory step.
identity: AgentIdentityIdentity validated for the request that created this job.
class: EventClassEvent class to emit when loop detection does not override it.
payload: ValueClass-specific event payload.
text: StringReasoning or response text used for loop detection and ATIF capture.
analyze_loop: boolWhether this job represents a reasoning step that should update the semantic loop breaker.
status: StatusIdEvent outcome.
stop_reason: Option<StopReason>Normalized stop reason for stop events.
native_stop_reason: Option<String>Provider or source-native stop reason value.
metrics: EventMetricsToken and compression metrics.
cost_usd_micros: u64Cost attributed to this step, in micro-USD.
atif: Option<AtifCapture>ATIF step representation for unsigned workflows.
response_marker: Option<String>Durable response-attempt marker cleared only after journal and broker commit.
response_attempt: Option<ResponseAttempt>Chat response attempt correlated across request and terminal capture records.
Auto Trait Implementations§
impl Freeze for WorkerJob
impl !RefUnwindSafe for WorkerJob
impl Send for WorkerJob
impl Sync for WorkerJob
impl Unpin for WorkerJob
impl UnsafeUnpin for WorkerJob
impl !UnwindSafe for WorkerJob
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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