Class: ClaudeAgentSDK::SubagentStartHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::SubagentStartHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SubagentStart hook input
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
Returns the value of attribute agent_id.
-
#agent_type ⇒ Object
Returns the value of attribute agent_type.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'SubagentStart', agent_id: nil, agent_type: nil, **base_args) ⇒ SubagentStartHookInput
constructor
A new instance of SubagentStartHookInput.
Constructor Details
#initialize(hook_event_name: 'SubagentStart', agent_id: nil, agent_type: nil, **base_args) ⇒ SubagentStartHookInput
Returns a new instance of SubagentStartHookInput.
856 857 858 859 860 861 |
# File 'lib/claude_agent_sdk/types.rb', line 856 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_id ⇒ Object
Returns the value of attribute agent_id.
854 855 856 |
# File 'lib/claude_agent_sdk/types.rb', line 854 def agent_id @agent_id end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
854 855 856 |
# File 'lib/claude_agent_sdk/types.rb', line 854 def agent_type @agent_type end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
854 855 856 |
# File 'lib/claude_agent_sdk/types.rb', line 854 def hook_event_name @hook_event_name end |