Updated
On this page
Builds the consult tool, which delegates a read-only question to another agent. should_strip_for_consult strips mutation-tagged and lifecycle/git tools from the sub-agent's tool set, while preserving notepad.
#tool.src.orxtra.tool._consult_tool
#tool.src.orxtra.tool._consult_tool
#should_strip_for_consult
python
def should_strip_for_consult(name: str, t: Tool) -> boolReturn True if the tool should be stripped from the consult view.
A tool is stripped if it carries the "mutation" tag or if its name is in the lifecycle/git strip set. Explicitly preserved tools (notepad) are never stripped.
#make_consult_tool
python
def make_consult_tool(tool_registry: dict[str, Tool], transport_registry: dict[str, Any], trace_writer: Any, run_id: Any, read_root: Path, categories: dict[str, str], agents: dict[str, Any]) -> ToolCreate a consult tool that delegates read-only questions to other agents.
Args:
tool_registry: Registry of all available tools.transport_registry: Registry of LLM transport providers.trace_writer: Unused, kept for caller compatibility.run_id: Unused, kept for caller compatibility.read_root: Root directory for path containment.categories: Agent category -> provider/model mapping.agents: Agent name -> agent definition mapping.