rlm_state_set
Set shared swarm state with optimistic locking and optional time-to-live to ensure consistency and automatic expiration.
Instructions
Write shared swarm state with optimistic locking and optional TTL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swarm_id | Yes | ||
| agent_id | Yes | ||
| key | Yes | ||
| value | Yes | Value to set (any JSON-serializable type) | |
| expected_version | No | Expected version for optimistic locking | |
| ttl_seconds | No | Time to live in seconds (optional, state expires after this) |