Class TaskDecomposer

java.lang.Object
com.tnsai.autoteam.TaskDecomposer

public final class TaskDecomposer extends Object
Uses LLM to decompose a natural-language task into agent roles and capabilities.

TaskDecomposer is the first step in the AutoTeamBuilder pipeline. It analyzes a task description and produces a TeamPlan specifying what agents are needed, their roles, capabilities, and inter-agent dependencies.

Process

  1. Construct a structured prompt with the task and available tools
  2. Call LLM to analyze the task and propose a team structure
  3. Parse the JSON response into a TeamPlan
Since:
0.3.0
See Also:
  • Method Details

    • decompose

      public TeamPlan decompose(String taskDescription)
      Decomposes a task description into a team plan.
      Parameters:
      taskDescription - the natural-language task to decompose
      Returns:
      a team plan with agent configurations and dependencies