-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
DOC: Search for weather does not work #7875
Comments
Hey there, @avilabiel! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together! To address the issue with the TavilySearchResults tool not retrieving weather data, here are a few steps you can take to troubleshoot and potentially resolve the problem:
If these steps do not resolve the issue, consider logging additional details from the API response to gain more insight into what might be going wrong. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@dosubot I checked everything that you suggested, and still, it doesn't work |
If you've verified the API key, checked for error messages, and ensured there are no network issues, there might be a deeper issue with the TavilySearchResults tool or its integration. Here are a few additional steps to consider:
If none of these steps resolve the issue, it might be helpful to review the specific implementation details or consider reaching out to the maintainers for further assistance. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Hi @avilabiel - took a look into this. Just tried to reproduce the issue on my side with my own Tavily and OpenAI keys, and the response I was getting was what was expected. Would you mind sharing the email or details on the method of authentication you used when signing up for your Tavily API key? I will look into the specific queries further and see if I can find anything that stands out. |
Thanks @michaelgriff! @avilabiel can you try just hard-coding the weather tools to return a fixed response? It's possible Tavily was having some temporary difficulties. https://js.langchain.com/docs/how_to/custom_tools/#tool-function Going to close for now but please ping if it's recurring. |
Checklist
Issue with current documentation:
I followed the given documentation for Javascript, and I didn't get the weather answer using the given code.
Code:
Result:
Documentation: https://langchain-ai.github.io/langgraphjs/tutorials/quickstart/#customizing-agent-behavior
Idea or request for content:
This is the first page of LangChain documentation, and it's frustrating that this snippet doesn't work.
The text was updated successfully, but these errors were encountered: