Skip to main content

Module context

Module context 

Source
Expand description

Derive the per-step LLM context from an append-only chat history.

See derive_context and derive_with_policy for entry points.

Structs§

DerivedContext
The per-step LLM context, derived from an append-only chat history.
RequestOptions
Tunables for a derived-context provider request.

Functions§

build_request_with_context
Build a provider request from the session’s derived context.
complete_with_context
Complete a derived-context request, retrying with forced compaction.
derive_context
Derive an ephemeral DerivedContext from session’s pure history.
derive_with_policy
Derive an ephemeral DerivedContext under a chosen DerivePolicy.
effective_policy
Resolve the effective derivation policy for session.