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

Function attempt_capture_path

atomic-agent/src/turn/capture.rs:95–102  ·  view source on GitHub ↗
(
    sessions_dir: &Path,
    session_id: &str,
    turn: u32,
    attempt: u32,
)

Source from the content-addressed store, hash-verified

93}
94
95fn attempt_capture_path(
96 sessions_dir: &Path,
97 session_id: &str,
98 turn: u32,
99 attempt: u32,
100) -> AgentResult<PathBuf> {
101 Ok(capture_dir(sessions_dir, session_id)?.join(format!("turn-{turn}.attempt-{attempt}.json")))
102}
103
104/// Every stored capture for one turn, oldest first (legacy single file
105/// first, then per-attempt files in attempt order).

Callers 3

write_captureFunction · 0.85

Calls 1

capture_dirFunction · 0.85