Class: RosettAi::Mcp::Prompts::CompliancePrompt
- Inherits:
-
Object
- Object
- RosettAi::Mcp::Prompts::CompliancePrompt
- Defined in:
- lib/rosett_ai/mcp/prompts/compliance_prompt.rb
Overview
MCP prompt: compliance workflow.
Provides a structured prompt for AI agents to run compliance checks and interpret the results.
Constant Summary collapse
- PROMPT_NAME =
'rai_compliance_workflow'- DESCRIPTION =
'Run compliance checks and interpret results'
Instance Method Summary collapse
-
#call(scope: nil) ⇒ Array<Hash>
Generates the compliance prompt messages.
Instance Method Details
#call(scope: nil) ⇒ Array<Hash>
Generates the compliance prompt messages.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rosett_ai/mcp/prompts/compliance_prompt.rb', line 24 def call(scope: nil) scope_text = scope ? " focusing on #{scope} checks" : '' [ { role: 'user', content: { type: 'text', text: "Please run rosett-ai compliance checks#{scope_text}. " \ 'Use the Rosett-AI_comply tool to check for violations, then ' \ 'review any findings and suggest remediation steps.' } } ] end |