Use the Straiker plugin (straiker) to scan chat completion prompts before they reach the upstream model, and scan model responses before they return to the client.
The plugin sends pre-call and post-call events to the Straiker Defend webhook, which evaluates the interaction against the policies configured in the Straiker Console and returns a verdict.
Kong Gateway forwards or blocks traffic based on that verdict.
Straiker ships in the same LuaRock as the Straiker Coding Agent Streaming and Straiker Coding Agent Buffered plugins, but only the Straiker plugin is meant for chat applications. Attach exactly one Straiker plugin per Route.
Note: This plugin is built for AI Gateway running on Kong Gateway. It has not been validated against AI Gateway 2.0.