- moved action_registry fnction to action_registry file
- removed unnecesasry functions in pupeline and fixed events
This commit is contained in:
2025-10-30 22:06:29 +01:00
parent 765fc0ac72
commit 2803263bed
5 changed files with 83 additions and 113 deletions

View File

@@ -6,4 +6,12 @@ def register_friendly_actions(actions: dict[str, str]):
Aggiunge le descrizioni di un Toolkit al registro globale.
"""
global ACTION_DESCRIPTIONS
ACTION_DESCRIPTIONS.update(actions)
ACTION_DESCRIPTIONS.update(actions)
def get_user_friendly_action(tool_name: str) -> str:
"""
Restituisce un messaggio leggibile e descrittivo per l'utente
leggendo dal registro globale.
"""
# Usa il dizionario ACTION_DESCRIPTIONS importato
return ACTION_DESCRIPTIONS.get(tool_name, f"⚙️ Eseguo l'operazione: {tool_name}...")