pub enum ModelInvocationState {
Prepared,
Executing {
attempt_id: AttemptId,
},
Committed {
response: ModelResponse,
},
Failed {
error: ModelError,
},
}Expand description
Integrity-bound state payload of one model invocation revision.
Variants§
Prepared
Prepared request awaiting an attempt claim.
Executing
In-flight physical provider attempt.
Committed
Complete validated provider-neutral response.
Fields
§
response: ModelResponseExact response and attempt provenance.
Failed
Failed provider attempt.
Fields
§
error: ModelErrorPublic-safe failure, correlation, and optional usage evidence.
Implementations§
Source§impl ModelInvocationState
impl ModelInvocationState
Sourcepub const fn status(&self) -> ModelInvocationStatus
pub const fn status(&self) -> ModelInvocationStatus
Returns the lifecycle discriminator.
Sourcepub const fn attempt_id(&self) -> Option<AttemptId>
pub const fn attempt_id(&self) -> Option<AttemptId>
Returns the physical attempt represented by this state, if any.
Trait Implementations§
Source§impl Clone for ModelInvocationState
impl Clone for ModelInvocationState
Source§impl Debug for ModelInvocationState
impl Debug for ModelInvocationState
Source§impl<'de> Deserialize<'de> for ModelInvocationState
impl<'de> Deserialize<'de> for ModelInvocationState
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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 JsonSchema for ModelInvocationState
impl JsonSchema for ModelInvocationState
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ModelInvocationState
impl !UnwindSafe for ModelInvocationState
impl Forget for ModelInvocationState
impl Freeze for ModelInvocationState
impl Move for ModelInvocationState
impl Send for ModelInvocationState
impl Sync for ModelInvocationState
impl Unpin for ModelInvocationState
impl UnsafeUnpin for ModelInvocationState
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