Skip to content

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

@S1M0N38

Description

@S1M0N38

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. 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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions