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

Method current_run

core/src/agent_api/run_lifecycle.rs:123–127  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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()?;
125 let snapshot = self.run_store.snapshot(&run_id).await?;
126 Some(self.run_handle(snapshot.id, snapshot.session_id))
127 }
128
129 fn run_handle(&self, run_id: String, session_id: String) -> crate::run::RunHandle {
130 crate::run::RunHandle::new(

Callers 1

cancel_runMethod · 0.45

Calls 3

run_handleMethod · 0.80
cloneMethod · 0.45
snapshotMethod · 0.45

Tested by

no test coverage detected