Skip to main content

assemble_planning_messages

Function assemble_planning_messages 

Source
fn assemble_planning_messages(
    round: u32,
    capability_cache_hit: bool,
    sections: &[PromptSection<'_>],
    history_messages: &[Message],
    correction: Option<&str>,
) -> Vec<Message>
Expand description

Assemble one request while emitting a bounded, machine-readable breakdown of every prompt section. Section token counts are explicit four-byte estimates; the provider-reported total is logged separately when available.