Spaces:
Sleeping
Sleeping
change web_search to search
Browse filesChange the name of the function web_search to search to differentiate it from the one in the tools package
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def support_decision(claim:str, news:dict)-> str:
|
|
| 83 |
|
| 84 |
|
| 85 |
@tool
|
| 86 |
-
def
|
| 87 |
"""A tool that receives a claim and gather news about it by making a web search
|
| 88 |
Args:
|
| 89 |
claim: the claim we are searching about
|
|
@@ -168,7 +168,7 @@ agent = ToolCallingAgent(
|
|
| 168 |
tools=[final_answer,
|
| 169 |
url_to_claim,
|
| 170 |
support_decision,
|
| 171 |
-
|
| 172 |
check],
|
| 173 |
max_steps=6,
|
| 174 |
verbosity_level=1,
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
@tool
|
| 86 |
+
def search(claim:str)-> list:
|
| 87 |
"""A tool that receives a claim and gather news about it by making a web search
|
| 88 |
Args:
|
| 89 |
claim: the claim we are searching about
|
|
|
|
| 168 |
tools=[final_answer,
|
| 169 |
url_to_claim,
|
| 170 |
support_decision,
|
| 171 |
+
search,
|
| 172 |
check],
|
| 173 |
max_steps=6,
|
| 174 |
verbosity_level=1,
|