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, #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 = {}) ⇒ StopHookInput

Returns a new instance of StopHookInput.



609
610
611
612
613
# File 'lib/claude_agent_sdk/types.rb', line 609

def initialize(attributes = {})
  super
  @hook_event_name = 'Stop'
  @stop_hook_active = false if @stop_hook_active.nil?
end

Dynamic Method Handling

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

Instance Attribute Details

#last_assistant_messageObject

Returns the value of attribute last_assistant_message.



607
608
609
# File 'lib/claude_agent_sdk/types.rb', line 607

def last_assistant_message
  @last_assistant_message
end

#stop_hook_activeObject

Returns the value of attribute stop_hook_active.



607
608
609
# File 'lib/claude_agent_sdk/types.rb', line 607

def stop_hook_active
  @stop_hook_active
end