feat!(lua): improve the error message with suggested actions
- Dominant language
- Python
- Stars
- 72
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Right now, the error reported by the Lua API is something like this:
```
[BAD_REQUEST] Cannot purchase consumable card, consumable slots are full. Current: 2, Limit: 2.
```
This is a pretty descriptive message, but maybe these kinds of error messages could be improved by suggesting some actions. E.g.
```
[BAD_REQUEST] Cannot purchase consumable card, consumable slots are full. You can free a slot by `use` or `sell` a consumable.
```
This feature is considered a BREAKING CHANGE because the error messages are included in the MEMORY.md in [BalatroLLM](https://github.com/coder/balatrollm). So this would change how the LLM behaves because it would have access to better error messages, expecting an improvement in performance (increased ability to self-heal from failed tool calls).
Contributor guide
Assessment
This issue has not been assessed yet.