Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/mcp_agent/agents/workflow/orchestrator_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async def _execute_plan(self, objective: str, request_params: RequestParams) ->
self.logger.warning(
f"Reached maximum step limit ({max_steps}) without completing objective"
)
plan_result.max_steps_reached = True
plan_result.max_iterations_reached = True
break

# Execute the step and collect results
Expand All @@ -239,7 +239,7 @@ async def _execute_plan(self, objective: str, request_params: RequestParams) ->
total_steps_executed += 1

# Check if we need to break due to hitting max steps
if getattr(plan_result, "max_steps_reached", False):
if getattr(plan_result, "max_iterations_reached", False):
break

# If the plan is marked complete, finalize the result
Expand Down
Loading