> For the complete documentation index, see [llms.txt](https://tinyhumans.gitbook.io/openhuman/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tinyhumans.gitbook.io/openhuman/zh/gong-neng/native-tools/cron.md).

# Cron 与调度

调度是一项一等公民能力，而不是权宜之计。智能体可以设置周期性任务（“每个工作日早上9点，总结我的收件箱”）、一次性提醒（“三小时后提醒我这件事”），以及按 cron 计划运行的任意智能体执行。

## 该家族中的工具

| 工具            | 功能                             |
| ------------- | ------------------------------ |
| `cron_add`    | 创建一个新的计划任务——cron 表达式 + 智能体提示词。 |
| `cron_list`   | 列出现有任务及其下次运行时间。                |
| `cron_update` | 编辑现有任务——更改计划、提示词或启用状态。         |
| `cron_remove` | 删除一个任务。                        |
| `cron_run`    | 立即运行一次任务，不受其计划限制。              |
| `cron_runs`   | 查看最近的运行历史——何时运行、耗时多长、产出了什么。    |

另外还有一个一次性 `schedule` 工具，位于 [系统与实用工具](/openhuman/zh/gong-neng/native-tools/system-and-utilities.md) 用于“在时间 T 执行一次此操作”这类不需要重复条目的情况。

## 适用场景

* 每日/每周摘要会发送到你选择的消息频道。
* 轮询一个不会推送事件的缓慢集成。
* 由智能体自己负责的提醒（“周四提醒我跟进 Alice”）。
* 周期性研究——“每周一检查这个主题的新动态并给我写一份简报”。

## 它如何与其余部分关联

每次 cron 运行都只是一次普通的智能体调用，因此它可以使用任何其他工具——搜索网络、查询 [记忆树](/openhuman/zh/gong-neng/obsidian-wiki/memory-tree.md)，调用一个 [第三方集成](/openhuman/zh/gong-neng/integrations.md)，发送消息。运行历史会被记录下来，因此你可以看到每次触发产生了什么。

## 另请参阅

* [系统与实用工具](/openhuman/zh/gong-neng/native-tools/system-and-utilities.md) ——一次性 `schedule` 工具。
* [智能体协作](/openhuman/zh/gong-neng/native-tools/agent-coordination.md) ——适用于会分发到子智能体的任务。
