Skip to main content

assemble_context

Function assemble_context 

Source
pub fn assemble_context(
    specs: &[FileSpec],
    cwd: &Path,
    config: &PrefillConfig,
) -> AssembledContext
Expand description

Assemble context from file specs, reading from disk and respecting budgets.

Produces a single Message::User containing all file contents in an XML structure. Returns an empty context if no files were successfully read.