Module: DebugAgent::ClassMethods

Included in:
DebugAgent
Defined in:
lib/debug_agent/tool_registry.rb

Instance Method Summary collapse

Instance Method Details

#register_tool(name, description, params = {}, &block) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/debug_agent/tool_registry.rb', line 85

def register_tool(name, description, params = {}, &block)
  tool = ToolDefinition.new(
    name: name,
    description: description,
    func: block,
    params: params
  )
  REGISTRY.register(tool)
end

#registryObject



81
82
83
# File 'lib/debug_agent/tool_registry.rb', line 81

def registry
  REGISTRY
end