Spaces:
Sleeping
Sleeping
Thomas Bartlett
commited on
Commit
·
46de8c4
1
Parent(s):
ba7371b
Remove python tool
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import pandas as pd
|
|
5 |
|
6 |
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
7 |
|
8 |
-
from langchain.tools import
|
9 |
from langchain_community.tools import DuckDuckGoSearchRun
|
10 |
from langchain.agents import initialize_agent, AgentType
|
11 |
from langchain_core.prompts import ChatPromptTemplate
|
@@ -21,7 +21,6 @@ You are GAIA-Bot, a fully-autonomous problem-solver.
|
|
21 |
• After finishing all reasoning, RESPOND with **only** the final answer string—no pre-amble, no labels, no extra text.
|
22 |
|
23 |
You have access to these tools:
|
24 |
-
- python_repl – run Python for maths, JSON/CSV/PDF parsing, etc.
|
25 |
- requests_get – fetch web pages or files via HTTP GET.
|
26 |
- duckduckgo_search – look up current facts on the public web.
|
27 |
|
@@ -53,7 +52,6 @@ class BasicAgent:
|
|
53 |
)
|
54 |
|
55 |
tools = [
|
56 |
-
PythonREPLTool(),
|
57 |
RequestsGetTool(),
|
58 |
DuckDuckGoSearchRun(),
|
59 |
]
|
|
|
5 |
|
6 |
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
7 |
|
8 |
+
from langchain.tools import RequestsGetTool
|
9 |
from langchain_community.tools import DuckDuckGoSearchRun
|
10 |
from langchain.agents import initialize_agent, AgentType
|
11 |
from langchain_core.prompts import ChatPromptTemplate
|
|
|
21 |
• After finishing all reasoning, RESPOND with **only** the final answer string—no pre-amble, no labels, no extra text.
|
22 |
|
23 |
You have access to these tools:
|
|
|
24 |
- requests_get – fetch web pages or files via HTTP GET.
|
25 |
- duckduckgo_search – look up current facts on the public web.
|
26 |
|
|
|
52 |
)
|
53 |
|
54 |
tools = [
|
|
|
55 |
RequestsGetTool(),
|
56 |
DuckDuckGoSearchRun(),
|
57 |
]
|