Class: ActionAI::Parameterized::Agent
- Inherits:
-
Object
- Object
- ActionAI::Parameterized::Agent
- Defined in:
- lib/action_ai/parameterized.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(agent, params) ⇒ Agent
constructor
A new instance of Agent.
Constructor Details
#initialize(agent, params) ⇒ Agent
Returns a new instance of Agent.
79 80 81 |
# File 'lib/action_ai/parameterized.rb', line 79 def initialize(agent, params) @agent, @params = agent, params end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name) ⇒ Object (private)
84 85 86 87 88 89 90 |
# File 'lib/action_ai/parameterized.rb', line 84 def method_missing(method_name, ...) if @agent.action_methods.include?(method_name.name) ActionAI::Parameterized::PromptExecution.new(@agent, method_name, @params, ...) else super end end |