How you use Limits: check (evaluate) with the SDK
In your application you call the Limits SDK to evaluate (check) a request. You pass the policy key and the request payload (e.g. amount, user, resource). Limits evaluates and returns allow, block, or escalate.Conditions
Deep dive into conditions (operators, field paths, SDK/API).
Quick difference between the two modes
| Conditions mode | Instructions mode | |
|---|---|---|
| Answers | When or if something applies | What to do (required action or behavior) |
| Role | Rules that decide allow / block / escalate | Tells the system what to do; used to evaluate and return allow / block / escalate |
| Format | Structured rules (e.g. field, operator, value) | Natural language (text, bullets, steps) |
- Conditions = “Under what circumstances does this apply?” — you define rules (e.g. “block if amount > 10000”).
- Instructions = “What should happen?” — you describe the required action or behavior in plain language.
Conditions mode: When or if something applies
In Conditions mode you define when a request is allowed, blocked, or escalated using structured rules. You define things like:- Block if
request.amount > 10000 - Escalate when
user.risk_level == 'high' - Allow when
request.resourceis in the allowed list
Example (Conditions mode)
Policy in Conditions mode: block high-value payments, escalate risky users.- Block when:
request.amount > 5000 - Escalate when:
user.risk_level == 'high' - Allow when: neither of the above matches
{ amount: 100, user: { risk_level: 'low' } }, Limits evaluates these rules and returns allow, block, or escalate.
Conditions
Build conditions with operators and field paths.
Instructions mode: What to do
In Instructions mode you describe what should happen—the required action or behavior—in natural language. The system uses that to evaluate requests and return allow, block, or escalate. You might write, for example:- “Block requests over $10,000.”
- “Escalate when the user is high risk.”
- “Allow only if the resource is in the approved list.”
Example (Instructions mode)
Policy in Instructions mode: you write instructions such as:- “Block any payment over $5,000.”
- “Escalate when risk level is high.”
- “Otherwise allow and log the request.”
{ amount: 100 }, Limits evaluates using these instructions and returns allow, block, or escalate.
Instructions
Full guide to instructions policies.
AI Assistant
Create policies from natural language with the Assistant.
Summary
- How you use Limits: Call the SDK or API to check/evaluate a request (e.g. from your AI agent); you get back allow, block, or escalate.
- Conditions mode = When or if something applies. Structured rules that decide allow / block / escalate. One way to define a policy.
- Instructions mode = What to do. Natural language that describes the required action or behavior; the system uses it to evaluate and return allow / block / escalate. A different way to define a policy.
- You choose one mode per policy. Conditions and instructions are not used together in the same policy.
Where to edit in the platform
- Conditions mode — Policies → select a policy → Conditions (or
/policies/[id]/edit/conditions). Define when to allow, block, or escalate with the condition builder. - Instructions mode — Policies → select a policy → Instructions (or
/policies/[id]/edit/instructions). Write what should happen in natural language.