Skip to content

The Open Standard for Generative UI

454 B
Raw Blame
import { defineDynamic, defineInstructions } from "eve/instructions";
import { cloudInstructions } from "../../src/lib/cloud-prompt.ts";

/**
 * Teach the agent to answer in OpenUI Lang. Resolved once per session so the
 * component-library prompt is only attached when a conversation starts.
 */
export default defineDynamic({
  events: {
    "session.started": () =>
      defineInstructions({
        markdown: cloudInstructions(),
      }),
  },
});