UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

20 lines (19 loc) 676 B
import type { string_markdown } from '../../types/string_markdown'; import type { UncertainNumber } from '../UncertainNumber'; import type { Usage } from '../Usage'; /** * Minimal usage information required to calculate worktime */ type PartialUsage = Partial<Usage> & { price: UncertainNumber; duration: UncertainNumber; input: Pick<Usage['input'], 'wordsCount'>; output: Pick<Usage['output'], 'wordsCount' | 'charactersCount'>; }; /** * Function `usageToHuman` will take usage and convert it to human readable report * * @public exported from `@promptbook/core` */ export declare function usageToHuman(usage: PartialUsage): string_markdown; export {};