maple.state.store.add_run

maple.state.store.add_run(run_id: str, policy_id: str, env_id: str, task: str, instruction: str = None, metadata: dict = None) str

Start tracking a run.

Creates a new evaluation run record in the database with initial metadata. The run starts in an incomplete state until finish_run() is called.

Parameters:
  • run_id – Unique identifier for this run.

  • policy_id – Identifier of the policy being evaluated.

  • env_id – Identifier of the environment being used.

  • task – Task name or identifier.

  • instruction – Optional natural language instruction for the task.

  • metadata – Optional dictionary of additional run metadata.

Returns:

The run ID that was registered.