Skip to main content
Wrap openai with Inviolet so every function-call tool execution goes through the gateway.

Install

Use (Chat Completions)

Use (Assistants API)

What the wrapper does

Identical to the Anthropic wrapper: mints a mandate, intercepts every tool call, calls inviolet.guard(), returns a tool result on deny so the model can pivot.