MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / capture_path

Function capture_path

atomic-agent/src/turn/capture.rs:91–93  ·  view source on GitHub ↗

Path of the capture written for one turn of one session. Legacy/live path. Attempts (review R9) live at `turn-{turn}.attempt-{n}.json` and are created exclusively — a retried commit appends a new attempt instead of overwriting the previous attempt's evidence.

(sessions_dir: &Path, session_id: &str, turn: u32)

Source from the content-addressed store, hash-verified

89/// commit appends a new attempt instead of overwriting the previous
90/// attempt's evidence.
91pub fn capture_path(sessions_dir: &Path, session_id: &str, turn: u32) -> AgentResult<PathBuf> {
92 Ok(capture_dir(sessions_dir, session_id)?.join(format!("turn-{turn}.json")))
93}
94
95fn attempt_capture_path(
96 sessions_dir: &Path,

Callers 1

capture_filesFunction · 0.85

Calls 1

capture_dirFunction · 0.85

Tested by

no test coverage detected