25 lines
595 B
Python
25 lines
595 B
Python
"""Seafile Cloud-Speicher Tool."""
|
|
|
|
from core import config, seafile_client
|
|
|
|
TOOLS = [
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_seafile_status",
|
|
"description": "Seafile Cloud-Speicher: Bibliotheken, Speicherplatz, Sync-Status.",
|
|
"parameters": {"type": "object", "properties": {}, "required": []},
|
|
},
|
|
},
|
|
]
|
|
|
|
|
|
def handle_get_seafile_status(**kw):
|
|
cfg = config.parse_config()
|
|
seafile_client.init(cfg)
|
|
return seafile_client.format_overview()
|
|
|
|
|
|
HANDLERS = {
|
|
"get_seafile_status": handle_get_seafile_status,
|
|
}
|