Returns `true` if this hook type represents a tool use event.
(&self)
| 124 | |
| 125 | /// Returns `true` if this hook type represents a tool use event. |
| 126 | pub fn is_tool_use(&self) -> bool { |
| 127 | matches!(self, HookType::PreToolUse | HookType::PostToolUse) |
| 128 | } |
| 129 | |
| 130 | /// Parse a hook type from an agent-specific verb string. |
| 131 | /// |