SharedWorkingMemory
A thread-safe map shared across agents in an event-driven system.
The Kotlin port uses Map<String, JsonElement> so memory can be embedded in structured-output schemas without losing type fidelity. Reads return a snapshot copy; writes merge new keys into the held state behind a Mutex.
Mirrors the Python reference's SharedWorkingMemory.
Functions
Link copied to clipboard
Return an immutable snapshot of the current memory.
Link copied to clipboard
Merge delta into the held memory, overwriting matching keys.
Link copied to clipboard
Replace the held memory entirely.