Skip to main content

Module

Experiment result wrapper for easy status access and monitoring.

ExperimentPhaseInfo

Wrapper for experiment phase status information. Provides easy access to phase-level progress and status information for an experiment. Examples

is_complete

Whether this phase is complete (progress >= 100%).

is_failed

Whether this phase failed. Currently always returns False.

is_in_progress

Whether this phase is in progress (0% < progress < 100%).

is_pending

Whether this phase hasn’t started yet (progress = 0%).

to_dict

Convert the phase info to a dictionary. Examples

ExperimentStatusInfo

Wrapper for experiment status information. Provides human-readable access to experiment execution status, including progress tracking and phase-level information. Examples

from_result

Create from experiment.run() result dictionary. Arguments
  • result: Dictionary returned from Experiment.run().

is_complete

Whether the experiment is complete (all phases at 100%).

is_failed

Whether the experiment has failed. Currently always returns False.

is_in_progress

Whether the experiment is currently running (0% < progress < 100%).

is_pending

Whether the experiment hasn’t started yet (progress = 0%).

overall_progress

Overall progress percentage across all phases. Currently uses log_generation progress. In the future, this may average multiple phase progress values.

Returns

float: Progress percentage from 0.0 to 100.0.

to_dict

Convert the status info to a dictionary. Examples

ExperimentRunResult

Wrapper for experiment.run() result with human-readable access. Provides easy access to experiment run information including the link, status, and underlying experiment response. This wrapper makes it simple to work with experiment run results by exposing commonly needed information through intuitive properties and methods. Examples

dataset_info

Get dataset information if available. Examples

experiment

Get the underlying ExperimentResponse object.

Returns

ExperimentResponse: The raw API response object.

prompt_info

Get prompt information if available. Examples

to_dict

Convert the result to a dictionary. Examples