pub enum LLMResponseType {
StreamStart,
TextChunk,
ToolUseStart,
ToolInputDelta,
ToolUse,
ToolBatch,
Complete,
Error,
TokenUpdate,
}Expand description
Type of response from the LLM
Variants§
StreamStart
Stream has started (contains message_id, model)
TextChunk
A text chunk from streaming response
ToolUseStart
A tool use block has started (contains id, name)
ToolInputDelta
Incremental JSON for tool input
ToolUse
A single tool use request (complete)
ToolBatch
A batch of tool use requests
Complete
Response is complete
Error
An error occurred
TokenUpdate
Token usage update
Trait Implementations§
Source§impl Clone for LLMResponseType
impl Clone for LLMResponseType
Source§fn clone(&self) -> LLMResponseType
fn clone(&self) -> LLMResponseType
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 LLMResponseType
impl Debug for LLMResponseType
Source§impl Display for LLMResponseType
impl Display for LLMResponseType
Source§impl PartialEq for LLMResponseType
impl PartialEq for LLMResponseType
impl Copy for LLMResponseType
impl Eq for LLMResponseType
impl StructuralPartialEq for LLMResponseType
Auto Trait Implementations§
impl Freeze for LLMResponseType
impl RefUnwindSafe for LLMResponseType
impl Send for LLMResponseType
impl Sync for LLMResponseType
impl Unpin for LLMResponseType
impl UnwindSafe for LLMResponseType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.