Class: ClaudeAgentSDK::PostToolUseFailureHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::PostToolUseFailureHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PostToolUseFailure hook input
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#is_interrupt ⇒ Object
Returns the value of attribute is_interrupt.
-
#tool_input ⇒ Object
Returns the value of attribute tool_input.
-
#tool_name ⇒ Object
Returns the value of attribute tool_name.
-
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'PostToolUseFailure', tool_name: nil, tool_input: nil, tool_use_id: nil, error: nil, is_interrupt: nil, **base_args) ⇒ PostToolUseFailureHookInput
constructor
A new instance of PostToolUseFailureHookInput.
Constructor Details
#initialize(hook_event_name: 'PostToolUseFailure', tool_name: nil, tool_input: nil, tool_use_id: nil, error: nil, is_interrupt: nil, **base_args) ⇒ PostToolUseFailureHookInput
Returns a new instance of PostToolUseFailureHookInput.
379 380 381 382 383 384 385 386 387 388 |
# File 'lib/claude_agent_sdk/types.rb', line 379 def initialize(hook_event_name: 'PostToolUseFailure', tool_name: nil, tool_input: nil, tool_use_id: nil, error: nil, is_interrupt: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @tool_name = tool_name @tool_input = tool_input @tool_use_id = tool_use_id @error = error @is_interrupt = is_interrupt end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
377 378 379 |
# File 'lib/claude_agent_sdk/types.rb', line 377 def error @error end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
377 378 379 |
# File 'lib/claude_agent_sdk/types.rb', line 377 def hook_event_name @hook_event_name end |
#is_interrupt ⇒ Object
Returns the value of attribute is_interrupt.
377 378 379 |
# File 'lib/claude_agent_sdk/types.rb', line 377 def is_interrupt @is_interrupt end |
#tool_input ⇒ Object
Returns the value of attribute tool_input.
377 378 379 |
# File 'lib/claude_agent_sdk/types.rb', line 377 def tool_input @tool_input end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
377 378 379 |
# File 'lib/claude_agent_sdk/types.rb', line 377 def tool_name @tool_name end |
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
377 378 379 |
# File 'lib/claude_agent_sdk/types.rb', line 377 def tool_use_id @tool_use_id end |