pub enum ModelInvocationTransition {
StartAttempt {
attempt_id: AttemptId,
},
RecordResponse {
response: ModelResponse,
},
RecordError {
error: ModelError,
},
}Expand description
Explicit transition appended to the run journal and model history.
Variants§
StartAttempt
Claim a unique physical attempt after preparation or a safe retry.
RecordResponse
Commit a complete response from the current executing attempt.
Fields
§
response: ModelResponseValidated provider-neutral response.
RecordError
Commit public-safe failure and optional normalized usage evidence.
Fields
§
error: ModelErrorValidated attempt failure.
Implementations§
Source§impl ModelInvocationTransition
impl ModelInvocationTransition
Sourcepub const fn kind(&self) -> ModelInvocationTransitionKind
pub const fn kind(&self) -> ModelInvocationTransitionKind
Returns the closed transition discriminator.
Trait Implementations§
Source§impl Clone for ModelInvocationTransition
impl Clone for ModelInvocationTransition
Source§impl Debug for ModelInvocationTransition
impl Debug for ModelInvocationTransition
Source§impl<'de> Deserialize<'de> for ModelInvocationTransition
impl<'de> Deserialize<'de> for ModelInvocationTransition
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 ModelInvocationTransition
impl JsonSchema for ModelInvocationTransition
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 ModelInvocationTransition
impl !UnwindSafe for ModelInvocationTransition
impl Forget for ModelInvocationTransition
impl Freeze for ModelInvocationTransition
impl Move for ModelInvocationTransition
impl Send for ModelInvocationTransition
impl Sync for ModelInvocationTransition
impl Unpin for ModelInvocationTransition
impl UnsafeUnpin for ModelInvocationTransition
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