Class ResponseStreamEvent
-
- All Implemented Interfaces:
public final class ResponseStreamEventEmitted when there is a partial audio response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceResponseStreamEvent.VisitorAn interface that defines how to map each variant of ResponseStreamEvent to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<ResponseAudioDeltaEvent>audioDelta()Emitted when there is a partial audio response. final Optional<ResponseAudioDoneEvent>audioDone()Emitted when the audio response is complete. final Optional<ResponseAudioTranscriptDeltaEvent>audioTranscriptDelta()Emitted when there is a partial transcript of audio. final Optional<ResponseAudioTranscriptDoneEvent>audioTranscriptDone()Emitted when the full audio transcript is completed. final Optional<ResponseCodeInterpreterCallCodeDeltaEvent>codeInterpreterCallCodeDelta()Emitted when a partial code snippet is added by the code interpreter. final Optional<ResponseCodeInterpreterCallCodeDoneEvent>codeInterpreterCallCodeDone()Emitted when code snippet output is finalized by the code interpreter. final Optional<ResponseCodeInterpreterCallCompletedEvent>codeInterpreterCallCompleted()Emitted when the code interpreter call is completed. final Optional<ResponseCodeInterpreterCallInProgressEvent>codeInterpreterCallInProgress()Emitted when a code interpreter call is in progress. final Optional<ResponseCodeInterpreterCallInterpretingEvent>codeInterpreterCallInterpreting()Emitted when the code interpreter is actively interpreting the code snippet. final Optional<ResponseCompletedEvent>completed()Emitted when the model response is complete. final Optional<ResponseContentPartAddedEvent>contentPartAdded()Emitted when a new content part is added. final Optional<ResponseContentPartDoneEvent>contentPartDone()Emitted when a content part is done. final Optional<ResponseCreatedEvent>created()An event that is emitted when a response is created. final Optional<ResponseErrorEvent>error()Emitted when an error occurs. final Optional<ResponseFileSearchCallCompletedEvent>fileSearchCallCompleted()Emitted when a file search call is completed (results found). final Optional<ResponseFileSearchCallInProgressEvent>fileSearchCallInProgress()Emitted when a file search call is initiated. final Optional<ResponseFileSearchCallSearchingEvent>fileSearchCallSearching()Emitted when a file search is currently searching. final Optional<ResponseFunctionCallArgumentsDeltaEvent>functionCallArgumentsDelta()Emitted when there is a partial function-call arguments delta. final Optional<ResponseFunctionCallArgumentsDoneEvent>functionCallArgumentsDone()Emitted when function-call arguments are finalized. final Optional<ResponseInProgressEvent>inProgress()Emitted when the response is in progress. final Optional<ResponseFailedEvent>failed()An event that is emitted when a response fails. final Optional<ResponseIncompleteEvent>incomplete()An event that is emitted when a response finishes as incomplete. final Optional<ResponseOutputItemAddedEvent>outputItemAdded()Emitted when a new output item is added. final Optional<ResponseOutputItemDoneEvent>outputItemDone()Emitted when an output item is marked done. final Optional<ResponseReasoningSummaryPartAddedEvent>reasoningSummaryPartAdded()Emitted when a new reasoning summary part is added. final Optional<ResponseReasoningSummaryPartDoneEvent>reasoningSummaryPartDone()Emitted when a reasoning summary part is completed. final Optional<ResponseReasoningSummaryTextDeltaEvent>reasoningSummaryTextDelta()Emitted when a delta is added to a reasoning summary text. final Optional<ResponseReasoningSummaryTextDoneEvent>reasoningSummaryTextDone()Emitted when a reasoning summary text is completed. final Optional<ResponseRefusalDeltaEvent>refusalDelta()Emitted when there is a partial refusal text. final Optional<ResponseRefusalDoneEvent>refusalDone()Emitted when refusal text is finalized. final Optional<ResponseTextAnnotationDeltaEvent>outputTextAnnotationAdded()Emitted when a text annotation is added. final Optional<ResponseTextDeltaEvent>outputTextDelta()Emitted when there is an additional text delta. final Optional<ResponseTextDoneEvent>outputTextDone()Emitted when text content is finalized. final Optional<ResponseWebSearchCallCompletedEvent>webSearchCallCompleted()Emitted when a web search call is completed. final Optional<ResponseWebSearchCallInProgressEvent>webSearchCallInProgress()Emitted when a web search call is initiated. final Optional<ResponseWebSearchCallSearchingEvent>webSearchCallSearching()Emitted when a web search call is executing. final BooleanisAudioDelta()final BooleanisAudioDone()final BooleanisAudioTranscriptDelta()final BooleanisAudioTranscriptDone()final BooleanisCodeInterpreterCallCodeDelta()final BooleanisCodeInterpreterCallCodeDone()final BooleanisCodeInterpreterCallCompleted()final BooleanisCodeInterpreterCallInProgress()final BooleanisCodeInterpreterCallInterpreting()final BooleanisCompleted()final BooleanisContentPartAdded()final BooleanisContentPartDone()final BooleanisCreated()final BooleanisError()final BooleanisFileSearchCallCompleted()final BooleanisFileSearchCallInProgress()final BooleanisFileSearchCallSearching()final BooleanisFunctionCallArgumentsDelta()final BooleanisFunctionCallArgumentsDone()final BooleanisInProgress()final BooleanisFailed()final BooleanisIncomplete()final BooleanisOutputItemAdded()final BooleanisOutputItemDone()final BooleanisReasoningSummaryPartAdded()final BooleanisReasoningSummaryPartDone()final BooleanisReasoningSummaryTextDelta()final BooleanisReasoningSummaryTextDone()final BooleanisRefusalDelta()final BooleanisRefusalDone()final BooleanisOutputTextAnnotationAdded()final BooleanisOutputTextDelta()final BooleanisOutputTextDone()final BooleanisWebSearchCallCompleted()final BooleanisWebSearchCallInProgress()final BooleanisWebSearchCallSearching()final ResponseAudioDeltaEventasAudioDelta()Emitted when there is a partial audio response. final ResponseAudioDoneEventasAudioDone()Emitted when the audio response is complete. final ResponseAudioTranscriptDeltaEventasAudioTranscriptDelta()Emitted when there is a partial transcript of audio. final ResponseAudioTranscriptDoneEventasAudioTranscriptDone()Emitted when the full audio transcript is completed. final ResponseCodeInterpreterCallCodeDeltaEventasCodeInterpreterCallCodeDelta()Emitted when a partial code snippet is added by the code interpreter. final ResponseCodeInterpreterCallCodeDoneEventasCodeInterpreterCallCodeDone()Emitted when code snippet output is finalized by the code interpreter. final ResponseCodeInterpreterCallCompletedEventasCodeInterpreterCallCompleted()Emitted when the code interpreter call is completed. final ResponseCodeInterpreterCallInProgressEventasCodeInterpreterCallInProgress()Emitted when a code interpreter call is in progress. final ResponseCodeInterpreterCallInterpretingEventasCodeInterpreterCallInterpreting()Emitted when the code interpreter is actively interpreting the code snippet. final ResponseCompletedEventasCompleted()Emitted when the model response is complete. final ResponseContentPartAddedEventasContentPartAdded()Emitted when a new content part is added. final ResponseContentPartDoneEventasContentPartDone()Emitted when a content part is done. final ResponseCreatedEventasCreated()An event that is emitted when a response is created. final ResponseErrorEventasError()Emitted when an error occurs. final ResponseFileSearchCallCompletedEventasFileSearchCallCompleted()Emitted when a file search call is completed (results found). final ResponseFileSearchCallInProgressEventasFileSearchCallInProgress()Emitted when a file search call is initiated. final ResponseFileSearchCallSearchingEventasFileSearchCallSearching()Emitted when a file search is currently searching. final ResponseFunctionCallArgumentsDeltaEventasFunctionCallArgumentsDelta()Emitted when there is a partial function-call arguments delta. final ResponseFunctionCallArgumentsDoneEventasFunctionCallArgumentsDone()Emitted when function-call arguments are finalized. final ResponseInProgressEventasInProgress()Emitted when the response is in progress. final ResponseFailedEventasFailed()An event that is emitted when a response fails. final ResponseIncompleteEventasIncomplete()An event that is emitted when a response finishes as incomplete. final ResponseOutputItemAddedEventasOutputItemAdded()Emitted when a new output item is added. final ResponseOutputItemDoneEventasOutputItemDone()Emitted when an output item is marked done. final ResponseReasoningSummaryPartAddedEventasReasoningSummaryPartAdded()Emitted when a new reasoning summary part is added. final ResponseReasoningSummaryPartDoneEventasReasoningSummaryPartDone()Emitted when a reasoning summary part is completed. final ResponseReasoningSummaryTextDeltaEventasReasoningSummaryTextDelta()Emitted when a delta is added to a reasoning summary text. final ResponseReasoningSummaryTextDoneEventasReasoningSummaryTextDone()Emitted when a reasoning summary text is completed. final ResponseRefusalDeltaEventasRefusalDelta()Emitted when there is a partial refusal text. final ResponseRefusalDoneEventasRefusalDone()Emitted when refusal text is finalized. final ResponseTextAnnotationDeltaEventasOutputTextAnnotationAdded()Emitted when a text annotation is added. final ResponseTextDeltaEventasOutputTextDelta()Emitted when there is an additional text delta. final ResponseTextDoneEventasOutputTextDone()Emitted when text content is finalized. final ResponseWebSearchCallCompletedEventasWebSearchCallCompleted()Emitted when a web search call is completed. final ResponseWebSearchCallInProgressEventasWebSearchCallInProgress()Emitted when a web search call is initiated. final ResponseWebSearchCallSearchingEventasWebSearchCallSearching()Emitted when a web search call is executing. final Optional<JsonValue>_json()final <T extends Any> Taccept(ResponseStreamEvent.Visitor<T> visitor)final ResponseStreamEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseStreamEventofAudioDelta(ResponseAudioDeltaEvent audioDelta)Emitted when there is a partial audio response. final static ResponseStreamEventofAudioDone(ResponseAudioDoneEvent audioDone)Emitted when the audio response is complete. final static ResponseStreamEventofAudioTranscriptDelta(ResponseAudioTranscriptDeltaEvent audioTranscriptDelta)Emitted when there is a partial transcript of audio. final static ResponseStreamEventofAudioTranscriptDone(ResponseAudioTranscriptDoneEvent audioTranscriptDone)Emitted when the full audio transcript is completed. final static ResponseStreamEventofCodeInterpreterCallCodeDelta(ResponseCodeInterpreterCallCodeDeltaEvent codeInterpreterCallCodeDelta)Emitted when a partial code snippet is added by the code interpreter. final static ResponseStreamEventofCodeInterpreterCallCodeDone(ResponseCodeInterpreterCallCodeDoneEvent codeInterpreterCallCodeDone)Emitted when code snippet output is finalized by the code interpreter. final static ResponseStreamEventofCodeInterpreterCallCompleted(ResponseCodeInterpreterCallCompletedEvent codeInterpreterCallCompleted)Emitted when the code interpreter call is completed. final static ResponseStreamEventofCodeInterpreterCallInProgress(ResponseCodeInterpreterCallInProgressEvent codeInterpreterCallInProgress)Emitted when a code interpreter call is in progress. final static ResponseStreamEventofCodeInterpreterCallInterpreting(ResponseCodeInterpreterCallInterpretingEvent codeInterpreterCallInterpreting)Emitted when the code interpreter is actively interpreting the code snippet. final static ResponseStreamEventofCompleted(ResponseCompletedEvent completed)Emitted when the model response is complete. final static ResponseStreamEventofContentPartAdded(ResponseContentPartAddedEvent contentPartAdded)Emitted when a new content part is added. final static ResponseStreamEventofContentPartDone(ResponseContentPartDoneEvent contentPartDone)Emitted when a content part is done. final static ResponseStreamEventofCreated(ResponseCreatedEvent created)An event that is emitted when a response is created. final static ResponseStreamEventofError(ResponseErrorEvent error)Emitted when an error occurs. final static ResponseStreamEventofFileSearchCallCompleted(ResponseFileSearchCallCompletedEvent fileSearchCallCompleted)Emitted when a file search call is completed (results found). final static ResponseStreamEventofFileSearchCallInProgress(ResponseFileSearchCallInProgressEvent fileSearchCallInProgress)Emitted when a file search call is initiated. final static ResponseStreamEventofFileSearchCallSearching(ResponseFileSearchCallSearchingEvent fileSearchCallSearching)Emitted when a file search is currently searching. final static ResponseStreamEventofFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDeltaEvent functionCallArgumentsDelta)Emitted when there is a partial function-call arguments delta. final static ResponseStreamEventofFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDoneEvent functionCallArgumentsDone)Emitted when function-call arguments are finalized. final static ResponseStreamEventofInProgress(ResponseInProgressEvent inProgress)Emitted when the response is in progress. final static ResponseStreamEventofFailed(ResponseFailedEvent failed)An event that is emitted when a response fails. final static ResponseStreamEventofIncomplete(ResponseIncompleteEvent incomplete)An event that is emitted when a response finishes as incomplete. final static ResponseStreamEventofOutputItemAdded(ResponseOutputItemAddedEvent outputItemAdded)Emitted when a new output item is added. final static ResponseStreamEventofOutputItemDone(ResponseOutputItemDoneEvent outputItemDone)Emitted when an output item is marked done. final static ResponseStreamEventofReasoningSummaryPartAdded(ResponseReasoningSummaryPartAddedEvent reasoningSummaryPartAdded)Emitted when a new reasoning summary part is added. final static ResponseStreamEventofReasoningSummaryPartDone(ResponseReasoningSummaryPartDoneEvent reasoningSummaryPartDone)Emitted when a reasoning summary part is completed. final static ResponseStreamEventofReasoningSummaryTextDelta(ResponseReasoningSummaryTextDeltaEvent reasoningSummaryTextDelta)Emitted when a delta is added to a reasoning summary text. final static ResponseStreamEventofReasoningSummaryTextDone(ResponseReasoningSummaryTextDoneEvent reasoningSummaryTextDone)Emitted when a reasoning summary text is completed. final static ResponseStreamEventofRefusalDelta(ResponseRefusalDeltaEvent refusalDelta)Emitted when there is a partial refusal text. final static ResponseStreamEventofRefusalDone(ResponseRefusalDoneEvent refusalDone)Emitted when refusal text is finalized. final static ResponseStreamEventofOutputTextAnnotationAdded(ResponseTextAnnotationDeltaEvent outputTextAnnotationAdded)Emitted when a text annotation is added. final static ResponseStreamEventofOutputTextDelta(ResponseTextDeltaEvent outputTextDelta)Emitted when there is an additional text delta. final static ResponseStreamEventofOutputTextDone(ResponseTextDoneEvent outputTextDone)Emitted when text content is finalized. final static ResponseStreamEventofWebSearchCallCompleted(ResponseWebSearchCallCompletedEvent webSearchCallCompleted)Emitted when a web search call is completed. final static ResponseStreamEventofWebSearchCallInProgress(ResponseWebSearchCallInProgressEvent webSearchCallInProgress)Emitted when a web search call is initiated. final static ResponseStreamEventofWebSearchCallSearching(ResponseWebSearchCallSearchingEvent webSearchCallSearching)Emitted when a web search call is executing. -
-
Method Detail
-
audioDelta
final Optional<ResponseAudioDeltaEvent> audioDelta()
Emitted when there is a partial audio response.
-
audioDone
final Optional<ResponseAudioDoneEvent> audioDone()
Emitted when the audio response is complete.
-
audioTranscriptDelta
final Optional<ResponseAudioTranscriptDeltaEvent> audioTranscriptDelta()
Emitted when there is a partial transcript of audio.
-
audioTranscriptDone
final Optional<ResponseAudioTranscriptDoneEvent> audioTranscriptDone()
Emitted when the full audio transcript is completed.
-
codeInterpreterCallCodeDelta
final Optional<ResponseCodeInterpreterCallCodeDeltaEvent> codeInterpreterCallCodeDelta()
Emitted when a partial code snippet is added by the code interpreter.
-
codeInterpreterCallCodeDone
final Optional<ResponseCodeInterpreterCallCodeDoneEvent> codeInterpreterCallCodeDone()
Emitted when code snippet output is finalized by the code interpreter.
-
codeInterpreterCallCompleted
final Optional<ResponseCodeInterpreterCallCompletedEvent> codeInterpreterCallCompleted()
Emitted when the code interpreter call is completed.
-
codeInterpreterCallInProgress
final Optional<ResponseCodeInterpreterCallInProgressEvent> codeInterpreterCallInProgress()
Emitted when a code interpreter call is in progress.
-
codeInterpreterCallInterpreting
final Optional<ResponseCodeInterpreterCallInterpretingEvent> codeInterpreterCallInterpreting()
Emitted when the code interpreter is actively interpreting the code snippet.
-
completed
final Optional<ResponseCompletedEvent> completed()
Emitted when the model response is complete.
-
contentPartAdded
final Optional<ResponseContentPartAddedEvent> contentPartAdded()
Emitted when a new content part is added.
-
contentPartDone
final Optional<ResponseContentPartDoneEvent> contentPartDone()
Emitted when a content part is done.
-
created
final Optional<ResponseCreatedEvent> created()
An event that is emitted when a response is created.
-
error
final Optional<ResponseErrorEvent> error()
Emitted when an error occurs.
-
fileSearchCallCompleted
final Optional<ResponseFileSearchCallCompletedEvent> fileSearchCallCompleted()
Emitted when a file search call is completed (results found).
-
fileSearchCallInProgress
final Optional<ResponseFileSearchCallInProgressEvent> fileSearchCallInProgress()
Emitted when a file search call is initiated.
-
fileSearchCallSearching
final Optional<ResponseFileSearchCallSearchingEvent> fileSearchCallSearching()
Emitted when a file search is currently searching.
-
functionCallArgumentsDelta
final Optional<ResponseFunctionCallArgumentsDeltaEvent> functionCallArgumentsDelta()
Emitted when there is a partial function-call arguments delta.
-
functionCallArgumentsDone
final Optional<ResponseFunctionCallArgumentsDoneEvent> functionCallArgumentsDone()
Emitted when function-call arguments are finalized.
-
inProgress
final Optional<ResponseInProgressEvent> inProgress()
Emitted when the response is in progress.
-
failed
final Optional<ResponseFailedEvent> failed()
An event that is emitted when a response fails.
-
incomplete
final Optional<ResponseIncompleteEvent> incomplete()
An event that is emitted when a response finishes as incomplete.
-
outputItemAdded
final Optional<ResponseOutputItemAddedEvent> outputItemAdded()
Emitted when a new output item is added.
-
outputItemDone
final Optional<ResponseOutputItemDoneEvent> outputItemDone()
Emitted when an output item is marked done.
-
reasoningSummaryPartAdded
final Optional<ResponseReasoningSummaryPartAddedEvent> reasoningSummaryPartAdded()
Emitted when a new reasoning summary part is added.
-
reasoningSummaryPartDone
final Optional<ResponseReasoningSummaryPartDoneEvent> reasoningSummaryPartDone()
Emitted when a reasoning summary part is completed.
-
reasoningSummaryTextDelta
final Optional<ResponseReasoningSummaryTextDeltaEvent> reasoningSummaryTextDelta()
Emitted when a delta is added to a reasoning summary text.
-
reasoningSummaryTextDone
final Optional<ResponseReasoningSummaryTextDoneEvent> reasoningSummaryTextDone()
Emitted when a reasoning summary text is completed.
-
refusalDelta
final Optional<ResponseRefusalDeltaEvent> refusalDelta()
Emitted when there is a partial refusal text.
-
refusalDone
final Optional<ResponseRefusalDoneEvent> refusalDone()
Emitted when refusal text is finalized.
-
outputTextAnnotationAdded
final Optional<ResponseTextAnnotationDeltaEvent> outputTextAnnotationAdded()
Emitted when a text annotation is added.
-
outputTextDelta
final Optional<ResponseTextDeltaEvent> outputTextDelta()
Emitted when there is an additional text delta.
-
outputTextDone
final Optional<ResponseTextDoneEvent> outputTextDone()
Emitted when text content is finalized.
-
webSearchCallCompleted
final Optional<ResponseWebSearchCallCompletedEvent> webSearchCallCompleted()
Emitted when a web search call is completed.
-
webSearchCallInProgress
final Optional<ResponseWebSearchCallInProgressEvent> webSearchCallInProgress()
Emitted when a web search call is initiated.
-
webSearchCallSearching
final Optional<ResponseWebSearchCallSearchingEvent> webSearchCallSearching()
Emitted when a web search call is executing.
-
isAudioDelta
final Boolean isAudioDelta()
-
isAudioDone
final Boolean isAudioDone()
-
isAudioTranscriptDelta
final Boolean isAudioTranscriptDelta()
-
isAudioTranscriptDone
final Boolean isAudioTranscriptDone()
-
isCodeInterpreterCallCodeDelta
final Boolean isCodeInterpreterCallCodeDelta()
-
isCodeInterpreterCallCodeDone
final Boolean isCodeInterpreterCallCodeDone()
-
isCodeInterpreterCallCompleted
final Boolean isCodeInterpreterCallCompleted()
-
isCodeInterpreterCallInProgress
final Boolean isCodeInterpreterCallInProgress()
-
isCodeInterpreterCallInterpreting
final Boolean isCodeInterpreterCallInterpreting()
-
isCompleted
final Boolean isCompleted()
-
isContentPartAdded
final Boolean isContentPartAdded()
-
isContentPartDone
final Boolean isContentPartDone()
-
isFileSearchCallCompleted
final Boolean isFileSearchCallCompleted()
-
isFileSearchCallInProgress
final Boolean isFileSearchCallInProgress()
-
isFileSearchCallSearching
final Boolean isFileSearchCallSearching()
-
isFunctionCallArgumentsDelta
final Boolean isFunctionCallArgumentsDelta()
-
isFunctionCallArgumentsDone
final Boolean isFunctionCallArgumentsDone()
-
isInProgress
final Boolean isInProgress()
-
isIncomplete
final Boolean isIncomplete()
-
isOutputItemAdded
final Boolean isOutputItemAdded()
-
isOutputItemDone
final Boolean isOutputItemDone()
-
isReasoningSummaryPartAdded
final Boolean isReasoningSummaryPartAdded()
-
isReasoningSummaryPartDone
final Boolean isReasoningSummaryPartDone()
-
isReasoningSummaryTextDelta
final Boolean isReasoningSummaryTextDelta()
-
isReasoningSummaryTextDone
final Boolean isReasoningSummaryTextDone()
-
isRefusalDelta
final Boolean isRefusalDelta()
-
isRefusalDone
final Boolean isRefusalDone()
-
isOutputTextAnnotationAdded
final Boolean isOutputTextAnnotationAdded()
-
isOutputTextDelta
final Boolean isOutputTextDelta()
-
isOutputTextDone
final Boolean isOutputTextDone()
-
isWebSearchCallCompleted
final Boolean isWebSearchCallCompleted()
-
isWebSearchCallInProgress
final Boolean isWebSearchCallInProgress()
-
isWebSearchCallSearching
final Boolean isWebSearchCallSearching()
-
asAudioDelta
final ResponseAudioDeltaEvent asAudioDelta()
Emitted when there is a partial audio response.
-
asAudioDone
final ResponseAudioDoneEvent asAudioDone()
Emitted when the audio response is complete.
-
asAudioTranscriptDelta
final ResponseAudioTranscriptDeltaEvent asAudioTranscriptDelta()
Emitted when there is a partial transcript of audio.
-
asAudioTranscriptDone
final ResponseAudioTranscriptDoneEvent asAudioTranscriptDone()
Emitted when the full audio transcript is completed.
-
asCodeInterpreterCallCodeDelta
final ResponseCodeInterpreterCallCodeDeltaEvent asCodeInterpreterCallCodeDelta()
Emitted when a partial code snippet is added by the code interpreter.
-
asCodeInterpreterCallCodeDone
final ResponseCodeInterpreterCallCodeDoneEvent asCodeInterpreterCallCodeDone()
Emitted when code snippet output is finalized by the code interpreter.
-
asCodeInterpreterCallCompleted
final ResponseCodeInterpreterCallCompletedEvent asCodeInterpreterCallCompleted()
Emitted when the code interpreter call is completed.
-
asCodeInterpreterCallInProgress
final ResponseCodeInterpreterCallInProgressEvent asCodeInterpreterCallInProgress()
Emitted when a code interpreter call is in progress.
-
asCodeInterpreterCallInterpreting
final ResponseCodeInterpreterCallInterpretingEvent asCodeInterpreterCallInterpreting()
Emitted when the code interpreter is actively interpreting the code snippet.
-
asCompleted
final ResponseCompletedEvent asCompleted()
Emitted when the model response is complete.
-
asContentPartAdded
final ResponseContentPartAddedEvent asContentPartAdded()
Emitted when a new content part is added.
-
asContentPartDone
final ResponseContentPartDoneEvent asContentPartDone()
Emitted when a content part is done.
-
asCreated
final ResponseCreatedEvent asCreated()
An event that is emitted when a response is created.
-
asError
final ResponseErrorEvent asError()
Emitted when an error occurs.
-
asFileSearchCallCompleted
final ResponseFileSearchCallCompletedEvent asFileSearchCallCompleted()
Emitted when a file search call is completed (results found).
-
asFileSearchCallInProgress
final ResponseFileSearchCallInProgressEvent asFileSearchCallInProgress()
Emitted when a file search call is initiated.
-
asFileSearchCallSearching
final ResponseFileSearchCallSearchingEvent asFileSearchCallSearching()
Emitted when a file search is currently searching.
-
asFunctionCallArgumentsDelta
final ResponseFunctionCallArgumentsDeltaEvent asFunctionCallArgumentsDelta()
Emitted when there is a partial function-call arguments delta.
-
asFunctionCallArgumentsDone
final ResponseFunctionCallArgumentsDoneEvent asFunctionCallArgumentsDone()
Emitted when function-call arguments are finalized.
-
asInProgress
final ResponseInProgressEvent asInProgress()
Emitted when the response is in progress.
-
asFailed
final ResponseFailedEvent asFailed()
An event that is emitted when a response fails.
-
asIncomplete
final ResponseIncompleteEvent asIncomplete()
An event that is emitted when a response finishes as incomplete.
-
asOutputItemAdded
final ResponseOutputItemAddedEvent asOutputItemAdded()
Emitted when a new output item is added.
-
asOutputItemDone
final ResponseOutputItemDoneEvent asOutputItemDone()
Emitted when an output item is marked done.
-
asReasoningSummaryPartAdded
final ResponseReasoningSummaryPartAddedEvent asReasoningSummaryPartAdded()
Emitted when a new reasoning summary part is added.
-
asReasoningSummaryPartDone
final ResponseReasoningSummaryPartDoneEvent asReasoningSummaryPartDone()
Emitted when a reasoning summary part is completed.
-
asReasoningSummaryTextDelta
final ResponseReasoningSummaryTextDeltaEvent asReasoningSummaryTextDelta()
Emitted when a delta is added to a reasoning summary text.
-
asReasoningSummaryTextDone
final ResponseReasoningSummaryTextDoneEvent asReasoningSummaryTextDone()
Emitted when a reasoning summary text is completed.
-
asRefusalDelta
final ResponseRefusalDeltaEvent asRefusalDelta()
Emitted when there is a partial refusal text.
-
asRefusalDone
final ResponseRefusalDoneEvent asRefusalDone()
Emitted when refusal text is finalized.
-
asOutputTextAnnotationAdded
final ResponseTextAnnotationDeltaEvent asOutputTextAnnotationAdded()
Emitted when a text annotation is added.
-
asOutputTextDelta
final ResponseTextDeltaEvent asOutputTextDelta()
Emitted when there is an additional text delta.
-
asOutputTextDone
final ResponseTextDoneEvent asOutputTextDone()
Emitted when text content is finalized.
-
asWebSearchCallCompleted
final ResponseWebSearchCallCompletedEvent asWebSearchCallCompleted()
Emitted when a web search call is completed.
-
asWebSearchCallInProgress
final ResponseWebSearchCallInProgressEvent asWebSearchCallInProgress()
Emitted when a web search call is initiated.
-
asWebSearchCallSearching
final ResponseWebSearchCallSearchingEvent asWebSearchCallSearching()
Emitted when a web search call is executing.
-
accept
final <T extends Any> T accept(ResponseStreamEvent.Visitor<T> visitor)
-
validate
final ResponseStreamEvent validate()
-
ofAudioDelta
final static ResponseStreamEvent ofAudioDelta(ResponseAudioDeltaEvent audioDelta)
Emitted when there is a partial audio response.
-
ofAudioDone
final static ResponseStreamEvent ofAudioDone(ResponseAudioDoneEvent audioDone)
Emitted when the audio response is complete.
-
ofAudioTranscriptDelta
final static ResponseStreamEvent ofAudioTranscriptDelta(ResponseAudioTranscriptDeltaEvent audioTranscriptDelta)
Emitted when there is a partial transcript of audio.
-
ofAudioTranscriptDone
final static ResponseStreamEvent ofAudioTranscriptDone(ResponseAudioTranscriptDoneEvent audioTranscriptDone)
Emitted when the full audio transcript is completed.
-
ofCodeInterpreterCallCodeDelta
final static ResponseStreamEvent ofCodeInterpreterCallCodeDelta(ResponseCodeInterpreterCallCodeDeltaEvent codeInterpreterCallCodeDelta)
Emitted when a partial code snippet is added by the code interpreter.
-
ofCodeInterpreterCallCodeDone
final static ResponseStreamEvent ofCodeInterpreterCallCodeDone(ResponseCodeInterpreterCallCodeDoneEvent codeInterpreterCallCodeDone)
Emitted when code snippet output is finalized by the code interpreter.
-
ofCodeInterpreterCallCompleted
final static ResponseStreamEvent ofCodeInterpreterCallCompleted(ResponseCodeInterpreterCallCompletedEvent codeInterpreterCallCompleted)
Emitted when the code interpreter call is completed.
-
ofCodeInterpreterCallInProgress
final static ResponseStreamEvent ofCodeInterpreterCallInProgress(ResponseCodeInterpreterCallInProgressEvent codeInterpreterCallInProgress)
Emitted when a code interpreter call is in progress.
-
ofCodeInterpreterCallInterpreting
final static ResponseStreamEvent ofCodeInterpreterCallInterpreting(ResponseCodeInterpreterCallInterpretingEvent codeInterpreterCallInterpreting)
Emitted when the code interpreter is actively interpreting the code snippet.
-
ofCompleted
final static ResponseStreamEvent ofCompleted(ResponseCompletedEvent completed)
Emitted when the model response is complete.
-
ofContentPartAdded
final static ResponseStreamEvent ofContentPartAdded(ResponseContentPartAddedEvent contentPartAdded)
Emitted when a new content part is added.
-
ofContentPartDone
final static ResponseStreamEvent ofContentPartDone(ResponseContentPartDoneEvent contentPartDone)
Emitted when a content part is done.
-
ofCreated
final static ResponseStreamEvent ofCreated(ResponseCreatedEvent created)
An event that is emitted when a response is created.
-
ofError
final static ResponseStreamEvent ofError(ResponseErrorEvent error)
Emitted when an error occurs.
-
ofFileSearchCallCompleted
final static ResponseStreamEvent ofFileSearchCallCompleted(ResponseFileSearchCallCompletedEvent fileSearchCallCompleted)
Emitted when a file search call is completed (results found).
-
ofFileSearchCallInProgress
final static ResponseStreamEvent ofFileSearchCallInProgress(ResponseFileSearchCallInProgressEvent fileSearchCallInProgress)
Emitted when a file search call is initiated.
-
ofFileSearchCallSearching
final static ResponseStreamEvent ofFileSearchCallSearching(ResponseFileSearchCallSearchingEvent fileSearchCallSearching)
Emitted when a file search is currently searching.
-
ofFunctionCallArgumentsDelta
final static ResponseStreamEvent ofFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDeltaEvent functionCallArgumentsDelta)
Emitted when there is a partial function-call arguments delta.
-
ofFunctionCallArgumentsDone
final static ResponseStreamEvent ofFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDoneEvent functionCallArgumentsDone)
Emitted when function-call arguments are finalized.
-
ofInProgress
final static ResponseStreamEvent ofInProgress(ResponseInProgressEvent inProgress)
Emitted when the response is in progress.
-
ofFailed
final static ResponseStreamEvent ofFailed(ResponseFailedEvent failed)
An event that is emitted when a response fails.
-
ofIncomplete
final static ResponseStreamEvent ofIncomplete(ResponseIncompleteEvent incomplete)
An event that is emitted when a response finishes as incomplete.
-
ofOutputItemAdded
final static ResponseStreamEvent ofOutputItemAdded(ResponseOutputItemAddedEvent outputItemAdded)
Emitted when a new output item is added.
-
ofOutputItemDone
final static ResponseStreamEvent ofOutputItemDone(ResponseOutputItemDoneEvent outputItemDone)
Emitted when an output item is marked done.
-
ofReasoningSummaryPartAdded
final static ResponseStreamEvent ofReasoningSummaryPartAdded(ResponseReasoningSummaryPartAddedEvent reasoningSummaryPartAdded)
Emitted when a new reasoning summary part is added.
-
ofReasoningSummaryPartDone
final static ResponseStreamEvent ofReasoningSummaryPartDone(ResponseReasoningSummaryPartDoneEvent reasoningSummaryPartDone)
Emitted when a reasoning summary part is completed.
-
ofReasoningSummaryTextDelta
final static ResponseStreamEvent ofReasoningSummaryTextDelta(ResponseReasoningSummaryTextDeltaEvent reasoningSummaryTextDelta)
Emitted when a delta is added to a reasoning summary text.
-
ofReasoningSummaryTextDone
final static ResponseStreamEvent ofReasoningSummaryTextDone(ResponseReasoningSummaryTextDoneEvent reasoningSummaryTextDone)
Emitted when a reasoning summary text is completed.
-
ofRefusalDelta
final static ResponseStreamEvent ofRefusalDelta(ResponseRefusalDeltaEvent refusalDelta)
Emitted when there is a partial refusal text.
-
ofRefusalDone
final static ResponseStreamEvent ofRefusalDone(ResponseRefusalDoneEvent refusalDone)
Emitted when refusal text is finalized.
-
ofOutputTextAnnotationAdded
final static ResponseStreamEvent ofOutputTextAnnotationAdded(ResponseTextAnnotationDeltaEvent outputTextAnnotationAdded)
Emitted when a text annotation is added.
-
ofOutputTextDelta
final static ResponseStreamEvent ofOutputTextDelta(ResponseTextDeltaEvent outputTextDelta)
Emitted when there is an additional text delta.
-
ofOutputTextDone
final static ResponseStreamEvent ofOutputTextDone(ResponseTextDoneEvent outputTextDone)
Emitted when text content is finalized.
-
ofWebSearchCallCompleted
final static ResponseStreamEvent ofWebSearchCallCompleted(ResponseWebSearchCallCompletedEvent webSearchCallCompleted)
Emitted when a web search call is completed.
-
ofWebSearchCallInProgress
final static ResponseStreamEvent ofWebSearchCallInProgress(ResponseWebSearchCallInProgressEvent webSearchCallInProgress)
Emitted when a web search call is initiated.
-
ofWebSearchCallSearching
final static ResponseStreamEvent ofWebSearchCallSearching(ResponseWebSearchCallSearchingEvent webSearchCallSearching)
Emitted when a web search call is executing.
-
-
-
-