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

fix #5111: add FunctionCallNotExistsError to handle cases where tool calling failed #5113

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

xingyaoww
Copy link
Collaborator

@xingyaoww xingyaoww commented Nov 18, 2024

End-user friendly description of the problem this fixes or functionality that this introduces

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Give a summary of what the PR does, explaining any non-trivial design decisions

add FunctionCallNotExistsError to handle cases where tool calling failed, and throw it back to LLM for retry.


Link of any specific issues this addresses

Fix #5111


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:78cd090-nikolaik   --name openhands-app-78cd090   docker.all-hands.dev/all-hands-ai/openhands:78cd090

@neubig neubig merged commit 422104c into main Nov 19, 2024
12 checks passed
@neubig neubig deleted the xw/fix-tool branch November 19, 2024 02:21
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.

[Bug]: Make function calling more resilient to when LLM hallucinates a tool that isn't available
3 participants