nonTextCounts
@forge/monorepo / backend/src / nonTextCounts
Function: nonTextCounts()
nonTextCounts(
messages):object
Defined in: backend/src/models/streaming.ts:64
What non-text input a turn is carrying — REQ-036 (#185), AC-4.
Counted, not inferred: one image part is one image. Audio is not counted yet and the field is deliberately
absent rather than zero — a TurnContentPart has no duration, so the only honest answer is "this layer does
not know", and a zero would be indistinguishable from a silent audio turn.
Parameters
messages
readonly TurnMessage[]
Returns
object
imageCount?
readonlyoptionalimageCount?:number