Class: ClaudeAgentSDK::PermissionRequestHookInput

Inherits:
BaseHookInput
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

PermissionRequest hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'PermissionRequest', tool_name: nil, tool_input: nil, permission_suggestions: nil, **base_args) ⇒ PermissionRequestHookInput

Returns a new instance of PermissionRequestHookInput.



377
378
379
380
381
382
383
384
# File 'lib/claude_agent_sdk/types.rb', line 377

def initialize(hook_event_name: 'PermissionRequest', tool_name: nil, tool_input: nil, permission_suggestions: nil,
               **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @tool_name = tool_name
  @tool_input = tool_input
  @permission_suggestions = permission_suggestions
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



375
376
377
# File 'lib/claude_agent_sdk/types.rb', line 375

def hook_event_name
  @hook_event_name
end

#permission_suggestionsObject

Returns the value of attribute permission_suggestions.



375
376
377
# File 'lib/claude_agent_sdk/types.rb', line 375

def permission_suggestions
  @permission_suggestions
end

#tool_inputObject

Returns the value of attribute tool_input.



375
376
377
# File 'lib/claude_agent_sdk/types.rb', line 375

def tool_input
  @tool_input
end

#tool_nameObject

Returns the value of attribute tool_name.



375
376
377
# File 'lib/claude_agent_sdk/types.rb', line 375

def tool_name
  @tool_name
end