Create & Manage Rules
Create a rule from the dialog, edit its details, and delete rules you no longer need
Conditions
Build condition groups, pick fields and operators, and combine groups with AND/OR
Preview
Sanity-check a rule’s saved conditions against your last 100 traces before relying on it
Linked Entities
Connect a rule to a Context, Prompt, or Evaluation Type so a match returns real resources
Evaluate API
Call the evaluate endpoint from any application with a Bearer API key
Frequently asked questions
What is the Rule Engine used for?
What is the Rule Engine used for?
Rule Engine matches runtime inputs - like model name, deployment environment, or cost - against conditions you define, then returns the Context, Prompt, or Evaluation Type linked to any rule that matches. This lets your application (or OpenLIT itself) look up the right resource for the current situation instead of hardcoding that logic in code.
What kinds of resources can a rule return?
What kinds of resources can a rule return?
A rule can be linked to a Context, a Prompt, or an Evaluation Type. When the rule matches, all of its linked entities are returned, and their full data can be included in the response if you ask for it.
Can I call the Rule Engine from outside OpenLIT?
Can I call the Rule Engine from outside OpenLIT?
Yes. The evaluate API accepts a Bearer API-key token, so any application can evaluate rules and retrieve linked entities without a dashboard session. See the Evaluate API page.
How are multiple conditions combined?
How are multiple conditions combined?
Conditions are organized into groups, each with its own AND/OR logic. The groups themselves are then combined using the rule’s top-level Group Operator, so you can express nested matching logic without writing any code. See Conditions for details.
Context
Store reusable knowledge and system instructions that can be retrieved when rules match
Prompt Hub
Version, deploy, and collaborate on prompts with centralized management and tracking
SDK Rule Engine
Use evaluate_rule() from Python, TypeScript, or Go with full parameter reference and examples
API Reference: Evaluate
Full reference for the Rule Engine evaluate endpoint with request and response schemas

