CategoricalScoreConfig#

class langsmith.evaluation.llm_evaluator.CategoricalScoreConfig[source]#

Bases: BaseModel

Configuration for a categorical score.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param choices: List[str] [Required]#
param description: str [Required]#
param explanation_description: str | None = None#
param include_explanation: bool = False#
param key: str [Required]#