Create decision model rule
Create a decision-model evaluator (Jev, SemIf or OpenAI Decisions) from its prompt and questions, and attach it to a project or dataset. Each question’s key becomes a feedback key.
Authorizations
Body
A decision-model evaluator to create and attach to a project or dataset.
The prompt the model reads, as (role, template) pairs.
The questions, keyed by feedback key, in the order to ask them.
The tracing project to evaluate.
The dataset whose experiments to evaluate.
mustache, f-string Maps the prompt's variables to run fields.
typesafe for Jev and SemIf, typesafe_compatible for a TypeSafe-compatible endpoint, or openai_decisions.
typesafe, typesafe_compatible, openai_decisions Defaults to jev-latest for typesafe and gpt-6-luna for openai_decisions. Use semif-qwen3.5-4b for SemIf.
Call this endpoint directly instead of through the LangSmith gateway, with the workspace's TYPESAFE_API_KEY or OPENAI_API_KEY secret. Required for typesafe_compatible.
Headers sent with each model call. They are saved in the evaluator's prompt as given, so do not put API keys here.
Seconds to wait for each model call. openai_decisions only.
How many times to retry a failed model call. openai_decisions only.
A saved model configuration to start from: its model, endpoint, key and settings apply unless set here.
The fraction of runs to evaluate.
Only evaluate runs that match this filter.
Response
Successful Response
Run rules schema.
thread_id, trajectory_id 
