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