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: allow multiple tools to be called by LLM and rewrite request #992

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

cpacker
Copy link
Collaborator

@cpacker cpacker commented Feb 12, 2024

Please describe the purpose of this pull request.

When using certain backends (eg OpenAI), multiple tools may be called by the LLM inference backend. Currently the main function execution loop doesn't support multiple calls per iteration (though this should be added in the future).

We currently raise an error when this happens, this PR revises the error to a debug print statement and just grabs the tool_calls[0] tool.

@cpacker cpacker linked an issue Feb 12, 2024 that may be closed by this pull request
5 tasks
@cpacker cpacker merged commit e8b6464 into main Feb 12, 2024
5 checks passed
@cpacker cpacker deleted the soft-error-tool-use branch February 12, 2024 02:48
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.

Is this check still necessary agent.py line 373 "">1 tool call not supported""
1 participant