Skip to main content

Module direct_tool

Module direct_tool 

Source
Expand description

Direct MCP tool → AgentTool bridge (Phase 3).

Wraps a single MCP tool as a standalone AgentTool so the LLM can call it directly (without going through the mcp proxy gateway). The prefixed name is precomputed at construction time and stored in a String field, because AgentTool::name() returns &str whose lifetime is tied to &self.

Structs§

McpDirectTool
An individual MCP tool registered as a first-class AgentTool.