Package akka.javasdk.testkit
Record Class TestModelProvider.AutonomousAgentTools.ScriptStep
- Enclosing class:
TestModelProvider.AutonomousAgentTools
public static record TestModelProvider.AutonomousAgentTools.ScriptStep(String speaker, String guidance)
extends Record
A step in a scripted conversation, specifying speaker and guidance.
-
Constructor Summary
ConstructorsConstructorDescriptionScriptStep(String speaker, String guidance) Creates an instance of aScriptSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.guidance()Returns the value of theguidancerecord component.final inthashCode()Returns a hash code value for this object.speaker()Returns the value of thespeakerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptStep
Creates an instance of aScriptSteprecord class.- Parameters:
speaker- the value for thespeakerrecord componentguidance- the value for theguidancerecord 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). -
speaker
Returns the value of thespeakerrecord component.- Returns:
- the value of the
speakerrecord component
-
guidance
Returns the value of theguidancerecord component.- Returns:
- the value of the
guidancerecord component
-