Skip to content

Documentation / @agentick/core / TimelineProps

Interface: TimelineProps

Defined in: core/src/jsx/components/timeline.tsx:110

Props for the Timeline component.

Extends

Properties

children?

optional children: Element | TimelineRenderFn

Defined in: core/src/jsx/components/timeline.tsx:115

Render prop for custom rendering. If not provided, renders default message components.


filter()?

optional filter: (entry) => boolean

Defined in: core/src/jsx/components/timeline.tsx:75

Filter function for entries

Parameters

entry

COMTimelineEntry

Returns

boolean

Inherited from

ConversationHistoryOptions.filter


guidance?

optional guidance: string

Defined in: core/src/jsx/components/timeline.tsx:98

Guidance string passed to custom compaction functions

Inherited from

TimelineBudgetOptions.guidance


headroom?

optional headroom: number

Defined in: core/src/jsx/components/timeline.tsx:104

Reserve tokens for safety margin (default: 0)

Inherited from

TimelineBudgetOptions.headroom


limit?

optional limit: number

Defined in: core/src/jsx/components/timeline.tsx:78

Maximum number of entries to return

Inherited from

ConversationHistoryOptions.limit


maxTokens?

optional maxTokens: number

Defined in: core/src/jsx/components/timeline.tsx:89

Maximum tokens for timeline entries. Enables compaction.

Inherited from

TimelineBudgetOptions.maxTokens


onEvict()?

optional onEvict: (entries) => void

Defined in: core/src/jsx/components/timeline.tsx:95

Callback when entries are evicted

Parameters

entries

COMTimelineEntry[]

Returns

void

Inherited from

TimelineBudgetOptions.onEvict


preserveRoles?

optional preserveRoles: ("user" | "assistant" | "system" | "tool")[]

Defined in: core/src/jsx/components/timeline.tsx:101

Roles that are never evicted (default: ["system"])

Inherited from

TimelineBudgetOptions.preserveRoles


roles?

optional roles: ("event" | "user" | "assistant" | "system" | "tool")[]

Defined in: core/src/jsx/components/timeline.tsx:81

Only include these roles

Inherited from

ConversationHistoryOptions.roles


strategy?

optional strategy: CompactionStrategy

Defined in: core/src/jsx/components/timeline.tsx:92

Compaction strategy (default: "sliding-window")

Inherited from

TimelineBudgetOptions.strategy

Released under the ISC License.