pub enum ResponseStreamEvent {
Show 53 variants
    ResponseAudioDelta(ResponseAudioDeltaEvent),
    ResponseAudioDone(ResponseAudioDoneEvent),
    ResponseAudioTranscriptDelta(ResponseAudioTranscriptDeltaEvent),
    ResponseAudioTranscriptDone(ResponseAudioTranscriptDoneEvent),
    ResponseCodeInterpreterCallCodeDelta(ResponseCodeInterpreterCallCodeDeltaEvent),
    ResponseCodeInterpreterCallCodeDone(ResponseCodeInterpreterCallCodeDoneEvent),
    ResponseCodeInterpreterCallCompleted(ResponseCodeInterpreterCallCompletedEvent),
    ResponseCodeInterpreterCallInProgress(ResponseCodeInterpreterCallInProgressEvent),
    ResponseCodeInterpreterCallInterpreting(ResponseCodeInterpreterCallInterpretingEvent),
    ResponseCompleted(ResponseCompletedEvent),
    ResponseContentPartAdded(ResponseContentPartAddedEvent),
    ResponseContentPartDone(ResponseContentPartDoneEvent),
    ResponseCreated(ResponseCreatedEvent),
    Error(ResponseErrorEvent),
    ResponseFileSearchCallCompleted(ResponseFileSearchCallCompletedEvent),
    ResponseFileSearchCallInProgress(ResponseFileSearchCallInProgressEvent),
    ResponseFileSearchCallSearching(ResponseFileSearchCallSearchingEvent),
    ResponseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDeltaEvent),
    ResponseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDoneEvent),
    ResponseInProgress(ResponseInProgressEvent),
    ResponseFailed(ResponseFailedEvent),
    ResponseIncomplete(ResponseIncompleteEvent),
    ResponseOutputItemAdded(ResponseOutputItemAddedEvent),
    ResponseOutputItemDone(ResponseOutputItemDoneEvent),
    ResponseReasoningSummaryPartAdded(ResponseReasoningSummaryPartAddedEvent),
    ResponseReasoningSummaryPartDone(ResponseReasoningSummaryPartDoneEvent),
    ResponseReasoningSummaryTextDelta(ResponseReasoningSummaryTextDeltaEvent),
    ResponseReasoningSummaryTextDone(ResponseReasoningSummaryTextDoneEvent),
    ResponseReasoningTextDelta(ResponseReasoningTextDeltaEvent),
    ResponseReasoningTextDone(ResponseReasoningTextDoneEvent),
    ResponseRefusalDelta(ResponseRefusalDeltaEvent),
    ResponseRefusalDone(ResponseRefusalDoneEvent),
    ResponseOutputTextDelta(ResponseTextDeltaEvent),
    ResponseOutputTextDone(ResponseTextDoneEvent),
    ResponseWebSearchCallCompleted(ResponseWebSearchCallCompletedEvent),
    ResponseWebSearchCallInProgress(ResponseWebSearchCallInProgressEvent),
    ResponseWebSearchCallSearching(ResponseWebSearchCallSearchingEvent),
    ResponseImageGenerationCallCompleted(ResponseImageGenCallCompletedEvent),
    ResponseImageGenerationCallGenerating(ResponseImageGenCallGeneratingEvent),
    ResponseImageGenerationCallInProgress(ResponseImageGenCallInProgressEvent),
    ResponseImageGenerationCallPartialImage(ResponseImageGenCallPartialImageEvent),
    ResponseMcpCallArgumentsDelta(ResponseMcpCallArgumentsDeltaEvent),
    ResponseMcpCallArgumentsDone(ResponseMcpCallArgumentsDoneEvent),
    ResponseMcpCallCompleted(ResponseMcpCallCompletedEvent),
    ResponseMcpCallFailed(ResponseMcpCallFailedEvent),
    ResponseMcpCallInProgress(ResponseMcpCallInProgressEvent),
    ResponseMcpListToolsCompleted(ResponseMcpListToolsCompletedEvent),
    ResponseMcpListToolsFailed(ResponseMcpListToolsFailedEvent),
    ResponseMcpListToolsInProgress(ResponseMcpListToolsInProgressEvent),
    ResponseOutputTextAnnotationAdded(ResponseOutputTextAnnotationAddedEvent),
    ResponseQueued(ResponseQueuedEvent),
    ResponseCustomToolCallInputDelta(ResponseCustomToolCallInputDeltaEvent),
    ResponseCustomToolCallInputDone(ResponseCustomToolCallInputDoneEvent),
}Variants§
ResponseAudioDelta(ResponseAudioDeltaEvent)
ResponseAudioDone(ResponseAudioDoneEvent)
ResponseAudioTranscriptDelta(ResponseAudioTranscriptDeltaEvent)
ResponseAudioTranscriptDone(ResponseAudioTranscriptDoneEvent)
ResponseCodeInterpreterCallCodeDelta(ResponseCodeInterpreterCallCodeDeltaEvent)
ResponseCodeInterpreterCallCodeDone(ResponseCodeInterpreterCallCodeDoneEvent)
ResponseCodeInterpreterCallCompleted(ResponseCodeInterpreterCallCompletedEvent)
ResponseCodeInterpreterCallInProgress(ResponseCodeInterpreterCallInProgressEvent)
ResponseCodeInterpreterCallInterpreting(ResponseCodeInterpreterCallInterpretingEvent)
ResponseCompleted(ResponseCompletedEvent)
ResponseContentPartAdded(ResponseContentPartAddedEvent)
ResponseContentPartDone(ResponseContentPartDoneEvent)
ResponseCreated(ResponseCreatedEvent)
Error(ResponseErrorEvent)
ResponseFileSearchCallCompleted(ResponseFileSearchCallCompletedEvent)
ResponseFileSearchCallInProgress(ResponseFileSearchCallInProgressEvent)
ResponseFileSearchCallSearching(ResponseFileSearchCallSearchingEvent)
ResponseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDeltaEvent)
ResponseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDoneEvent)
ResponseInProgress(ResponseInProgressEvent)
ResponseFailed(ResponseFailedEvent)
ResponseIncomplete(ResponseIncompleteEvent)
ResponseOutputItemAdded(ResponseOutputItemAddedEvent)
ResponseOutputItemDone(ResponseOutputItemDoneEvent)
ResponseReasoningSummaryPartAdded(ResponseReasoningSummaryPartAddedEvent)
ResponseReasoningSummaryPartDone(ResponseReasoningSummaryPartDoneEvent)
ResponseReasoningSummaryTextDelta(ResponseReasoningSummaryTextDeltaEvent)
ResponseReasoningSummaryTextDone(ResponseReasoningSummaryTextDoneEvent)
ResponseReasoningTextDelta(ResponseReasoningTextDeltaEvent)
ResponseReasoningTextDone(ResponseReasoningTextDoneEvent)
ResponseRefusalDelta(ResponseRefusalDeltaEvent)
ResponseRefusalDone(ResponseRefusalDoneEvent)
ResponseOutputTextDelta(ResponseTextDeltaEvent)
ResponseOutputTextDone(ResponseTextDoneEvent)
ResponseWebSearchCallCompleted(ResponseWebSearchCallCompletedEvent)
ResponseWebSearchCallInProgress(ResponseWebSearchCallInProgressEvent)
ResponseWebSearchCallSearching(ResponseWebSearchCallSearchingEvent)
ResponseImageGenerationCallCompleted(ResponseImageGenCallCompletedEvent)
ResponseImageGenerationCallGenerating(ResponseImageGenCallGeneratingEvent)
ResponseImageGenerationCallInProgress(ResponseImageGenCallInProgressEvent)
ResponseImageGenerationCallPartialImage(ResponseImageGenCallPartialImageEvent)
ResponseMcpCallArgumentsDelta(ResponseMcpCallArgumentsDeltaEvent)
ResponseMcpCallArgumentsDone(ResponseMcpCallArgumentsDoneEvent)
ResponseMcpCallCompleted(ResponseMcpCallCompletedEvent)
ResponseMcpCallFailed(ResponseMcpCallFailedEvent)
ResponseMcpCallInProgress(ResponseMcpCallInProgressEvent)
ResponseMcpListToolsCompleted(ResponseMcpListToolsCompletedEvent)
ResponseMcpListToolsFailed(ResponseMcpListToolsFailedEvent)
ResponseMcpListToolsInProgress(ResponseMcpListToolsInProgressEvent)
ResponseOutputTextAnnotationAdded(ResponseOutputTextAnnotationAddedEvent)
ResponseQueued(ResponseQueuedEvent)
ResponseCustomToolCallInputDelta(ResponseCustomToolCallInputDeltaEvent)
ResponseCustomToolCallInputDone(ResponseCustomToolCallInputDoneEvent)
Trait Implementations§
Source§impl Clone for ResponseStreamEvent
 
impl Clone for ResponseStreamEvent
Source§fn clone(&self) -> ResponseStreamEvent
 
fn clone(&self) -> ResponseStreamEvent
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 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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more