Class: Kreator::PluginTool
- Inherits:
-
Object
- Object
- Kreator::PluginTool
- Defined in:
- lib/kreator/plugin_tool.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description(value = nil) ⇒ Object
11 12 13 14 |
# File 'lib/kreator/plugin_tool.rb', line 11 def description(value = nil) @description = value.to_s if value @description.to_s end |
.schema(value = nil) ⇒ Object
16 17 18 19 |
# File 'lib/kreator/plugin_tool.rb', line 16 def schema(value = nil) @schema = value if value @schema || {} end |
.tool_name(value = nil) ⇒ Object
6 7 8 9 |
# File 'lib/kreator/plugin_tool.rb', line 6 def tool_name(value = nil) @tool_name = value.to_s if value @tool_name end |
Instance Method Details
#call(args:, context:, signal:) ⇒ Object
22 23 24 |
# File 'lib/kreator/plugin_tool.rb', line 22 def call(args:, context:, signal:) raise NotImplementedError, "#{self.class} must implement #call" end |