Georgii Savin commited on
Commit
988c006
·
unverified ·
1 Parent(s): 6b58ece

feat: adjust scene plot

Browse files
Files changed (1) hide show
  1. src/agent/prompts.py +12 -5
src/agent/prompts.py CHANGED
@@ -13,20 +13,27 @@ Return ONLY a JSON object with:
13
  Translate the lore, goal, milestones and endings to the language which is used in the game and setting description.
14
  """
15
 
16
- SCENE_PROMPT = """
17
- Using the provided lore and history, generate the next scene.
 
 
 
18
  Lore: {lore}
19
  Goal: {goal}
20
  Milestones: {milestones}
21
  Endings: {endings}
 
 
 
22
  History: {history}
23
  Last choice: {last_choice}
 
 
24
  The scene description must be 2-5 sentences and no more than 150 words.
25
- Each choice text must be concise, up to 10 words.
26
  Respond ONLY with JSON containing:
27
- - description: short summary of the scene
28
  - choices: exactly two dicts {{"text": ..., "next_scene_short_desc": ...}}
29
- Translate the scene description and choices into a language of lore language.
30
  """
31
 
32
  ENDING_CHECK_PROMPT = """
 
13
  Translate the lore, goal, milestones and endings to the language which is used in the game and setting description.
14
  """
15
 
16
+ SCENE_PROMPT = """You are an AI agent for a visual novel game.
17
+ Your role is to process incoming data and generate the next scene description and choices.
18
+ Translate the scene description and choices into a language which is used in the Game Settings.
19
+
20
+ ---Game Settings START---
21
  Lore: {lore}
22
  Goal: {goal}
23
  Milestones: {milestones}
24
  Endings: {endings}
25
+ ---Game Settings END---
26
+
27
+ ---User's actions START---
28
  History: {history}
29
  Last choice: {last_choice}
30
+ ---User's actions END---
31
+
32
  The scene description must be 2-5 sentences and no more than 150 words.
33
+ Each choice text must be concise, up to 12 words.
34
  Respond ONLY with JSON containing:
35
+ - description: current scene description based on the user's actions and the game settings
36
  - choices: exactly two dicts {{"text": ..., "next_scene_short_desc": ...}}
 
37
  """
38
 
39
  ENDING_CHECK_PROMPT = """