Package ai.agentscentral.core.agent
Record Class Agent
java.lang.Object
java.lang.Record
ai.agentscentral.core.agent.Agent
- Record Components:
name-model-instructors-toolBags-handoffs-
- All Implemented Interfaces:
Agentic
public record Agent(@Nonnull String name, @Nonnull Model model, @Nonnull List<Instructor> instructors, List<ToolBag> toolBags, List<Handoff> handoffs)
extends Record
implements Agentic
Agent
- Author:
- Rizwan Idrees
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.handoffs()Returns the value of thehandoffsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructorsrecord component.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.toolBags()Returns the value of thetoolBagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Agent
public Agent(@Nonnull String name, @Nonnull Model model, @Nonnull List<Instructor> instructors, List<ToolBag> toolBags, List<Handoff> handoffs) Creates an instance of aAgentrecord class.- Parameters:
name- the value for thenamerecord componentmodel- the value for themodelrecord componentinstructors- the value for theinstructorsrecord componenttoolBags- the value for thetoolBagsrecord componenthandoffs- the value for thehandoffsrecord 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). -
name
Returns the value of thenamerecord component. -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
instructors
Returns the value of theinstructorsrecord component.- Returns:
- the value of the
instructorsrecord component
-
toolBags
Returns the value of thetoolBagsrecord component.- Returns:
- the value of the
toolBagsrecord component
-
handoffs
Returns the value of thehandoffsrecord component.- Returns:
- the value of the
handoffsrecord component
-