The Open Framework for Building Agents
import { defineEval } from "eve/evals";
import { EMEA_CHURN } from "../findings";
import { heldTurn } from "./task-events";
/**
* The answer depends on the researcher's result, so the model waits for it
* with `eve__task_wait` instead of ending its step while the task works.
*/
export default defineEval({
description: "The model waits for an agent's result when its answer depends on it.",
tags: ["real-model"],
async test(t) {
const turn = await t.send(
"Bob asked Alice how churn looked in EMEA for Q3. Please ask the researcher and tell me what it found, so Alice can pass it on to Bob.",
);
turn.expectOk();
t.calledSubagent("researcher", { status: "completed" });
turn.calledTool("eve__task_wait");
turn.eventsSatisfy(
"the model never replies while the researcher works",
(events) => !heldTurn(events),
);
turn.messageIncludes(EMEA_CHURN.findingId);
t.noFailedActions();
},
});