Interface: PoolCandidateRuntimeMetrics
Defined in: runtime/pools/pool-runtime-state.ts:7
Mutable per-candidate runtime telemetry and rate-limit state inside a PoolRuntimeState.
Tracks HTTP 429 cooldown windows, invocation counts, last-used timestamps, and empirical completion counts for escalate-on-retry model selection.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
id | readonly | string | Candidate identifier (seat.id, model.modelId, or model.alias). | runtime/pools/pool-runtime-state.ts:9 |
lastUsedAtMs | public | number | undefined | Optional epoch timestamp in milliseconds of the most recent selection. | runtime/pools/pool-runtime-state.ts:15 |
rateLimitedUntilMs | public | number | undefined | Optional epoch timestamp in milliseconds until which this candidate is rate-limited (429). | runtime/pools/pool-runtime-state.ts:11 |
sampleCount | public | number | Total number of completed or failed execution samples recorded for this candidate. | runtime/pools/pool-runtime-state.ts:19 |
successCount | public | number | Number of completed executions that succeeded on this candidate. | runtime/pools/pool-runtime-state.ts:17 |
usageCount | public | number | Total number of times this candidate has been selected. | runtime/pools/pool-runtime-state.ts:13 |