pub struct ModelErrorProvenance { /* private fields */ }Expand description
Correlation evidence attached to a failed model attempt.
Provider identifiers are opaque diagnostic values. They do not grant authority and are never replay, deduplication, or idempotency keys.
Implementations§
Source§impl ModelErrorProvenance
impl ModelErrorProvenance
Sourcepub fn new(
attempt_id: AttemptId,
model: CapabilityIdentity,
provider_model_id: Option<ModelProviderModelId>,
provider_request_id: Option<ModelProviderRequestId>,
provider_response_id: Option<ModelProviderResponseId>,
) -> Self
pub fn new( attempt_id: AttemptId, model: CapabilityIdentity, provider_model_id: Option<ModelProviderModelId>, provider_request_id: Option<ModelProviderRequestId>, provider_response_id: Option<ModelProviderResponseId>, ) -> Self
Constructs failure provenance from validated identity and correlation values.
Sourcepub const fn attempt_id(&self) -> AttemptId
pub const fn attempt_id(&self) -> AttemptId
Returns the exact execution-attempt identifier.
Sourcepub const fn model(&self) -> &CapabilityIdentity
pub const fn model(&self) -> &CapabilityIdentity
Returns the stable owner-qualified model binding identity.
Sourcepub const fn provider_model_id(&self) -> Option<&ModelProviderModelId>
pub const fn provider_model_id(&self) -> Option<&ModelProviderModelId>
Returns the optional opaque provider model identifier.
Sourcepub const fn provider_request_id(&self) -> Option<&ModelProviderRequestId>
pub const fn provider_request_id(&self) -> Option<&ModelProviderRequestId>
Returns the optional opaque provider request identifier.
Sourcepub const fn provider_response_id(&self) -> Option<&ModelProviderResponseId>
pub const fn provider_response_id(&self) -> Option<&ModelProviderResponseId>
Returns the optional opaque provider response identifier.
Trait Implementations§
Source§impl Clone for ModelErrorProvenance
impl Clone for ModelErrorProvenance
Source§impl Debug for ModelErrorProvenance
impl Debug for ModelErrorProvenance
Source§impl<'de> Deserialize<'de> for ModelErrorProvenance
impl<'de> Deserialize<'de> for ModelErrorProvenance
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
impl Eq for ModelErrorProvenance
Source§impl JsonSchema for ModelErrorProvenance
impl JsonSchema for ModelErrorProvenance
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 moreSource§impl PartialEq for ModelErrorProvenance
impl PartialEq for ModelErrorProvenance
Source§impl Serialize for ModelErrorProvenance
impl Serialize for ModelErrorProvenance
impl StructuralPartialEq for ModelErrorProvenance
Auto Trait Implementations§
impl Forget for ModelErrorProvenance
impl Freeze for ModelErrorProvenance
impl Move for ModelErrorProvenance
impl RefUnwindSafe for ModelErrorProvenance
impl Send for ModelErrorProvenance
impl Sync for ModelErrorProvenance
impl Unpin for ModelErrorProvenance
impl UnsafeUnpin for ModelErrorProvenance
impl UnwindSafe for ModelErrorProvenance
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