# AgentTiming

<!-- https://uncage.vercel.app/docs/api/agent/interfaces/agenttiming/ -->

Defined in: agent/src/transport/types.ts:9

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
| <a id="property-backoffmaxms"></a> `backoffMaxMs` | `number` | Default 30 000. | agent/src/transport/types.ts:13 |
| <a id="property-backoffminms"></a> `backoffMinMs` | `number` | Reconnect backoff: starts here, doubles per failed attempt (with jitter). Default 1 000. | agent/src/transport/types.ts:11 |
| <a id="property-httpretrymaxms"></a> `httpRetryMaxMs` | `number` | HTTP upstream retries (hub answered `retry`, or the POST failed): 500 ms doubling up to this. Default 10 000. | agent/src/transport/types.ts:34 |
| <a id="property-idletimeoutms"></a> `idleTimeoutMs` | `number` | No data from the hub for this long → the connection is presumed dead. Default 35 000 (hub pings every 10 s). | agent/src/transport/types.ts:21 |
| <a id="property-stablems"></a> `stableMs` | `number` | The backoff only resets after a connection stayed up this long. Default 30 000. | agent/src/transport/types.ts:23 |
| <a id="property-tooltimeoutms"></a> `toolTimeoutMs` | `number` | A `tool_call` without `tool_result` fails with `tool_failed` after this. Default 150 000: longer than the hub's own limit (`toolTimeoutMs` 120 000 + 10 000 lease grace), so the hub's answer (result or "timed out on the website") normally arrives first. | agent/src/transport/types.ts:19 |
| <a id="property-uploadidlems"></a> `uploadIdleMs` | `number` | A chunked attachment upload with no frame for this long is dropped. Default 60 000. | agent/src/transport/types.ts:25 |
| <a id="property-wsfallbackafter"></a> `wsFallbackAfter` | `number` | Consecutive WebSocket attempts that never got a `welcome` or lasted less than `stableMs` before the agent switches to HTTP streaming (when the site offers it). Default 3. | agent/src/transport/types.ts:30 |
| <a id="property-wsreprobems"></a> `wsReprobeMs` | `number` | After falling back to HTTP, WebSocket is tried again after this long. Default 1 800 000 (30 min). | agent/src/transport/types.ts:32 |
