Skip to content

recordSessionTurnSafe

recordSessionTurnSafe(config, record): RecordedTurn | null

Defined in: packages/core/src/history/recordSession.ts:47

GS2-106 — recordSessionSafe, returning what was written: the turn’s row id plus the conversation it was recorded under and that conversation’s run id. null when history is off or anything went wrong. Same guarantees: fully guarded, never throws.

HistoryConfigView

SessionRecord

RecordedTurn | null