You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"C:\Users\...\git\Text2SQL\Text2SQL - ENV\Scripts\python.exe" C:\Users\...\git\Text2SQL\text2sql\main_agent_llama.py
C:\Users\...\git\Text2SQL\Text2SQL - ENV\Lib\site-packages\langsmith\client.py:221: LangSmithMissingAPIKeyWarning: API key must be provided when using hosted LangSmith API
warnings.warn(
Traceback (most recent call last):
File "C:\Users\...\git\Text2SQL\text2sql\main_agent_llama.py", line 571, in <module>
agent_executor = create_react_agent(llm, toolkit.get_tools(), state_modifier=system_message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\...\git\Text2SQL\Text2SQL - ENV\Lib\site-packages\langgraph\_api\deprecation.py", line 80, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\...\git\Text2SQL\Text2SQL - ENV\Lib\site-packages\langgraph\prebuilt\chat_agent_executor.py", line 512, in create_react_agent
model = cast(BaseChatModel, model).bind_tools(tool_classes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\...\git\Text2SQL\Text2SQL - ENV\Lib\site-packages\langchain_core\language_models\chat_models.py", line 1115, in bind_tools
raise NotImplementedError
NotImplementedError
Description
I'm trying to implement a future-ready SQL Agent with an open weights model (Meta LLama) hosted into an Azure AI infrastructure.
My code is pretty simple and it's just one of the various how-to guides in which I switched from the original OpenAI model to a AzureMLChatOnlineEndpoint.
But the execution interrupts pretty soon since the flow relies on the BaseModel bind_tool implementation that just throw a "NotImplementedError".
Is there ant chance to make AzureMLChatOnlineEndpoint compatible with this method?
Consider that the direction in which LangChain is moving is LangGraph so makes no sense now to create an agent using create_sql_agent from from langchain_community.agent_toolkits
System Info
System Information
OS: Windows
OS Version: 10.0.22631
Python Version: 3.11.7 | packaged by Anaconda, Inc. | (main, Dec 15 2023, 18:05:47) [MSC v.1916 64 bit (AMD64)]
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I'm trying to implement a future-ready SQL Agent with an open weights model (Meta LLama) hosted into an Azure AI infrastructure.
My code is pretty simple and it's just one of the various how-to guides in which I switched from the original OpenAI model to a AzureMLChatOnlineEndpoint.
But the execution interrupts pretty soon since the flow relies on the BaseModel bind_tool implementation that just throw a "NotImplementedError".
Is there ant chance to make AzureMLChatOnlineEndpoint compatible with this method?
Consider that the direction in which LangChain is moving is LangGraph so makes no sense now to create an agent using create_sql_agent from from langchain_community.agent_toolkits
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: