trinity.explorer.workflow_runner module#
The Workflow Runner Module.
- class trinity.explorer.workflow_runner.Status(completed_runs: int, total_runs: int, metrics: List[Dict[str, float]], message: str | None = None)[source]#
Bases:
objectStatus of the task running result.
- completed_runs: int#
- total_runs: int#
- metrics: List[Dict[str, float]]#
- message: str | None = None#
- property ok: bool#
- __init__(completed_runs: int, total_runs: int, metrics: List[Dict[str, float]], message: str | None = None) None#
- class trinity.explorer.workflow_runner.RunnerExecutionResult(status: Status, experiences: List[Experience])[source]#
Bases:
objectExecution result for one runner task.
- experiences: List[Experience]#
- __init__(status: Status, experiences: List[Experience]) None#
- class trinity.explorer.workflow_runner.WorkflowRunner(config: Config, rollout_model_id: int, auxiliary_model_ids: List[int] | None = None, runner_id: int | None = None)[source]#
Bases:
objectA Ray remote actor to run the workflow and generate experiences.
- class trinity.explorer.workflow_runner.DebugWorkflowRunner(config: Config, output_dir: str = 'debug_output', enable_profiling: bool = False, disable_overwrite: bool = False)[source]#
Bases:
WorkflowRunnerA WorkflowRunner for debugging.