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.



763
764
765
766
# File 'lib/claude_agent_sdk/types.rb', line 763

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.



761
762
763
# File 'lib/claude_agent_sdk/types.rb', line 761

def error
  @error
end

#error_detailsObject

Returns the value of attribute error_details.



761
762
763
# File 'lib/claude_agent_sdk/types.rb', line 761

def error_details
  @error_details
end

#last_assistant_messageObject

Returns the value of attribute last_assistant_message.



761
762
763
# File 'lib/claude_agent_sdk/types.rb', line 761

def last_assistant_message
  @last_assistant_message
end