MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / clear_history

Method clear_history

python/src/tools/registry.rs:321–330  ·  view source on GitHub ↗

Clear execution history

(&self)

Source from the content-addressed store, hash-verified

319
320 /// Clear execution history
321 pub fn clear_history(&self) -> PyResult<()> {
322 let mut history = self.execution_history.write().map_err(|e| {
323 PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!(
324 "Failed to acquire history lock: {}",
325 e
326 ))
327 })?;
328 history.clear();
329 Ok(())
330 }
331
332 /// Get registry statistics
333 pub fn get_stats(&self) -> PyResult<String> {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected