@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
37 lines (36 loc) • 1.16 kB
TypeScript
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
/**
* META VOICE commitment definition
*
* The META VOICE commitment tells the agent which ElevenLabs voice ID should be used
* when text-to-speech playback is requested.
*
* Example usage in agent source:
*
* ```book
* META VOICE 21m00Tcm4TlvDq8ikWAM
* ```
*
* @private Voice-related metadata used only by the UI and TTS helpers
*/
export declare class MetaVoiceCommitmentDefinition extends BaseCommitmentDefinition<'META VOICE'> {
constructor();
/**
* Short one-line description of META VOICE.
*/
get description(): string;
/**
* Icon for this commitment.
*/
get icon(): string;
/**
* Markdown documentation for META VOICE commitment.
*/
get documentation(): string;
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
/**
* Convenience helper to normalize the provided voice ID.
*/
extractVoiceId(content: string): string | null;
}