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

Method clear_runtime_actions

core/src/ahp/runtime_state.rs:113–117  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

111 }
112
113 pub(super) fn clear_runtime_actions(&self) {
114 write_or_recover(&self.active_tools).clear();
115 write_or_recover(&self.pending_confirmations).clear();
116 write_or_recover(&self.external_tasks).clear();
117 }
118
119 pub(super) fn active_tools(&self) -> usize {
120 read_or_recover(&self.active_tools).len()

Callers 2

observe_agent_eventMethod · 0.80
publish_run_cancelledMethod · 0.80

Calls 2

write_or_recoverFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected