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

Method build_task_executor

core/src/agent_api.rs:969–982  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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.

Callers 2

agent_executorMethod · 0.80

Calls 3

with_subagent_trackerMethod · 0.80
with_parent_contextMethod · 0.80

Tested by

no test coverage detected