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.



1152
1153
1154
# File 'lib/claude_agent_sdk/types.rb', line 1152

def destructive
  @destructive
end

#open_worldObject

Returns the value of attribute open_world.



1152
1153
1154
# File 'lib/claude_agent_sdk/types.rb', line 1152

def open_world
  @open_world
end

#read_onlyObject

Returns the value of attribute read_only.



1152
1153
1154
# File 'lib/claude_agent_sdk/types.rb', line 1152

def read_only
  @read_only
end

Class Method Details

.parse(data) ⇒ Object

Backwards-compatible parse; returns nil for nil input.



1155
1156
1157
# File 'lib/claude_agent_sdk/types.rb', line 1155

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