Package akka.javasdk.agent.autonomous
Record Class MessageStatus.Consumed
- Record Components:
taskId- the id of the task the message was forinteractionId- the id of the model call that saw the message
- All Implemented Interfaces:
MessageStatus
- Enclosing interface:
MessageStatus
public static record MessageStatus.Consumed(String taskId, String interactionId)
extends Record
implements MessageStatus
The agent stored the outcome of the model call that saw the message. The ledger records that
model call under
interactionId. Read it with LedgerClient.getInteraction(String). A new message never has this status.-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.agent.autonomous.MessageStatus
MessageStatus.Consumed, MessageStatus.Dropped, MessageStatus.ForCurrentTask, MessageStatus.Held, MessageStatus.Rejected, MessageStatus.Unknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionIdrecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Consumed
Creates an instance of aConsumedrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentinteractionId- the value for theinteractionIdrecord 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). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord component
-