Skip to content
1 min read · 272 words

Interface: BatteryLifecycleReport

Defined in: src/batteries/llm/chat_common/lifecycle.ts:46

A single normalized lifecycle report.

Properties

PropertyTypeDescriptionDefined in
atstringISO-8601 timestamp stamped when the report was emitted.src/batteries/llm/chat_common/lifecycle.ts:54
batteryBatteryLifecycleBatteryThe battery that produced this report.src/batteries/llm/chat_common/lifecycle.ts:50
detail?stringHuman-readable detail, e.g. 'booting WebGPU runtime'.src/batteries/llm/chat_common/lifecycle.ts:56
error?unknownThe failure, populated only when phase === 'error'.src/batteries/llm/chat_common/lifecycle.ts:66
gpuBudget?GpuBudgetThe 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:73
modelstringBest-effort model identifier (the model option; '<stream>' / '<blob>' when not a string).src/batteries/llm/chat_common/lifecycle.ts:52
phaseBatteryLifecyclePhaseThe phase being entered.src/batteries/llm/chat_common/lifecycle.ts:48
progress?numberNormalized progress in 0..1, when the provider reports it. Emitted during the loading phase (weights download/compile) and — for engines that stream per-step generation progress, e.g. the diffusion denoise loop — during the generating phase as well.src/batteries/llm/chat_common/lifecycle.ts:62
raw?unknownThe provider's own progress payload, passed through verbatim (the loading or generating phase).src/batteries/llm/chat_common/lifecycle.ts:64