@promptbook/browser
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
36 lines (35 loc) • 1.16 kB
TypeScript
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
/**
* LANGUAGE commitment definition
*
* The LANGUAGE/LANGUAGES commitment specifies the language(s) the agent should use in its responses.
*
* Example usage in agent source:
*
* ```book
* LANGUAGE English
* LANGUAGE French, English and Czech
* ```
*
* @private [🪔] Maybe export the commitments through some package
*/
export declare class LanguageCommitmentDefinition extends BaseCommitmentDefinition<'LANGUAGE' | 'LANGUAGES'> {
constructor(type?: 'LANGUAGE' | 'LANGUAGES');
/**
* Short one-line description of LANGUAGE/LANGUAGES.
*/
get description(): string;
/**
* Icon for this commitment.
*/
get icon(): string;
/**
* Markdown documentation for LANGUAGE/LANGUAGES commitment.
*/
get documentation(): string;
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
}
/**
* Note: [💞] Ignore a discrepancy between file name and entity name
*/