Skip to content
1 min read · 246 words

Interface: BatteryLifecycleReport

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

A single normalized lifecycle report.

Properties

PropertyTypeDescriptionDefined in
atstringISO-8601 timestamp stamped when the report was emitted.src/batteries/llm/chat_common/lifecycle.ts:52
batteryBatteryLifecycleBatteryThe battery that produced this report.src/batteries/llm/chat_common/lifecycle.ts:48
detail?stringHuman-readable detail, e.g. 'booting WebGPU runtime'.src/batteries/llm/chat_common/lifecycle.ts:54
error?unknownThe failure, populated only when phase === 'error'.src/batteries/llm/chat_common/lifecycle.ts:60
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:67
modelstringBest-effort model identifier (the model option; '<stream>' / '<blob>' when not a string).src/batteries/llm/chat_common/lifecycle.ts:50
phaseBatteryLifecyclePhaseThe phase being entered.src/batteries/llm/chat_common/lifecycle.ts:46
progress?numberNormalized download/load progress in 0..1, when the provider reports it (the loading phase).src/batteries/llm/chat_common/lifecycle.ts:56
raw?unknownThe provider's own progress payload, passed through verbatim (the loading phase).src/batteries/llm/chat_common/lifecycle.ts:58