Import
TypeScript
import { prompt, promptRegistry } from "veryfront/prompt";Examples
TypeScript
import { prompt } from "veryfront/prompt"; const summarize = prompt({ id: "summarize", description: "Summarize text in a chosen style", content: "Summarize the following text in {style} style:\n\n{text}",}); const content = await summarize.getContent({ style: "technical", text: "The runtime loads tools before an agent step starts.",});API
prompt(config)
Create a typed prompt definition whose explicit id contains non-whitespace text.
Returns: Prompt