ToolStringRunMapper#

class langchain.smith.evaluation.string_run_evaluator.ToolStringRunMapper[source]#

Bases: StringRunMapper

Map an input to the tool.

__call__(
run: Run,
) dict[str, str]#

Maps the Run to a dictionary.

Parameters:

run (Run)

Return type:

dict[str, str]

map(
run: Run,
) dict[str, str][source]#

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.