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

Method with_subagent_tracker

core/src/tools/task.rs:257–263  ·  view source on GitHub ↗

Share a tracker with this executor. When set, each task registers a `CancellationToken` against the tracker so the parent session can cancel by `task_id`.

(
        mut self,
        tracker: Arc<crate::subagent_task_tracker::InMemorySubagentTaskTracker>,
    )

Source from the content-addressed store, hash-verified

255 /// a `CancellationToken` against the tracker so the parent session
256 /// can cancel by `task_id`.
257 pub fn with_subagent_tracker(
258 mut self,
259 tracker: Arc<crate::subagent_task_tracker::InMemorySubagentTaskTracker>,
260 ) -> Self {
261 self.subagent_tracker = Some(tracker);
262 self
263 }
264
265 /// Execute a task by spawning an isolated child AgentLoop.
266 ///

Callers 2

build_task_executorMethod · 0.80
register_task_with_mcpFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected