File size: 313 Bytes
77324b8 | 1 2 3 4 5 6 7 8 9 10 11 12 | """Shared predicates for approval-gated tool operations."""
from typing import Any
def normalize_tool_operation(operation: Any) -> str:
return str(operation or "").strip().lower()
def is_scheduled_operation(operation: Any) -> bool:
return normalize_tool_operation(operation).startswith("scheduled ")
|