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