@toon-ui/prompts
v2.0.1
Published
Prompt helpers for teaching models to emit valid ToonUI.
Readme
@toon-ui/prompts
@toon-ui/prompts exposes prompt helpers only.
Use it when you want custom prompt composition without pulling in the runtime layer.
Quick path
import { createRules } from '@toon-ui/core';
import { createPrompt, createSafetyPrompt } from '@toon-ui/prompts';
const rules = createRules();
const system = [createPrompt(rules), createSafetyPrompt()].join('
');Boundary
Owns:
- prompt text helpers
Does NOT own:
- parsing
- validation
- rendering
- event/message transport
Pairing
- server:
@toon-ui/promptsor@toon-ui/core - client:
@toon-ui/reactor@toon-ui/toon-ui
