Skip to main content

AgenticSystemExecution

Struct AgenticSystemExecution 

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

One run of an agentic system.

Implementations§

Source§

impl AgenticSystemExecution

Source

pub fn plan( id: AgenticSystemExecutionId, system: SystemPin, ceremonies: impl IntoIterator<Item = (SystemCeremonyId, CeremonyExecutionLink)>, resolved_profiles: impl IntoIterator<Item = (SystemRoleId, RequestedExecutionProfile)>, participants: impl IntoIterator<Item = (ParticipantId, ParticipantMaterialization)>, now: OffsetDateTime, ) -> Result<Self, DomainError>

Open a run with nothing started yet.

Source

pub const fn id(&self) -> &AgenticSystemExecutionId

Source

pub const fn system(&self) -> &SystemPin

Which design, at which revision, with which bytes.

Source

pub const fn ceremonies( &self, ) -> &BTreeMap<SystemCeremonyId, CeremonyExecutionLink>

Source

pub const fn resolved_profiles( &self, ) -> &BTreeMap<SystemRoleId, RequestedExecutionProfile>

What was asked of the host for each role, never what it did.

Source

pub const fn participants( &self, ) -> &BTreeMap<ParticipantId, ParticipantMaterialization>

Source

pub const fn integrator_binding(&self) -> Option<&IntegratorBindingId>

Source

pub const fn state(&self) -> ExecutionState

Source

pub const fn created_at(&self) -> OffsetDateTime

Source

pub const fn updated_at(&self) -> OffsetDateTime

The run with one composition’s link replaced.

Replacing rather than mutating, and re-deriving the state from the links each time, so the summary can never disagree with the detail it summarises.

Source

pub fn with_integrator_binding( &self, binding: IntegratorBindingId, now: OffsetDateTime, ) -> Self

The run with the integrator’s destination recorded.

Source

pub fn ready( &self, blocking: &BTreeMap<SystemCeremonyId, Vec<SystemCeremonyId>>, ) -> Vec<&SystemCeremonyId>

Which compositions could be started now: still pending, and with everything they wait for completed.

Completed, not merely settled. A skipped ceremony produced no outputs, so anything that read them would be reading nothing, and starting it anyway would be the one thing a skip exists to prevent.

Trait Implementations§

Source§

impl Clone for AgenticSystemExecution

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 AgenticSystemExecution

Source§

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

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

impl<'de> Deserialize<'de> for AgenticSystemExecution

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 AgenticSystemExecution

Source§

impl PartialEq for AgenticSystemExecution

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 AgenticSystemExecution

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 AgenticSystemExecution

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.