Skip to content

Documentation / @agentick/core / TimelineBudgetOptions

Interface: TimelineBudgetOptions ​

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

Token budget options for Timeline.

Extended by ​

Properties ​

guidance? ​

optional guidance: string

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

Guidance string passed to custom compaction functions


headroom? ​

optional headroom: number

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

Reserve tokens for safety margin (default: 0)


maxTokens? ​

optional maxTokens: number

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

Maximum tokens for timeline entries. Enables compaction.


onEvict()? ​

optional onEvict: (entries) => void

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

Callback when entries are evicted

Parameters ​

entries ​

COMTimelineEntry[]

Returns ​

void


preserveRoles? ​

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

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

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


strategy? ​

optional strategy: CompactionStrategy

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

Compaction strategy (default: "sliding-window")

Released under the ISC License.