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

Method agent_executor

core/src/agent_api.rs:961–963  ·  view source on GitHub ↗

An [`AgentExecutor`](crate::orchestration::AgentExecutor) backed by this session — runs each orchestrated step as a child agent on this node, inheriting the session's agent registry, LLM client, workspace, MCP tools, and subagent tracker. This is what the orchestration combinators ([`execute_steps_parallel`](crate::orchestration::execute_steps_parallel), [`execute_pipeline`](crate::orchestration:

(&self)

Source from the content-addressed store, hash-verified

959 /// run against; a host can instead supply its own executor to place steps
960 /// across a cluster.
961 pub fn agent_executor(&self) -> Arc<dyn crate::orchestration::AgentExecutor> {
962 Arc::new(self.build_task_executor(self.parent_run_context()))
963 }
964
965 /// Build the in-box [`TaskExecutor`](crate::tools::TaskExecutor) for this
966 /// session, applying `parent` as the child-run capability context. Shared by

Callers 6

parallelMethod · 0.80
parallel_resumableMethod · 0.80
pipelineMethod · 0.80
parallelMethod · 0.80
parallel_resumableMethod · 0.80
pipelineMethod · 0.80

Calls 2

build_task_executorMethod · 0.80
parent_run_contextMethod · 0.80

Tested by

no test coverage detected