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 =

Returns MCP prompt identifier string.

Returns:

  • (String)

    MCP prompt identifier string.

'rai_compilation_workflow'
DESCRIPTION =

Returns Human-readable description of this tool.

Returns:

  • (String)

    Human-readable description of this tool.

'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



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

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