Blocks
Shared Memory
Store and retrieve shared state between agents
Provides a shared memory store for agents to read and write data. Supports atomic operations, versioning, and scoped access.
Block Preview
Shared Memory
Store and retrieve shared state between agents
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the shared_memory block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: half
Options: Get, Set, Delete, Increment
Scope
dropdownLayout: half
Options: Execution, Workflow, Global
Key
short-inputPlaceholder: memory.key.name
Layout: full
Value
codePlaceholder: { "data": "value" }
Layout: full
Condition: operation = ["set","append","cas"]
Increment By
short-inputPlaceholder: 1
Layout: half
Condition: operation = "increment"
Expected Version
short-inputPlaceholder: Version for CAS operation
Layout: half
Condition: operation = "cas"
TTL (seconds)
short-inputPlaceholder: Time to live (optional)
Layout: half
Condition: operation = ["set","append"]
Default Value
codePlaceholder: Default if key not found
Layout: full
Condition: operation = "get"
Inputs (API)
operation
stringRequired
scope
stringOptional
key
stringRequired
value
jsonOptional
incrementBy
numberOptional
expectedVersion
numberOptional
ttlSeconds
numberOptional
defaultValue
jsonOptional
Outputs
Primary response type:
{
"success": "boolean",
"key": "string",
"value": "json",
"version": "number",
"previousValue": "json",
"scope": "string",
"expiresAt": "string"
}