Class: ClaudeAgentSDK::SdkMcpTool
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::SdkMcpTool
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SDK MCP Tool definition
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#input_schema ⇒ Object
Returns the value of attribute input_schema.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, description:, input_schema:, handler:) ⇒ SdkMcpTool
constructor
A new instance of SdkMcpTool.
Constructor Details
#initialize(name:, description:, input_schema:, handler:) ⇒ SdkMcpTool
Returns a new instance of SdkMcpTool.
849 850 851 852 853 854 |
# File 'lib/claude_agent_sdk/types.rb', line 849 def initialize(name:, description:, input_schema:, handler:) @name = name @description = description @input_schema = input_schema @handler = handler end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
847 848 849 |
# File 'lib/claude_agent_sdk/types.rb', line 847 def description @description end |
#handler ⇒ Object
Returns the value of attribute handler.
847 848 849 |
# File 'lib/claude_agent_sdk/types.rb', line 847 def handler @handler end |
#input_schema ⇒ Object
Returns the value of attribute input_schema.
847 848 849 |
# File 'lib/claude_agent_sdk/types.rb', line 847 def input_schema @input_schema end |
#name ⇒ Object
Returns the value of attribute name.
847 848 849 |
# File 'lib/claude_agent_sdk/types.rb', line 847 def name @name end |