feat: per-POV summary and edge summary update on scene close
This commit is contained in:
@@ -87,6 +87,7 @@ def client(tmp_path, monkeypatch):
|
||||
# 3. state_update bot->you
|
||||
# 4. state_update you->bot
|
||||
# 5. detect_scene_close (runs AFTER assistant_turn — see turns.py)
|
||||
# 6. summarize_scene (T27, runs only when scene-close fires)
|
||||
parse_canned = json.dumps(
|
||||
{"segments": [{"kind": "dialogue", "text": "hello"}]}
|
||||
)
|
||||
@@ -101,6 +102,13 @@ def client(tmp_path, monkeypatch):
|
||||
"new_container_hint": "park",
|
||||
}
|
||||
)
|
||||
pov_summary_canned = json.dumps(
|
||||
{
|
||||
"summary": "BotA noticed you leaving the office.",
|
||||
"knowledge_facts": [],
|
||||
"relationship_summary": "BotA wonders where you're headed.",
|
||||
}
|
||||
)
|
||||
|
||||
from chat.web.kickoff import get_llm_client
|
||||
|
||||
@@ -111,6 +119,7 @@ def client(tmp_path, monkeypatch):
|
||||
state_update_canned,
|
||||
state_update_canned,
|
||||
scene_close_canned,
|
||||
pov_summary_canned,
|
||||
]
|
||||
)
|
||||
app.dependency_overrides[get_llm_client] = lambda: mock
|
||||
|
||||
Reference in New Issue
Block a user