Skip to content

runWithRetry

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/agent-core/src/benchmark/retry-runner.ts

Run a benchmark task with retries, picking the best result.

Signature

ts
async function runWithRetry(task: BenchmarkTask, runOnce: (task: BenchmarkTask, temperature?: number) => Promise<TaskResult>, config: RetryConfig, log: (msg: string) => void): Promise<RetryResult>

Parameters

NameType
taskBenchmarkTask
runOnce(task: BenchmarkTask, temperature?: number) => Promise<TaskResult>
configRetryConfig
log(msg: string) => void

Returns: Promise<RetryResult>

Was this page helpful?

Download as PDF