fix
This commit is contained in:
@@ -133,6 +133,35 @@ Call the `submit_trigger_result` tool with:
|
||||
Your text response is ignored — only the tool call is used."""
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# === Intro Scene (opening scene generated when a session starts) ===
|
||||
INTRO_SCENE_SYSTEM = """You are the narrative writer of a role-playing game. The player has just created a new session and you must write the OPENING scene that sets the stage for the adventure.
|
||||
|
||||
CONTEXT:
|
||||
- Setting: {setting_description}
|
||||
- Initial world time: {current_time}
|
||||
- Player state: {player_state}
|
||||
- Plot rails (main goal + hooks): {plot_rails}
|
||||
|
||||
YOUR JOB:
|
||||
1. Call the `submit_scene` tool with:
|
||||
- `narrative`: 250-500 words of cinematic, second-person ("You...") prose that:
|
||||
a) establishes the setting and mood,
|
||||
b) introduces the player character based on `player_state`,
|
||||
c) plants the seed of the main goal / first hook from `plot_rails`,
|
||||
d) ends with a clear decision moment or call to action.
|
||||
- `options`: exactly 3 short (5-12 words) options for the player's first action.
|
||||
|
||||
CRITICAL:
|
||||
- Write the narrative in {world_language}.
|
||||
- Do NOT assume the player has done anything yet — this is the very first scene.
|
||||
- Do NOT use the player's name if it is empty or generic; address them as "you".
|
||||
- Set the tone: atmospheric, evocative, but grounded in the setting.
|
||||
- Your text response is ignored — only the `submit_scene` tool call is used.
|
||||
"""
|
||||
|
||||
PROMPTS = {
|
||||
"en": {
|
||||
"world_builder": WORLD_BUILDER_SYSTEM,
|
||||
@@ -141,6 +170,7 @@ PROMPTS = {
|
||||
"summarizer": SUMMARIZER_SYSTEM,
|
||||
"subagent": SUBAGENT_SYSTEM,
|
||||
"trigger_runner": TRIGGER_RUNNER_SYSTEM,
|
||||
"intro_scene": INTRO_SCENE_SYSTEM,
|
||||
},
|
||||
# Russian keys kept for backward compatibility but always return the English
|
||||
# prompts — system content is always English per the project convention.
|
||||
@@ -151,6 +181,7 @@ PROMPTS = {
|
||||
"summarizer": SUMMARIZER_SYSTEM,
|
||||
"subagent": SUBAGENT_SYSTEM,
|
||||
"trigger_runner": TRIGGER_RUNNER_SYSTEM,
|
||||
"intro_scene": INTRO_SCENE_SYSTEM,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user