Skip to content

ContextManagerStrategy

type ContextManagerStrategy =
| ContextManagerPreset
| ContextManagerConfig
| ContextManager
| false;

Defined in: src/context-manager/context-manager.ts:43

Supported values for the contextManager parameter.

  • "auto": Managed context with proactive compression + offloading.
  • "agentic": Model-driven context management via injected tools.
  • ContextManagerConfig: Custom strategy pipeline and stash configuration.
  • ContextManager: A pre-built instance, used as-is. An instance binds to one agent; construct one per Agent.
  • false: Explicitly disable all context management (no compression, no offloading).