Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for single-quoted command arguments #377

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Zwergengraf
Copy link

When testing with gpt-4o-mini, I noticed that even simple commands (e.g., !followPlayer) only worked after 4–5 iterations of the LLM. The issue stemmed from the LLM returning string arguments in single quotes, which are currently not supported, even though the examples in andy_npc.json use single-quoted arguments.

Example log output:

Andy full response to USER: ""On my way! !goToPlayer('USER', 3)""
stopping self-prompt loop
Agent executed: !goToPlayer and got: Command !goToPlayer was given 0 args, but requires 2 args.

This pull request adds support for single-quoted arguments to both commandRegex and argRegex, ensuring better compatibility with the LLM's outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant