MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_tool_use

Method is_tool_use

atomic-agent/src/event.rs:126–128  ·  view source on GitHub ↗

Returns `true` if this hook type represents a tool use event.

(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected