| """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). | |
| """ | |