class Riffer::Skills::Adapter
rbs_inline: enabled
Attributes
Public Class Methods
Source
# File lib/riffer/skills/adapter.rb, line 9 def initialize(skill_activate_tool:) @skill_activate_tool = skill_activate_tool end
Public Instance Methods
Source
# File lib/riffer/skills/adapter.rb, line 27 def catalog_instructions "When a user's request matches a skill description below, call the `#{skill_activate_tool.name}` tool " \ "with the skill name. After activation, follow the skill's instructions. " \ "If a skill's instructions already appear in your context (inside <skill_content> tags), " \ "follow them instead of activating the skill again." end
Source
# File lib/riffer/skills/adapter.rb, line 21 def render_activation(skill, body) %(<skill_content name="#{skill.name}">\n#{body}\n</skill_content>) end
Source
# File lib/riffer/skills/adapter.rb, line 15 def render_catalog(skills) raise NotImplementedError, "#{self.class} must implement #render_catalog" end