#[non_exhaustive]pub enum ReasoningChangeKind {
Aborted,
Started,
Content {
delta: String,
},
Ended,
EncryptedValue,
}Expand description
What happened to a reasoning message.
The message is what REASONING_MESSAGE_START, _CONTENT and _END
assemble. The span around it, REASONING_START to REASONING_END, opens
no message and reports no change, whether or not it carries the message’s
id. So Started and Ended arrive once
per message, and 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.
Aborted
Consumption stopped before this reasoning message completed.
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§impl Debug for ReasoningChangeKind
impl Debug for ReasoningChangeKind
Source§impl PartialEq for ReasoningChangeKind
impl PartialEq for ReasoningChangeKind
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