Class: RosettAi::Mcp::Prompts::ValidationPrompt

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

Overview

MCP prompt: validation workflow.

Provides a structured prompt for AI agents to validate rai configuration and suggest fixes for any issues found.

Author:

  • hugo

  • claude

Constant Summary collapse

PROMPT_NAME =
'rai_validation_workflow'
DESCRIPTION =
'Validate rai configuration and suggest fixes'

Instance Method Summary collapse

Instance Method Details

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

Generates the validation prompt messages.

Parameters:

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

    optional scope filter

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/validation_prompt.rb', line 24

def call(scope: nil)
  scope_text = scope ? " for scope '#{scope}'" : ''
  [
    {
      role: 'user',
      content: {
        type: 'text',
        text: "Please validate all rai configuration files#{scope_text}. " \
              'Use the Rosett-AI_validate tool to check for errors, then review ' \
              'any issues found and suggest specific fixes.'
      }
    }
  ]
end