pub struct ProviderReplay {
pub native_blocks: Option<Vec<Value>>,
pub reasoning_content: Option<String>,
pub extra: Map<String, Value>,
}Expand description
Provider-native replay payload persisted in llm_completed for wake/preload recovery.
The core is provider-neutral: it persists and round-trips the replay envelope
verbatim without interpreting protocol-specific shapes. native_blocks and
reasoning_content are modeled explicitly because the recovery path reads
them; every other envelope field (schema_version, provider, protocol,
model, reasoning_details, native_message, tool_calls, …) is preserved
through extra so SDK-owned protocol metadata is never dropped.
Fields§
§native_blocks: Option<Vec<Value>>§reasoning_content: Option<String>§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for ProviderReplay
impl Clone for ProviderReplay
Source§fn clone(&self) -> ProviderReplay
fn clone(&self) -> ProviderReplay
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 ProviderReplay
impl Debug for ProviderReplay
Source§impl Default for ProviderReplay
impl Default for ProviderReplay
Source§fn default() -> ProviderReplay
fn default() -> ProviderReplay
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderReplay
impl<'de> Deserialize<'de> for ProviderReplay
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 PartialEq for ProviderReplay
impl PartialEq for ProviderReplay
Source§fn eq(&self, other: &ProviderReplay) -> bool
fn eq(&self, other: &ProviderReplay) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderReplay
impl Serialize for ProviderReplay
impl StructuralPartialEq for ProviderReplay
Auto Trait Implementations§
impl Freeze for ProviderReplay
impl RefUnwindSafe for ProviderReplay
impl Send for ProviderReplay
impl Sync for ProviderReplay
impl Unpin for ProviderReplay
impl UnsafeUnpin for ProviderReplay
impl UnwindSafe for ProviderReplay
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