Package com.tnsai.autoteam
Class TopologySelector
java.lang.Object
com.tnsai.autoteam.TopologySelector
Analyzes inter-agent dependencies and selects the optimal coordination formation.
TopologySelector examines the dependency graph from a TeamPlan and
determines the best coordination pattern. The selection considers:
- Dependency depth (sequential chains suggest SEQUENTIAL)
- Presence of a lead agent (suggests HIERARCHICAL)
- Independent agents (suggests PARALLEL)
- LLM's suggestion as a tiebreaker
Formation Selection Logic
| Condition | Formation |
|---|---|
| 1 agent | PARALLEL (trivial) |
| Has lead + dependencies | HIERARCHICAL |
| Linear dependency chain | SEQUENTIAL |
| No dependencies | PARALLEL |
- Since:
- 0.3.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSupported formation types. -
Method Summary
-
Method Details
-
select
Selects the optimal formation for the given team plan.- Parameters:
plan- the team plan with agents and dependencies- Returns:
- the selected formation name (PARALLEL, SEQUENTIAL, or HIERARCHICAL)
-