Class: ClaudeAgentSDK::ToolPermissionContext

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

Overview

Tool permission context

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ ToolPermissionContext

Returns a new instance of ToolPermissionContext.



525
526
527
528
# File 'lib/claude_agent_sdk/types.rb', line 525

def initialize(attributes = {})
  super
  @suggestions ||= []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#agent_idObject

Returns the value of attribute agent_id.



523
524
525
# File 'lib/claude_agent_sdk/types.rb', line 523

def agent_id
  @agent_id
end

#signalObject

Returns the value of attribute signal.



523
524
525
# File 'lib/claude_agent_sdk/types.rb', line 523

def signal
  @signal
end

#suggestionsObject

Returns the value of attribute suggestions.



523
524
525
# File 'lib/claude_agent_sdk/types.rb', line 523

def suggestions
  @suggestions
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



523
524
525
# File 'lib/claude_agent_sdk/types.rb', line 523

def tool_use_id
  @tool_use_id
end