Skip to content

interlens.context.error_policy

interlens.context.error_policy

ErrorPolicy

Bases: ContextPolicy

The safe default: raise if the view exceeds the context window rather than silently dropping content.

Silent truncation reads as "everything fit" when it didn't, which is exactly the kind of quiet data loss this harness avoids. Callers who want trimming opt into DropOldestPolicy/SlidingWindowPolicy explicitly.