Make eval pipeline skill-aware and validate SKILL manifests
This commit is contained in:
1 parent
12e731a428
commit
54bc295ead
35 files changed
+1280
-499
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { moderationProposeAdapter } from "@skills/moderation/eval/propose-adapter";
|
||||
import { onboardingProposeAdapter } from "@skills/onboarding/eval/propose-adapter";
|
||||
import type { SkillProposeAdapter } from "./skill-propose-adapter.js";
|
||||
|
||||
const SKILL_PROPOSE_ADAPTERS: Record<string, SkillProposeAdapter> = {
|
||||
[moderationProposeAdapter.skill]: moderationProposeAdapter,
|
||||
[onboardingProposeAdapter.skill]: onboardingProposeAdapter,
|
||||
};
|
||||
|
||||
export function getSkillProposeAdapter(skill: string): SkillProposeAdapter {
|
||||
const adapter = SKILL_PROPOSE_ADAPTERS[skill] ?? SKILL_PROPOSE_ADAPTERS["onboarding"];
|
||||
if (!adapter) {
|
||||
throw new Error("Missing onboarding propose adapter");
|
||||
}
|
||||
return adapter;
|
||||
}
|
||||
Reference in new issue
Block a user