Record Class RegisteredAgent
java.lang.Object
java.lang.Record
ai.agentscentral.core.agentic.executor.register.RegisteredAgent
- Record Components:
agent-partOf-executor-
- All Implemented Interfaces:
RegisteredAgentic
public record RegisteredAgent(Agent agent, Team partOf, AgenticExecutor<? extends Agentic> executor)
extends Record
implements RegisteredAgentic
RegisteredAgent
- Author:
- Rizwan Idrees
-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredAgent(Agent agent, Team partOf, AgenticExecutor<? extends Agentic> executor) Creates an instance of aRegisteredAgentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagent()Returns the value of theagentrecord component.final booleanIndicates whether some other object is "equal to" this one.AgenticExecutor<? extends Agentic> executor()Returns the value of theexecutorrecord component.final inthashCode()Returns a hash code value for this object.partOf()Returns the value of thepartOfrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
agent
Returns the value of theagentrecord component.- Returns:
- the value of the
agentrecord component
-
partOf
Returns the value of thepartOfrecord component.- Returns:
- the value of the
partOfrecord component
-
executor
Returns the value of theexecutorrecord component.- Specified by:
executorin interfaceRegisteredAgentic- Returns:
- the value of the
executorrecord component
-