Only add docs for non-simple epics.

This commit is contained in:
Goran Peretin
2024-06-12 15:42:02 +02:00
parent 2550909dd8
commit 497e91684e
2 changed files with 3 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ from core.agents.tech_lead import TechLead
from core.agents.tech_writer import TechnicalWriter
from core.agents.troubleshooter import Troubleshooter
from core.db.models.project_state import TaskStatus
from core.db.models.specification import Complexity
from core.log import get_logger
from core.telemetry import telemetry
from core.ui.base import ProjectStage
@@ -198,7 +199,7 @@ class Orchestrator(BaseAgent):
# Ask the Tech Lead to break down the initial project or feature into tasks and apply project template
return TechLead(self.state_manager, self.ui, process_manager=self.process_manager)
if state.current_task and state.docs is None:
if state.current_task and state.docs is None and state.specification.complexity != Complexity.SIMPLE:
return ExternalDocumentation(self.state_manager, self.ui)
# Current task status must be checked before Developer is called because we might want

View File

@@ -12,4 +12,4 @@ Here is the list of available documentations:
{{ docset[0], docset[1] }}
{% endfor %}
Now, give me the list of the additional documentation that you would like to use to complete the task listed above. Return only the documentation that is absolutely required for the given task, and only from the list of available documentations provided above. If there is no additional documentation in the list that you would like to use, return an empty list.
Now, give me the list of the additional documentation that you would like to use to complete the task listed above. Return only the documentation that is absolutely required for the given task, only from the list of available documentations provided above and a MAXIMUM OF 3 ITEMS. If there is no additional documentation in the list that you would like to use, return an empty list.