Skip to main content
A router or agent gateway selects a model and returns completion text. DataVibe then evaluates the completed send-bound payload as custom policy middleware:
This is the post-generation slot — complementary to platform safety (e.g. Model Armor on Vertex), not a substitute. Normalize router output to recipient, subject, body_text, body_html, and source_model, then call POST /v1/gate/outbound.
Reference pack (LiteLLM callback, Portkey hook, runnable demo): The production integration belongs after routing because DataVibe must evaluate the exact content that would reach the customer. Keep router provider keys in your own infrastructure.
Use the persisted gate for outbound. POST /v1/check is a stateless preview and cannot create a queue item or review URL.
Last modified on September 14, 2026