Save to agent memory
memory_saveRemember something, with its sources and its knowledge time.
Nothing is ever overwritten: saving a `factor_def` or `watchlist` under an existing key
SUPERSEDES the previous version (both rows survive, so "what did I believe in June?" stays
answerable), and saving identical content twice is a no-op rather than a duplicate.
Args:
kind: 'query' | 'factor_def' | 'watchlist' | 'finding' | 'note'.
content: the thing to remember, as an object.
key: the stable name — REQUIRED for 'factor_def' and 'watchlist' (that is what makes a
definition reusable next session instead of re-invented).
as_of: the knowledge time this memory is about. Recall can bound on it, which is what
keeps a memory from leaking the future into a point-in-time question.
source_query_ids: the `twmd_q_…` ids behind this. REQUIRED for 'finding' — a conclusion
that cannot point at its data is not evidence, and will be refused.
agent_id: optional label for which of your agents wrote this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| kind | Yes | ||
| as_of | No | ||
| content | Yes | ||
| agent_id | No | ||
| source_query_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| hint | No | ||
| kind | No | ||
| as_of | No | ||
| error | No | ||
| active | No | ||
| reason | No | ||
| blocked | No | ||
| memory_id | No | ||
| created_at | No | ||
| superseded_by | No | ||
| source_query_ids | No | ||
| not_investment_advice | No |