@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
13 lines (12 loc) • 398 B
TypeScript
import type { Usage } from '../Usage';
/**
* Formats usage price for display in prompt status lines and task details.
* Examples:
* - "$0.12" (certain)
* - "~$3.05" (uncertain)
* - "$0.00" (zero cost)
* - "<$0.01" (tiny non-zero cost)
*
* @private internal utility of the prompt runners and the Agents Server task details
*/
export declare function formatUsagePrice(usage: Usage): string;