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

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'StopFailure', error: nil, error_details: nil, last_assistant_message: nil, **base_args) ⇒ StopFailureHookInput

Returns a new instance of StopFailureHookInput.



993
994
995
996
997
998
999
1000
# File 'lib/claude_agent_sdk/types.rb', line 993

def initialize(hook_event_name: 'StopFailure', error: nil, error_details: nil,
               last_assistant_message: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @error = error
  @error_details = error_details
  @last_assistant_message = last_assistant_message
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



991
992
993
# File 'lib/claude_agent_sdk/types.rb', line 991

def error
  @error
end

#error_detailsObject

Returns the value of attribute error_details.



991
992
993
# File 'lib/claude_agent_sdk/types.rb', line 991

def error_details
  @error_details
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



991
992
993
# File 'lib/claude_agent_sdk/types.rb', line 991

def hook_event_name
  @hook_event_name
end

#last_assistant_messageObject

Returns the value of attribute last_assistant_message.



991
992
993
# File 'lib/claude_agent_sdk/types.rb', line 991

def last_assistant_message
  @last_assistant_message
end