Class: ClaudeAgentSDK::StopFailureHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::StopFailureHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
StopFailure hook input
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_details ⇒ Object
Returns the value of attribute error_details.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#last_assistant_message ⇒ Object
Returns the value of attribute last_assistant_message.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'StopFailure', error: nil, error_details: nil, last_assistant_message: nil, **base_args) ⇒ StopFailureHookInput
constructor
A new instance of StopFailureHookInput.
Constructor Details
#initialize(hook_event_name: 'StopFailure', error: nil, error_details: nil, last_assistant_message: nil, **base_args) ⇒ StopFailureHookInput
Returns a new instance of StopFailureHookInput.
993 994 995 996 997 998 999 1000 |
# File 'lib/claude_agent_sdk/types.rb', line 993 def initialize(hook_event_name: 'StopFailure', error: nil, error_details: nil, last_assistant_message: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @error = error @error_details = error_details @last_assistant_message = end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
991 992 993 |
# File 'lib/claude_agent_sdk/types.rb', line 991 def error @error end |
#error_details ⇒ Object
Returns the value of attribute error_details.
991 992 993 |
# File 'lib/claude_agent_sdk/types.rb', line 991 def error_details @error_details end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
991 992 993 |
# File 'lib/claude_agent_sdk/types.rb', line 991 def hook_event_name @hook_event_name end |
#last_assistant_message ⇒ Object
Returns the value of attribute last_assistant_message.
991 992 993 |
# File 'lib/claude_agent_sdk/types.rb', line 991 def @last_assistant_message end |