# Interface BenchmarkRunContext

Execution context handed to a runner.

Keep this interface narrow — benchmarks that need more (e.g. access to specific adapters) should take those as constructor args, not widen this.

interface BenchmarkRunContext {
timeoutMs: number;
onProgress?: (completed: number, total: number, label?: string) => void;
signal?: AbortSignal;
}

- Defined in packages/nexus-agents/src/benchmarks/adapter.ts:40

##### Index

### Properties

timeoutMs
onProgress?
signal?

## Properties

### `Readonly` timeoutMs

timeoutMs: number

Per-instance timeout budget in milliseconds.

- Defined in packages/nexus-agents/src/benchmarks/adapter.ts:42

### `Optional` `Readonly` onProgress

onProgress?: (completed: number, total: number, label?: string) => void

Emit progress updates for long-running benchmarks.

- Defined in packages/nexus-agents/src/benchmarks/adapter.ts:44

### `Optional` `Readonly` signal

signal?: AbortSignal

Optional abort signal for cancellation.

- Defined in packages/nexus-agents/src/benchmarks/adapter.ts:46