Class: ClaudeAgentSDK::PreToolUseHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::PreToolUseHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PreToolUse hook input
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#tool_input ⇒ Object
Returns the value of attribute tool_input.
-
#tool_name ⇒ Object
Returns the value of attribute tool_name.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'PreToolUse', tool_name: nil, tool_input: nil, **base_args) ⇒ PreToolUseHookInput
constructor
A new instance of PreToolUseHookInput.
Constructor Details
#initialize(hook_event_name: 'PreToolUse', tool_name: nil, tool_input: nil, **base_args) ⇒ PreToolUseHookInput
Returns a new instance of PreToolUseHookInput.
274 275 276 277 278 279 |
# File 'lib/claude_agent_sdk/types.rb', line 274 def initialize(hook_event_name: 'PreToolUse', tool_name: nil, tool_input: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @tool_name = tool_name @tool_input = tool_input end |
Instance Attribute Details
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
272 273 274 |
# File 'lib/claude_agent_sdk/types.rb', line 272 def hook_event_name @hook_event_name end |
#tool_input ⇒ Object
Returns the value of attribute tool_input.
272 273 274 |
# File 'lib/claude_agent_sdk/types.rb', line 272 def tool_input @tool_input end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
272 273 274 |
# File 'lib/claude_agent_sdk/types.rb', line 272 def tool_name @tool_name end |