Interface: GetMessagesForAPIOptions
Defined in: packages/core/src/history/history.ts:26
Properties
beforeTurnSteps?
optionalbeforeTurnSteps?:string
Defined in: packages/core/src/history/history.ts:37
Only the history as this turn found it: everything before the turn's record, then its user message — not the steps recorded under it (see History.recordTurn). A resumed durable turn reads with this: its steps come back from its journal, so they must not be sent twice.
formatTimestamp?
optionalformatTimestamp?: (date) =>string
Defined in: packages/core/src/history/history.ts:30
Custom timestamp formatter. Defaults to [date.toISOString()]
Parameters
date
Date
Returns
string
includeTimestamps?
optionalincludeTimestamps?:boolean
Defined in: packages/core/src/history/history.ts:28
When true, prefixes user and assistant message content with ISO 8601 timestamps