actionstringreadread · write · delete.
namestringNecessari per write e delete.
contentstringNecessari per write.
descriptionstringUna rigna, mostrada in l'indice.
// 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"}}Saída
| azione | Produzione |
|---|---|
read con un nome | la nota |
readsenza uno | memories — l'indice |
write | la nota, e se fu creata |
delete | il nome, e se è stato eliminat |
Così è come una catena mantiene lo stato
Una run comince con niente
Una catena programmata che non deve ripetersi — un digest desde il ultimo digest — scrie una nota al final e la lee al principio. Non c'è altro stato entre runs.
Le notes sono del cont
I medesimi un agent lee e scrie, e i medesimi api.memory gestisce. Un workflow writing cambia ciò che ogni agent di quel account sa — che è utile, e vale la pena ser deliberat.