Skip to main content

render_system_block

Function render_system_block 

Source
pub fn render_system_block(set: &ResourceSet) -> String
Expand description

Render a <resources> XML-ish block to prepend to a system prompt.

Returns an empty string when the set is empty, so callers can concatenate unconditionally without producing stray whitespace.