Class ResponseAudioDeltaEvent
-
- All Implemented Interfaces:
public final class ResponseAudioDeltaEventEmitted when there is a partial audio response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseAudioDeltaEvent.BuilderA builder for ResponseAudioDeltaEvent.
-
Method Summary
Modifier and Type Method Description final Stringdelta()A chunk of Base64 encoded response audio bytes. final LongsequenceNumber()A sequence number for this chunk of the stream response. final JsonValue_type()The type of the event. final JsonField<String>_delta()Returns the raw JSON value of delta. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final Map<String, JsonValue>_additionalProperties()final ResponseAudioDeltaEvent.BuildertoBuilder()final ResponseAudioDeltaEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseAudioDeltaEvent.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseAudioDeltaEvent. -
-
Method Detail
-
sequenceNumber
final Long sequenceNumber()
A sequence number for this chunk of the stream response.
-
_type
final JsonValue _type()
The type of the event. Always
response.audio.delta.Expected to always return the following:
JsonValue.from("response.audio.delta")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_delta
final JsonField<String> _delta()
Returns the raw JSON value of delta.
Unlike delta, this method doesn't throw if the JSON field has an unexpected type.
-
_sequenceNumber
final JsonField<Long> _sequenceNumber()
Returns the raw JSON value of sequenceNumber.
Unlike sequenceNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseAudioDeltaEvent.Builder toBuilder()
-
validate
final ResponseAudioDeltaEvent validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseAudioDeltaEvent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseAudioDeltaEvent.
The following fields are required:
.delta() .sequenceNumber()
-
-
-
-