Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

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

// session.started and turn.started resolvers merge: the turn-scoped
// `shared` wins over the session-scoped one, while `session_only`
// remains available from session scope.
export default defineEval({
  tags: ["real-model"],
  description: "Dynamic tools smoke: turn-scoped resolver tools win merges over session-scoped.",
  async test(t) {
    const first = await t.send("Call the `shared` tool and report the source and turn values.");
    const session = first.session;
    first.expectOk();

    await session.send("Call the `session_only` tool and report the source value.");

    t.succeeded();
    t.calledTool("shared", {
      output: { source: "turn" },
    });
    t.calledTool("session_only", {
      output: { source: "session" },
    });
  },
});