25 lines
590 B
Python
25 lines
590 B
Python
"""Proxmox Backup Server Tool."""
|
|
|
|
from core import config, pbs_client
|
|
|
|
TOOLS = [
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_backup_status",
|
|
"description": "Backup-Status: Letzte Backups, Speicherplatz, Pruning. Proxmox Backup Server.",
|
|
"parameters": {"type": "object", "properties": {}, "required": []},
|
|
},
|
|
},
|
|
]
|
|
|
|
|
|
def handle_get_backup_status(**kw):
|
|
cfg = config.parse_config()
|
|
pbs_client.init(cfg)
|
|
return pbs_client.format_overview()
|
|
|
|
|
|
HANDLERS = {
|
|
"get_backup_status": handle_get_backup_status,
|
|
}
|