class Riffer::Skills::Config
rbs_inline: enabled
Public Class Methods
Source
# File lib/riffer/skills/config.rb, line 12 def initialize @backend = nil @adapter = nil @activate = nil @activate_tool = nil end
Public Instance Methods
Source
# File lib/riffer/skills/config.rb, line 37 def activate(value = nil) return @activate if value.nil? @activate = value end
Source
# File lib/riffer/skills/config.rb, line 45 def activate_tool(value = nil) # No fallback to <tt>Riffer.config.skills.default_activate_tool</tt> here; # the agent applies it at resolution. return @activate_tool if value.nil? unless value.is_a?(Class) && value < Riffer::Tool raise Riffer::ArgumentError, "activate_tool must be a Riffer::Tool subclass" end @activate_tool = value end
Source
# File lib/riffer/skills/config.rb, line 29 def adapter(value = nil) return @adapter if value.nil? @adapter = value end
Source
# File lib/riffer/skills/config.rb, line 21 def backend(value = nil) return @backend if value.nil? @backend = value end