File size: 411 Bytes
b8a2bdc
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from utils import load_config
import textwrap

def build_world_prompt(user_prompt: str, extra_notes: str = "") -> str:
    cfg = load_config()
    template = cfg.get('templates', {}).get('world_overview', '').strip()
    parts = ["User seed:", user_prompt.strip()]
    if extra_notes:
        parts += ["Extra notes:", extra_notes.strip()]
    parts += ["Instructions:", template]
    return "\n\n".join(parts)