Class: ClaudeAgentSDK::StopHookInput

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

Overview

Stop 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: 'Stop', stop_hook_active: false, last_assistant_message: nil, **base_args) ⇒ StopHookInput

Returns a new instance of StopHookInput.



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

def initialize(hook_event_name: 'Stop', stop_hook_active: false, last_assistant_message: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @stop_hook_active = stop_hook_active
  @last_assistant_message = last_assistant_message
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



793
794
795
# File 'lib/claude_agent_sdk/types.rb', line 793

def hook_event_name
  @hook_event_name
end

#last_assistant_messageObject

Returns the value of attribute last_assistant_message.



793
794
795
# File 'lib/claude_agent_sdk/types.rb', line 793

def last_assistant_message
  @last_assistant_message
end

#stop_hook_activeObject

Returns the value of attribute stop_hook_active.



793
794
795
# File 'lib/claude_agent_sdk/types.rb', line 793

def stop_hook_active
  @stop_hook_active
end