MCPcopy
hub / github.com/promptfoo/promptfoo / getMaxEvalTimeMs

Function getMaxEvalTimeMs

src/envars.ts:556–558  ·  view source on GitHub ↗
(defaultValue: number = 0)

Source from the content-addressed store, hash-verified

554 * @returns The max duration in milliseconds, or the default value if not set.
555 */
556export function getMaxEvalTimeMs(defaultValue: number = 0): number {
557 return getEnvInt('PROMPTFOO_MAX_EVAL_TIME_MS', defaultValue);
558}
559
560/**
561 * Check if the application is running in a CI environment.

Callers 2

envars.test.tsFile · 0.90
_runEvaluationMethod · 0.90

Calls 1

getEnvIntFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…