coder / coder/balatrobot

feat!(lua): improve the error message with suggested actions

Open
#148 0 comments 0 reactions 1 assignee Claimed by @S1M0N38 View on GitHub
completed-in-dev
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.