Package com.tnsai.autoteam
Record Class TeamPlan
java.lang.Object
java.lang.Record
com.tnsai.autoteam.TeamPlan
- Record Components:
taskDescription- the original natural-language taskteamName- generated name for the teamreasoning- LLM's reasoning for the team structureagents- list of agent configurationssuggestedFormation- the recommended coordination formationdependencies- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of agents in this plan.agents()Returns the value of theagentsrecord component.Returns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns whether any inter-agent dependencies exist.final inthashCode()Returns a hash code value for this object.Returns the value of thereasoningrecord component.Returns the value of thesuggestedFormationrecord component.Returns the value of thetaskDescriptionrecord component.teamName()Returns the value of theteamNamerecord component.final StringtoString()Returns a string representation of this record class.
-
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
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). -
taskDescription
Returns the value of thetaskDescriptionrecord component.- Returns:
- the value of the
taskDescriptionrecord component
-
teamName
Returns the value of theteamNamerecord component.- Returns:
- the value of the
teamNamerecord component
-
reasoning
Returns the value of thereasoningrecord component.- Returns:
- the value of the
reasoningrecord component
-
agents
Returns the value of theagentsrecord component.- Returns:
- the value of the
agentsrecord component
-
suggestedFormation
Returns the value of thesuggestedFormationrecord component.- Returns:
- the value of the
suggestedFormationrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-