class Riffer::Skills::Config
Configuration object for the skills block DSL.
skills do backend Riffer::Skills::FilesystemBackend.new(".skills") adapter Riffer::Skills::XmlAdapter activate ["code-review"] end
Public Class Methods
Source
# File lib/riffer/skills/config.rb, line 19 def initialize @backend = nil @adapter = nil @activate = nil @activate_tool = nil end
Public Instance Methods
Source
# File lib/riffer/skills/config.rb, line 48 def activate(value = nil) return @activate if value.nil? @activate = value end
Gets or sets skill names to activate at startup (an array or a context-resolved Proc); activated skills’ bodies are included in the system prompt without a tool call.
Source
# File lib/riffer/skills/config.rb, line 59 def activate_tool(value = nil) return @activate_tool if value.nil? raise Riffer::ArgumentError, "activate_tool must be a Riffer::Tool subclass" unless value.is_a?(Class) && value < Riffer::Tool @activate_tool = value end
Gets or sets the per-agent skill activation tool override, or nil when unset — the global fallback to Riffer.config.skills.default_activate_tool is applied by the agent at resolution, not here. Raises Riffer::ArgumentError on an invalid value.
Source
# File lib/riffer/skills/config.rb, line 38 def adapter(value = nil) return @adapter if value.nil? @adapter = value end
Gets or sets a custom skill adapter class; defaults to the provider’s preferred adapter.
Source
# File lib/riffer/skills/config.rb, line 29 def backend(value = nil) return @backend if value.nil? @backend = value end
Gets or sets the skills backend (a Backend or a context-resolved Proc).