mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
Only add docs for non-simple epics.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user