pub enum TextTurnEvent<T: Toolset> {
Started {
request_id: Option<String>,
model: String,
},
TextDelta {
delta: String,
},
ReasoningDelta {
delta: String,
},
RefusalDelta {
delta: String,
},
ToolCallChunk {
id: ToolCallId,
name: ToolName,
arguments_json_delta: String,
},
ToolCallReady(T::ToolCall),
Completed {
request_id: Option<String>,
finish_reason: FinishReason,
usage: Usage,
committed_turn: CommittedTurn,
},
}Variants§
Started
TextDelta
ReasoningDelta
RefusalDelta
ToolCallChunk
ToolCallReady(T::ToolCall)
Completed
Trait Implementations§
Source§impl<T: Clone + Toolset> Clone for TextTurnEvent<T>
impl<T: Clone + Toolset> Clone for TextTurnEvent<T>
Source§fn clone(&self) -> TextTurnEvent<T>
fn clone(&self) -> TextTurnEvent<T>
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<T> PartialEq for TextTurnEvent<T>
impl<T> PartialEq for TextTurnEvent<T>
Auto Trait Implementations§
impl<T> Freeze for TextTurnEvent<T>
impl<T> !RefUnwindSafe for TextTurnEvent<T>
impl<T> Send for TextTurnEvent<T>
impl<T> Sync for TextTurnEvent<T>
impl<T> Unpin for TextTurnEvent<T>
impl<T> UnsafeUnpin for TextTurnEvent<T>
impl<T> !UnwindSafe for TextTurnEvent<T>
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