We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 003db36 commit 4a60103Copy full SHA for 4a60103
src/magentic_ui/teams/orchestrator/_orchestrator.py
@@ -932,6 +932,12 @@ async def _orchestrate_step_planning(
932
cancellation_token=cancellation_token,
933
)
934
self._state.in_planning_mode = False
935
+ if self._state.plan is None:
936
+ # produce final answer if no plan was created
937
+ await self._prepare_final_answer(
938
+ "No plan was created.", cancellation_token
939
+ )
940
+ return
941
await self._orchestrate_step_execution(cancellation_token, first_step=True)
942
943
async def _orchestrate_step_execution(
0 commit comments