Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

807 B
Raw Blame
import { SEARCH_TOOL } from "@eve-e2e/config/catalog-tools";
import { requireMockModel } from "@eve-e2e/config/mock-script";
import { defineEval } from "eve/evals";

export default defineEval({
  description:
    "A session-scoped dynamic OpenAPI connection is announced in the catalog listing and searchable by name.",

  async test(t) {
    requireMockModel(
      t,
      "Requires the deterministic mock model; the fixture API endpoint is non-routable.",
    );

    const turn = await t.send("DYNAMIC_CONNECTION_E2E");

    turn.expectOk();
    turn.calledTool(SEARCH_TOOL, {
      count: 1,
      input: { query: "dynamic-catalog__" },
      output: (value) => JSON.stringify(value).includes('"tool":"dynamic-catalog__getStatus"'),
    });
    t.messageIncludes("DYNAMIC_CONNECTION_FOUND");
  },
});