create_score_config
create_score_configDefine score configurations to validate and structure future evaluations in Langfuse, supporting numeric, categorical, and boolean data types with optional constraints.
Instructions
Creates a score config definition used to validate or structure future scores. name and dataType are required. For categorical configs, categoriesJson should be a JSON array of {label,value} objects. For numeric configs, minValue and maxValue are optional bounds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Score config name. Required. | |
| dataType | Yes | Data type: NUMERIC | CATEGORICAL | BOOLEAN. Required. | |
| categoriesJson | Yes | Optional categorical options as a JSON array of {label,value} objects. | |
| minValue | Yes | Optional minimum numeric value. | |
| maxValue | Yes | Optional maximum numeric value. | |
| description | Yes | Optional description shown in Langfuse. |