Refactor
- moved action_registry fnction to action_registry file - removed unnecesasry functions in pupeline and fixed events
This commit is contained in:
@@ -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}...")
|
||||
|
||||
Reference in New Issue
Block a user