# 内内内

Canonical URL: https://developers.iagenify.com/zh/sdk/workflows/steps/memory/
Language: zh

`type: "memory"`

阅读、写或删除账户的长期注释之一, 以便链条能记住运行之间的东西。

Status: free · 3 actions · read by default

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `action` | string | read | `read` · `write` · `delete`. |
| `name` | string |  | 所需 `write` 和 `delete`. |
| `content` | string |  | 所需 `write`. |
| `description` | string |  | 一行,在索引中显示。 |

```javascript
// Remember where the last run got to
{ id: "mark", type: "memory", config: {
    action: "write", name: "last-digest",
    description: "The date of the last digest sent",
    content: "{{input.week}}" } }

// Read it at the start of the next run
{ id: "since", type: "memory", config: { action: "read", name: "last-digest" } }
```

## 输出 {#output}

| 行动行动 | 输出输出输出 |
| --- | --- |
| `read` 使用名称 | 注 注 |
| `read` 没有 | `memories` - 指数 |
| `write` | 以及它是否被创建 |
| `delete` | 名称,以及是否删除 |

## 连锁链就是这样维持状态的 {#state}

> **运行开始时一无所有**
>
> 每一个都是独立的。 排行榜上的链条,不得重复自己—— 自上次摘要以来的一小节—— 结尾写了一张注,开头读了。 运行之间没有其它状态。

## 记号是账户的 {#shared}

同样的,一个代理读写, 同样的 [api.memory](/zh/sdk/ref/memory) 管理一个写一个的工作流程,改变该账户每个代理商所知道的情况——这是有益的,值得考虑。

- [内内内](/zh/sdk/agent/tools/memory): 探员的版本
- [api.memory](/zh/sdk/ref/memory): 通过代码。
- [工作流步骤](/zh/sdk/workflows/steps): 全部 23 种类型。

```python
# Remember where the last run got to
{"id": "mark", "type": "memory", "config": {
    "action": "write", "name": "last-digest",
    "description": "The date of the last digest sent",
    "content": "{{input.week}}"}}

# Read it at the start of the next run
{"id": "since", "type": "memory", "config": {"action": "read", "name": "last-digest"}}
```
