Use this when
Use Harbor ingestion when your source data is either:- a Harbor trial directory containing
agent/,verifier/,config.json, andresult.json(see output structure) - a raw ATIF trajectory JSON payload that you want to convert directly
Main helpers
convert_atif_to_agent_run(atif)converts one parsed ATIF payload into one DocentAgentRun.convert_harbor_trial_to_agent_run(trial_dir, path_root=None)converts one Harbor trial directory into oneAgentRun.convert_harbor_directory_to_agent_runs(root)recursively discovers Harbor trials and converts each one.
docent.sdk.integrations.
Example
To convert every Harbor trial under a root directory:More on the conversion process
Each Harbor trial or ATIF payload becomes one DocentAgentRun.
At a high level, the converter:
- turns the ATIF trajectory into a single Docent transcript
- preserves ATIF metadata under
agent_run.metadata["atif"] - preserves Harbor trial metadata under
agent_run.metadata["harbor"] - stores the raw
config.jsonandresult.jsonpayloads in Harbor metadata when converting a Harbor trial
agent/.
The converter is strict. If the source data uses unsupported ATIF features such as image content, continued trajectories, subagent references, malformed step sequences, or invalid Harbor trial structure, it raises ConversionError instead of trying to approximate the data.
