ToolCall. IR. Tool
(ToolCall v0.4.0)
Copy Markdown
A compiled tool, as embedded into the defining module.
defs holds the $defs entries the tool's parameters and result reference
by kind: :ref. Only the entries reachable from the parameters are rendered
into the input schema.
result is the declared @spec return type, or nil when a hand-built tool
has none. A no_return()/none() spec is kept as an :unsupported node with
source :no_return/:none, so result validation rejects a returned value.
Result validation uses it; it is never rendered.