Interface: BatteryLifecycleReport
Defined in: src/batteries/llm/chat_common/lifecycle.ts:44
A single normalized lifecycle report.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
at | string | ISO-8601 timestamp stamped when the report was emitted. | src/batteries/llm/chat_common/lifecycle.ts:52 |
battery | BatteryLifecycleBattery | The battery that produced this report. | src/batteries/llm/chat_common/lifecycle.ts:48 |
detail? | string | Human-readable detail, e.g. 'booting WebGPU runtime'. | src/batteries/llm/chat_common/lifecycle.ts:54 |
error? | unknown | The failure, populated only when phase === 'error'. | src/batteries/llm/chat_common/lifecycle.ts:60 |
gpuBudget? | GpuBudget | The probed WebGPU device budget, populated on the ready phase for on-device batteries running on the WebGPU EP. SURFACED, not enforced — the consumer reads this to know the per-allocation ceiling (the wall an over-large context window hits) and choose its window accordingly. Absent on non-WebGPU runtimes (Node/wasm) and on every other phase. See GpuBudget. | src/batteries/llm/chat_common/lifecycle.ts:67 |
model | string | Best-effort model identifier (the model option; '<stream>' / '<blob>' when not a string). | src/batteries/llm/chat_common/lifecycle.ts:50 |
phase | BatteryLifecyclePhase | The phase being entered. | src/batteries/llm/chat_common/lifecycle.ts:46 |
progress? | number | Normalized download/load progress in 0..1, when the provider reports it (the loading phase). | src/batteries/llm/chat_common/lifecycle.ts:56 |
raw? | unknown | The provider's own progress payload, passed through verbatim (the loading phase). | src/batteries/llm/chat_common/lifecycle.ts:58 |