mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-20 13:38:11 +02:00
Lot 6 : petites règles de la boucle d'un tour (chat::nudges)
Port de llm_budget.go (palier AGENT_BUDGET, rappels qui reviennent à chaque palier), appendNudge, steerSystem, dedupableTool, repeatedCallResult et toolResultPreview : ce qui manquait à la boucle d'un tour en plus des modules déjà portés. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tcGfJWefW5kUGoC2wL8cv
This commit is contained in:
2 files changed
+228
-1
No files matched your search
@@ -99,7 +99,7 @@ const THINK_CLOSE: &str = "</think>";
|
||||
// une demande de l'utilisateur.
|
||||
const LOKI_NOTE_PREFIX: &str = "[system] ";
|
||||
pub(crate) const THINK_NUDGE_FIRST: &str = "You reasoned but did not call a tool or answer. Act NOW: call the appropriate tool directly (e.g. mem_search/mem_read/bash), or give your final answer if you already have the info. Don't explain, act.";
|
||||
const THINK_NUDGE_STUCK: &str = "You are stuck re-describing the same plan without executing it. Stop reasoning. In your NEXT message, either call ONE tool right now, or write your final answer in plain text using only what you already know — no more planning, no more thinking, act or answer this instant.";
|
||||
pub(crate) const THINK_NUDGE_STUCK: &str = "You are stuck re-describing the same plan without executing it. Stop reasoning. In your NEXT message, either call ONE tool right now, or write your final answer in plain text using only what you already know — no more planning, no more thinking, act or answer this instant.";
|
||||
const RETRY_CORRECTIVE_LEAD: &str =
|
||||
"Your last answer contained a TOOL CALL WRITTEN AS TEXT — it was never executed:\n";
|
||||
const TOOLS_OFF_HINT: &str = "Do not call any more tools. Answer now, directly, in the user's language, using only the information already gathered.";
|
||||
|
||||
Reference in new issue
Block a user