Class: ClaudeAgentSDK::ToolsPreset
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::ToolsPreset
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Tools preset configuration
Instance Attribute Summary collapse
-
#preset ⇒ Object
Returns the value of attribute preset.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(preset:) ⇒ ToolsPreset
constructor
A new instance of ToolsPreset.
- #to_h ⇒ Object
Constructor Details
#initialize(preset:) ⇒ ToolsPreset
Returns a new instance of ToolsPreset.
1786 1787 1788 1789 |
# File 'lib/claude_agent_sdk/types.rb', line 1786 def initialize(preset:) @type = 'preset' @preset = preset end |
Instance Attribute Details
#preset ⇒ Object
Returns the value of attribute preset.
1784 1785 1786 |
# File 'lib/claude_agent_sdk/types.rb', line 1784 def preset @preset end |
#type ⇒ Object
Returns the value of attribute type.
1784 1785 1786 |
# File 'lib/claude_agent_sdk/types.rb', line 1784 def type @type end |
Instance Method Details
#to_h ⇒ Object
1791 1792 1793 |
# File 'lib/claude_agent_sdk/types.rb', line 1791 def to_h { type: @type, preset: @preset } end |