pub struct ReasoningDetails(/* private fields */);Expand description
Ordered reasoning blocks, including signatures and opaque provider fields.
Implementations§
Source§impl ReasoningDetails
impl ReasoningDetails
Sourcepub fn from_blocks(blocks: impl IntoIterator<Item = Map<String, Value>>) -> Self
pub fn from_blocks(blocks: impl IntoIterator<Item = Map<String, Value>>) -> Self
Keep provider blocks without translating or dropping unknown fields.
pub fn iter(&self) -> impl Iterator<Item = &Map<String, Value>>
Sourcepub fn native(format: NativeReasoningFormat, items: Vec<Value>) -> Self
pub fn native(format: NativeReasoningFormat, items: Vec<Value>) -> Self
A provider’s complete native content or output item sequence.
pub fn native_items(&self, format: NativeReasoningFormat) -> Option<&[Value]>
Sourcepub fn chat_field(name: &str, text: &str) -> Self
pub fn chat_field(name: &str, text: &str) -> Self
Remember the exact field used by a compatible chat endpoint.
pub fn chat_fields(&self) -> impl Iterator<Item = (&str, &str)>
Sourcepub fn is_context_bound(&self) -> bool
pub fn is_context_bound(&self) -> bool
Signed and encrypted state must stay attached to its original request prefix.
pub fn is_empty(&self) -> bool
Sourcepub fn append(&mut self, delta: Self)
pub fn append(&mut self, delta: Self)
Assemble streamed fragments without changing the order of logical blocks.
Sourcepub fn estimated_bytes(&self) -> usize
pub fn estimated_bytes(&self) -> usize
Conservative size estimate, including opaque blocks sent back to the API.
Trait Implementations§
Source§impl Clone for ReasoningDetails
impl Clone for ReasoningDetails
Source§impl Debug for ReasoningDetails
impl Debug for ReasoningDetails
Source§impl Default for ReasoningDetails
impl Default for ReasoningDetails
Source§impl<'de> Deserialize<'de> for ReasoningDetails
impl<'de> Deserialize<'de> for ReasoningDetails
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 ReasoningDetails
Source§impl PartialEq for ReasoningDetails
impl PartialEq for ReasoningDetails
Source§impl Serialize for ReasoningDetails
impl Serialize for ReasoningDetails
impl StructuralPartialEq for ReasoningDetails
Auto Trait Implementations§
impl Forget for ReasoningDetails
impl Freeze for ReasoningDetails
impl Move for ReasoningDetails
impl RefUnwindSafe for ReasoningDetails
impl Send for ReasoningDetails
impl Sync for ReasoningDetails
impl Unpin for ReasoningDetails
impl UnsafeUnpin for ReasoningDetails
impl UnwindSafe for ReasoningDetails
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