Documentation Index
Fetch the complete documentation index at: https://mintlify.com/harbor-framework/harbor/llms.txt
Use this file to discover all available pages before exploring further.
TrialConfig
Defines the configuration for a single trial execution, combining task, agent, environment, and verifier settings. Import:from harbor.models.trial.config import TrialConfig
Fields
Configuration specifying which task to run.
Unique name for this trial. Auto-generated as
{task_name}__{short_uuid} if not provided.Directory where trial results are stored.
Global multiplier applied to all timeout values.
Specific multiplier for agent timeout. Overrides
timeout_multiplier for agent execution.Specific multiplier for verifier timeout. Overrides
timeout_multiplier for verification.Specific multiplier for agent setup timeout.
Specific multiplier for environment build timeout.
Agent configuration for this trial.
Environment configuration for this trial.
Verifier configuration for this trial.
Files or directories to collect from the environment after trial completion.
ID of the parent job, if this trial is part of a job.
Methods
generate_trial_name
Generated name in format
{task_name[:32]}__{7-char-uuid}.Equality
TrialConfig implements custom equality that excludes thetrial_name field, allowing comparison based on configuration content.
Example
AgentConfig (Trial-Level)
Agent configuration for trial execution. Import:from harbor.models.trial.config import AgentConfig
Fields
Agent name (e.g.,
'claude-code', 'openhands'). Defaults to 'oracle' if both name and import_path are None.Custom agent import path in format
'module.path:ClassName' for non-built-in agents.Model identifier in format
provider/model-name (e.g., 'anthropic/claude-opus-4-1').Override the agent timeout from task configuration.
Override the agent setup timeout.
Maximum allowed timeout (caps the computed timeout after multipliers).
Additional agent-specific keyword arguments passed to the agent constructor.
Environment variables to set for the agent process.
Example
EnvironmentConfig (Trial-Level)
Environment configuration for trial execution. Import:from harbor.models.trial.config import EnvironmentConfig
Fields
Environment type (DOCKER, DAYTONA, MODAL, E2B, etc.). Defaults to DOCKER if both type and import_path are None.
Custom environment import path for non-built-in environments.
Force rebuild of the environment image.
Delete the environment after trial completion.
Override CPU allocation from task config. Warning: May disqualify from leaderboards.
Override memory allocation in MB. Warning: May disqualify from leaderboards.
Override storage allocation in MB. Warning: May disqualify from leaderboards.
Override GPU allocation. Warning: May disqualify from leaderboards.
Suppress warnings about resource overrides affecting leaderboard eligibility.
Additional environment-specific keyword arguments.
Example
VerifierConfig (Trial-Level)
Verifier configuration for trial execution. Import:from harbor.models.trial.config import VerifierConfig
Fields
Override the verifier timeout from task configuration.
Maximum allowed verifier timeout.
Disable verification for this trial.
Example
TaskConfig (Trial-Level)
References a task to run in the trial. Import:from harbor.models.trial.config import TaskConfig
Fields
Path to the task directory.
Git repository URL if task is from a Git source.
Git commit ID for the task.
Overwrite cached task if it exists.
Directory to download remote tasks to.
Source dataset name.
Methods
is_git_task
True if this is a Git-based task (git_url is not None).
get_task_id
The appropriate TaskId based on whether this is a Git or local task.
Example
ArtifactConfig
Configuration for collecting files from trial environments. Import:from harbor.models.trial.config import ArtifactConfig
Fields
Source path in the environment (supports glob patterns).
Destination path relative to trial directory. If None, uses the source basename.
Example
Complete Example
Related Types
- JobConfig - Job-level configuration that creates TrialConfigs
- TaskConfig (task-level) - Task definition configuration
- TrialResult - Results from trial execution