Store episode
store_episodeStore an episodic memory: a specific, timestamped event tied to an
entity. Use it for things that happened; for timeless statements use
store_fact. To also resolve entity mentions and store linked facts in
one call, use process_observation.
If `entity_id` does not exist, the episode is still stored, unlinked,
and the id is listed in `context.entity_ids_descartados` in the response.
When `volatilidad` or `epistemico` is omitted or not one of the listed
values, it is classified automatically from the text.
Args:
entity_id: UUID of the entity this episode is about.
event_type: Free-form event type, e.g. 'observation', 'action',
'conversation', 'decision'. Reuse values within a domain.
content: Dict with a 'description' key holding the episode text; other
keys are stored as context. Without 'description', the whole dict
is stringified as the text.
metadata: Optional extra keys merged into the stored context.
volatilidad: Whether this can stop being true:
'evento' (something that happened; does not expire),
'estado' (describes how something is; expires if it changes),
'pendiente' (something still to do; expires within days).
A text that narrates work done and ends with what remains to do
is 'pendiente'.
epistemico: How the information is known:
'medido' (returned by a system: an HTTP response, a query, command
output), 'inferido' (concluded by reasoning), 'reportado' (stated
by someone else). A text mixing a measurement and a conclusion is
'inferido'. Default when omitted: automatic, falling back to
'inferido'.
fuente: Optional. How you came to know this, so it can be recalled
with its source the way a person remembers who told them what.
Who you were with and through which agent are NOT declared here:
the server stamps them from your credential. Keys, all optional
and free text except `modo`:
modo: 'vivido' (I did or said it), 'conversado' (someone told
me directly), 'leido' (a document, web page, another agent's
message, a tool's output), 'pensado' (I inferred or
concluded it).
de: who said or originated it, e.g. "Cris" or
{"nombre": "Cris", "tipo": "persona"}.
con: who you were with, only if not your owner.
para: who you did it for.
canal: channel inside the agent, e.g. "whatsapp", "terminal".
donde: scope or place: repo, project, file, URL.
Example:
store_episode(
entity_id="3f2a...",
event_type="conversation",
content={"description": "Alice asked about the deployment status",
"channel": "slack"},
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fuente | No | ||
| content | Yes | ||
| metadata | No | ||
| entity_id | Yes | ||
| epistemico | No | ||
| event_type | Yes | ||
| volatilidad | No |