Class: ClaudeAgentSDK::SubagentStopHookInput
- Inherits:
-
BaseHookInput
- Object
- Type
- 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.
-
#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, #hook_event_name, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SubagentStopHookInput
constructor
A new instance of SubagentStopHookInput.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ SubagentStopHookInput
Returns a new instance of SubagentStopHookInput.
621 622 623 624 625 |
# File 'lib/claude_agent_sdk/types.rb', line 621 def initialize(attributes = {}) super @hook_event_name = 'SubagentStop' @stop_hook_active = false if @stop_hook_active.nil? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
618 619 620 |
# File 'lib/claude_agent_sdk/types.rb', line 618 def agent_id @agent_id end |
#agent_transcript_path ⇒ Object
Returns the value of attribute agent_transcript_path.
618 619 620 |
# File 'lib/claude_agent_sdk/types.rb', line 618 def agent_transcript_path @agent_transcript_path end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
618 619 620 |
# File 'lib/claude_agent_sdk/types.rb', line 618 def agent_type @agent_type end |
#last_assistant_message ⇒ Object
Returns the value of attribute last_assistant_message.
618 619 620 |
# File 'lib/claude_agent_sdk/types.rb', line 618 def @last_assistant_message end |
#stop_hook_active ⇒ Object
Returns the value of attribute stop_hook_active.
618 619 620 |
# File 'lib/claude_agent_sdk/types.rb', line 618 def stop_hook_active @stop_hook_active end |