Skip to main content

build_run_meta

Function build_run_meta 

Source
pub fn build_run_meta(
    md: &RunMetadata,
    state: &AgentState,
    totals: &TokenTotals,
    flags: &RunOutcomeFlags,
    stage_index: usize,
    now_secs: i64,
    depth: usize,
    max_child_depth: usize,
) -> RunMeta
Expand description

Build the run metadata (meta.json) from an agent’s live components, stamping updated_at with now_secs. stage_index is the agent’s current stage position within its blueprint.