pub enum AnthropicStreamEvent {
MessageStart {
message: AnthropicResponse,
},
ContentBlockStart {
index: u32,
content_block: AnthropicContentBlock,
},
ContentBlockDelta {
index: u32,
delta: BlockDelta,
},
ContentBlockStop {
index: u32,
},
MessageDelta {
delta: MessageDeltaPayload,
usage: AnthropicUsage,
},
MessageStop,
}Variants§
MessageStart
Fields
§
message: AnthropicResponseContentBlockStart
ContentBlockDelta
ContentBlockStop
MessageDelta
MessageStop
Implementations§
Source§impl AnthropicStreamEvent
impl AnthropicStreamEvent
pub fn to_ir_events(&self) -> Vec<StreamEvent>
Source§impl AnthropicStreamEvent
impl AnthropicStreamEvent
pub fn event_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for AnthropicStreamEvent
impl Clone for AnthropicStreamEvent
Source§fn clone(&self) -> AnthropicStreamEvent
fn clone(&self) -> AnthropicStreamEvent
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 AnthropicStreamEvent
impl Debug for AnthropicStreamEvent
Auto Trait Implementations§
impl Freeze for AnthropicStreamEvent
impl RefUnwindSafe for AnthropicStreamEvent
impl Send for AnthropicStreamEvent
impl Sync for AnthropicStreamEvent
impl Unpin for AnthropicStreamEvent
impl UnsafeUnpin for AnthropicStreamEvent
impl UnwindSafe for AnthropicStreamEvent
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