UNPKG

@promptbook/vercel

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

34 lines (33 loc) 1.22 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * 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' | 'FORMATS'> { constructor(type?: 'FORMAT' | 'FORMATS'); /** * Short one-line description of FORMAT. */ get description(): string; /** * Markdown documentation for FORMAT commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */