UNPKG

@promptbook/templates

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

39 lines (38 loc) 1.35 kB
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; import type { AgentModelRequirements } from '../_misc/AgentModelRequirements'; /** * STYLE commitment definition * * The STYLE commitment defines how the agent should format and present its responses. * This includes tone, writing style, formatting preferences, and communication patterns. * * Example usage in agent source: * * ```book * STYLE Write in a professional but friendly tone, use bullet points for lists * STYLE Always provide code examples when explaining programming concepts * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class StyleCommitmentDefinition extends BaseCommitmentDefinition<'STYLE'> { constructor(); /** * Short one-line description of STYLE. */ get description(): string; /** * Markdown documentation for STYLE commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; } /** * Singleton instance of the STYLE commitment definition * * @private [🪔] Maybe export the commitments through some package */ export declare const StyleCommitment: StyleCommitmentDefinition; /** * [💞] Ignore a discrepancy between file name and entity name */