Skip to main content

Interface: GetMessagesForAPIOptions

Defined in: core/dist/types/history/history.d.ts:20

Options for getMessagesForAPI() to control timestamp injection

Properties

formatTimestamp?

optional formatTimestamp?: (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?

optional includeTimestamps?: boolean

Defined in: core/dist/types/history/history.d.ts:22

When true, prefixes user and assistant message content with ISO 8601 timestamps