Machine-readable metadata for a registered tool — origin, version, and
runtime requirements in a stable shape consumers can inspect without
parsing the LLM-facing definition JSON.
Extract structured detail metadata from tool output. When multiple Detail
entries exist, they are merged into a single object. Returns None if no
Detail entries are present.
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).