MCPcopy Index your code
hub / github.com/AI45Lab/Code / worker_state

Method worker_state

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

Source from the content-addressed store, hash-verified

236 }
237
238 pub(super) fn worker_state(&self) -> StreamRunWorkerState {
239 StreamRunWorkerState {
240 run_store: Arc::clone(&self.run_store),
241 run_id: self.cleanup.run_id().to_string(),
242 persistence: self.persistence.clone(),
243 should_auto_save: Arc::clone(&self.should_auto_save),
244 cancel_token: self.cleanup.cancel_token_slot(),
245 }
246 }
247
248 pub(super) fn wrap(self, worker: JoinHandle<()>, forwarder: JoinHandle<()>) -> JoinHandle<()> {
249 tokio::spawn(async move {

Callers 1

startMethod · 0.80

Calls 3

run_idMethod · 0.80
cancel_token_slotMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected