UNPKG

@promptbook/browser

Version:

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

43 lines (42 loc) 1.33 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * META FONT commitment definition * * The META FONT commitment sets the agent's font. * This commitment is special because it doesn't affect the system message, * but is handled separately in the parsing logic. * * Example usage in agent source: * * ```book * META FONT Poppins, Arial, sans-serif * META FONT Roboto * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class MetaFontCommitmentDefinition extends BaseCommitmentDefinition<'META FONT'> { constructor(); /** * Short one-line description of META FONT. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for META FONT commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; /** * Extracts the font from the content * This is used by the parsing logic */ extractProfileFont(content: string): string | null; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */