Class: ClaudeAgentSDK::McpToolInfo
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
MCP tool info (name, description, annotations)
Instance Attribute Summary collapse
-
#annotations ⇒ Object
Returns the value of attribute annotations.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
-
.parse(data) ⇒ Object
Backwards-compatible parse; returns nil for nil input.
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
#annotations ⇒ Object
Returns the value of attribute annotations.
1122 1123 1124 |
# File 'lib/claude_agent_sdk/types.rb', line 1122 def annotations @annotations end |
#description ⇒ Object
Returns the value of attribute description.
1121 1122 1123 |
# File 'lib/claude_agent_sdk/types.rb', line 1121 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
1121 1122 1123 |
# File 'lib/claude_agent_sdk/types.rb', line 1121 def name @name end |
Class Method Details
.parse(data) ⇒ Object
Backwards-compatible parse; returns nil for nil input.
1129 1130 1131 |
# File 'lib/claude_agent_sdk/types.rb', line 1129 def self.parse(data) from_hash(data) end |