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, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'PreToolUse', tool_name: nil, tool_input: nil, tool_use_id: nil, agent_id: nil, agent_type: nil, **base_args) ⇒ PreToolUseHookInput

Returns a new instance of PreToolUseHookInput.



751
752
753
754
755
756
757
758
759
760
# File 'lib/claude_agent_sdk/types.rb', line 751

def initialize(hook_event_name: 'PreToolUse', tool_name: nil, tool_input: nil, tool_use_id: nil,
               agent_id: nil, agent_type: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @tool_name = tool_name
  @tool_input = tool_input
  @tool_use_id = tool_use_id
  @agent_id = agent_id
  @agent_type = agent_type
end

Instance Attribute Details

#agent_idObject

Returns the value of attribute agent_id.



749
750
751
# File 'lib/claude_agent_sdk/types.rb', line 749

def agent_id
  @agent_id
end

#agent_typeObject

Returns the value of attribute agent_type.



749
750
751
# File 'lib/claude_agent_sdk/types.rb', line 749

def agent_type
  @agent_type
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



749
750
751
# File 'lib/claude_agent_sdk/types.rb', line 749

def hook_event_name
  @hook_event_name
end

#tool_inputObject

Returns the value of attribute tool_input.



749
750
751
# File 'lib/claude_agent_sdk/types.rb', line 749

def tool_input
  @tool_input
end

#tool_nameObject

Returns the value of attribute tool_name.



749
750
751
# File 'lib/claude_agent_sdk/types.rb', line 749

def tool_name
  @tool_name
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



749
750
751
# File 'lib/claude_agent_sdk/types.rb', line 749

def tool_use_id
  @tool_use_id
end