Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

536 B
Raw Blame
import type { HookEvent } from "eve/hooks";
import { defineDynamic, defineInstructions } from "eve/instructions";

export default defineDynamic({
  events: {
    "turn.started": (event) => {
      // The preamble cannot read this turn's message yet; six seed turns precede expansion.
      if ((event as HookEvent<"turn.started">).data.sequence < 6) return null;
      return defineInstructions({
        role: "system",
        content: `EXPANDED_POLICY ${"Use the configured catalog policy. ".repeat(140)}`,
      });
    },
  },
});