# checkpoint_partial

Canonical URL: https://developers.iagenify.com/zh/sdk/agent/events/checkpoint-partial/
Language: zh

`{ type: "checkpoint_partial", n, skipped }`

照片无法带走一切,并说到它遗漏的东西——在任何事情都依赖它之前。

Status: only when something was skipped · named, not guessed · arrives with the point

## 字段 {#fields}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `n` | integer |  | 这一点令人关切。 |
| `skipped` | array |  | `[{ path, reason }]` - 是什么没有复制,为什么? |

```javascript
{
  type: "checkpoint_partial",
  n: 3,
  skipped: [
    { path: "data/dump.sql",  reason: "over 25 MB: recorded, not copied" },
    { path: "tmp/locked.db",  reason: "unreadable" }
  ]
}
```

## 原因 原因 原因 原因 原因 {#reasons}

| 原因原因原因原因原因原因原因 | 含义 |
| --- | --- |
| 超过25 MB:记录,未复制 | 其大小和日期保持不变;其内容不重要。 倒退无法恢复它。 |
| 无法读取 | 无法在快照时间读取文件—— 锁定、 正在使用、 已经丢失 。 |

超过 5,000 文件的工作空间不在此报告, 但标记点 `partial` 内 `checkpoints()`.

## 为何在当时说 {#why}

> **必须在信任前知道部分快照**
>
> 反转时发现40 MB 文件从未复制为时已晚 — — 已经做出了回去的决定。 当点被移动时, 将使用一个界面标记它, 并让个人将文件移出工作空间 。

## 也上名了 {#later}

```javascript
const points = await agent.checkpoints();
// [{ n: 3, at, text, files, partial: true, outside: [] }, …]
```

`partial` 事实也是如此,以后再公布。 `rewind()` 返回 返回 其自 `files.skipped` 无法放回去的东西, 是一个不同的清单—— 一份是关于取,另一份是关于恢复。

- [快照的工作原理](/zh/sdk/agent/checkpoints/snapshots): 产生这种结果的界限。
- [回退无法撤销的操作](/zh/sdk/agent/checkpoints/limits): 另一张名单。

```python
{
    "type": "checkpoint_partial",
    "n": 3,
    "skipped": [
        {"path": "data/dump.sql", "reason": "file was too large or could not be copied"},
        {"path": "tmp/locked.db", "reason": "file was too large or could not be copied"},
    ],
}
```

```python
points = agent.checkpoints()
# [{"n": 3, "at", "text", "files", "partial": True}, …]
```
