Class BetaResponseAudioDoneEvent
-
- All Implemented Interfaces:
public final class BetaResponseAudioDoneEventEmitted when the audio response is complete.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseAudioDoneEvent.BuilderA builder for BetaResponseAudioDoneEvent.
public final classBetaResponseAudioDoneEvent.AgentThe agent that owns this multi-agent streaming event.
-
Method Summary
Modifier and Type Method Description final LongsequenceNumber()The sequence number of the delta. final JsonValue_type()The type of the event. final Optional<BetaResponseAudioDoneEvent.Agent>agent()The agent that owns this multi-agent streaming event. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final JsonField<BetaResponseAudioDoneEvent.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseAudioDoneEvent.BuildertoBuilder()final BetaResponseAudioDoneEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseAudioDoneEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseAudioDoneEvent. -
-
Method Detail
-
sequenceNumber
final Long sequenceNumber()
The sequence number of the delta.
-
_type
final JsonValue _type()
The type of the event. Always
response.audio.done.Expected to always return the following:
JsonValue.from("response.audio.done")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseAudioDoneEvent.Agent> agent()
The agent that owns this multi-agent streaming event.
-
_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.
-
_agent
final JsonField<BetaResponseAudioDoneEvent.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseAudioDoneEvent.Builder toBuilder()
-
validate
final BetaResponseAudioDoneEvent 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 BetaResponseAudioDoneEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseAudioDoneEvent.
The following fields are required:
.sequenceNumber()
-
-
-
-