Record Class TeamPlan

java.lang.Object
java.lang.Record
com.tnsai.autoteam.TeamPlan
Record Components:
taskDescription - the original natural-language task
teamName - generated name for the team
reasoning - LLM's reasoning for the team structure
agents - list of agent configurations
suggestedFormation - the recommended coordination formation
dependencies - inter-agent dependency map (agent-id to list of dependency agent-ids)

public record TeamPlan(String taskDescription, String teamName, String reasoning, List<GeneratedAgentConfig> agents, String suggestedFormation, Map<String,List<String>> dependencies) extends Record
Intermediate representation of a generated team plan.

Produced by the LLM task decomposition step and consumed by AutoTeamBuilder to instantiate the actual agent team. This record is the bridge between LLM analysis and agent construction.

Since:
0.3.0
  • Constructor Details

  • Method Details

    • agentCount

      public int agentCount()
      Returns the number of agents in this plan.
      Returns:
      agent count
    • hasDependencies

      public boolean hasDependencies()
      Returns whether any inter-agent dependencies exist.
      Returns:
      true if there are dependencies between agents
    • 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.
    • taskDescription

      public String taskDescription()
      Returns the value of the taskDescription record component.
      Returns:
      the value of the taskDescription record component
    • teamName

      public String teamName()
      Returns the value of the teamName record component.
      Returns:
      the value of the teamName record component
    • reasoning

      public String reasoning()
      Returns the value of the reasoning record component.
      Returns:
      the value of the reasoning record component
    • agents

      public List<GeneratedAgentConfig> agents()
      Returns the value of the agents record component.
      Returns:
      the value of the agents record component
    • suggestedFormation

      public String suggestedFormation()
      Returns the value of the suggestedFormation record component.
      Returns:
      the value of the suggestedFormation record component
    • dependencies

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