Metis · Memory Curator — Set Working Memory
set_working_memoryStores a key/value pair in the current session's ephemeral working memory, helping agents keep mid-pipeline state, intermediate results, and decisions accessible during a run.
Instructions
Write a key/value pair to the current session's working memory.
Working memory is an ephemeral scratchpad — it persists for the session
but is not indexed for vector search. Use it for state that agents need
mid-pipeline (e.g. intermediate results, decisions made so far).
Args:
session_id: Pipeline session ID from session_bootstrap().
key: Variable name (e.g. 'current_article', 'user_intent').
value: Value to store (any string, JSON, or text).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |