Class: RosettAi::Mcp::Prompts::DiagnosticsPrompt

Inherits:
Object
  • Object
show all
Defined in:
lib/rosett_ai/mcp/prompts/diagnostics_prompt.rb

Overview

MCP prompt: diagnostics workflow.

Provides a structured prompt for AI agents to run diagnostics and troubleshoot issues.

Author:

  • hugo

  • claude

Constant Summary collapse

PROMPT_NAME =
'rai_diagnostics_workflow'
DESCRIPTION =
'Run diagnostics and troubleshoot issues'

Instance Method Summary collapse

Instance Method Details

#call(check: nil) ⇒ Array<Hash>

Generates the diagnostics prompt messages.

Parameters:

  • check (String, nil) (defaults to: nil)

    specific check to focus on

Returns:

  • (Array<Hash>)

    MCP prompt messages



24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/rosett_ai/mcp/prompts/diagnostics_prompt.rb', line 24

def call(check: nil)
  check_text = check ? " specifically the '#{check}' check" : ''
  [
    {
      role: 'user',
      content: {
        type: 'text',
        text: "Please run rosett-ai diagnostics#{check_text}. " \
              'Use the Rosett-AI_doctor tool to check system health, then ' \
              'review any failures and suggest troubleshooting steps.'
      }
    }
  ]
end