Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -120,9 +120,6 @@ def calculator(inputs: Union[str, dict]):
|
|
| 120 |
return f"Unknown operation: {operation}"
|
| 121 |
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
@tool
|
| 127 |
def wiki_search(query: str) -> str:
|
| 128 |
"""Search Wikipedia for a query and return maximum 2 results.
|
|
@@ -137,7 +134,6 @@ def wiki_search(query: str) -> str:
|
|
| 137 |
])
|
| 138 |
return formatted_search_docs
|
| 139 |
|
| 140 |
-
|
| 141 |
|
| 142 |
@tool
|
| 143 |
def wikidata_query(query: str) -> str:
|
|
@@ -500,9 +496,9 @@ def process_question(question):
|
|
| 500 |
|
| 501 |
|
| 502 |
# Run the process
|
| 503 |
-
question = "How many albums did Mercedes Sosa release between 2000 and 2009?"
|
| 504 |
-
response = agent.invoke(question)
|
| 505 |
-
print("Final Response:", response)
|
| 506 |
|
| 507 |
|
| 508 |
|
|
|
|
| 120 |
return f"Unknown operation: {operation}"
|
| 121 |
|
| 122 |
|
|
|
|
|
|
|
|
|
|
| 123 |
@tool
|
| 124 |
def wiki_search(query: str) -> str:
|
| 125 |
"""Search Wikipedia for a query and return maximum 2 results.
|
|
|
|
| 134 |
])
|
| 135 |
return formatted_search_docs
|
| 136 |
|
|
|
|
| 137 |
|
| 138 |
@tool
|
| 139 |
def wikidata_query(query: str) -> str:
|
|
|
|
| 496 |
|
| 497 |
|
| 498 |
# Run the process
|
| 499 |
+
#question = "How many albums did Mercedes Sosa release between 2000 and 2009?"
|
| 500 |
+
#response = agent.invoke(question)
|
| 501 |
+
#print("Final Response:", response)
|
| 502 |
|
| 503 |
|
| 504 |
|