-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
Tool call not working for Sonnet-3.5 #28790
Comments
could you please reduce the example to the tool definition and |
@HasnainKhanNiazi please add a docstring in each of your tool explaining when to use the tool, that should take care of it. |
@keenborder786 I believe that's not the issue as I have already included doc string in function definition. |
By the way, the first example of the tool is unlikely to work since the docstring doesn't conform to google-style docstring. i would also recommend checking |
@HasnainKhanNiazi Can you please use Structured Tool as follow: https://python.langchain.com/api_reference/core/tools/langchain_core.tools.structured.StructuredTool.html and specify the description, arg-schema more explicitly. |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I defined a tool called
find_categories
in two different ways to test but in the case ofclaude-3-5-sonnet-20240620
input is always empty. When I use OpenAI GPT4o, it works fine. What could be wrong?System Info
System Information
Package Information
Other Dependencies
The text was updated successfully, but these errors were encountered: