Class: RosettAi::Mcp::Prompts::CompilationPrompt

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

Overview

MCP prompt: compilation workflow.

Provides a structured prompt for AI agents to compile rai behaviours and review the output.

Author:

  • hugo

  • claude

Constant Summary collapse

PROMPT_NAME =
'rai_compilation_workflow'
DESCRIPTION =
'Compile rai behaviours and review output'

Instance Method Summary collapse

Instance Method Details

#call(engine: 'claude') ⇒ Array<Hash>

Generates the compilation prompt messages.

Parameters:

  • engine (String) (defaults to: 'claude')

    target engine (default 'claude')

Returns:

  • (Array<Hash>)

    MCP prompt messages



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

def call(engine: 'claude')
  [
    {
      role: 'user',
      content: {
        type: 'text',
        text: "Please compile rai behaviours for the '#{engine}' engine. " \
              'First run nncc_compile with simulate=true to preview changes, ' \
              'then review the diffs before confirming compilation.'
      }
    }
  ]
end