MCPcopy Create free account
hub / github.com/AI45Lab/Code / requires_confirmation

Method requires_confirmation

core/src/hitl.rs:99–101  ·  view source on GitHub ↗

Check if a tool requires confirmation This is the inverse of `is_yolo()` — returns true when HITL is enabled and the tool's lane is NOT in YOLO mode.

(&self, tool_name: &str)

Source from the content-addressed store, hash-verified

97 /// This is the inverse of `is_yolo()` — returns true when HITL is enabled
98 /// and the tool's lane is NOT in YOLO mode.
99 pub fn requires_confirmation(&self, tool_name: &str) -> bool {
100 !self.is_yolo(tool_name)
101 }
102}
103
104/// Confirmation response from user

Callers 1

confirmation_decisionMethod · 0.45

Calls 1

is_yoloMethod · 0.80

Tested by

no test coverage detected