Class: ClaudeAgentSDK::PostToolUseHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::PostToolUseHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PostToolUse hook input
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#tool_input ⇒ Object
Returns the value of attribute tool_input.
-
#tool_name ⇒ Object
Returns the value of attribute tool_name.
-
#tool_response ⇒ Object
Returns the value of attribute tool_response.
-
#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: 'PostToolUse', tool_name: nil, tool_input: nil, tool_response: nil, tool_use_id: nil, **base_args) ⇒ PostToolUseHookInput
constructor
A new instance of PostToolUseHookInput.
Constructor Details
#initialize(hook_event_name: 'PostToolUse', tool_name: nil, tool_input: nil, tool_response: nil, tool_use_id: nil, **base_args) ⇒ PostToolUseHookInput
Returns a new instance of PostToolUseHookInput.
327 328 329 330 331 332 333 334 335 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def initialize(hook_event_name: 'PostToolUse', tool_name: nil, tool_input: nil, tool_response: nil, tool_use_id: nil, **base_args) super(**base_args) @hook_event_name = hook_event_name @tool_name = tool_name @tool_input = tool_input @tool_response = tool_response @tool_use_id = tool_use_id end |
Instance Attribute Details
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
325 326 327 |
# File 'lib/claude_agent_sdk/types.rb', line 325 def hook_event_name @hook_event_name end |
#tool_input ⇒ Object
Returns the value of attribute tool_input.
325 326 327 |
# File 'lib/claude_agent_sdk/types.rb', line 325 def tool_input @tool_input end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
325 326 327 |
# File 'lib/claude_agent_sdk/types.rb', line 325 def tool_name @tool_name end |
#tool_response ⇒ Object
Returns the value of attribute tool_response.
325 326 327 |
# File 'lib/claude_agent_sdk/types.rb', line 325 def tool_response @tool_response end |
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
325 326 327 |
# File 'lib/claude_agent_sdk/types.rb', line 325 def tool_use_id @tool_use_id end |