Skip to main content

Module context_handles

Module context_handles 

Source
Expand description

Context Handles – sparse, lazy references to context items.

A handle is a lightweight proxy (~5-30 tokens) for a context item that would otherwise cost hundreds or thousands of tokens to include in full. Handles are rendered in a compact manifest inside the system prompt, allowing the agent to selectively expand items via ctx_expand @ref.

Structs§

ContextHandle
A sparse, lazy reference to a context item.
HandleRegistry
Registry that owns all active handles and generates sequential ref-labels.