Class: ClaudeAgentSDK::McpToolAnnotations

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

Overview

MCP tool annotation hints

Instance Attribute Summary collapse

Class Method Summary collapse

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

#destructiveObject

Returns the value of attribute destructive.



1159
1160
1161
# File 'lib/claude_agent_sdk/types.rb', line 1159

def destructive
  @destructive
end

#open_worldObject

Returns the value of attribute open_world.



1159
1160
1161
# File 'lib/claude_agent_sdk/types.rb', line 1159

def open_world
  @open_world
end

#read_onlyObject

Returns the value of attribute read_only.



1159
1160
1161
# File 'lib/claude_agent_sdk/types.rb', line 1159

def read_only
  @read_only
end

Class Method Details

.parse(data) ⇒ Object

Backwards-compatible parse; returns nil for nil input.



1162
1163
1164
# File 'lib/claude_agent_sdk/types.rb', line 1162

def self.parse(data)
  from_hash(data)
end