ToonUI
Packages

@toon-ui/prompts

Prompt helpers without the rest of the runtime layer.

@toon-ui/prompts exposes prompt helpers only.

Use it when you want prompt composition without pulling in the rest of the runtime surface.

What it owns

  • prompt text helpers

What it does NOT own

  • parsing
  • validation
  • rendering
  • interaction transport

Typical usage

import { createRules } from '@toon-ui/core';
import { createPrompt, createSafetyPrompt } from '@toon-ui/prompts';

const rules = createRules();
const system = [createPrompt(rules), createSafetyPrompt()].join('\n\n');

When to use it

Choose this package when:

  • you already own the rest of the runtime
  • you want direct prompt composition
  • you are building custom server prompt layers

On this page