@promptbook/remote-client
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
33 lines (32 loc) • 1.22 kB
TypeScript
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
/**
* RULE commitment definition
*
* The RULE/RULES commitment adds behavioral constraints and guidelines that the agent must follow.
* These are specific instructions about what the agent should or shouldn't do.
*
* Example usage in agent source:
*
* ```book
* RULE Always ask for clarification if the user's request is ambiguous
* RULES Never provide medical advice, always refer to healthcare professionals
* ```
*
* @private [🪔] Maybe export the commitments through some package
*/
export declare class RuleCommitmentDefinition extends BaseCommitmentDefinition<'RULE' | 'RULES'> {
constructor(type?: 'RULE' | 'RULES');
/**
* Short one-line description of RULE/RULES.
*/
get description(): string;
/**
* Markdown documentation for RULE/RULES commitment.
*/
get documentation(): string;
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
}
/**
* Note: [💞] Ignore a discrepancy between file name and entity name
*/