@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
19 lines (18 loc) • 656 B
TypeScript
import type { Observable } from 'rxjs';
import type { LlmExecutionTools } from '../../../../execution/LlmExecutionTools';
import type { Usage } from '../../../../execution/Usage';
/**
* LLM tools with option to get total usage of the execution
*/
export type LlmExecutionToolsWithTotalUsage = LlmExecutionTools & {
/**
* Get total cost of the execution up to this point
*/
getTotalUsage(): Usage;
/**
* Observable of total cost of the execution up to this point
*
* Note: This does report the cost of the last prompt, not the total cost of the execution up to this point
*/
spending(): Observable<Usage>;
};