Skip to main content
POST
/
api
/
v1
/
runs
/
rules
/
validate
Error
A valid request URL is required to generate request examples
[
  {}
]

Documentation Index

Fetch the complete documentation index at: https://docs.langchain.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Body

application/json

Schema for validating rules without creating them.

Extends RunRulesCreateSchema with test data fields for validation. Only LLM-as-judge rules (evaluators) are supported, not code_evaluators.

display_name
string
required
sampling_rate
number
required
session_id
string<uuid> | null
is_enabled
boolean
default:true
dataset_id
string<uuid> | null
filter
string | null
trace_filter
string | null
tree_filter
string | null
backfill_from
string<date-time> | null
use_corrections_dataset
boolean
default:false
num_few_shot_examples
integer | null
extend_only
boolean
default:false
transient
boolean
default:false
add_to_annotation_queue_id
string<uuid> | null
add_to_dataset_id
string<uuid> | null
add_to_dataset_prefer_correction
boolean
default:false
evaluators
EvaluatorTopLevel · object[] | null
code_evaluators
CodeEvaluatorTopLevel · object[] | null
evaluator_id
string<uuid> | null
alerts
RunRulesPagerdutyAlertSchema · object[] | null
webhooks
RunRulesWebhookSchema · object[] | null
evaluator_version
integer | null
create_alignment_queue
boolean
default:false
include_extended_stats
boolean
default:false
group_by
string | null
Allowed value: "thread_id"
spend_limit
RunRuleSpendLimitSchema · object
tracer_session_issue_id
string<uuid> | null
test_inputs
Test Inputs · object
test_outputs
Test Outputs · object
test_reference_outputs
Test Reference Outputs · object
test_attachments
Test Attachments · object

Response

Successful Response