Skip to main content

Interface: GetMessagesForAPIOptions

Defined in: packages/core/src/history/history.ts:32

Options for getMessagesForAPI() to control timestamp injection

Properties

formatTimestamp?

optional formatTimestamp?: (date) => string

Defined in: packages/core/src/history/history.ts:36

Custom timestamp formatter. Defaults to [date.toISOString()]

Parameters

date

Date

Returns

string


includeTimestamps?

optional includeTimestamps?: boolean

Defined in: packages/core/src/history/history.ts:34

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