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.

Functions§

derive_context
Derive an ephemeral DerivedContext from session’s pure history.
derive_with_policy
Derive an ephemeral DerivedContext under a chosen DerivePolicy.