Class: 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
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ToolsPreset
constructor
A new instance of ToolsPreset.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ ToolsPreset
Returns a new instance of ToolsPreset.
1491 1492 1493 1494 |
# File 'lib/claude_agent_sdk/types.rb', line 1491 def initialize(attributes = {}) super @type = 'preset' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#preset ⇒ Object
Returns the value of attribute preset.
1489 1490 1491 |
# File 'lib/claude_agent_sdk/types.rb', line 1489 def preset @preset end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1488 1489 1490 |
# File 'lib/claude_agent_sdk/types.rb', line 1488 def type @type end |
Instance Method Details
#to_h ⇒ Object
1496 1497 1498 |
# File 'lib/claude_agent_sdk/types.rb', line 1496 def to_h { type: @type, preset: @preset } end |