Tool Calling

Let models call functions in your code. Define tools, handle calls, and build agentic workflows — all through one API.

Tributary uses the OpenAI tool calling format as its unified interface. Tools are defined as JSON Schema functions and passed in the tools array. Requests are automatically translated for each provider.

How it works

1

You send a request with a tools array describing available functions.

2

The model decides whether to call a tool. If it does, the response contains tool_calls instead of text content, and finish_reason is "tool_calls".

3

You execute the function locally, then send the result back as a tool message with the matching tool_call_id.

4

The model uses the tool result to generate its final response. You can repeat this loop for multi-step agentic workflows.