You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Extra guidance injected after failed tool calls to prevent fabricated follow-up actions.
90
97
constTOOL_ERROR_GUIDANCE:&str =
91
98
"[System: One or more tool calls failed. Failed tools did not produce usable data. Do NOT invent missing results, cite nonexistent search results, or pretend failed tools succeeded. If your next steps depend on a failed tool, either retry with a materially different approach or explain the failure to the user and stop. Do not write files, store memory, or take downstream actions based on failed tool outputs.]";
@@ -463,8 +470,9 @@ pub async fn run_agent_loop(
463
470
crate::reply_directives::parse_directives(&text);
464
471
let text = cleaned_text;
465
472
466
-
// NO_REPLY: agent intentionally chose not to reply
467
-
if text.trim() == "NO_REPLY" || parsed_directives.silent{
473
+
// NO_REPLY / [SILENT]: agent intentionally chose not to reply.
474
+
// [SILENT] must not be stored literally — it reinforces silence in future turns.
0 commit comments