Class: ClaudeAgentSDK::PostToolUseFailureHookInput

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

Overview

PostToolUseFailure 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: 'PostToolUseFailure', tool_name: nil, tool_input: nil, tool_use_id: nil, error: nil, is_interrupt: nil, **base_args) ⇒ PostToolUseFailureHookInput

Returns a new instance of PostToolUseFailureHookInput.



336
337
338
339
340
341
342
343
344
345
# File 'lib/claude_agent_sdk/types.rb', line 336

def initialize(hook_event_name: 'PostToolUseFailure', tool_name: nil, tool_input: nil, tool_use_id: nil,
               error: nil, is_interrupt: 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
  @error = error
  @is_interrupt = is_interrupt
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



334
335
336
# File 'lib/claude_agent_sdk/types.rb', line 334

def error
  @error
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



334
335
336
# File 'lib/claude_agent_sdk/types.rb', line 334

def hook_event_name
  @hook_event_name
end

#is_interruptObject

Returns the value of attribute is_interrupt.



334
335
336
# File 'lib/claude_agent_sdk/types.rb', line 334

def is_interrupt
  @is_interrupt
end

#tool_inputObject

Returns the value of attribute tool_input.



334
335
336
# File 'lib/claude_agent_sdk/types.rb', line 334

def tool_input
  @tool_input
end

#tool_nameObject

Returns the value of attribute tool_name.



334
335
336
# File 'lib/claude_agent_sdk/types.rb', line 334

def tool_name
  @tool_name
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



334
335
336
# File 'lib/claude_agent_sdk/types.rb', line 334

def tool_use_id
  @tool_use_id
end