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
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
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 theidrecord component.- Returns:
- the value of the
idrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
transcript
Returns the value of thetranscriptrecord component.- Returns:
- the value of the
transcriptrecord component
-