Class: ClaudeAgentSDK::ToolsPreset

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

Overview

Tools preset configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(preset:) ⇒ ToolsPreset

Returns a new instance of ToolsPreset.



1816
1817
1818
1819
# File 'lib/claude_agent_sdk/types.rb', line 1816

def initialize(preset:)
  @type = 'preset'
  @preset = preset
end

Instance Attribute Details

#presetObject

Returns the value of attribute preset.



1814
1815
1816
# File 'lib/claude_agent_sdk/types.rb', line 1814

def preset
  @preset
end

#typeObject

Returns the value of attribute type.



1814
1815
1816
# File 'lib/claude_agent_sdk/types.rb', line 1814

def type
  @type
end

Instance Method Details

#to_hObject



1821
1822
1823
# File 'lib/claude_agent_sdk/types.rb', line 1821

def to_h
  { type: @type, preset: @preset }
end