André Oliveira
commited on
Commit
·
4c375c8
1
Parent(s):
6ef000b
added clear cache tool
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def call_api(endpoint: str, payload: dict) -> str:
|
|
| 23 |
return str(e)
|
| 24 |
|
| 25 |
|
| 26 |
-
def clear_cache_tool(docs_path="data/docs"):
|
| 27 |
"""
|
| 28 |
🧹 Clear Cache MCP Tool
|
| 29 |
Deletes all files and directories inside docs_path on the server.
|
|
@@ -39,7 +39,7 @@ def clear_cache_tool(docs_path="data/docs"):
|
|
| 39 |
r.raise_for_status()
|
| 40 |
return r.json()
|
| 41 |
except Exception as e:
|
| 42 |
-
return {"error": str(e)}
|
| 43 |
|
| 44 |
|
| 45 |
def upload_docs_tool(files, docs_path="data/docs"):
|
|
|
|
| 23 |
return str(e)
|
| 24 |
|
| 25 |
|
| 26 |
+
'''def clear_cache_tool(docs_path="data/docs"):
|
| 27 |
"""
|
| 28 |
🧹 Clear Cache MCP Tool
|
| 29 |
Deletes all files and directories inside docs_path on the server.
|
|
|
|
| 39 |
r.raise_for_status()
|
| 40 |
return r.json()
|
| 41 |
except Exception as e:
|
| 42 |
+
return {"error": str(e)}'''
|
| 43 |
|
| 44 |
|
| 45 |
def upload_docs_tool(files, docs_path="data/docs"):
|