Class: ClaudeAgentSDK::SessionStartHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::SessionStartHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SessionStart hook input
Instance Attribute Summary collapse
-
#agent_type ⇒ Object
Returns the value of attribute agent_type.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#model ⇒ Object
Returns the value of attribute model.
-
#source ⇒ Object
Returns the value of attribute source.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'SessionStart', source: nil, agent_type: nil, model: nil, **base_args) ⇒ SessionStartHookInput
constructor
A new instance of SessionStartHookInput.
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_type ⇒ Object
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_name ⇒ Object
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 |
#model ⇒ Object
Returns the value of attribute model.
894 895 896 |
# File 'lib/claude_agent_sdk/types.rb', line 894 def model @model end |
#source ⇒ Object
Returns the value of attribute source.
894 895 896 |
# File 'lib/claude_agent_sdk/types.rb', line 894 def source @source end |