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

Function latest_capture_file

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

The most recent capture file for one turn (the latest commit attempt), when any exists.

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

Source from the content-addressed store, hash-verified

131/// The most recent capture file for one turn (the latest commit attempt),
132/// when any exists.
133fn latest_capture_file(
134 sessions_dir: &Path,
135 session_id: &str,
136 turn: u32,
137) -> AgentResult<Option<PathBuf>> {
138 Ok(capture_files(sessions_dir, session_id, turn)?.pop())
139}
140
141/// Whether any capture evidence exists for one turn of one session.
142pub fn has_capture(sessions_dir: &Path, session_id: &str, turn: u32) -> bool {

Calls 1

capture_filesFunction · 0.85