Package akka.javasdk.evaluation
Record Class Subject.Interaction
- Record Components:
interactionId- the stable id of the interactionagentComponentId- the component id of the agent that produced the interactionflowId- the flow the interaction belongs to, empty when the agent ran outside a flow
- All Implemented Interfaces:
Subject
- Enclosing interface:
Subject
public static record Subject.Interaction(String interactionId, String agentComponentId, Optional<String> flowId)
extends Record
implements Subject
One agent interaction, on its own or as part of a flow.
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.evaluation.Subject
Subject.Interaction -
Constructor Summary
ConstructorsConstructorDescriptionInteraction(String interactionId, String agentComponentId, Optional<String> flowId) Creates an instance of aInteractionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentComponentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.flowId()Returns the value of theflowIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Interaction
Creates an instance of aInteractionrecord class.- Parameters:
interactionId- the value for theinteractionIdrecord componentagentComponentId- the value for theagentComponentIdrecord componentflowId- the value for theflowIdrecord 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). -
interactionId
Returns the value of theinteractionIdrecord component.- Specified by:
interactionIdin interfaceSubject- Returns:
- the value of the
interactionIdrecord component
-
agentComponentId
Returns the value of theagentComponentIdrecord component.- Specified by:
agentComponentIdin interfaceSubject- Returns:
- the value of the
agentComponentIdrecord component
-
flowId
Returns the value of theflowIdrecord component.- Returns:
- the value of the
flowIdrecord component
-