Class: SmartAgent::ToolContext

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_agent/tool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#input_paramsObject

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

#paramsObject



59
60
61
# File 'lib/smart_agent/tool.rb', line 59

def params
  @params ||= {}
end