Download src/agents/planner/errors.py from DataEyond/Agentic-Service-Data-Eyond-Catalog: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/agents/planner/errors.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@717452f69ec32394dea2a8fc11aba47eebe5bc53/src/agents/planner/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/agents/planner/errors.py
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). | |
| """ | |