Skip to main content

render_tool_definition

Function render_tool_definition 

Source
pub fn render_tool_definition(tool: &dyn Tool) -> Value
Expand 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).