Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions python/valuecell/core/plan/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ async def _analyze_input_and_create_tasks(

# Parse planning result and create tasks
plan_raw = run_response.content
if not isinstance(plan_raw, PlannerResponse):
return (
[],
(
f"Planner produced a malformed response: `{plan_raw}`. "
"Please check your model capabilities and try again later."
),
)
logger.info(f"Planner produced plan: {plan_raw}")

# Check if plan is inadequate or has no tasks
Expand Down
Loading