Class: RosettAi::Mcp::Prompts::DiagnosticsPrompt
- Inherits:
-
Object
- Object
- RosettAi::Mcp::Prompts::DiagnosticsPrompt
- 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.
Constant Summary collapse
- PROMPT_NAME =
'rai_diagnostics_workflow'- DESCRIPTION =
'Run diagnostics and troubleshoot issues'
Instance Method Summary collapse
-
#call(check: nil) ⇒ Array<Hash>
Generates the diagnostics prompt messages.
Instance Method Details
#call(check: nil) ⇒ Array<Hash>
Generates the diagnostics 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 |