Class: ClaudeAgentSDK::SubagentStopHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::SubagentStopHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SubagentStop hook input
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
Returns the value of attribute agent_id.
-
#agent_transcript_path ⇒ Object
Returns the value of attribute agent_transcript_path.
-
#agent_type ⇒ Object
Returns the value of attribute agent_type.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#stop_hook_active ⇒ Object
Returns the value of attribute stop_hook_active.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'SubagentStop', stop_hook_active: false, agent_id: nil, agent_transcript_path: nil, agent_type: nil, **base_args) ⇒ SubagentStopHookInput
constructor
A new instance of SubagentStopHookInput.
Constructor Details
#initialize(hook_event_name: 'SubagentStop', stop_hook_active: false, agent_id: nil, agent_transcript_path: nil, agent_type: nil, **base_args) ⇒ SubagentStopHookInput
Returns a new instance of SubagentStopHookInput.
330 331 332 333 334 335 336 337 338 |
# File 'lib/claude_agent_sdk/types.rb', line 330 def initialize(hook_event_name: 'SubagentStop', stop_hook_active: false, agent_id: nil, agent_transcript_path: nil, agent_type: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @stop_hook_active = stop_hook_active @agent_id = agent_id @agent_transcript_path = agent_transcript_path @agent_type = agent_type end |
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
328 329 330 |
# File 'lib/claude_agent_sdk/types.rb', line 328 def agent_id @agent_id end |
#agent_transcript_path ⇒ Object
Returns the value of attribute agent_transcript_path.
328 329 330 |
# File 'lib/claude_agent_sdk/types.rb', line 328 def agent_transcript_path @agent_transcript_path end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
328 329 330 |
# File 'lib/claude_agent_sdk/types.rb', line 328 def agent_type @agent_type end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
328 329 330 |
# File 'lib/claude_agent_sdk/types.rb', line 328 def hook_event_name @hook_event_name end |
#stop_hook_active ⇒ Object
Returns the value of attribute stop_hook_active.
328 329 330 |
# File 'lib/claude_agent_sdk/types.rb', line 328 def stop_hook_active @stop_hook_active end |