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.



917
918
919
920
921
922
923
# File 'lib/claude_agent_sdk/types.rb', line 917

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.



915
916
917
# File 'lib/claude_agent_sdk/types.rb', line 915

def agent_type
  @agent_type
end

#hook_event_nameObject

Returns the value of attribute hook_event_name.



915
916
917
# File 'lib/claude_agent_sdk/types.rb', line 915

def hook_event_name
  @hook_event_name
end

#modelObject

Returns the value of attribute model.



915
916
917
# File 'lib/claude_agent_sdk/types.rb', line 915

def model
  @model
end

#sourceObject

Returns the value of attribute source.



915
916
917
# File 'lib/claude_agent_sdk/types.rb', line 915

def source
  @source
end