kikikita commited on
Commit
63bdab3
·
1 Parent(s): d8e2b36

fix: correct typo in STORY_FRAME_PROMPT and enhance SCENE_PROMPT clarity

Browse files
Files changed (2) hide show
  1. src/agent/prompts.py +3 -1
  2. src/agent/tools.py +0 -1
src/agent/prompts.py CHANGED
@@ -10,7 +10,7 @@ Return ONLY a JSON object with:
10
  - milestones: 2-4 key events (id, description)
11
  - endings: good/bad endings (id, type, condition, description)
12
  Translate the lore, goal, milestones and endings into
13
- a langueage of setting language.
14
  """
15
 
16
  SCENE_PROMPT = """
@@ -21,6 +21,8 @@ Milestones: {milestones}
21
  Endings: {endings}
22
  History: {history}
23
  Last choice: {last_choice}
 
 
24
  Respond ONLY with JSON containing:
25
  - description: short summary of the scene
26
  - choices: exactly two dicts {{"text": ..., "next_scene_short_desc": ...}}
 
10
  - milestones: 2-4 key events (id, description)
11
  - endings: good/bad endings (id, type, condition, description)
12
  Translate the lore, goal, milestones and endings into
13
+ a language of setting language.
14
  """
15
 
16
  SCENE_PROMPT = """
 
21
  Endings: {endings}
22
  History: {history}
23
  Last choice: {last_choice}
24
+ The scene description must be 2-3 sentences and no more than 50 words.
25
+ Each choice text must be concise, up to 7 words.
26
  Respond ONLY with JSON containing:
27
  - description: short summary of the scene
28
  - choices: exactly two dicts {{"text": ..., "next_scene_short_desc": ...}}
src/agent/tools.py CHANGED
@@ -115,7 +115,6 @@ async def generate_scene_image(
115
  state = get_user_state(user_hash)
116
  if scene_id in state.scenes:
117
  state.scenes[scene_id].image = image_path
118
- state.assets[scene_id] = image_path
119
  set_user_state(user_hash, state)
120
  return image_path
121
  except Exception as exc: # noqa: BLE001
 
115
  state = get_user_state(user_hash)
116
  if scene_id in state.scenes:
117
  state.scenes[scene_id].image = image_path
 
118
  set_user_state(user_hash, state)
119
  return image_path
120
  except Exception as exc: # noqa: BLE001