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).
The schema passes through [schema_budget] on the way out. That is the
only place every definition is guaranteed to cross, so it is where a
per-tool ceiling belongs — see the module docs for why it is best-effort.