Skip to main content

CeremonyAgentStatus

Struct CeremonyAgentStatus 

Source
pub struct CeremonyAgentStatus { /* private fields */ }
Expand description

Bounded host-owned status evidence for one logical worker execution.

Implementations§

Source§

impl CeremonyAgentStatus

Source

pub fn new( ceremony_id: CeremonyId, agent_execution_id: CeremonyAgentExecutionId, operation_id: ExecutionOperationId, claim_owner_id: LeaseOwnerId, logical_worker_id: LogicalWorkerId, host_agent_id: LeaseOwnerId, host_agent_incarnation: HostAgentIncarnation, previous_host_agent_id: Option<LeaseOwnerId>, previous_host_agent_incarnation: Option<HostAgentIncarnation>, role_id: RoleId, step_id: StepId, attempt: u32, execution_status: AgentExecutionStatus, liveness: AgentLiveness, source: AgentStatusSource, requested_model: Option<String>, requested_reasoning_effort: Option<String>, actual_model: Option<String>, actual_reasoning_effort: Option<String>, activity: impl Into<String>, blocker: Option<String>, dependency: Option<String>, task_summary: impl Into<String>, evidence_references: Vec<String>, usage_kind: Option<AgentUsageKind>, usage_value: Option<u64>, observed_at: OffsetDateTime, report_sequence: u64, idempotency_key: impl Into<String>, claim_fence: StepClaimFence, ) -> Result<Self, DomainError>

Source

pub fn ceremony_id(&self) -> &CeremonyId

Source

pub fn agent_execution_id(&self) -> &CeremonyAgentExecutionId

Source

pub const fn operation_id(&self) -> &ExecutionOperationId

Source

pub const fn claim_owner_id(&self) -> &LeaseOwnerId

Source

pub fn logical_worker_id(&self) -> &LogicalWorkerId

Source

pub fn host_agent_id(&self) -> &LeaseOwnerId

Source

pub fn host_agent_incarnation(&self) -> &HostAgentIncarnation

Source

pub fn previous_host_agent_id(&self) -> Option<&LeaseOwnerId>

Source

pub fn previous_host_agent_incarnation(&self) -> Option<&HostAgentIncarnation>

Source

pub fn role_id(&self) -> &RoleId

Source

pub fn step_id(&self) -> &StepId

Source

pub fn attempt(&self) -> u32

Source

pub fn execution_status(&self) -> AgentExecutionStatus

Source

pub fn liveness(&self) -> AgentLiveness

Source

pub fn source(&self) -> AgentStatusSource

Source

pub fn requested_model(&self) -> Option<&str>

Source

pub fn requested_reasoning_effort(&self) -> Option<&str>

Source

pub fn actual_model(&self) -> Option<&str>

Source

pub fn actual_reasoning_effort(&self) -> Option<&str>

Source

pub fn activity(&self) -> &str

Source

pub fn blocker(&self) -> Option<&str>

Source

pub fn dependency(&self) -> Option<&str>

Source

pub fn task_summary(&self) -> &str

Source

pub fn evidence_references(&self) -> &[String]

Source

pub const fn usage_kind(&self) -> Option<AgentUsageKind>

Source

pub fn usage_value(&self) -> Option<u64>

Source

pub fn observed_at(&self) -> OffsetDateTime

Source

pub fn report_sequence(&self) -> u64

Source

pub fn idempotency_key(&self) -> &str

Source

pub const fn claim_fence(&self) -> &StepClaimFence

Source

pub fn projected_at(&self, now: OffsetDateTime, stale_after: Duration) -> Self

Project liveness from the age of explicit host evidence without changing the execution outcome or the persisted observation.

Source

pub fn has_same_logical_execution_as(&self, other: &Self) -> bool

Identity that belongs to the ceremony’s logical participant and its accepted work, rather than to the host process currently executing it.

Trait Implementations§

Source§

impl Clone for CeremonyAgentStatus

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CeremonyAgentStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CeremonyAgentStatus

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for CeremonyAgentStatus

Source§

impl PartialEq for CeremonyAgentStatus

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CeremonyAgentStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CeremonyAgentStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.