Method: ActiveAgent::Base#initialize

Defined in:
lib/active_agent/base.rb

#initializeBase

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.

Returns a new instance of Base.



169
170
171
172
173
# File 'lib/active_agent/base.rb', line 169

def initialize # :nodoc:
  super
  self.prompt_options = (self.class.prompt_options&.deep_dup || {}).except(:trace_id)
  self.embed_options  = (self.class.embed_options&.deep_dup  || {}).except(:trace_id)
end