Skip to main content

render_context_packets

Function render_context_packets 

Source
pub fn render_context_packets(packets: &[ContextPacket]) -> Option<String>
Expand description

Renders context packets into a text block for injection into the system prompt, sorted by descending priority.

Returns None if the slice is empty.