Kind: Class
Source: atloria-monorepo/libs/agent-core/src/context/context-manager.ts
Methods
| Method | Signature | Returns |
|---|---|---|
add | `add(item: Omit<ContextItem, 'turn' | 'tokenEstimate'> & { tokenEstimate?: number })` |
nextTurn | nextTurn() | void |
getItems | getItems() | ReadonlyArray<ContextItem> |
getTurn | getTurn() | number |
getTotalTokens | getTotalTokens() | number |
shouldCompact | shouldCompact() | boolean |
compact | compact() | Promise<void> |
clear | clear() | void |
Where it refuses work
ContextManagerstops the work with an early return whenthis.items.length <= minKeep.
Was this page helpful?