Skip to main content

Documentation Index

Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

veryfront/prompt

Declare and register prompts exposable over MCP.

Import

import { prompt, promptRegistry } from "veryfront/prompt";

Examples

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. Returns: Prompt

Exports

Functions

NameDescriptionSource
promptCreate a typed prompt definition.source

Types

NameDescriptionSource
PromptPublic API contract for prompt.source
PromptConfigConfiguration used by prompt.source

Constants

NameDescriptionSource
promptRegistryShared prompt registry value.source
Reference modules: User guides: Architecture: