Skip to content

Function: opensTurn()

opensTurn(entry): boolean

Defined in: packages/aiui-oracle/src/types.ts:656

Whether a ledger entry OPENS a new turn — a heard utterance, or one injected in the user's own voice.

One definition, two readers: the session counts turns with it (the number a prompt resolver reads) and the viewer groups the ledger with it. They must agree — a count that disagreed with the grouping on screen would make both untrustworthy — and the only way to guarantee that is to have one predicate.

Parameters

entry

LedgerBody

Returns

boolean