@promptbook/utils
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
50 lines (49 loc) • 1.87 kB
TypeScript
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
import type { AgentModelRequirements } from '../_misc/AgentModelRequirements';
/**
* NOTE commitment definition
*
* The NOTE commitment is used to add comments to the agent source without making any changes
* to the system message or agent model requirements. It serves as a documentation mechanism
* for developers to add explanatory comments, reminders, or annotations directly in the agent source.
*
* Key features:
* - Makes no changes to the system message
* - Makes no changes to agent model requirements
* - Content is preserved in metadata.NOTE for debugging and inspection
* - Multiple NOTE commitments are aggregated together
* - Comments (# NOTE) are removed from the final system message
*
* Example usage in agent source:
*
* ```book
* NOTE This agent was designed for customer support scenarios
* NOTE Remember to update the knowledge base monthly
* NOTE Performance optimized for quick response times
* ```
*
* The above notes will be stored in metadata but won't affect the agent's behavior.
*
* @private [🪔] Maybe export the commitments through some package
*/
export declare class NoteCommitmentDefinition extends BaseCommitmentDefinition<'NOTE'> {
constructor();
/**
* Short one-line description of NOTE.
*/
get description(): string;
/**
* Markdown documentation for NOTE commitment.
*/
get documentation(): string;
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
}
/**
* Singleton instance of the NOTE commitment definition
*
* @private [🪔] Maybe export the commitments through some package
*/
export declare const NoteCommitment: NoteCommitmentDefinition;
/**
* [💞] Ignore a discrepancy between file name and entity name
*/