Salta ai contenuti

/alert-manage

Cosa fa. Gestisce gli allarmi esistenti: elenco, attivazione, modifica, eliminazione.

Quando usarlo. Per tenere in ordine i tuoi avvisi.

Argomenti. TICKER or 'all' (optional)

Esempio. /alert-manage all

Cosa restituisce. L’elenco degli allarmi con le azioni di gestione.

Quando lanci /alert-manage, Dexter non esegue codice fisso: invia all’AI la prompt qui sotto — il segnaposto {arg} viene sostituito con ciò che scrivi dopo il comando — e l’agente la esegue chiamando da sé gli strumenti necessari. Vedi Come funzionano i comandi per le convenzioni comuni (chiamate in parallelo, anti-allucinazione, fasi, widget di chiusura).

Strumenti che può usare: get_user_alerts, toggle_user_alert, update_user_alert, delete_user_alert.

È la prompt esatta inviata all’AI quando usi il comando (sostituendo {arg}).

Manage existing alerts.
get_user_alerts → list all configured alerts. If "{arg}" is a non-empty ticker (not "{arg}" and not "all"), filter by that ticker.
Present table: ID, ticker, condition, threshold, label, status (active/disabled).
If zero alerts: state it and suggest /set-alert.
Actions:
- Toggle on/off → toggle_user_alert(ID)
- Edit threshold/label → update_user_alert(ID)
- Delete → delete_user_alert(ID) — CONFIRM first, NEVER without explicit approval.
After each operation, clearly report new state. If ID not found, re-call get_user_alerts.