trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
24 lines • 963 B
TypeScript
/**
* Voice & Tone — Converts brand voice/tone config into json-render catalog prompt rules.
*
* These rules are passed as `customRules` to `catalog.prompt()`, injecting
* communication constraints into the AI system prompt alongside component schemas.
*
* @module trellis/plugins/brand
*/
export interface VoiceToneConfig {
/** Personality traits: ["professional", "warm", "concise"] */
traits?: string[];
/** Vocabulary swaps: { "click": "select", "delete": "remove" } */
preferred?: Record<string, string>;
/** Words to never use: ["synergy", "leverage", "disrupt"] */
avoided?: string[];
/** Example phrases that embody the tone */
examples?: string[];
}
/**
* Build an array of rule strings from a voice/tone config.
* Returns empty array if config is undefined or empty.
*/
export declare function buildVoiceToneRules(config: VoiceToneConfig | undefined | null): string[];
//# sourceMappingURL=voice-tone.d.ts.map