Class: ActiveAgent::Operation
- Inherits:
-
AbstractController::Base
- Object
- AbstractController::Base
- ActiveAgent::Operation
- Includes:
- AbstractController::Rendering, ActionView::Rendering
- Defined in:
- lib/active_agent/operation.rb
Instance Method Summary collapse
Instance Method Details
#process_tool(tool_name, params) ⇒ Object
7 8 9 10 11 |
# File 'lib/active_agent/operation.rb', line 7 def process_tool(tool_name, params) send(tool_name, params) # Dynamically calls the method corresponding to tool_name rescue NoMethodError "Tool not found: #{tool_name}" end |