OpenAI-styleDocumentation Index
Fetch the complete documentation index at: https://docs.clearmaas.com/llms.txt
Use this file to discover all available pages before exploring further.
tools / tool_choice works against every chat-capable
provider. The gateway translates to the upstream’s native tool-call
shape.
Minimal example
Cross-provider behavior
Same client code works across every chat-capable provider — ClearMaas adapts your OpenAI-styletools to each upstream’s native shape:
- OpenAI / Grok / DeepSeek: native target —
toolskeeps the OpenAI shape on the wire - Anthropic: OpenAI
toolsis mapped to Anthropictoolswithinput_schema, preserving JSON Schemapropertiesandrequired - Gemini: OpenAI
toolsis mapped to Geminitools[].functionDeclarations, withname/description/parameterscarried through
Gemini reserved function names
On Gemini targets the gateway recognizes three reservedfunction.name values and turns them into Gemini’s native built-in
tools instead of custom function declarations:
| Reserved name | Maps to |
|---|---|
googleSearch | Gemini Google Search grounding (see Web search) |
codeExecution | Gemini built-in code execution |
urlContext | Gemini built-in URL-context tool |
parameters — pass
{type: "function", function: {name: "googleSearch"}} and Gemini
takes it from there. Pick a different name for your own custom tools
so you don’t collide with these built-ins.