Skip to content

Commit 55ba63b

Browse files
Updated Orchestrator Config
1 parent 977cba1 commit 55ba63b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/magentic_ui/teams/orchestrator/_orchestrator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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(

src/magentic_ui/teams/orchestrator/orchestrator_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)