Skip to content

formatPlan()

PromptScript API


formatPlan(plan, options?): string

Defined in: eval/src/format.ts:571

Format the plan of a dry run as text: per suite and model entry the cases, cache hits and misses, calls, judge hits and calls, price source and worst-case cost, then the totals and any setup errors. Strings are cleaned like in a report.

Parameters

plan

EvalPlan

From planEval

options?

FormatOptions = {}

color for the text format

Returns

string

The text, ending with a newline