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.



1111
1112
1113
# File 'lib/claude_agent_sdk/types.rb', line 1111

def destructive
  @destructive
end

#open_worldObject

Returns the value of attribute open_world.



1111
1112
1113
# File 'lib/claude_agent_sdk/types.rb', line 1111

def open_world
  @open_world
end

#read_onlyObject

Returns the value of attribute read_only.



1111
1112
1113
# File 'lib/claude_agent_sdk/types.rb', line 1111

def read_only
  @read_only
end

Class Method Details

.parse(data) ⇒ Object

Backwards-compatible parse; returns nil for nil input.



1114
1115
1116
# File 'lib/claude_agent_sdk/types.rb', line 1114

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