Skip to main content

TrialResult

Contains comprehensive information about a single trial execution, including agent performance, verification results, timing, and any errors. Import: from harbor.models.trial.result import TrialResult

Fields

UUID
required
Unique identifier for this trial. Auto-generated on creation.
str
required
Name of the task that was executed.
str
required
Unique name for this trial instance.
str
required
URI identifier for the trial.
LocalTaskId | GitTaskId
required
Task identifier (local path or Git reference).
str | None
default:"None"
Source dataset name if task is from a dataset.
str
required
Checksum of the task definition for reproducibility tracking.
TrialConfig
required
The complete configuration used for this trial.
AgentInfo
required
Information about the agent that executed the trial.
AgentContext | None
default:"None"
Agent execution results including tokens, cost, and metadata.
VerifierResult | None
default:"None"
Verification results including rewards. None if verification was disabled or failed.
ExceptionInfo | None
default:"None"
Exception information if the trial encountered an error.
datetime | None
default:"None"
Timestamp when the trial started.
datetime | None
default:"None"
Timestamp when the trial finished.
TimingInfo | None
default:"None"
Timing information for environment setup phase.
TimingInfo | None
default:"None"
Timing information for agent setup phase.
TimingInfo | None
default:"None"
Timing information for agent execution phase.
TimingInfo | None
default:"None"
Timing information for verification phase.

Example

AgentInfo

Information about an agent that participated in a trial. Import: from harbor.models.trial.result import AgentInfo

Fields

str
required
Name of the agent (e.g., 'claude-code', 'openhands').
str
required
Version of the agent implementation.
ModelInfo | None
default:"None"
Model information if the agent uses a language model.

Example

ModelInfo

Information about a language model used by an agent. Import: from harbor.models.trial.result import ModelInfo

Fields

str
required
Model name (e.g., 'claude-opus-4-1', 'gpt-4').
str
required
Model provider (e.g., 'anthropic', 'openai').

Example

TimingInfo

Timing information for a phase of trial execution. Import: from harbor.models.trial.result import TimingInfo

Fields

datetime | None
default:"None"
Timestamp when the phase started.
datetime | None
default:"None"
Timestamp when the phase finished.

Example

ExceptionInfo

Information about an exception that occurred during trial execution. Import: from harbor.models.trial.result import ExceptionInfo

Fields

str
required
The exception class name (e.g., 'TimeoutError', 'RuntimeError').
str
required
The exception message.
str
required
Full traceback string.
datetime
required
Timestamp when the exception occurred.

Methods

from_exception

Create an ExceptionInfo from a Python exception.
BaseException
required
The exception to capture.
ExceptionInfo
Exception information object with type, message, traceback, and timestamp.

Example

Analyzing Trial Results

Success and Error Rates

Performance Analysis

Reward Analysis

Phase Timing Breakdown

Serialization

TrialResult is a Pydantic model and supports JSON serialization: