Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -26,7 +26,7 @@ from langchain_core.messages import SystemMessage, HumanMessage
|
|
| 26 |
from langchain_core.tools import tool
|
| 27 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 28 |
from langchain_community.utilities.wikipedia import WikipediaAPIWrapper
|
| 29 |
-
from
|
| 30 |
|
| 31 |
# ---------------------------------------------------------------------
|
| 32 |
# 0) Optionale LangSmith-Tracing (setze ENV: LANGCHAIN_API_KEY)
|
|
|
|
| 26 |
from langchain_core.tools import tool
|
| 27 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 28 |
from langchain_community.utilities.wikipedia import WikipediaAPIWrapper
|
| 29 |
+
from langchain_experimental.tools.python.tool import PythonAstREPLTool
|
| 30 |
|
| 31 |
# ---------------------------------------------------------------------
|
| 32 |
# 0) Optionale LangSmith-Tracing (setze ENV: LANGCHAIN_API_KEY)
|