Class: ClaudeAgentSDK::ToolResultBlock

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

Overview

Tool result content block

Instance Attribute Summary collapse

Method Summary

Methods inherited from Type

#[], #[]=, from_hash, #initialize, #to_h, wrap

Constructor Details

This class inherits a constructor from ClaudeAgentSDK::Type

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#contentObject

Returns the value of attribute content.



180
181
182
# File 'lib/claude_agent_sdk/types.rb', line 180

def content
  @content
end

#is_errorObject

Returns the value of attribute is_error.



180
181
182
# File 'lib/claude_agent_sdk/types.rb', line 180

def is_error
  @is_error
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



180
181
182
# File 'lib/claude_agent_sdk/types.rb', line 180

def tool_use_id
  @tool_use_id
end