Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

740 B
Raw Blame
import { defineEval } from "eve/evals";

const DYNAMIC_SKILL_TOKEN = "dynamic-skill-ok-P4K9";

/**
 * Skill smoke eval:
 * a `defineDynamic` single-skill resolver (skills/dynamic-tenant-policy.ts)
 * resolves at session start; the skill load's result must carry the resolved
 * markdown body, which then shapes the reply.
 */
export default defineEval({
  tags: ["real-model"],
  description: "Skills smoke: dynamic single-skill resolution.",
  async test(t) {
    await t.send("Please use the dynamic tenant policy skill and follow its instructions exactly.");

    t.succeeded();
    t.loadedSkill("dynamic-tenant-policy", {
      output: new RegExp(DYNAMIC_SKILL_TOKEN, "u"),
    });
    t.messageIncludes(DYNAMIC_SKILL_TOKEN);
  },
});