@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
33 lines (32 loc) • 1.21 kB
TypeScript
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
/**
* 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' | 'STYLES'> {
constructor(type?: 'STYLE' | 'STYLES');
/**
* Short one-line description of STYLE.
*/
get description(): string;
/**
* Markdown documentation for STYLE commitment.
*/
get documentation(): string;
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
}
/**
* [💞] Ignore a discrepancy between file name and entity name
*/