Class: ClaudeAgentSDK::SubagentStopHookInput

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

Overview

SubagentStop 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 = {}) ⇒ SubagentStopHookInput

Returns a new instance of SubagentStopHookInput.



621
622
623
624
625
# File 'lib/claude_agent_sdk/types.rb', line 621

def initialize(attributes = {})
  super
  @hook_event_name = 'SubagentStop'
  @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

#agent_idObject

Returns the value of attribute agent_id.



618
619
620
# File 'lib/claude_agent_sdk/types.rb', line 618

def agent_id
  @agent_id
end

#agent_transcript_pathObject

Returns the value of attribute agent_transcript_path.



618
619
620
# File 'lib/claude_agent_sdk/types.rb', line 618

def agent_transcript_path
  @agent_transcript_path
end

#agent_typeObject

Returns the value of attribute agent_type.



618
619
620
# File 'lib/claude_agent_sdk/types.rb', line 618

def agent_type
  @agent_type
end

#last_assistant_messageObject

Returns the value of attribute last_assistant_message.



618
619
620
# File 'lib/claude_agent_sdk/types.rb', line 618

def last_assistant_message
  @last_assistant_message
end

#stop_hook_activeObject

Returns the value of attribute stop_hook_active.



618
619
620
# File 'lib/claude_agent_sdk/types.rb', line 618

def stop_hook_active
  @stop_hook_active
end