Class: ClaudeCodeSDK::Content::ToolUseBlock
- Inherits:
-
Object
- Object
- ClaudeCodeSDK::Content::ToolUseBlock
- Defined in:
- lib/claude_code_sdk/messages.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id:, name:, input:) ⇒ ToolUseBlock
constructor
A new instance of ToolUseBlock.
Constructor Details
#initialize(id:, name:, input:) ⇒ ToolUseBlock
Returns a new instance of ToolUseBlock.
82 83 84 85 86 87 |
# File 'lib/claude_code_sdk/messages.rb', line 82 def initialize(id:, name:, input:) @type = "tool_use" @id = id @name = name @input = input end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
80 81 82 |
# File 'lib/claude_code_sdk/messages.rb', line 80 def id @id end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
80 81 82 |
# File 'lib/claude_code_sdk/messages.rb', line 80 def input @input end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
80 81 82 |
# File 'lib/claude_code_sdk/messages.rb', line 80 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
80 81 82 |
# File 'lib/claude_code_sdk/messages.rb', line 80 def type @type end |