-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
AgentType.OPENAI_FUNCTIONS did not work #8618
Comments
Answer generated by a 🤖 AnswerHello, Thank you for bringing this to our attention. The OpenAIFunctionsAgent may not be invoking the tool as expected due to several reasons:
To resolve the issue, ensure that the tool is included in the list of allowed tools, correctly formatted for OpenAI's function API, and correctly parsed from the AI message. In the context shared, it's also important to note that the OpenAIMultiFunctionsAgent class is used, which supports multiple actions in a single invocation. This could be a potential source of issues if the tool is not designed to handle multiple actions. If you have followed all these steps and the issue still persists, could you please provide more information about the error message you are receiving or any other unusual behavior you are noticing? This will help us to better understand the issue and provide a more accurate solution. Best, Sources
This response is meant to be useful, save you time, and share context. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. |
Hi, @zingzheng! I'm Dosu, and I'm here to help the LangChain team manage our backlog. I wanted to let you know that we are marking this issue as stale. Based on my understanding of the issue, the problem you reported is that the Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days. Thank you for your understanding and cooperation! |
System Info
langchain 0.0.249
Python 3.11.2
Who can help?
No response
Information
Related Components
Reproduction
I follow the egs of openai_functions_agent at
https://python.langchain.com/docs/modules/agents/
https://python.langchain.com/docs/modules/agents/agent_types/openai_functions_agent
https://python.langchain.com/docs/modules/agents/how_to/custom-functions-with-openai-functions-agent
But the openai_functions_agent do not invoke the tool as expected。
I tried using other tools but they were not used . It seems that OPENAI_FUNCTIONS has bugs。
Expected behavior
AgentType.OPENAI_FUNCTIONS works as docs show
The text was updated successfully, but these errors were encountered: