Class: ClaudeAgentSDK::PreToolUseHookInput

Inherits:
BaseHookInput show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

PreToolUse hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #hook_event_name, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ PreToolUseHookInput

Returns a new instance of PreToolUseHookInput.



579
580
581
582
# File 'lib/claude_agent_sdk/types.rb', line 579

def initialize(attributes = {})
  super
  @hook_event_name = 'PreToolUse'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#agent_idObject

Returns the value of attribute agent_id.



577
578
579
# File 'lib/claude_agent_sdk/types.rb', line 577

def agent_id
  @agent_id
end

#agent_typeObject

Returns the value of attribute agent_type.



577
578
579
# File 'lib/claude_agent_sdk/types.rb', line 577

def agent_type
  @agent_type
end

#tool_inputObject

Returns the value of attribute tool_input.



577
578
579
# File 'lib/claude_agent_sdk/types.rb', line 577

def tool_input
  @tool_input
end

#tool_nameObject

Returns the value of attribute tool_name.



577
578
579
# File 'lib/claude_agent_sdk/types.rb', line 577

def tool_name
  @tool_name
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



577
578
579
# File 'lib/claude_agent_sdk/types.rb', line 577

def tool_use_id
  @tool_use_id
end