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.
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_type ⇒ Object
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_name ⇒ Object
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 |
#model ⇒ Object
Returns the value of attribute model.
915 916 917 |
# File 'lib/claude_agent_sdk/types.rb', line 915 def model @model end |
#source ⇒ Object
Returns the value of attribute source.
915 916 917 |
# File 'lib/claude_agent_sdk/types.rb', line 915 def source @source end |