Skip to main content

load_context_analyzed

Function load_context_analyzed 

Source
pub async fn load_context_analyzed(
    context_files: &[AnalyzedContextFile],
    base_path: &Path,
) -> Result<LoadedContext, NikaError>
Expand description

Load context files from AnalyzedWorkflow’s context_files vec.

AnalyzedWorkflow stores context as Vec<AnalyzedContextFile> instead of ContextConfig { files: HashMap<String, String>, session }. This function adapts to the analyzed shape.

Each AnalyzedContextFile has:

  • path: file path (may contain globs)
  • alias: optional alias for the context key (defaults to filename stem)
  • max_bytes: optional size limit (not yet enforced)