Skip to main content

Core Concepts

How Verdictan operates

Verdictan puts a gateway between your application and your model provider. The gateway applies your rules to each request, calls the provider only when the rules allow it, and reports the result to Verdictan.

Verdictan has two parts:

PartWhat it doesWhere it runs
Control planeThe Console and the API. They store agents, configuration versions, identity, budgets, and records.Verdictan, in your organization's region
Data planeThe gateway. It receives model traffic, applies policy-config.yaml, and calls providers with your keys.Your computer, container, or server

Follow one request​

Here is what happens when your application sends a message to an OpenAI model:

  1. The application sends the request to its agent URL with an application token.
  2. Verdictan forwards the request to a gateway that is connected to the agent.
  3. The gateway checks access, spending limits, and the rules of the configuration.
  4. If the request is allowed, the gateway calls OpenAI with your provider key.
  5. The response goes back through the gateway to your application.
  6. The gateway reports the decision and usage to Verdictan.

Your application can also call the local address of the gateway directly. The quickstart shows both addresses.

How the gateway connects​

The gateway opens an outbound connection to Verdictan, and the agent URL forwards requests through it. You do not have to open an inbound port for a local gateway. The agent URL works only while the gateway runs.

The gateway reads provider keys from its own environment or from a saved secret. The configuration contains only a reference to each key, never the value. See Connect your model provider.

Where the rules apply​

Each rule applies at one stage of a request. An input rule can block a message before the provider sees it. An output rule can examine or change the response before your application receives it.

Chat Completions, Responses, Messages, streaming, and WebSocket requests do not all support the same checks. Read Runtime Request Families before you select a rule for a protocol.

Find the result​

You want to seeLook in
The request and response contentHistory, when request capture is on. Capture and retention settings decide what it keeps.
The decision for a requestIts History entry, or verdictan events tail --since 10m
Gateway connection and configurationGateways and Configurations
Requests that wait for a person to decideInbox
Changes to settings and approvalsTrail
Token usage and estimated costUsage. Set spending limits in Budgets.

Next steps​