Skip to main content

Module request_parts

Module request_parts 

Source
Expand description

Typed request parts and prioritized budget-bounded selection.

Replaces blind byte-prefix truncation with prioritized selection across typed request components (required instructions, user prompt, tool schemas, evidence, and conversation history). Enforces that required instructions and the complete user prompt survive admission, or rejects with ContextBudgetExceeded.

Structs§

RequestPart
A borrowed typed part of an inference request.

Enums§

RequestPartKind
Semantic category of a request part in the conditioning pipeline.

Functions§

select_prioritized_parts
Select and pack request parts within a strict byte ceiling.