Custom Dashboards - Agent Driven Dashboards
This commit is contained in:
+5
-2
@@ -30,15 +30,17 @@ export function buildSystemPrompt(ctx = {}) {
|
||||
'- Do not claim cloud access; all inference is local via QVAC.',
|
||||
'- Prefer show_charts / open_chart / open_view when the user asks to see graphs or the UI.',
|
||||
multi
|
||||
? '- Multi-agent mode: specialist investigators may already have collected a briefing. Trust those facts; only call extra tools for gaps.'
|
||||
? '- Multi-agent is DYNAMIC: the host only fans out specialists for broad investigations (what\'s wrong, full health, multi-domain). Single questions use normal tools only.'
|
||||
: '',
|
||||
'',
|
||||
'Tool playbook (use these exact tool names and chart ids):',
|
||||
'- Host health / "what\'s wrong" / diagnose / investigate → investigate_host FIRST (one-shot findings).',
|
||||
' Lighter alternative: host_snapshot. Do NOT use md.health for general health.',
|
||||
'- "Show me a graph/chart/plot" → search_charts if needed, then show_charts with concrete chart ids.',
|
||||
' show_charts pins to the board, sets window (preset=5m|1h|…), optional mode=line|area|bar|pie, focus.',
|
||||
' show_charts pins to the Charts wall board, sets window (preset=5m|1h|…), optional mode=line|area|bar|pie.',
|
||||
' Example: show_charts charts=system.cpu,system.ram preset=15m mode=area boardOnly=true.',
|
||||
'- Custom Dashboard tab (saved boards) → create_dashboard name=… charts=system.cpu,system.ram',
|
||||
' then open_dashboard. Edit with add_dashboard_charts / remove_dashboard_charts / update_dashboard / list_dashboards.',
|
||||
'- Single chart focus → open_chart chart=system.cpu (optional pin, mode, preset, ts).',
|
||||
'- Pin/unpin board → pin_charts; change type → set_chart_type; window → set_time_window; search wall → filter_charts.',
|
||||
'- Related wall panel → show_related_ui; Metric Correlations UI → run_correlations.',
|
||||
@@ -69,6 +71,7 @@ export const SAMPLE_PROMPTS = [
|
||||
'Summarize host health right now',
|
||||
"What's wrong — investigate this host",
|
||||
'Show me live graphs for CPU and RAM (15m)',
|
||||
'Create a dashboard named SRE Core with CPU, RAM, load, and disk IO',
|
||||
'Plot disk / io charts as an area board',
|
||||
'Why might CPU be high?',
|
||||
'Show hot / spiking metrics and open them',
|
||||
|
||||
Reference in New Issue
Block a user