File size: 407 Bytes
81e5fe7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""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).
    """