Skip to main content

Module rig_tool

Module rig_tool 

Source
Expand description

MCP -> Rig dynamic-tool adapter.

McpToolAdapter wraps an MCP-discovered tool as a rig::tool::ToolDyn so the agent loop can hand it directly to a Rig Agent. The original tool name (used on the MCP wire) lives next to the sanitized <server>__<tool> name (the form the LLM sees, produced by outrig::sanitize_tool_name), so a single adapter knows both ends of the dispatch.

Structs§

McpToolAdapter
A Rig dynamic-tool view of one MCP-discovered tool.

Functions§

truncate_for_llm