Skip to main content

AgentCheckpointPhase

Enum AgentCheckpointPhase 

Source
#[non_exhaustive]
pub enum AgentCheckpointPhase {
Show 13 variants ReadyForTurn, TurnInFlight { turn: u32, }, Completed { response: Box<ModelResponse>, }, TerminalRequirementFailed { failure: TerminalRequirementFailure, attempts: u32, }, TurnReviewReady { response: Box<ModelResponse>, turn: u32, }, TurnReviewInFlight { response: Box<ModelResponse>, turn: u32, }, TurnReviewApproved { response: Box<ModelResponse>, turn: u32, }, TurnReviewRejected { response: Box<ModelResponse>, turn: u32, reason: String, attempts: u32, }, TurnReviewExhausted { response: Box<ModelResponse>, turn: u32, feedback: Value, attempts: u32, }, TerminalReviewReady { response: Box<ModelResponse>, attempt: u32, }, TerminalReviewInFlight { response: Box<ModelResponse>, attempt: u32, }, TerminalReviewRejected { response: Box<ModelResponse>, reason: String, attempts: u32, }, TerminalReviewExhausted { response: Box<ModelResponse>, feedback: Value, attempts: u32, },
}
Expand description

Persisted Agent execution phase.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ReadyForTurn

Transcript is stable and ready for the next model turn.

§

TurnInFlight

A model-and-callable turn may have partially executed.

Fields

§turn: u32

One-based turn number that may have partially executed.

§

Completed

The Agent reached a terminal response.

Fields

§response: Box<ModelResponse>

Final canonical model response.

§

TerminalRequirementFailed

A terminal candidate failed its completion contract and cannot be repaired under the configured policy.

Fields

§failure: TerminalRequirementFailure

Safe failure details retained without the generated body.

§attempts: u32

Repair turns completed before exhaustion.

§

TurnReviewReady

A selected model response is durable and has not entered internal turn review.

Fields

§response: Box<ModelResponse>

Response awaiting review before it can affect execution.

§turn: u32

One-based model turn that produced the response.

§

TurnReviewInFlight

Internal review of a durable model response may have partially executed.

Fields

§response: Box<ModelResponse>

Response supplied to the reviewer.

§turn: u32

One-based model turn that produced the response.

§

TurnReviewApproved

The response passed review and is durable while its tool plan is applied or its terminal path is completed.

Fields

§response: Box<ModelResponse>

Approved response reused during recovery without regeneration.

§turn: u32

One-based model turn that produced the response.

§

TurnReviewRejected

An internal reviewer permanently rejected a model response.

Fields

§response: Box<ModelResponse>

Response rejected by the reviewer.

§turn: u32

One-based model turn that produced the response.

§reason: String

Safe reviewer explanation.

§attempts: u32

Internal review repairs completed before rejection.

§

TurnReviewExhausted

A turn repair verdict exceeded the configured review repair limit.

Fields

§response: Box<ModelResponse>

Last response that required another repair.

§turn: u32

One-based model turn that produced the response.

§feedback: Value

Last bounded feedback returned by the reviewer.

§attempts: u32

Internal review repairs completed before exhaustion.

§

TerminalReviewReady

A locally valid candidate is durable and has not entered review.

Fields

§response: Box<ModelResponse>

Candidate awaiting semantic review.

§attempt: u32

One-based semantic review attempt.

§

TerminalReviewInFlight

Semantic review of a durable candidate may have partially executed.

Fields

§response: Box<ModelResponse>

Candidate supplied to the reviewer.

§attempt: u32

One-based semantic review attempt.

§

TerminalReviewRejected

A reviewer permanently rejected a terminal candidate.

Fields

§response: Box<ModelResponse>

Candidate rejected by the reviewer.

§reason: String

Safe reviewer explanation.

§attempts: u32

Review repairs completed before rejection.

§

TerminalReviewExhausted

A repair verdict exceeded the configured review repair limit.

Fields

§response: Box<ModelResponse>

Last candidate that required another repair.

§feedback: Value

Last bounded feedback returned by the reviewer.

§attempts: u32

Review repairs completed before exhaustion.

Trait Implementations§

Source§

impl Clone for AgentCheckpointPhase

Source§

fn clone(&self) -> AgentCheckpointPhase

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 AgentCheckpointPhase

Source§

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

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

impl<'de> Deserialize<'de> for AgentCheckpointPhase

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 PartialEq for AgentCheckpointPhase

Source§

fn eq(&self, other: &AgentCheckpointPhase) -> 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 AgentCheckpointPhase

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 AgentCheckpointPhase

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.