Record Class MessageResponse
java.lang.Object
java.lang.Record
bg.codexio.ai.openai.api.payload.message.response.MessageResponse
- All Implemented Interfaces:
Mergeable<MessageResponse>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistantIdrecord component.content()Returns the value of thecontentrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.fileIds()Returns the value of thefileIdsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.merge(MessageResponse other) metadata()Returns the value of themetadatarecord component.object()Returns the value of theobjectrecord component.role()Returns the value of therolerecord component.runId()Returns the value of therunIdrecord component.threadId()Returns the value of thethreadIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageResponse
public MessageResponse(String id, String object, Integer createdAt, String threadId, String role, List<MessageContent> content, String assistantId, String runId, List<String> fileIds, Map<String, String> metadata) Creates an instance of aMessageResponserecord class.- Parameters:
id- the value for theidrecord componentobject- the value for theobjectrecord componentcreatedAt- the value for thecreatedAtrecord componentthreadId- the value for thethreadIdrecord componentrole- the value for therolerecord componentcontent- the value for thecontentrecord componentassistantId- the value for theassistantIdrecord componentrunId- the value for therunIdrecord componentfileIds- the value for thefileIdsrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
merge
- Specified by:
mergein interfaceMergeable<MessageResponse>
-
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
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
threadId
Returns the value of thethreadIdrecord component.- Returns:
- the value of the
threadIdrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
assistantId
Returns the value of theassistantIdrecord component.- Returns:
- the value of the
assistantIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
fileIds
Returns the value of thefileIdsrecord component.- Returns:
- the value of the
fileIdsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-