UNPKG

@promptbook/website-crawler

Version:

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

41 lines (40 loc) 1.42 kB
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; import type { AgentModelRequirements } from '../_misc/AgentModelRequirements'; /** * META IMAGE commitment definition * * The META IMAGE commitment sets the agent's avatar/profile image URL. * 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 IMAGE https://example.com/avatar.jpg * META IMAGE /assets/agent-avatar.png * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class MetaImageCommitmentDefinition extends BaseCommitmentDefinition<'META IMAGE'> { constructor(); /** * Markdown documentation for META IMAGE commitment. */ get description(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; /** * Extracts the profile image URL from the content * This is used by the parsing logic */ extractProfileImageUrl(content: string): string | null; } /** * Singleton instance of the META IMAGE commitment definition * * @private [🪔] Maybe export the commitments through some package */ export declare const MetaImageCommitment: MetaImageCommitmentDefinition; /** * Note: [💞] Ignore a discrepancy between file name and entity name */