Skip to main content

resolve_agent_description

Function resolve_agent_description 

Source
pub fn resolve_agent_description(
    iteration_dir: &Path,
    eval_id: &str,
    condition: &str,
    run_index: Option<u32>,
) -> String
Expand description

The canonical dispatch description for an (eval, condition, run) run.

The runner writes a unique agent_description per task into dispatch.json (namespaced with the iteration + run nonce); reading it back binds each run to the exact agent that produced it. Falls back to the <eval_id>:<condition>[:r<k>] reconstruction when dispatch.json is absent, malformed, or missing the task (hand-authored/operator runs).