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

Feature/tool calling #81

Merged
merged 9 commits into from
Jan 17, 2025
Merged

Feature/tool calling #81

merged 9 commits into from
Jan 17, 2025

Conversation

jurmy24
Copy link
Member

@jurmy24 jurmy24 commented Jan 16, 2025

Closes #48, closes #63, and closes #78

This PR:

  • fixes the tool misformatting bug for tool calls (both JSON and XML misformatting) using a catch function in llm_service.py (started by @wjunwei2001 )
  • improves error communication between tools and the LLM (seen in the tools main.py functions)
  • improves the user notifications when a tool has been called (ensures only one is displayed per tool-type)
  • fixes the multiple tool calling errors (simply an indenting issue)
  • implements metadata filtering on classes using the chatbot intelligence by injecting class id information in the tools_metadata in registry.py

@wjunwei2001 please try it out and let me know what you think.

@jurmy24 jurmy24 added this to the Release v0.1.0 milestone Jan 16, 2025
@jurmy24 jurmy24 requested a review from wjunwei2001 January 16, 2025 20:26
@jurmy24 jurmy24 changed the base branch from main to development January 16, 2025 20:26
Copy link
Collaborator

@wjunwei2001 wjunwei2001 left a comment

Choose a reason for hiding this comment

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

Looks good to me! Tool calling error is resolved when tested. Tested for singular and multiple tool call whatsapp request

@jurmy24 jurmy24 merged commit c2040e0 into development Jan 17, 2025
4 checks passed
@jurmy24 jurmy24 deleted the feature/tool-calling branch January 17, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants