Class: ClaudeAgentSDK::StopFailureHookInput

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

Overview

StopFailure 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 = {}) ⇒ StopFailureHookInput

Returns a new instance of StopFailureHookInput.



797
798
799
800
# File 'lib/claude_agent_sdk/types.rb', line 797

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

Dynamic Method Handling

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

Instance Attribute Details

#errorObject

Returns the value of attribute error.



795
796
797
# File 'lib/claude_agent_sdk/types.rb', line 795

def error
  @error
end

#error_detailsObject

Returns the value of attribute error_details.



795
796
797
# File 'lib/claude_agent_sdk/types.rb', line 795

def error_details
  @error_details
end

#last_assistant_messageObject

Returns the value of attribute last_assistant_message.



795
796
797
# File 'lib/claude_agent_sdk/types.rb', line 795

def last_assistant_message
  @last_assistant_message
end