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

Function capture_path

atomic-agent/src/turn/capture.rs:89–91  ·  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

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

Callers 1

capture_filesFunction · 0.85

Calls 1

capture_dirFunction · 0.85

Tested by

no test coverage detected