Class: ClaudeAgentSDK::ToolUseBlock

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

Overview

Tool use content block

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, name:, input:) ⇒ ToolUseBlock

Returns a new instance of ToolUseBlock.



85
86
87
88
89
# File 'lib/claude_agent_sdk/types.rb', line 85

def initialize(id:, name:, input:)
  @id = id
  @name = name
  @input = input
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



83
84
85
# File 'lib/claude_agent_sdk/types.rb', line 83

def id
  @id
end

#inputObject

Returns the value of attribute input.



83
84
85
# File 'lib/claude_agent_sdk/types.rb', line 83

def input
  @input
end

#nameObject

Returns the value of attribute name.



83
84
85
# File 'lib/claude_agent_sdk/types.rb', line 83

def name
  @name
end