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: assistant function call when multple tool are needed in the same… #4483

Conversation

nicolasburtey
Copy link
Member

… query

@github-actions github-actions bot added the core label May 20, 2024
const query = JSON.parse(args).query_str
for (const toolCall of action.submit_tool_outputs.tool_calls) {
const name = toolCall.function.name
assert(name === "queryBlinkKnowledgeBase")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker but this is not a standard way to throw an exception. if we want to use it please catch properly AssertionError in the catch block

}

return true
} else {
return new UnknownChatAssistantError("issue running the assistant")
return new UnknownChatAssistantError("Issue running the assistant")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else block is not necessary

@nicolasburtey nicolasburtey merged commit 39c0111 into main May 20, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants