Class: SkillBench::Execution::SourcePathResolver
- Inherits:
-
Object
- Object
- SkillBench::Execution::SourcePathResolver
- Defined in:
- lib/skill_bench/execution/source_path_resolver.rb
Overview
Resolves the source skill or workflow path for a given evaluation target.
Class Method Summary collapse
-
.call(eval_folder_path:, skill_path: nil) ⇒ String?
Resolves the source path using either an explicit override or the eval directory convention.
Class Method Details
.call(eval_folder_path:, skill_path: nil) ⇒ String?
Resolves the source path using either an explicit override or the eval directory convention.
22 23 24 25 26 27 28 |
# File 'lib/skill_bench/execution/source_path_resolver.rb', line 22 def self.call(eval_folder_path:, skill_path: nil) return skill_path if skill_path && !skill_path.empty? segments = eval_folder_path.to_s.split('/').reject(&:empty?) resolve_skills_path(segments) || resolve_workflows_path(segments) end |