#[non_exhaustive]pub enum ResponseStreamEvent {
Show 24 variants
ResponseContentPartAdded(ResponseContentPartAddedEvent),
ResponseContentPartDone(ResponseContentPartDoneEvent),
ResponseCreated(ResponseCreatedEvent),
ResponseErrorEvent(ResponseErrorEvent),
ResponseFailed(ResponseFailedEvent),
ResponseFileSearchCallCompleted(ResponseFileSearchCallCompletedEvent),
ResponseFileSearchCallInProgress(ResponseFileSearchCallInProgressEvent),
ResponseFileSearchCallSearching(ResponseFileSearchCallSearchingEvent),
ResponseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDoneEvent),
ResponseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDeltaEvent),
ResponseIncomplete(ResponseIncompleteEvent),
ResponseInAnalysis(ResponseInProgressEvent),
ResponseInProgress(ResponseInProgressEvent),
ResponseOutputItemAdded(ResponseOutputItemAddedEvent),
ResponseOutputItemDone(ResponseOutputItemDoneEvent),
ResponseRefusalDone(ResponseRefusalDoneEvent),
ResponseRefusalDelta(ResponseRefusalDeltaEvent),
ResponseTextAnnotationDelta(ResponseTextAnnotationDeltaEvent),
ResponseTextDelta(ResponseTextDeltaEvent),
ResponseTextDone(ResponseTextDoneEvent),
ResponseWebSearchCallCompleted(ResponseWebSearchCallCompletedEvent),
ResponseWebSearchCallInProgress(ResponseWebSearchCallInProgressEvent),
ResponseWebSearchCallSearching(ResponseWebSearchCallSearchingEvent),
ResponseCompleted(ResponseCompletedEvent),
}Expand description
Represents an event emitted when streaming a Response.
Corresponds to the ResponseStreamEvent schema in the OpenAPI spec.
§Used By
api::responses::Responses::create_stream
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ResponseContentPartAdded(ResponseContentPartAddedEvent)
Emitted when a new content part is added.
ResponseContentPartDone(ResponseContentPartDoneEvent)
Emitted when a content part is done.
ResponseCreated(ResponseCreatedEvent)
Emitted when a response is created.
ResponseErrorEvent(ResponseErrorEvent)
Emitted when an error occurs.
ResponseFailed(ResponseFailedEvent)
Emitted when a response fails.
ResponseFileSearchCallCompleted(ResponseFileSearchCallCompletedEvent)
Emitted when a file search call is completed (results found).
ResponseFileSearchCallInProgress(ResponseFileSearchCallInProgressEvent)
Emitted when a file search call is initiated.
ResponseFileSearchCallSearching(ResponseFileSearchCallSearchingEvent)
Emitted when a file search is currently searching.
ResponseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDoneEvent)
Emitted when function-call arguments are finalized.
ResponseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDeltaEvent)
Emitted when there is a partial function-call arguments delta.
ResponseIncomplete(ResponseIncompleteEvent)
Emitted when a response finishes as incomplete.
ResponseInAnalysis(ResponseInProgressEvent)
Emitted when the response is in analysis.
ResponseInProgress(ResponseInProgressEvent)
Emitted when the response is in progress.
ResponseOutputItemAdded(ResponseOutputItemAddedEvent)
Emitted when a new output item is added.
ResponseOutputItemDone(ResponseOutputItemDoneEvent)
Emitted when an output item is marked done.
ResponseRefusalDone(ResponseRefusalDoneEvent)
Emitted when refusal text is finalized.
ResponseRefusalDelta(ResponseRefusalDeltaEvent)
Emitted when there is a partial refusal text.
ResponseTextAnnotationDelta(ResponseTextAnnotationDeltaEvent)
Emitted when text annotation is added.
ResponseTextDelta(ResponseTextDeltaEvent)
Emitted when there is an additional text delta.
ResponseTextDone(ResponseTextDoneEvent)
Emitted when text content is finalized.
ResponseWebSearchCallCompleted(ResponseWebSearchCallCompletedEvent)
Emitted when a web search call is completed.
ResponseWebSearchCallInProgress(ResponseWebSearchCallInProgressEvent)
Emitted when a web search call is initiated.
ResponseWebSearchCallSearching(ResponseWebSearchCallSearchingEvent)
Emitted when a web search call is executing.
ResponseCompleted(ResponseCompletedEvent)
Emitted when the model response is complete.
Trait Implementations§
Source§impl Clone for ResponseStreamEvent
impl Clone for ResponseStreamEvent
Source§fn clone(&self) -> ResponseStreamEvent
fn clone(&self) -> ResponseStreamEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseStreamEvent
impl Debug for ResponseStreamEvent
Source§impl<'de> Deserialize<'de> for ResponseStreamEvent
impl<'de> Deserialize<'de> for ResponseStreamEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ResponseStreamEvent
impl PartialEq for ResponseStreamEvent
Source§impl Serialize for ResponseStreamEvent
impl Serialize for ResponseStreamEvent
impl StructuralPartialEq for ResponseStreamEvent
Auto Trait Implementations§
impl Freeze for ResponseStreamEvent
impl RefUnwindSafe for ResponseStreamEvent
impl Send for ResponseStreamEvent
impl Sync for ResponseStreamEvent
impl Unpin for ResponseStreamEvent
impl UnwindSafe for ResponseStreamEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
Source§type Val = <C as Collection>::Val
type Val = <C as Collection>::Val
Entry in complex collections.
For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.Source§fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
Source§fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.
Source§type Entry = <C as CollectionValToEntry<Val>>::Entry
type Entry = <C as CollectionValToEntry<Val>>::Entry
Entry is defined by the Collection trait.