--- warning: DO NOT CHANGE THIS MANUALLY, THIS IS GENERATED BY https://github.com/duckdb/community-extensions repository, check README there title: agent_runs excerpt: | DuckDB Community Extensions Import Harbor job metadata into DuckDB and multimodal agent trajectories into Lance datasets extension: name: agent_runs description: Import Harbor job metadata into DuckDB and multimodal agent trajectories into Lance datasets version: 0.2.1 language: C++ & Rust build: cmake license: MIT excluded_platforms: "wasm_mvp;wasm_eh;wasm_threads;windows_amd64;windows_amd64_mingw;osx_amd64" requires_toolchains: rust maintainers: - dentiny repo: github: dentiny/duckdb_agent_runs ref: 4a162f65cf7762b1b1f288ee6e7d99b62efb0965 docs: hello_world: | INSTALL agent_runs FROM community; LOAD agent_runs; CALL ingest_agent_run( '/path/to/harbor-job', trajectory_destination := '/path/to/datasets' ); SELECT job_name, result.stats.n_completed_trials FROM agent_runs.jobs; extended_description: | One `ingest_agent_run` call imports a Harbor job into a queryable DuckDB catalog and converts each trial's ATIF trajectory into a Lance dataset at the chosen destination. Job and trial metadata are stored in `agent_runs.jobs` and `agent_runs.trials`; the latter records each dataset's URI. Multimodal ATIF content, including referenced image and audio files, is embedded in the Lance datasets. Open a file-backed DuckDB database to keep the metadata between sessions. The extension initializes and upgrades its `agent_runs` schema on load. Local paths and S3 prefixes are supported for Harbor jobs and Lance destinations; configure DuckDB secrets for S3 access. See the [README](https://github.com/dentiny/duckdb_agent_runs) for the Harbor directory layout, query examples, and failure cleanup behavior. extension_star_count: 0 extension_star_count_pretty: 0 extension_download_count: 2236 extension_download_count_pretty: 2.2k image: '/images/community_extensions/social_preview/preview_community_extension_agent_runs.png' layout: community_extension_doc --- ### Compatibility Matrix This table covers all DuckDB releases that have not reached [end-of-life](https://duckdb.org/release_calendar), including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.
| Platform | 1.5.5 | 1.5.6 | 2.0.0 | 2.0.1 | | :--- | :---: | :---: | :---: | :---: | | Linux AMD64 | ❌ | ❌ | ✅ | ✅ | | Linux ARM64 | ❌ | ❌ | ✅ | ✅ | | macOS AMD64 | ❌ | ❌ | ❌ | ❌ | | macOS ARM64 | ❌ | ❌ | ✅ | ✅ | | Windows AMD64 | ❌ | ❌ | ❌ | ❌ | | Windows ARM64 | ❌ | ❌ | ❌ | ❌ | | WebAssembly | ❌ | ❌ | ❌ | ❌ | ### Installing and Loading ```sql INSTALL {{ page.extension.name }} FROM community; LOAD {{ page.extension.name }}; ``` {% if page.docs.hello_world %} ### Example ```sql {{ page.docs.hello_world }}``` {% endif %} {% if page.docs.extended_description %} ### About {{ page.extension.name }} {{ page.docs.extended_description }} {% endif %} ### Added Functions
| function_name | function_type | description | comment | examples | |------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|---------|-------------------------------------------------------------------------------------| | atif_metadata | macro | NULL | NULL | | | ingest_agent_run | table | NULL | NULL | | | job_summaries | table_macro | NULL | NULL | | | read_atif | table | Reads ATIF agent trajectories from a local, S3, or HTTP(S) JSON or JSONL file, optionally gzipped, embedding referenced media. | NULL | [SELECT * FROM read_atif('trajectories.jsonl');] | | read_huggingface | table | Reads a Hugging Face dataset's Parquet files. | NULL | [SELECT * FROM read_huggingface('lhoestq/demo1');] | | read_warc | table | Reads records from a local, S3, or HTTP(S) WARC file or Common Crawl crawl or segment. | NULL | [SELECT * FROM read_warc('archive.warc.gz');] | | read_xml_records | table | Reads one row per XML element at record_element from a local, S3, or HTTP(S) file, optionally gzipped, inferring the schema from the leading records. | NULL | [SELECT * FROM read_xml_records('catalog.xml', record_element := '/catalog/book');] | | split_model_name | macro | NULL | NULL | | | trial_agent_name | macro | NULL | NULL | | | trial_summaries | table_macro | NULL | NULL | | ### Overloaded Functions
This extension does not add any function overloads. ### Added Types
| type_name | type_size | logical_type | type_category | internal | |------------------------|----------:|--------------|---------------|----------| | agent_config | 0 | STRUCT | COMPOSITE | false | | agent_context | 0 | STRUCT | COMPOSITE | false | | agent_dataset_stats | 0 | STRUCT | COMPOSITE | false | | agent_info | 0 | STRUCT | COMPOSITE | false | | dataset_config | 0 | STRUCT | COMPOSITE | false | | dataset_network | 0 | STRUCT | COMPOSITE | false | | dataset_runtime_config | 0 | STRUCT | COMPOSITE | false | | egress_job_extras | 0 | STRUCT | COMPOSITE | false | | egress_proxy_endpoint | 0 | STRUCT | COMPOSITE | false | | environment_config | 0 | STRUCT | COMPOSITE | false | | exception_info | 0 | STRUCT | COMPOSITE | false | | execution_error | 0 | STRUCT | COMPOSITE | false | | job_config | 0 | STRUCT | COMPOSITE | false | | job_result | 0 | STRUCT | COMPOSITE | false | | job_stats | 0 | STRUCT | COMPOSITE | false | | mcp_server_config | 0 | STRUCT | COMPOSITE | false | | metric_config | 0 | STRUCT | COMPOSITE | false | | model_info | 0 | STRUCT | COMPOSITE | false | | network_allow | 0 | STRUCT | COMPOSITE | false | | pinned_host | 0 | STRUCT | COMPOSITE | false | | proxy_release | 0 | STRUCT | COMPOSITE | false | | retry_config | 0 | STRUCT | COMPOSITE | false | | rollout_detail | 0 | STRUCT | COMPOSITE | false | | root_gate | 0 | STRUCT | COMPOSITE | false | | runtime_addon | 0 | STRUCT | COMPOSITE | false | | service_volume_bind | 0 | STRUCT | COMPOSITE | false | | service_volume_config | 0 | STRUCT | COMPOSITE | false | | service_volume_image | 0 | STRUCT | COMPOSITE | false | | service_volume_volume | 0 | STRUCT | COMPOSITE | false | | source_job_config | 0 | STRUCT | COMPOSITE | false | | source_trial_config | 0 | STRUCT | COMPOSITE | false | | step_result | 0 | STRUCT | COMPOSITE | false | | task_config | 0 | STRUCT | COMPOSITE | false | | timing_info | 0 | STRUCT | COMPOSITE | false | | tpu_spec | 0 | STRUCT | COMPOSITE | false | | trajectory_metadata | 0 | STRUCT | COMPOSITE | false | | trial_config | 0 | STRUCT | COMPOSITE | false | | trial_result | 0 | STRUCT | COMPOSITE | false | | verifier_config | 0 | STRUCT | COMPOSITE | false | | verifier_result | 0 | STRUCT | COMPOSITE | false | ### Added Settings
| name | description | input_type | scope | aliases | typed_value | |---------------------------------------------|-----------------------------------------------------------------------------|------------|--------|---------|-------------| | agent_runs_failure_cleanup | Remove newly written trial datasets if the ingesting transaction rolls back | BOOLEAN | GLOBAL | [] | true | | lance_conversion_storage_io_timeout_ms | IO operation and body method timeout per attempt (ms) | BIGINT | GLOBAL | [] | 10000 | | lance_conversion_storage_retry_factor | Storage exponential retry backoff multiplier for reads and writes | DOUBLE | GLOBAL | [] | 2.0 | | lance_conversion_storage_retry_max_delay_ms | Maximum exponential retry backoff (ms) | BIGINT | GLOBAL | [] | 60000 | | lance_conversion_storage_retry_max_times | Maximum retries after the initial attempt (0 disables retries) | BIGINT | GLOBAL | [] | 3 | | lance_conversion_storage_retry_min_delay_ms | Initial exponential retry backoff (ms) | BIGINT | GLOBAL | [] | 1000 | | lance_conversion_storage_timeout_ms | Control operation timeout per attempt (ms) | BIGINT | GLOBAL | [] | 60000 | | temp_directory | Set the directory to which temporary files are written. | VARCHAR | GLOBAL | [] | post.db.tmp |