EvalConfig#

class langchain.smith.evaluation.config.EvalConfig[source]#

Bases: BaseModel

Configuration for a given run evaluator.

Parameters:

evaluator_type (EvaluatorType) – The type of evaluator to use.

get_kwargs()[source]#

Get the keyword arguments for the evaluator configuration.

Return type:

Dict[str, Any]

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

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param evaluator_type: EvaluatorType [Required]#
get_kwargs() Dict[str, Any][source]#

Get the keyword arguments for the load_evaluator call.

Returns:

The keyword arguments for the load_evaluator call.

Return type:

Dict[str, Any]