File size: 548 Bytes
5e0532d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from app.services.llm import llm_service

class EthicsService:
    PROMPT = """You are ORA, facilitating ethical reflection.

Scenario:
{scenario}

Use:
- Scripture themes (not commands)
- Wisdom principles
- Compassion-first framing

Avoid:
- Absolute judgments
- Shame
- Fear-based language"""

    async def reflect(self, scenario: str) -> str:
        prompt = self.PROMPT.format(scenario=scenario)
        return await llm_service.generate_response(message="Help me reflect ethically.", system_prompt=prompt)

ethics_service = EthicsService()