Class: ClaudeAgentSDK::PostToolUseHookInput

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

Overview

PostToolUse 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: 'PostToolUse', tool_name: nil, tool_input: nil, tool_response: nil, **base_args) ⇒ PostToolUseHookInput

Returns a new instance of PostToolUseHookInput.



286
287
288
289
290
291
292
# File 'lib/claude_agent_sdk/types.rb', line 286

def initialize(hook_event_name: 'PostToolUse', tool_name: nil, tool_input: nil, tool_response: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @tool_name = tool_name
  @tool_input = tool_input
  @tool_response = tool_response
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



284
285
286
# File 'lib/claude_agent_sdk/types.rb', line 284

def hook_event_name
  @hook_event_name
end

#tool_inputObject

Returns the value of attribute tool_input.



284
285
286
# File 'lib/claude_agent_sdk/types.rb', line 284

def tool_input
  @tool_input
end

#tool_nameObject

Returns the value of attribute tool_name.



284
285
286
# File 'lib/claude_agent_sdk/types.rb', line 284

def tool_name
  @tool_name
end

#tool_responseObject

Returns the value of attribute tool_response.



284
285
286
# File 'lib/claude_agent_sdk/types.rb', line 284

def tool_response
  @tool_response
end