getHistory

fun getHistory(curated: Boolean = false): List<Content>

Returns a snapshot of the turns in this session.

The returned list is a copy, so it is unaffected by later turns. It is safe to call this while a turn is in flight; the result then holds the turns completed so far.

Parameters

curated

When true, returns only the turns that will be sent to the model on the next request. When false, the default, also includes turns whose response came back empty or blocked.