ishaq101's picture
feat/Planner Agent (#2)
81e5fe7
Raw
History Blame
407 Bytes
"""Typed errors for the planner agent."""
from __future__ import annotations
class PlannerError(Exception):
"""Base error for the planner agent."""
class PlannerValidationError(PlannerError):
"""A TaskList failed one of the planner validator's checks.
The message is specific enough that the planner can be re-prompted with it
to self-correct (max 3 attempts, see service.py).
"""