Skip to main content

Forget a note

Stepforgetmemory

Deletes one saved note, by its id or by words only that note has.

At a glance​

PropertyValue
Step nameforget
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categorymemory, -
Credits0 credits each time it succeeds
Side effectsno
Installation must providenothing

Inputs​

PropertyValue
Needsnothing
Producesfields
Works onitem one document at a time

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.

Outputs​

A later node references an output as {nodeId.field} in text, or nodeId.field in a condition.

OutputType
forgottenboolean
memoryIdstring

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
idstring-ID is the note to forget, as recall shows it.maxLength 64
querystring-Query forgets the one note that has all of its words; when more than one does, nothing is forgotten.maxLength 500

The full JSON Schema of these settings: forget.schema.json.

Use it in a flow​

A node that runs forget goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: forget-example
namespace: tenant-acme
spec:
displayName: "Forget a note"
triggers:
- id: start
ref: {name: manual-run}
next: [assistant]
nodes:
- id: assistant
stepRef: {name: chat-agent}
config:
instructions: Use the forget tool when the request needs it.
tools: [forget]