Method: ActiveAgent::Base#process
- Defined in:
- lib/active_agent/base.rb
#process(method_name, *args, **kwargs) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Processes an agent action with ActiveSupport::Notifications instrumentation.
Actions are triggered externally via Agent.action_name.generate_now or internally through tool calls during AI generation workflows.
192 193 194 195 196 197 198 |
# File 'lib/active_agent/base.rb', line 192 def process(method_name, *args, **kwargs) payload = { agent: self.class.name, action: method_name, args:, kwargs: } ActiveSupport::Notifications.instrument("process.active_agent", payload) do super end end |