Build the in-box [`TaskExecutor`](crate::tools::TaskExecutor) for this session, applying `parent` as the child-run capability context. Shared by [`agent_executor`](Self::agent_executor) and [`workflow`](Self::workflow) so both wire children identically.
(
&self,
parent: crate::child_run::ChildRunContext,
)
| 967 | /// [`agent_executor`](Self::agent_executor) and [`workflow`](Self::workflow) |
| 968 | /// so both wire children identically. |
| 969 | fn build_task_executor( |
| 970 | &self, |
| 971 | parent: crate::child_run::ChildRunContext, |
| 972 | ) -> crate::tools::TaskExecutor { |
| 973 | crate::tools::TaskExecutor::with_mcp( |
| 974 | Arc::clone(&self.agent_registry), |
| 975 | Arc::clone(&self.llm_client), |
| 976 | self.workspace.display().to_string(), |
| 977 | Arc::clone(&self.mcp_manager), |
| 978 | ) |
| 979 | .with_parent_context(parent) |
| 980 | .with_subagent_tracker(Arc::clone(&self.subagent_tasks)) |
| 981 | .with_max_parallel_tasks(self.config.max_parallel_tasks) |
| 982 | } |
| 983 | |
| 984 | /// A programmable [`Workflow`](crate::orchestration::Workflow) bound to this |
| 985 | /// session. |
no test coverage detected