Record Class UserInterruptMessage
java.lang.Object
java.lang.Record
ai.agentscentral.core.session.message.UserInterruptMessage
- Record Components:
contextId-messageId-interruptParameterValues-parts-timestamp-
- All Implemented Interfaces:
Message
public record UserInterruptMessage(String contextId, String messageId, Map<String,String> interruptParameterValues, MessagePart[] parts, long timestamp)
extends Record
implements Message
UserInterruptMessage
- Author:
- Rizwan Idrees
-
Constructor Summary
ConstructorsConstructorDescriptionUserInterruptMessage(String contextId, String messageId, Map<String, String> interruptParameterValues, MessagePart[] parts, long timestamp) Creates an instance of aUserInterruptMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterruptParameterValuesrecord component.Returns the value of themessageIdrecord component.parts()Returns the value of thepartsrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserInterruptMessage
public UserInterruptMessage(String contextId, String messageId, Map<String, String> interruptParameterValues, MessagePart[] parts, long timestamp) Creates an instance of aUserInterruptMessagerecord class.- Parameters:
contextId- the value for thecontextIdrecord componentmessageId- the value for themessageIdrecord componentinterruptParameterValues- the value for theinterruptParameterValuesrecord componentparts- the value for thepartsrecord componenttimestamp- the value for thetimestamprecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
contextId
Returns the value of thecontextIdrecord component. -
messageId
Returns the value of themessageIdrecord component. -
interruptParameterValues
Returns the value of theinterruptParameterValuesrecord component.- Returns:
- the value of the
interruptParameterValuesrecord component
-
parts
Returns the value of thepartsrecord component. -
timestamp
public long timestamp()Returns the value of thetimestamprecord component.
-