#[non_exhaustive]pub enum ReasoningChangeKind {
Started,
Content {
delta: String,
},
Ended,
EncryptedValue,
}Expand description
What happened to a reasoning message.
Started and Ended arrive once per id.
The protocol brackets a thought twice — REASONING_START opens the block and
REASONING_MESSAGE_START the message inside it, both under the same id, and
the two terminators close it the same way — but that is protocol framing, not
two things happening. A consumer that prints a finished thought prints it
once.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Started
The reasoning message was created.
Content
Reasoning text was appended.
Ended
The reasoning message was closed; no more content will arrive for it.
EncryptedValue
A provider’s opaque reasoning blob was attached.
Trait Implementations§
Source§impl Clone for ReasoningChangeKind
impl Clone for ReasoningChangeKind
Source§fn clone(&self) -> ReasoningChangeKind
fn clone(&self) -> ReasoningChangeKind
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 ReasoningChangeKind
impl Debug for ReasoningChangeKind
Source§impl PartialEq for ReasoningChangeKind
impl PartialEq for ReasoningChangeKind
Source§fn eq(&self, other: &ReasoningChangeKind) -> bool
fn eq(&self, other: &ReasoningChangeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReasoningChangeKind
Auto Trait Implementations§
impl Freeze for ReasoningChangeKind
impl RefUnwindSafe for ReasoningChangeKind
impl Send for ReasoningChangeKind
impl Sync for ReasoningChangeKind
impl Unpin for ReasoningChangeKind
impl UnsafeUnpin for ReasoningChangeKind
impl UnwindSafe for ReasoningChangeKind
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