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

Method with_parent_context

core/src/tools/task.rs:241–247  ·  view source on GitHub ↗

Set parent session capabilities to inherit into child runs.

(mut self, ctx: crate::child_run::ChildRunContext)

Source from the content-addressed store, hash-verified

239
240 /// Set parent session capabilities to inherit into child runs.
241 pub fn with_parent_context(mut self, ctx: crate::child_run::ChildRunContext) -> Self {
242 if let Some(max_parallel_tasks) = ctx.max_parallel_tasks {
243 self.max_parallel_tasks = max_parallel_tasks.max(1);
244 }
245 self.parent_context = Some(ctx);
246 self
247 }
248
249 pub fn with_max_parallel_tasks(mut self, max_parallel_tasks: usize) -> Self {
250 self.max_parallel_tasks = max_parallel_tasks.max(1);

Callers 2

build_task_executorMethod · 0.80
register_task_with_mcpFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected