Whether the deployment should be active immediately after creation.
Evaluator family to use.
Use name and scope from the evaluator endpoints.
Langfuse resolves that family to its latest version before saving the rule.
OptionalfilterOptional filter list.
Omit or pass an empty list to evaluate all matching targets for the selected target.
Each filter object must use a column that is valid for that target.
For target=experiment, column=datasetId expects dataset id values from GET /api/public/v2/datasets, not dataset names.
Required variable mappings.
Every evaluator variable must appear exactly once.
Build this list from the evaluator variables array returned by the evaluator endpoints.
Human-readable deployment name.
OptionalsamplingOptional sampling fraction. Defaults to 1.
Target object type to evaluate.
Request body for creating an evaluation rule.
Checklist for agents and SDK clients:
evaluator.nameandevaluator.scopetarget=observationortarget=experimenttarget=experimentand you want a dataset filter, callGET /api/public/v2/datasetsfirst and use datasetidvalues infilter[].valuevariablesfilterenabled=trueonly when you want live execution immediately