module LittleGhost::Agent::Skills::ClassMethods
Exposes skill discovery declarations on agent classes. These methods become inheritable DSL entries when the capability is included.
Public Instance Methods
Source
# File lib/little_ghost/agent/skills.rb, line 58 def skills(*values, **options) configured_paths = if options.key?(:paths) options.delete(:paths) elsif values.empty? nil else values.flatten end self.skills_configuration_value = options.merge(paths: configured_paths) tools CatalogTools prompt_local(:skills_prompt) do tool = tools.fetch("skills") if tools.names.include?("skills") tool&.catalog&.discovery_prompt.to_s end before_invocation :include_skills_prompt end
Enables skill discovery for this agent. paths may be paths or a callable resolved for each run. When omitted, the runtime’s configured skill paths are used.