Class: ClaudeAgentSDK::McpToolInfo

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

Overview

MCP tool info (name, description, annotations)

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

#annotationsObject

Returns the value of attribute annotations.



1195
1196
1197
# File 'lib/claude_agent_sdk/types.rb', line 1195

def annotations
  @annotations
end

#descriptionObject

Returns the value of attribute description.



1194
1195
1196
# File 'lib/claude_agent_sdk/types.rb', line 1194

def description
  @description
end

#nameObject

Returns the value of attribute name.



1194
1195
1196
# File 'lib/claude_agent_sdk/types.rb', line 1194

def name
  @name
end

Class Method Details

.parse(data) ⇒ Object

Backwards-compatible parse; returns nil for nil input.



1202
1203
1204
# File 'lib/claude_agent_sdk/types.rb', line 1202

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