class Riffer::Skills::Config
Configuration object for the skills block DSL.
Used inside the skills block on Riffer::Agent:
skills do backend Riffer::Skills::FilesystemBackend.new(".skills") adapter Riffer::Skills::XmlAdapter activate ["code-review"] end
Public Class Methods
Public Instance Methods
Source
# File lib/riffer/skills/config.rb, line 58 def activate(value = nil) return @activate if value.nil? @activate = value end
Gets or sets skill names to activate at startup.
Activated skills have their full body included in the system prompt without requiring a tool call.
Accepts an array of skill name strings or a Proc that receives context and returns an array of names.
Source
# File lib/riffer/skills/config.rb, line 43 def adapter(value = nil) return @adapter if value.nil? @adapter = value end
Gets or sets a custom skill adapter class.
Must be a subclass of Riffer::Skills::Adapter. Defaults to the providerโs preferred adapter.
Source
# File lib/riffer/skills/config.rb, line 31 def backend(value = nil) return @backend if value.nil? @backend = value end
Gets or sets the skills backend.
Accepts a Riffer::Skills::Backend instance, or a Proc that receives context and returns a Backend.