UNPKG

@promptbook/website-crawler

Version:

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

41 lines (40 loc) 1.52 kB
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; import type { AgentModelRequirements } from '../_misc/AgentModelRequirements'; /** * SAMPLE commitment definition * * The SAMPLE/EXAMPLE commitment provides examples of how the agent should respond * or behave in certain situations. These examples help guide the agent's responses. * * Example usage in agent source: * * ```book * SAMPLE When asked about pricing, respond: "Our basic plan starts at $10/month..." * EXAMPLE For code questions, always include working code snippets * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class SampleCommitmentDefinition extends BaseCommitmentDefinition<'SAMPLE' | 'EXAMPLE'> { constructor(type?: 'SAMPLE' | 'EXAMPLE'); /** * Markdown documentation for SAMPLE/EXAMPLE commitment. */ get description(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; } /** * Singleton instances of the SAMPLE commitment definitions * * @private [🪔] Maybe export the commitments through some package */ export declare const SampleCommitment: SampleCommitmentDefinition; /** * Singleton instances of the SAMPLE commitment definitions * * @private [🪔] Maybe export the commitments through some package */ export declare const ExampleCommitment: SampleCommitmentDefinition; /** * Note: [💞] Ignore a discrepancy between file name and entity name */