Interface: GetMessagesForAPIOptions
Defined in: packages/core/src/history/history.ts:32
Options for getMessagesForAPI() to control timestamp injection
Properties
formatTimestamp?
optionalformatTimestamp?: (date) =>string
Defined in: packages/core/src/history/history.ts:36
Custom timestamp formatter. Defaults to [date.toISOString()]
Parameters
date
Date
Returns
string
includeTimestamps?
optionalincludeTimestamps?:boolean
Defined in: packages/core/src/history/history.ts:34
When true, prefixes user and assistant message content with ISO 8601 timestamps