Class: SmartAgent::ToolContext
- Inherits:
-
Object
- Object
- SmartAgent::ToolContext
- Defined in:
- lib/smart_agent/tool.rb
Instance Attribute Summary collapse
-
#input_params ⇒ Object
Returns the value of attribute input_params.
Instance Method Summary collapse
- #call_worker(name, params) ⇒ Object
- #param_define(name, description, type) ⇒ Object
- #params ⇒ Object
Instance Attribute Details
#input_params ⇒ Object
Returns the value of attribute input_params.
57 58 59 |
# File 'lib/smart_agent/tool.rb', line 57 def input_params @input_params end |
Instance Method Details
#call_worker(name, params) ⇒ Object
67 68 69 |
# File 'lib/smart_agent/tool.rb', line 67 def call_worker(name, params) SmartAgent.prompt_engine.call_worker(name, params) end |
#param_define(name, description, type) ⇒ Object
63 64 65 |
# File 'lib/smart_agent/tool.rb', line 63 def param_define(name, description, type) params[name] = { description: description, type: type } end |
#params ⇒ Object
59 60 61 |
# File 'lib/smart_agent/tool.rb', line 59 def params @params ||= {} end |