tool_calls in the response, send tool results back with the tool role. Any OpenAI SDK works unmodified.
Every model in the catalog supports tool calling — models without tool support are not listed.
How PHI protection applies
Tool calling adds two hops where identifiers could leak. The gateway covers both:- Outbound: message content and your
toolrole results are redacted before the model sees them. - Inbound:
tool_callsarguments come back re-hydrated, so your function receives real values, not placeholders.
Define and call a tool
Return the tool result
Append the assistant turn and your result, then call again:Streamed tool calls: streamed responses (
stream: true) do not support tools; run tool calls unstreamed. Placeholder re-hydration needs the complete arguments before it can restore values safely.Errors
See Errors & limits for the full contract.

