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.



374
375
376
377
378
379
# File 'lib/claude_agent_sdk/types.rb', line 374

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.



372
373
374
# File 'lib/claude_agent_sdk/types.rb', line 372

def agent_id
  @agent_id
end

#agent_typeObject

Returns the value of attribute agent_type.



372
373
374
# File 'lib/claude_agent_sdk/types.rb', line 372

def agent_type
  @agent_type
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



372
373
374
# File 'lib/claude_agent_sdk/types.rb', line 372

def hook_event_name
  @hook_event_name
end