Class: ClaudeAgentSDK::PermissionRequestHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::PermissionRequestHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PermissionRequest 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.
-
#permission_suggestions ⇒ Object
Returns the value of attribute permission_suggestions.
-
#tool_input ⇒ Object
Returns the value of attribute tool_input.
-
#tool_name ⇒ Object
Returns the value of attribute tool_name.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'PermissionRequest', tool_name: nil, tool_input: nil, permission_suggestions: nil, agent_id: nil, agent_type: nil, **base_args) ⇒ PermissionRequestHookInput
constructor
A new instance of PermissionRequestHookInput.
Constructor Details
#initialize(hook_event_name: 'PermissionRequest', tool_name: nil, tool_input: nil, permission_suggestions: nil, agent_id: nil, agent_type: nil, **base_args) ⇒ PermissionRequestHookInput
Returns a new instance of PermissionRequestHookInput.
868 869 870 871 872 873 874 875 876 877 |
# File 'lib/claude_agent_sdk/types.rb', line 868 def initialize(hook_event_name: 'PermissionRequest', tool_name: nil, tool_input: nil, permission_suggestions: 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 @permission_suggestions = @agent_id = agent_id @agent_type = agent_type end |
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
866 867 868 |
# File 'lib/claude_agent_sdk/types.rb', line 866 def agent_id @agent_id end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
866 867 868 |
# File 'lib/claude_agent_sdk/types.rb', line 866 def agent_type @agent_type end |
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
866 867 868 |
# File 'lib/claude_agent_sdk/types.rb', line 866 def hook_event_name @hook_event_name end |
#permission_suggestions ⇒ Object
Returns the value of attribute permission_suggestions.
866 867 868 |
# File 'lib/claude_agent_sdk/types.rb', line 866 def @permission_suggestions end |
#tool_input ⇒ Object
Returns the value of attribute tool_input.
866 867 868 |
# File 'lib/claude_agent_sdk/types.rb', line 866 def tool_input @tool_input end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
866 867 868 |
# File 'lib/claude_agent_sdk/types.rb', line 866 def tool_name @tool_name end |