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

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'SubagentStop', stop_hook_active: false, agent_id: nil, agent_transcript_path: nil, agent_type: nil, last_assistant_message: nil, **base_args) ⇒ SubagentStopHookInput

Returns a new instance of SubagentStopHookInput.



808
809
810
811
812
813
814
815
816
817
# File 'lib/claude_agent_sdk/types.rb', line 808

def initialize(hook_event_name: 'SubagentStop', stop_hook_active: false, agent_id: nil,
               agent_transcript_path: nil, agent_type: nil, last_assistant_message: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @stop_hook_active = stop_hook_active
  @agent_id = agent_id
  @agent_transcript_path = agent_transcript_path
  @agent_type = agent_type
  @last_assistant_message = last_assistant_message
end

Instance Attribute Details

#agent_idObject

Returns the value of attribute agent_id.



805
806
807
# File 'lib/claude_agent_sdk/types.rb', line 805

def agent_id
  @agent_id
end

#agent_transcript_pathObject

Returns the value of attribute agent_transcript_path.



805
806
807
# File 'lib/claude_agent_sdk/types.rb', line 805

def agent_transcript_path
  @agent_transcript_path
end

#agent_typeObject

Returns the value of attribute agent_type.



805
806
807
# File 'lib/claude_agent_sdk/types.rb', line 805

def agent_type
  @agent_type
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



805
806
807
# File 'lib/claude_agent_sdk/types.rb', line 805

def hook_event_name
  @hook_event_name
end

#last_assistant_messageObject

Returns the value of attribute last_assistant_message.



805
806
807
# File 'lib/claude_agent_sdk/types.rb', line 805

def last_assistant_message
  @last_assistant_message
end

#stop_hook_activeObject

Returns the value of attribute stop_hook_active.



805
806
807
# File 'lib/claude_agent_sdk/types.rb', line 805

def stop_hook_active
  @stop_hook_active
end