UNPKG

@promptbook/remote-server

Version:

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

33 lines (32 loc) 993 B
import type { number_percent } from '../types/number_percent'; import type { chococake } from '../utils/organization/really_any'; import type { task_status } from './ExecutionTask'; /** * Shared type for task TLDR information. * * @private internal type of `ExecutionTask` */ type TaskTldrInfo = { readonly percent: number_percent; readonly message: string; }; /** * Snapshot of the mutable task state needed to resolve the fallback TLDR. * * @private internal type of `ExecutionTask` */ type ResolveTaskTldrOptions = { readonly customTldr: TaskTldrInfo | null; readonly currentValue: chococake; readonly status: task_status; readonly createdAt: Date; readonly errors: ReadonlyArray<Error>; readonly warnings: ReadonlyArray<Error>; }; /** * Resolves the short task summary shown in the UI. * * @private internal helper function of `ExecutionTask` */ export declare function resolveTaskTldr(options: ResolveTaskTldrOptions): TaskTldrInfo; export {};