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

BUG FIX Tool Argument Parsing Error #163

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

benediktstroebl
Copy link

In this bug, tools that use more than a single argument failed when executed. Reason was that argument were not correctly parsed into Dict and treated as a single str argument in agent.py.

An example of the error message is below (this is raised despite the agent correctly passing a value for celsius:

Error in tool call execution: get_weather() missing 1 required positional argument: 'celsius' You should only use this tool with a correct input.

Note: I see there is a second pull request solving the same bug but I think this solution might be cleaner.

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.

2 participants