Package io.agentscope.harness.agent.team
Record Class TeamMemberInfo
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.team.TeamMemberInfo
public record TeamMemberInfo(String memberName, String agentRef, String phase, String sessionId, String deployMode, boolean isLead)
extends Record
Team member roster entry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentRef()Returns the value of theagentRefrecord component.Returns the value of thedeployModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisLead()Returns the value of theisLeadrecord component.Returns the value of thememberNamerecord component.phase()Returns the value of thephaserecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TeamMemberInfo
public TeamMemberInfo(String memberName, String agentRef, String phase, String sessionId, String deployMode, boolean isLead) Creates an instance of aTeamMemberInforecord class.- Parameters:
memberName- the value for thememberNamerecord componentagentRef- the value for theagentRefrecord componentphase- the value for thephaserecord componentsessionId- the value for thesessionIdrecord componentdeployMode- the value for thedeployModerecord componentisLead- the value for theisLeadrecord 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 '=='. -
memberName
Returns the value of thememberNamerecord component.- Returns:
- the value of the
memberNamerecord component
-
agentRef
Returns the value of theagentRefrecord component.- Returns:
- the value of the
agentRefrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
deployMode
Returns the value of thedeployModerecord component.- Returns:
- the value of the
deployModerecord component
-
isLead
public boolean isLead()Returns the value of theisLeadrecord component.- Returns:
- the value of the
isLeadrecord component
-