Record Class HandOffMessage
java.lang.Object
java.lang.Record
ai.agentscentral.core.session.message.HandOffMessage
- Record Components:
contextId-messageId-handOffId-agentName-parts-timestamp-
- All Implemented Interfaces:
Message
public record HandOffMessage(String contextId, String messageId, String handOffId, String agentName, MessagePart[] parts, long timestamp)
extends Record
implements Message
HandOffMessage
- Author:
- Rizwan Idrees
-
Constructor Summary
ConstructorsConstructorDescriptionHandOffMessage(String contextId, String messageId, String handOffId, String agentName, MessagePart[] parts, long timestamp) Creates an instance of aHandOffMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentNamerecord component.Returns the value of thecontextIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandOffIdrecord component.final inthashCode()Returns a hash code value for this object.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
-
HandOffMessage
public HandOffMessage(String contextId, String messageId, String handOffId, String agentName, MessagePart[] parts, long timestamp) Creates an instance of aHandOffMessagerecord class.- Parameters:
contextId- the value for thecontextIdrecord componentmessageId- the value for themessageIdrecord componenthandOffId- the value for thehandOffIdrecord componentagentName- the value for theagentNamerecord 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. -
handOffId
Returns the value of thehandOffIdrecord component.- Returns:
- the value of the
handOffIdrecord component
-
agentName
Returns the value of theagentNamerecord component.- Returns:
- the value of the
agentNamerecord component
-
parts
Returns the value of thepartsrecord component. -
timestamp
public long timestamp()Returns the value of thetimestamprecord component.
-