Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

558 B
Raw Blame
import { e2eAgentConfig } from "@eve-e2e/config";
import { defineAgent } from "eve";

const config = e2eAgentConfig();

export default defineAgent({
  ...config,
  // Measure Anthropic cache reuse through its native provider.
  ...(typeof config.model === "string" && config.model.startsWith("anthropic/")
    ? {
        modelOptions: {
          providerOptions: { gateway: { only: ["anthropic"] } },
        },
      }
    : {}),
  reasoning: "high",
  limits: { sessionUsage: ({ window }) => window.inputTokens - window.cacheReadTokens >= 300_000 },
});