Record Class OpenAiApi.ChatCompletionMessage.AudioOutput
java.lang.Object
java.lang.Record
org.springframework.ai.openai.api.OpenAiApi.ChatCompletionMessage.AudioOutput
- Record Components:
id
- Unique identifier for the audio response from the model.data
- Audio output from the model.expiresAt
- When the audio content will no longer be available on the server.transcript
- Transcript of the audio output from the model.
- Enclosing class:
- OpenAiApi.ChatCompletionMessage
public static record OpenAiApi.ChatCompletionMessage.AudioOutput(String id, String data, Long expiresAt, String transcript)
extends Record
Audio response from the model.
-
Constructor Summary
ConstructorDescriptionAudioOutput
(String id, String data, Long expiresAt, String transcript) Creates an instance of aAudioOutput
record class. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpiresAt
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetranscript
record component.
-
Constructor Details
-
AudioOutput
Creates an instance of aAudioOutput
record class.- Parameters:
id
- the value for theid
record componentdata
- the value for thedata
record componentexpiresAt
- the value for theexpiresAt
record componenttranscript
- the value for thetranscript
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
expiresAt
Returns the value of theexpiresAt
record component.- Returns:
- the value of the
expiresAt
record component
-
transcript
Returns the value of thetranscript
record component.- Returns:
- the value of the
transcript
record component
-