Package com.tnsai.coordination.roma
Interface TaskDecomposer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Decomposes a complex task into smaller sub-tasks.
-
Method Summary
-
Method Details
-
decompose
Breaks a task into sub-tasks.- Parameters:
task- the task to decomposedepth- current recursion depth- Returns:
- list of sub-task descriptions
-
llmBased
Creates an LLM-based decomposer that asks an agent to break down the task.- Parameters:
agent- the agent to use for decomposition- Returns:
- an LLM-based decomposer
-