store_turn
Save a conversation turn into long-term memory by curating topic, keywords, and typed links for a persistent concept graph.
Instructions
MEMORY LOOP — STEP 2 (after replying). Call this AFTER you answer a substantive turn, to persist what is new into long-term memory. Curate for a clean graph: topic = 3-5 words; keywords = 3-5 CONCEPT nouns / entities / tech (never verbs or filler like 'use', 'make'); links = typed edges between keywords (never link a keyword to itself). This is the preferred way to save — cleaner than auto(). Skip on trivial turns (greetings, acknowledgements, yes/no).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Free labels beyond domain | |
| links | No | Links between current keywords and previous keywords | |
| topic | Yes | Topic of the turn (3-5 words) | |
| domain | Yes | Free-form topic label. Common values: AI, backend, frontend, gaming, architecture, general — but ANY label works (e.g. biology, finance, music, devops). Use 'general' if unsure. | |
| intent | Yes | ||
| context | No | Context path (e.g. java/spring). Defaults to active context. | |
| episode | No | ONE compact fact sentence for this turn (max ~200 chars), e.g. 'chose https over wss because Turso rejects the ws handshake'. Attached to the first keyword; pre_turn will surface it later as a fact, not just a theme. | |
| entities | No | Explicit entities (people, technologies, concepts, places) | |
| keywords | Yes | Abstract keywords (3-5) | |
| sentiment | Yes | ||
| references | No | References to files, URLs or commits |