@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
33 lines (32 loc) • 1.08 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;
}