UNPKG

@promptbook/wizard

Version:

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

40 lines (39 loc) 1.37 kB
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; import type { AgentModelRequirements } from '../_misc/AgentModelRequirements'; /** * FORMAT commitment definition * * The FORMAT commitment defines the specific output structure and formatting * that the agent should use in its responses. This includes data formats, * response templates, and structural requirements. * * Example usage in agent source: * * ```book * FORMAT Always respond in JSON format with 'status' and 'data' fields * FORMAT Use markdown formatting for all code blocks * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class FormatCommitmentDefinition extends BaseCommitmentDefinition<'FORMAT'> { constructor(); /** * Short one-line description of FORMAT. */ get description(): string; /** * Markdown documentation for FORMAT commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; } /** * Singleton instance of the FORMAT commitment definition * * @private [🪔] Maybe export the commitments through some package */ export declare const FormatCommitment: FormatCommitmentDefinition; /** * Note: [💞] Ignore a discrepancy between file name and entity name */