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
-
Constructor Summary
ConstructorsConstructorDescriptionAudioOutput(String id, String data, Long expiresAt, String transcript) Creates an instance of aAudioOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranscriptrecord component.
-
Constructor Details
-
AudioOutput
Creates an instance of aAudioOutputrecord class.- Parameters:
id- the value for theidrecord componentdata- the value for thedatarecord componentexpiresAt- the value for theexpiresAtrecord componenttranscript- the value for thetranscriptrecord component
-
-
Method Details
-
toString
-
hashCode
-
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
-
data
-
expiresAt
-
transcript
Returns the value of thetranscriptrecord component.- Returns:
- the value of the
transcriptrecord component
-