StringRunMapper#
- class langchain.smith.evaluation.string_run_evaluator.StringRunMapper[source]#
Bases:
Serializable
Extract items to evaluate from the run object.
- __call__(
- run: Run,
Maps the Run to a dictionary.
- Parameters:
run (Run)
- Return type:
dict[str, str]
- abstractmethod map(
- run: Run,
Maps the Run to a dictionary.
- Parameters:
run (Run)
- Return type:
dict[str, str]
- property output_keys: list[str]#
The keys to extract from the run.