Package com.tnsai.autoteam
Record Class GeneratedAgentConfig
java.lang.Object
java.lang.Record
com.tnsai.autoteam.GeneratedAgentConfig
- Record Components:
id- unique agent identifier (e.g., "researcher-1")role- human-readable role name (e.g., "Lead Researcher")systemPrompt- tailored system prompt for this agent's specializationtoolNames- names of tools this agent should have access tocapabilities- list of capability descriptions for this agentparameters- additional configuration parameters (model, temperature, etc.)
public record GeneratedAgentConfig(String id, String role, String systemPrompt, List<String> toolNames, List<String> capabilities, Map<String,Object> parameters)
extends Record
Configuration for a single agent within a generated team.
Produced by AgentConfigGenerator after LLM-driven task decomposition.
Contains everything needed to instantiate an agent via AgentBuilder.
- Since:
- 0.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanisLead()Returns whether this agent is designated as a team lead.Returns the value of theparametersrecord component.role()Returns the value of therolerecord component.Returns the value of thesystemPromptrecord component.Returns the value of thetoolNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isLead
public boolean isLead()Returns whether this agent is designated as a team lead.- Returns:
- true if the parameters contain "isLead" set to true
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
systemPrompt
Returns the value of thesystemPromptrecord component.- Returns:
- the value of the
systemPromptrecord component
-
toolNames
Returns the value of thetoolNamesrecord component.- Returns:
- the value of the
toolNamesrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-