engineering · 1 min read
Function Calling Across Providers: A Compatibility Layer
Each provider has its own function-calling API. The gateway gives you one. Here is how Bhogar AI normalises tool use across OpenAI, Anthropic, Google and open models.
BABhogar AI TeamProduct & Engineering
OpenAI calls them tools. Anthropic calls them tool_use. Google has function declarations. Open models have everything in between. Writing your app against one provider locks you in.
Why it matters
A gateway abstraction lets you declare tools once and call any model. Done right, it preserves streaming, parallel tool calls and structured arguments uniformly.
How Bhogar AI approaches it
Bhogar AI gateway exposes a unified Tool API. Internally we translate to each provider's native format, including parallel tool calls, streaming and JSON-schema arguments - and back-fill missing capabilities where possible.
- Unified Tool API across providers
- Parallel tool calls where supported
- Streaming tool deltas
- JSON-schema argument validation
- Capability-matched fallback
What you get
Cross-provider agent code stops being a nest of conditionals and starts being a clean integration that deploys against any model.