The Open Framework for Building Agents
import { defineEval } from "eve/evals";
import { calledTools, usesCatalog } from "./tool-use";
/** A question the model can answer itself doesn't send it to the catalog. */
export default defineEval({
tags: ["real-model"],
description: "A plain question is answered without the catalog tools.",
async test(t) {
const turn = await t.send(
"Alice is converting a recipe for Bob. How many grams are in 3 ounces, rounded to the nearest gram?",
);
turn.expectOk();
turn.eventsSatisfy("no catalog tool or entry is called", (events) =>
calledTools(events).every((name) => !usesCatalog(name)),
);
t.messageIncludes(/\b85\b/u);
},
});