Class: ClaudeAgentSDK::PermissionDeniedHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::PermissionDeniedHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PermissionDenied hook input
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
Returns the value of attribute agent_id.
-
#agent_type ⇒ Object
Returns the value of attribute agent_type.
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#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: 'PermissionDenied', tool_name: nil, tool_input: nil, tool_use_id: nil, reason: nil, agent_id: nil, agent_type: nil, **base_args) ⇒ PermissionDeniedHookInput
constructor
A new instance of PermissionDeniedHookInput.
Constructor Details
#initialize(hook_event_name: 'PermissionDenied', tool_name: nil, tool_input: nil, tool_use_id: nil, reason: nil, agent_id: nil, agent_type: nil, **base_args) ⇒ PermissionDeniedHookInput
Returns a new instance of PermissionDeniedHookInput.
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'lib/claude_agent_sdk/types.rb', line 1019 def initialize(hook_event_name: 'PermissionDenied', tool_name: nil, tool_input: nil, tool_use_id: nil, reason: nil, agent_id: nil, agent_type: 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 @reason = reason @agent_id = agent_id @agent_type = agent_type end |
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
1017 1018 1019 |
# File 'lib/claude_agent_sdk/types.rb', line 1017 def agent_id @agent_id end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
1017 1018 1019 |
# File 'lib/claude_agent_sdk/types.rb', line 1017 def agent_type @agent_type end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
1017 1018 1019 |
# File 'lib/claude_agent_sdk/types.rb', line 1017 def hook_event_name @hook_event_name end |
#reason ⇒ Object
Returns the value of attribute reason.
1017 1018 1019 |
# File 'lib/claude_agent_sdk/types.rb', line 1017 def reason @reason end |
#tool_input ⇒ Object
Returns the value of attribute tool_input.
1017 1018 1019 |
# File 'lib/claude_agent_sdk/types.rb', line 1017 def tool_input @tool_input end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
1017 1018 1019 |
# File 'lib/claude_agent_sdk/types.rb', line 1017 def tool_name @tool_name end |
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
1017 1018 1019 |
# File 'lib/claude_agent_sdk/types.rb', line 1017 def tool_use_id @tool_use_id end |