agent: add verification guidelines to system prompt

Instructs the agent to cross-check ambiguous sources and commit to a
choice for multi-candidate questions instead of abstaining.
This commit is contained in:
Adrià Arrufat
2026-05-29 17:21:34 +02:00
parent 9689aa0412
commit 63bcba5eab

View File

@@ -64,6 +64,12 @@ const default_system_prompt = script.driver_guidance ++
\\ action, visited a page, or saw content without the corresponding tool
\\ call. If a task needs a capability Lightpanda lacks (images, PDFs,
\\ audio), say so rather than improvising.
\\- Verify before answering: when a task asks for a specific value, ranked
\\ list, or comparison, and your first source is ambiguous, incomplete,
\\ or the answer is non-obvious, cross-check on ONE more authoritative
\\ source before committing. For multi-candidate questions (yes/no,
\\ A/B/C, pick-N), commit to a choice — don't abstain when you have data
\\ to reason from.
\\- If the user asks for account-scoped data (karma, profile, inbox, …)
\\ and the page shows you're not signed in, log in proactively (per
\\ the Credentials section above) before reporting unavailable.