Record Class OutboundEnvelope
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.gateway.channel.chatui.OutboundEnvelope
- Record Components:
address- the delivery targetmessages- the outbound messagestimestampMs- when the envelope was created
public record OutboundEnvelope(OutboundAddress address, List<io.agentscope.core.message.Msg> messages, long timestampMs)
extends Record
A buffered proactive outbound message delivered to
ChatUiChannel by the gateway. Callers
retrieve these via ChatUiChannel.pollOutbound().-
Constructor Summary
ConstructorsConstructorDescriptionOutboundEnvelope(OutboundAddress address, List<io.agentscope.core.message.Msg> messages) OutboundEnvelope(OutboundAddress address, List<io.agentscope.core.message.Msg> messages, long timestampMs) Creates an instance of aOutboundEnveloperecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<io.agentscope.core.message.Msg>messages()Returns the value of themessagesrecord component.longReturns the value of thetimestampMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutboundEnvelope
-
OutboundEnvelope
public OutboundEnvelope(OutboundAddress address, List<io.agentscope.core.message.Msg> messages, long timestampMs) Creates an instance of aOutboundEnveloperecord class.- Parameters:
address- the value for theaddressrecord componentmessages- the value for themessagesrecord componenttimestampMs- the value for thetimestampMsrecord 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 '=='. -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
timestampMs
public long timestampMs()Returns the value of thetimestampMsrecord component.- Returns:
- the value of the
timestampMsrecord component
-