Skip to main content

load_context

Function load_context 

Source
pub async fn load_context(
    config: &ContextConfig,
    base_path: &Path,
) -> Result<LoadedContext, NikaError>
Expand description

Load context files at workflow start

§Arguments

  • config - Context configuration from workflow
  • base_path - Base directory for resolving relative paths

§Returns

Loaded context with all files resolved

§Errors

Returns NikaError if:

  • File not found
  • Invalid JSON/YAML
  • Invalid glob pattern