@promptbook/templates
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
45 lines (44 loc) • 1.52 kB
TypeScript
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();
/**
* Short one-line description of META IMAGE.
*/
get description(): string;
/**
* Markdown documentation for META IMAGE commitment.
*/
get documentation(): 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
*/