ExperimentResults#

class langsmith.evaluation._runner.ExperimentResults(experiment_manager: _ExperimentManager, blocking: bool = True)[source]#

Represents the results of an evaluate() call.

This class provides an iterator interface to iterate over the experiment results as they become available. It also provides methods to access the experiment name, the number of results, and to wait for the results to be processed.

Parameters:
  • experiment_manager (_ExperimentManager) –

  • blocking (bool) –

experiment_name() str#

Returns the name of the experiment.

wait() None[source]#

Waits for the experiment data to be processed.

Attributes

Methods

__init__(experiment_manager[, blocking])

to_pandas([start, end])

wait()

Wait for the evaluation runner to complete.

__init__(experiment_manager: _ExperimentManager, blocking: bool = True)[source]#
Parameters:
  • experiment_manager (_ExperimentManager) –

  • blocking (bool) –

to_pandas(start: int | None = 0, end: int | None = None) Any[source]#
Parameters:
  • start (int | None) –

  • end (int | None) –

Return type:

Any

wait() None[source]#

Wait for the evaluation runner to complete.

This method blocks the current thread until the evaluation runner has finished its execution.

Return type:

None