pub enum CapabilityChunk {
Text(String),
Thinking(String),
Segment {
text: String,
start_ms: i64,
end_ms: i64,
},
Audio(AudioFrame),
Vector(Vec<f64>),
ToolCall(ToolCall),
Status(String),
Done(Option<GenerationStats>),
}Expand description
One item in a capability stream (chat, vision, speech, transcription, embeddings).
Variants§
Text(String)
Visible generated text.
Thinking(String)
Reasoning the runtime separated from the visible answer.
Segment
A transcription segment with its millisecond time span.
Audio(AudioFrame)
A raw audio payload at the handshake sample rate.
Vector(Vec<f64>)
An embedding vector.
ToolCall(ToolCall)
A tool call the model emitted.
Status(String)
A free-text status notice.
Done(Option<GenerationStats>)
The terminal marker, carrying stats when the runtime reported any.
Trait Implementations§
Source§impl Clone for CapabilityChunk
impl Clone for CapabilityChunk
Source§fn clone(&self) -> CapabilityChunk
fn clone(&self) -> CapabilityChunk
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 CapabilityChunk
impl Debug for CapabilityChunk
Source§impl PartialEq for CapabilityChunk
impl PartialEq for CapabilityChunk
impl StructuralPartialEq for CapabilityChunk
Auto Trait Implementations§
impl Freeze for CapabilityChunk
impl RefUnwindSafe for CapabilityChunk
impl Send for CapabilityChunk
impl Sync for CapabilityChunk
impl Unpin for CapabilityChunk
impl UnsafeUnpin for CapabilityChunk
impl UnwindSafe for CapabilityChunk
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