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 specialization
toolNames - names of tools this agent should have access to
capabilities - list of capability descriptions for this agent
parameters - 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 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • role

      public String role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • systemPrompt

      public String systemPrompt()
      Returns the value of the systemPrompt record component.
      Returns:
      the value of the systemPrompt record component
    • toolNames

      public List<String> toolNames()
      Returns the value of the toolNames record component.
      Returns:
      the value of the toolNames record component
    • capabilities

      public List<String> capabilities()
      Returns the value of the capabilities record component.
      Returns:
      the value of the capabilities record component
    • parameters

      public Map<String,Object> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component