actionstringreadread · write · delete.
namestring所需 write 和 delete.
contentstring所需 write.
descriptionstring一行,在索引中显示。
// 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" } }# 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"}}输出
| 行动行动 | 输出输出输出 |
|---|---|
read 使用名称 | 注 注 |
read 没有 | memories - 指数 |
write | 以及它是否被创建 |
delete | 名称,以及是否删除 |
连锁链就是这样维持状态的
运行开始时一无所有
每一个都是独立的。 排行榜上的链条,不得重复自己—— 自上次摘要以来的一小节—— 结尾写了一张注,开头读了。 运行之间没有其它状态。
记号是账户的
同样的,一个代理读写, 同样的 api.memory 管理一个写一个的工作流程,改变该账户每个代理商所知道的情况——这是有益的,值得考虑。