Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

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

// A dynamic resolver (override-provider.ts) emits a tool named `override-target`,
// the same name as an authored tool. The dynamic tool must win: calling
// `override-target` returns the dynamic result, never the authored
// `source: "authored"`.
const OVERRIDE_TOKEN = "dynamic-override-ok-K2P7";

export default defineEval({
  tags: ["real-model"],
  description: "Dynamic tools smoke: a dynamic tool overrides a same-named authored tool.",
  async test(t) {
    await t.send("Call the `override-target` tool and report the `source` value it returns.");

    t.succeeded();
    t.calledTool("override-target", {
      output: { source: "dynamic", token: OVERRIDE_TOKEN },
    });
  },
});