pub fn render_tool_definition(tool: &dyn Tool) -> ValueExpand description
Render a single tool’s definition into the OpenAI function-calling
envelope. Tools only provide name/description/schema; the envelope is
assembled here at the LLM boundary (Anthropic gets its own renderer, and
tool authors stay protocol-agnostic).