Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

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

const model = process.env.EVE_E2E_MODEL ?? "openai/gpt-6.1-sol";

export default defineEval({
  tags: ["real-model"],
  description: "Dynamic model smoke: runtime catalog metadata is reusable across turns.",
  async test(t) {
    const first = await t.send(
      '[model: catalog] Reply with exactly the text "catalog one" and nothing else.',
    );
    const session = first.session;
    first.expectOk();
    first.messageIncludes("catalog one");

    const second = await session.send(
      '[model: catalog] Reply with exactly the text "catalog two" and nothing else.',
    );
    second.expectOk();
    second.messageIncludes("catalog two");
    second.eventsSatisfy("the model call is attributed to the selected model", (events) =>
      events.some((event) => event.type === "step.started" && event.data.modelId === model),
    );

    t.succeeded();
    t.usedNoTools();
  },
});