Spaces:
Configuration error
Configuration error
add missing packages
Browse files- agent.py +1 -1
- requirements.txt +1 -0
agent.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
from langchain_community.chat_models import ChatHuggingFace
|
| 2 |
from langchain_community.llms import HuggingFaceEndpoint
|
| 3 |
-
from langchain_community.tools.python.tool import PythonREPLTool
|
| 4 |
|
| 5 |
# --- Custom Tools ---
|
| 6 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 7 |
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage
|
| 8 |
from langchain_core.runnables import RunnableLambda
|
| 9 |
from langchain_core.tools import tool
|
|
|
|
| 10 |
from langgraph.graph import END, START, MessagesState, StateGraph
|
| 11 |
from langgraph.graph.message import add_messages
|
| 12 |
from langgraph.prebuilt import ToolNode, tools_condition
|
|
|
|
| 1 |
from langchain_community.chat_models import ChatHuggingFace
|
| 2 |
from langchain_community.llms import HuggingFaceEndpoint
|
|
|
|
| 3 |
|
| 4 |
# --- Custom Tools ---
|
| 5 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 6 |
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage
|
| 7 |
from langchain_core.runnables import RunnableLambda
|
| 8 |
from langchain_core.tools import tool
|
| 9 |
+
from langchain_experimental.tools.python.tool import PythonREPLTool
|
| 10 |
from langgraph.graph import END, START, MessagesState, StateGraph
|
| 11 |
from langgraph.graph.message import add_messages
|
| 12 |
from langgraph.prebuilt import ToolNode, tools_condition
|
requirements.txt
CHANGED
|
@@ -3,6 +3,7 @@ requests
|
|
| 3 |
langchain
|
| 4 |
langchain-core
|
| 5 |
langchain-community
|
|
|
|
| 6 |
langchain-tavily
|
| 7 |
langgraph
|
| 8 |
tavily-python
|
|
|
|
| 3 |
langchain
|
| 4 |
langchain-core
|
| 5 |
langchain-community
|
| 6 |
+
langchain-experimental
|
| 7 |
langchain-tavily
|
| 8 |
langgraph
|
| 9 |
tavily-python
|