File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/magentic_ui/teams/orchestrator Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,6 @@ def __init__(
185185 # Setup internal variables
186186 self ._setup_internals ()
187187
188- self .enhanced_plan = True
189-
190188 def _setup_internals (self ) -> None :
191189 """
192190 Setup internal variables used in orchestrator
@@ -800,7 +798,7 @@ async def _orchestrate_step_planning(
800798 await self ._handle_relevant_plan_from_memory (context = context )
801799
802800 # create a first plan
803- if self .enhanced_plan :
801+ if self ._config . enhanced_planning :
804802 user_query = context [1 ].content
805803 assert isinstance (user_query , str )
806804 context .append (
@@ -881,7 +879,7 @@ async def _orchestrate_step_planning(
881879 if self ._config .retrieve_relevant_plans == "hint" :
882880 await self ._handle_relevant_plan_from_memory (context = context )
883881
884- if self .enhanced_plan :
882+ if self ._config . enhanced_planning :
885883 user_query = context [1 ].content
886884 assert isinstance (user_query , str )
887885 context .append (
Original file line number Diff line number Diff line change @@ -44,3 +44,4 @@ class OrchestratorConfig(BaseModel):
4444 max_replans : Union [int , None ] = 3
4545 no_overwrite_of_task : bool = False
4646 sentinel_tasks : bool = False
47+ enhanced_planning : bool = True
You can’t perform that action at this time.
0 commit comments