# phi.artifacts

List and download the files a run produced.

## phi.artifacts.download

```python
phi.artifacts.download(artifacts=artifacts, out_dir=out_dir)
```

Returns `Path`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `artifacts` | `Iterable[Artifact]` |  | Required |
| `out_dir` | `str \| Path` |  | Required |
| `concurrency` | `int` | `8` | Optional |
| `progress` | `ProgressCallback \| None` | `None` | Optional |
| `overwrite` | `bool` | `False` | Optional |

### Artifact fields and schema

```json
{
  "type": "object",
  "required": [
    "name",
    "stage",
    "url"
  ],
  "properties": {
    "content_type": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "type": "string"
    },
    "pipeline_node_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "size": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "stage": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  }
}
```

## phi.artifacts.download_url

```python
phi.artifacts.download_url(url=url, dest=dest)
```

Returns `Path`.

| Parameter | Type | Required |
|---|---|---|
| `url` | `str` | Required |
| `dest` | `str \| Path` | Required |

## phi.artifacts.list

```python
phi.artifacts.list(run_id=run_id)
```

Returns `list[Artifact]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `run_id` | `str` |  | Required |
| `stage` | `str \| None` | `None` | Optional |
| `suffix` | `str \| None` | `None` | Optional |
| `expires_in` | `int \| None` | `None` | Optional |
| `page_size` | `int` | `200` | Optional |

### Artifact fields and schema

```json
{
  "type": "object",
  "required": [
    "name",
    "stage",
    "url"
  ],
  "properties": {
    "content_type": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "type": "string"
    },
    "pipeline_node_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "size": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "stage": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  }
}
```


---
Source: https://dynophi.com/docs/sdk/artifacts. From the installed client, phi 0.4.2, 2026-11-23.
