pub enum StreamingChoice {
Message(String),
ToolCall(String, String, Value),
}Expand description
Enum representing a streaming chunk from the model
Variants§
Message(String)
A text chunk from a message response
ToolCall(String, String, Value)
A tool call response chunk
Trait Implementations§
Source§impl Debug for StreamingChoice
impl Debug for StreamingChoice
Auto Trait Implementations§
impl Freeze for StreamingChoice
impl RefUnwindSafe for StreamingChoice
impl Send for StreamingChoice
impl Sync for StreamingChoice
impl Unpin for StreamingChoice
impl UnwindSafe for StreamingChoice
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