NotImplementedError for bind_tools method in AzureMLChatOnlineEndpoint class #27984
Unanswered
informatica92
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Try using create_sql_agent_ from langchain.agents.agent import AgentExecutor
from langchain_community.agent_toolkits import create_sql_agent
agent_executor: AgentExecutor = create_sql_agent(
llm=llm,
toolkit=toolkit,
)
agent_executor.run("Which country's customers spent the most?") |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to use the tutorial reported here to create a simple SQL agent powered by an LLM.
My issue is about the AzureMLChatOnlineEndpoint class I'd like to use instead of the one included into the tutorial (AzureChatOpenAI) since I'd like to switch from a GPT-X model to an open-weights one hosted in my Azure infrastructure.
The LLM is a Meta LLama 3.1 70B for the record.
Well, in this situation reported above, if I run the code, I get the following error: "NotImplementedError" for the bind_tools method.
Full stack trace reported below:
What am I missing? Can I integrate the bind_tools implementation somehow? Is there another class instead of AzureMLChatOnlineEndpoint to access Azure AI studio deployed models to do this?
System Info
langchain==0.3.6
langchain-community==0.3.4
langchain-core==0.3.14
langchain-openai==0.2.4
langchain-text-splitters==0.3.1
langgraph==0.2.41
langgraph-checkpoint==2.0.2
langgraph-sdk==0.1.35
langsmith==0.1.138
Platform WINDOWS
Python version 3.11
Beta Was this translation helpful? Give feedback.
All reactions