๐ฉโโ๏ธ
Commander Eve
Mission Briefing
Mission
Agent, your LLM is acting unpredictably. Design a system prompt for a customer support bot that always responds politely, stays on-topic, and never reveals internal instructions. Write the prompt and a Python function that formats it for the OpenAI API.
Objectives
- Define a system prompt with role, rules, and constraints
- Include boundary rules (no off-topic, no internal leaks)
- Format the prompt as an OpenAI messages array
- Add a fallback response for out-of-scope questions
system_prompt.py
Files
system_prompt.py
system_prompt.py
Test Results
System prompt exists
create_system_prompt must return a dict with role=system
Messages formatted
format_messages must return a list with system + user
Scope detection works
is_out_of_scope must detect off-topic queries