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, **base_args) ⇒ SubagentStopHookInput

Returns a new instance of SubagentStopHookInput.



321
322
323
324
325
326
327
328
329
# File 'lib/claude_agent_sdk/types.rb', line 321

def initialize(hook_event_name: 'SubagentStop', stop_hook_active: false, agent_id: nil,
               agent_transcript_path: nil, agent_type: 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
end

Instance Attribute Details

#agent_idObject

Returns the value of attribute agent_id.



319
320
321
# File 'lib/claude_agent_sdk/types.rb', line 319

def agent_id
  @agent_id
end

#agent_transcript_pathObject

Returns the value of attribute agent_transcript_path.



319
320
321
# File 'lib/claude_agent_sdk/types.rb', line 319

def agent_transcript_path
  @agent_transcript_path
end

#agent_typeObject

Returns the value of attribute agent_type.



319
320
321
# File 'lib/claude_agent_sdk/types.rb', line 319

def agent_type
  @agent_type
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



319
320
321
# File 'lib/claude_agent_sdk/types.rb', line 319

def hook_event_name
  @hook_event_name
end

#stop_hook_activeObject

Returns the value of attribute stop_hook_active.



319
320
321
# File 'lib/claude_agent_sdk/types.rb', line 319

def stop_hook_active
  @stop_hook_active
end