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.



1765
1766
1767
1768
# File 'lib/claude_agent_sdk/types.rb', line 1765

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

Instance Attribute Details

#presetObject

Returns the value of attribute preset.



1763
1764
1765
# File 'lib/claude_agent_sdk/types.rb', line 1763

def preset
  @preset
end

#typeObject

Returns the value of attribute type.



1763
1764
1765
# File 'lib/claude_agent_sdk/types.rb', line 1763

def type
  @type
end

Instance Method Details

#to_hObject



1770
1771
1772
# File 'lib/claude_agent_sdk/types.rb', line 1770

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