Skip to main content

decide

Function decide 

Source
pub fn decide(
    tool_name: &str,
    tool_input: &Value,
    marker: Option<&GuardMarker>,
    now_ms: i64,
) -> GuardDecision
Expand description

Decide whether a tool call should be allowed while the eval guard is armed.

tool_input is the harness-supplied argument object. now_ms is the current time in epoch milliseconds (parameterized for testability; callers pass the real clock).