-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(agents-api): Add some custom error messages to base_evaluate (#758)
I added some error messages in base_evaluate to help users identify some specific errors. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Adds custom error messages to `base_evaluate` in `base_evaluate.py` for Jinja template misuse and variable name misspellings, using `thefuzz` for suggestions. > > - **Error Handling**: > - Introduces `EvaluateError` class in `base_evaluate.py` to provide custom error messages. > - Detects Jinja template misuse and suggests using Python expressions. > - Uses `thefuzz` to suggest correct variable names when `NameNotDefined` error occurs. > - **Dependencies**: > - Adds `thefuzz` to `pyproject.toml` for fuzzy string matching. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup> for 5a25b84. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN --> --------- Co-authored-by: Diwank Singh Tomer <[email protected]>
- Loading branch information
1 parent
abb2087
commit 7892cd7
Showing
3 changed files
with
155 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters