UNPKG

@promptbook/langtail

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

17 lines (16 loc) 761 B
import type { string_markdown } from '../../types/typeAliases'; import type { PromptResultUsage } from '../PromptResultUsage'; /** * Function `usageToHuman` will take usage and convert it to human readable report * * @public exported from `@promptbook/core` */ export declare function usageToHuman(usage: PromptResultUsage): string_markdown; /** * TODO: [🍓][🧞‍♂️] Use "$1" not "1 USD" * TODO: [🍓][🧞‍♂️] Use markdown formatting like "Cost approximately **$1**" * TODO: [🍓][🧞‍♂️] Report in minutes, seconds, days NOT 0.1 hours * TODO: [🧠] Maybe make from `uncertainNumberToHuman` separate exported utility * TODO: [🧠] Maybe use "~" instead of "approximately" * TODO: [🏛] Maybe make some markdown builder */