Class: ClaudeAgentSDK::SubagentStartHookInput

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

Overview

SubagentStart 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: 'SubagentStart', agent_id: nil, agent_type: nil, **base_args) ⇒ SubagentStartHookInput

Returns a new instance of SubagentStartHookInput.



408
409
410
411
412
413
# File 'lib/claude_agent_sdk/types.rb', line 408

def initialize(hook_event_name: 'SubagentStart', agent_id: nil, agent_type: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @agent_id = agent_id
  @agent_type = agent_type
end

Instance Attribute Details

#agent_idObject

Returns the value of attribute agent_id.



406
407
408
# File 'lib/claude_agent_sdk/types.rb', line 406

def agent_id
  @agent_id
end

#agent_typeObject

Returns the value of attribute agent_type.



406
407
408
# File 'lib/claude_agent_sdk/types.rb', line 406

def agent_type
  @agent_type
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



406
407
408
# File 'lib/claude_agent_sdk/types.rb', line 406

def hook_event_name
  @hook_event_name
end