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.
-
#last_assistant_message ⇒ Object
Returns the value of attribute last_assistant_message.
-
#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, last_assistant_message: 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, last_assistant_message: nil, **base_args) ⇒ SubagentStopHookInput
Returns a new instance of SubagentStopHookInput.
808 809 810 811 812 813 814 815 816 817 |
# File 'lib/claude_agent_sdk/types.rb', line 808 def initialize(hook_event_name: 'SubagentStop', stop_hook_active: false, agent_id: nil, agent_transcript_path: nil, agent_type: nil, last_assistant_message: 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 @last_assistant_message = end |
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
805 806 807 |
# File 'lib/claude_agent_sdk/types.rb', line 805 def agent_id @agent_id end |
#agent_transcript_path ⇒ Object
Returns the value of attribute agent_transcript_path.
805 806 807 |
# File 'lib/claude_agent_sdk/types.rb', line 805 def agent_transcript_path @agent_transcript_path end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
805 806 807 |
# File 'lib/claude_agent_sdk/types.rb', line 805 def agent_type @agent_type end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
805 806 807 |
# File 'lib/claude_agent_sdk/types.rb', line 805 def hook_event_name @hook_event_name end |
#last_assistant_message ⇒ Object
Returns the value of attribute last_assistant_message.
805 806 807 |
# File 'lib/claude_agent_sdk/types.rb', line 805 def @last_assistant_message end |
#stop_hook_active ⇒ Object
Returns the value of attribute stop_hook_active.
805 806 807 |
# File 'lib/claude_agent_sdk/types.rb', line 805 def stop_hook_active @stop_hook_active end |