The Open Framework for Building Agents
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 },
});