conversation
Maintain a bounded ring buffer of raw conversation turns per namespace to record, recall, or clear exact messages from recent interactions.
Instructions
Bounded encrypted working-memory ring buffer for raw conversation turns (v0.9.0 engine conversation primitive).
Unlike remember (which stores extracted semantic memories), this stores
verbatim turns — useful for short-horizon working memory, e.g. "what
exactly did the user say two messages ago". The ring is bounded per
namespace; oldest turns evict when max_turns is exceeded.
ACTIONS:
"record": Append a turn (needs role + content).
"recent": Retrieve last N turns, oldest-first.
"clear": Drop the buffer for a namespace.
Args: action: "record" | "recent" | "clear". namespace: Ring buffer namespace (separate buffers per agent / topic). role: "user" | "assistant" | "system" | "tool" — caller's choice. content: The verbatim turn text. max_turns: Ring size at record time (default 10). limit: How many recent turns to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| limit | No | ||
| action | Yes | ||
| content | No | ||
| max_turns | No | ||
| namespace | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |