Class: ClaudeAgentSDK::PermissionRequestHookInput
- Inherits:
-
BaseHookInput
- Object
- Type
- 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.
-
#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, #hook_event_name, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PermissionRequestHookInput
constructor
A new instance of PermissionRequestHookInput.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ PermissionRequestHookInput
Returns a new instance of PermissionRequestHookInput.
663 664 665 666 |
# File 'lib/claude_agent_sdk/types.rb', line 663 def initialize(attributes = {}) super @hook_event_name = 'PermissionRequest' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
661 662 663 |
# File 'lib/claude_agent_sdk/types.rb', line 661 def agent_id @agent_id end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
661 662 663 |
# File 'lib/claude_agent_sdk/types.rb', line 661 def agent_type @agent_type end |
#permission_suggestions ⇒ Object
Returns the value of attribute permission_suggestions.
661 662 663 |
# File 'lib/claude_agent_sdk/types.rb', line 661 def @permission_suggestions end |
#tool_input ⇒ Object
Returns the value of attribute tool_input.
661 662 663 |
# File 'lib/claude_agent_sdk/types.rb', line 661 def tool_input @tool_input end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
661 662 663 |
# File 'lib/claude_agent_sdk/types.rb', line 661 def tool_name @tool_name end |