feat(exec): surface AttemptRecord slice on Result for session logging

This commit is contained in:
Mathias Bergqvist
2026-04-22 13:35:38 +02:00
parent 38ada998a2
commit c44eb680b2
2 changed files with 7 additions and 4 deletions

View File

@@ -101,7 +101,9 @@ func main() {
}
attempts := make([]iexec.AttemptRecord, 0, len(chain))
orch := iexec.NewOrchestrator(chain, litellmExec.Run, claudeExec.Run, verifier, models.LlamaSwapURL(), &attempts)
return orch.Run(ctx, req)
result, err := orch.Run(ctx, req)
result.Attempts = attempts // attach orchestration metadata before returning
return result, err
}
}