Skip to main content

SUPERVISOR_NUDGE_TOOL

Constant SUPERVISOR_NUDGE_TOOL 

Source
pub(crate) const SUPERVISOR_NUDGE_TOOL: &str = r#"{
  "name": "SupervisorNudge",
  "description": "For a Warden Supervisor watcher agent: record a decision about a target agent that just ended its turn, after inspecting it with GetAgentTranscript. action=\"nudge\" delivers a fixed, server-owned continuation message to the target as an ordinary jekt and logs the decision — this tool does NOT accept custom message text; the nudge is deliberately a narrow, non-composable template, not an instruction you write per-situation. action=\"decline\" sends nothing and just logs that you chose not to nudge (e.g. the target isn't opted in, or looks genuinely done/blocked, not merely pausing to ask). A nudge is refused (tool error) if the target hasn't opted in via auto_continue_enabled, or if it would exceed the server-side consecutive-nudge ceiling — treat either as a signal to stop nudging this target and escalate to a human via SendMessage instead of retrying.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "target_agent": { "type": "string", "description": "Name of the agent this decision is about (its AGENTMUX_AGENT_ID value)" },
      "action":       { "type": "string", "enum": ["nudge", "decline"], "description": "Whether to nudge the target to continue or decline to" },
      "reason":       { "type": "string", "description": "Your stated reasoning for this decision, recorded in the audit log" }
    },
    "required": ["target_agent", "action"]
  }
}"#;