Class: ClaudeAgentSDK::SessionStartHookInput

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

Overview

SessionStart 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: 'SessionStart', source: nil, agent_type: nil, model: nil, **base_args) ⇒ SessionStartHookInput

Returns a new instance of SessionStartHookInput.



896
897
898
899
900
901
902
# File 'lib/claude_agent_sdk/types.rb', line 896

def initialize(hook_event_name: 'SessionStart', source: nil, agent_type: nil, model: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @source = source # "startup", "resume", "clear", "compact"
  @agent_type = agent_type
  @model = model
end

Instance Attribute Details

#agent_typeObject

Returns the value of attribute agent_type.



894
895
896
# File 'lib/claude_agent_sdk/types.rb', line 894

def agent_type
  @agent_type
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



894
895
896
# File 'lib/claude_agent_sdk/types.rb', line 894

def hook_event_name
  @hook_event_name
end

#modelObject

Returns the value of attribute model.



894
895
896
# File 'lib/claude_agent_sdk/types.rb', line 894

def model
  @model
end

#sourceObject

Returns the value of attribute source.



894
895
896
# File 'lib/claude_agent_sdk/types.rb', line 894

def source
  @source
end