pub enum GenerationDelta {
Content {
content: String,
},
Thinking {
thinking: String,
},
ToolUse {
tool_use: GenerationDeltaToolUse,
},
Usage {
usage: LLMTokenUsage,
},
Metadata {
metadata: Value,
},
}Variants§
Content
Thinking
ToolUse
Fields
§
tool_use: GenerationDeltaToolUseUsage
Fields
§
usage: LLMTokenUsageMetadata
Trait Implementations§
Source§impl Clone for GenerationDelta
impl Clone for GenerationDelta
Source§fn clone(&self) -> GenerationDelta
fn clone(&self) -> GenerationDelta
Returns a duplicate of the value. Read more
1.0.0 · 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 GenerationDelta
impl Debug for GenerationDelta
Source§impl<'de> Deserialize<'de> for GenerationDelta
impl<'de> Deserialize<'de> for GenerationDelta
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 From<GenerationDelta> for ChatMessageDelta
impl From<GenerationDelta> for ChatMessageDelta
Source§fn from(delta: GenerationDelta) -> Self
fn from(delta: GenerationDelta) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenerationDelta
impl RefUnwindSafe for GenerationDelta
impl Send for GenerationDelta
impl Sync for GenerationDelta
impl Unpin for GenerationDelta
impl UnwindSafe for GenerationDelta
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