Skip to main content
To call tools on abliteration.ai, send the tool definitions in your request body using the native shape for whichever API surface you’re calling — OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages each use a different shape. The model returns a tool_use block (or tool_calls array, on OpenAI) when it wants to invoke one.

OpenAI Chat Completions

Nested function schema, tool_calls array, role: "tool" results.

OpenAI Responses

Flat function schema, function_call items, function_call_output results.

Anthropic Messages

input_schema shape, tool_use blocks, tool_result blocks.

Quick comparison

Chat CompletionsResponsesAnthropic Messages
Tool def shape{type, function: {…}}{type, name, parameters}{name, input_schema}
Model returnsmessage.tool_calls[]output[].function_callcontent[].tool_use
Continue withrole: "tool" messagefunction_call_output itemtool_result content block
Stream markerfinish_reason: "tool_calls"response.function_call.donestop_reason: "tool_use"
Last modified on May 3, 2026