#[non_exhaustive]pub enum AggregatedEvent {
ModelStreamEvent(ModelStreamEvent),
ContentBlock(ContentBlock),
Done(StreamAggregatedResult),
}Expand description
An item of Model::stream_aggregated: a raw event, a completed block, or the final result.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ModelStreamEvent(ModelStreamEvent)
A provider event, passed through unchanged.
ContentBlock(ContentBlock)
A content block, emitted when the block completes.
Done(StreamAggregatedResult)
The final message, always the last item of a successful stream.
Trait Implementations§
Source§impl Clone for AggregatedEvent
impl Clone for AggregatedEvent
Source§impl Debug for AggregatedEvent
impl Debug for AggregatedEvent
Source§impl PartialEq for AggregatedEvent
impl PartialEq for AggregatedEvent
impl StructuralPartialEq for AggregatedEvent
Auto Trait Implementations§
impl !RefUnwindSafe for AggregatedEvent
impl !UnwindSafe for AggregatedEvent
impl Forget for AggregatedEvent
impl Freeze for AggregatedEventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<Citation>: Freeze,
PhantomData<CitationGeneratedContent>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<ToolResultContent>: Freeze,
*const ArcInner<dyn Error + Send + Sync> is !null: Freeze,
PhantomData<ArcInner<dyn Error + Send + Sync>>: Freeze,
PhantomData<GuardQualifier>: Freeze,
PhantomData<TextBlock>: Freeze,
PhantomData<ContentBlock>: Freeze,
impl Move for AggregatedEvent
impl Send for AggregatedEvent
impl Sync for AggregatedEvent
impl Unpin for AggregatedEvent
impl UnsafeUnpin for AggregatedEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<Citation>: UnsafeUnpin,
PhantomData<CitationGeneratedContent>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<ToolResultContent>: UnsafeUnpin,
*const ArcInner<dyn Error + Send + Sync> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Error + Send + Sync>>: UnsafeUnpin,
PhantomData<GuardQualifier>: UnsafeUnpin,
PhantomData<TextBlock>: UnsafeUnpin,
PhantomData<ContentBlock>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.