MCPcopy Create free account
hub / github.com/AI45Lab/Code / cancel_run

Method cancel_run

core/src/agent_api/run_lifecycle.rs:116–121  ·  view source on GitHub ↗
(&self, run_id: &str)

Source from the content-addressed store, hash-verified

114 }
115
116 pub(super) async fn cancel_run(&self, run_id: &str) -> bool {
117 match self.current_run().await {
118 Some(run) if run.id() == run_id => run.cancel().await,
119 _ => false,
120 }
121 }
122
123 pub(super) async fn current_run(&self) -> Option<crate::run::RunHandle> {
124 let run_id = self.current_run_id.lock().await.clone()?;

Callers

nothing calls this directly

Calls 3

current_runMethod · 0.45
idMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected