Skip to main content

ContextManagerOption

Type Alias ContextManagerOption 

Source
pub type ContextManagerOption = ContextManagerStrategy;
Expand description

What context_manager accepts (ContextManagerOption): exactly the SDK’s ContextManagerStrategy, whose Disabled stands for both false and null.

Aliased Type§

pub enum ContextManagerOption {
    Auto,
    Agentic,
    Config(ContextManagerConfig),
    Instance(ContextManager),
    Disabled,
}

Variants§

§

Auto

Proactive truncation of tool results and summarization at 85% utilization ('auto').

§

Agentic

Model-driven context management through the summarize_context, truncate_context and pin_context tools, a higher truncation threshold and summarization only on overflow ('agentic', experimental).

§

Config(ContextManagerConfig)

A custom pipeline and archive.

§

Instance(ContextManager)

An instance, used as is (a handle: clones share the manager).

§

Disabled

No context management: no compression, no offloading (false).