quint_agent.init()
Initialize the global Quint client. Must be called before any @guard() calls. Idempotent — calling twice returns the same client.
Raises:
QuintConfigError if api_key is missing.
@quint_agent.guard()
Decorator that wraps a tool function with capture and policy enforcement.
Works with both sync and async functions:
ToolBlockedError if the call violates policy.
Client
The underlying client object. Usually you don’t interact with it directly — init() creates a global singleton.
Policy
A collection of rules evaluated against each tool call.
Rule
A single policy rule.
Decision
The result of evaluating a tool call against the policy.
Exceptions
Environment variables
Transport
Events are batched in-memory and flushed asynchronously every 500ms (or when the buffer reaches 100 events). The transport is non-blocking —@guard() never waits for the HTTP POST to complete.