forked from retoor/devplacepy
fix: correct spelling of "Update" in commit message to "Update"
This commit is contained in:
@@ -524,9 +524,15 @@ class LLMClient:
|
||||
def _decision_prompt(page_state: dict, menu: list[dict], history: list[str]) -> str:
|
||||
menu_lines = "\n".join(f"- {item['action']}: {item['desc']}" for item in menu)
|
||||
recent = "; ".join(history[-8:]) if history else "nothing yet this visit"
|
||||
unread = page_state.get("unread_notifications", 0)
|
||||
unread_line = (
|
||||
f"\nUNREAD NOTIFICATIONS: {unread} (someone may have mentioned or replied to you)"
|
||||
if unread
|
||||
else ""
|
||||
)
|
||||
return (
|
||||
f"PAGE: {page_state.get('page', 'unknown')}\n"
|
||||
f"VISIBLE: {page_state.get('visible', '')}\n"
|
||||
f"VISIBLE: {page_state.get('visible', '')}{unread_line}\n"
|
||||
f"MENU:\n{menu_lines}\n"
|
||||
f"RECENT (this visit): {recent}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user