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

Function attempt_capture_path

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

Source from the content-addressed store, hash-verified

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

Callers 3

write_captureFunction · 0.85

Calls 1

capture_dirFunction · 0.85