pub struct ModelAttemptRecord {
pub provider_route_id: String,
pub provider_model_id: String,
pub request_message_count: u32,
pub stop_reason: Option<ProviderStopReason>,
pub usage: Option<ProviderUsage>,
}Expand description
Carries the model attempt record record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§provider_route_id: StringStable provider route id used for typed lineage, lookup, or dedupe.
provider_model_id: StringStable provider model id used for typed lineage, lookup, or dedupe.
request_message_count: u32Count of request message items observed or included in this record.
stop_reason: Option<ProviderStopReason>Optional stop reason value. When absent, callers should use the documented default or skip that optional behavior.
usage: Option<ProviderUsage>Optional usage value. When absent, callers should use the documented default or skip that optional behavior.
Trait Implementations§
Source§impl Clone for ModelAttemptRecord
impl Clone for ModelAttemptRecord
Source§fn clone(&self) -> ModelAttemptRecord
fn clone(&self) -> ModelAttemptRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelAttemptRecord
impl Debug for ModelAttemptRecord
Source§impl<'de> Deserialize<'de> for ModelAttemptRecord
impl<'de> Deserialize<'de> for ModelAttemptRecord
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 ModelAttemptRecord
Source§impl PartialEq for ModelAttemptRecord
impl PartialEq for ModelAttemptRecord
Source§fn eq(&self, other: &ModelAttemptRecord) -> bool
fn eq(&self, other: &ModelAttemptRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelAttemptRecord
impl Serialize for ModelAttemptRecord
impl StructuralPartialEq for ModelAttemptRecord
Auto Trait Implementations§
impl Freeze for ModelAttemptRecord
impl RefUnwindSafe for ModelAttemptRecord
impl Send for ModelAttemptRecord
impl Sync for ModelAttemptRecord
impl Unpin for ModelAttemptRecord
impl UnsafeUnpin for ModelAttemptRecord
impl UnwindSafe for ModelAttemptRecord
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