save_memory
Save a piece of conversation content to memory.
Use this when the user explicitly asks to save or record something. Do not
use it on a bare "remember this" or a request to summarize; those are not
save requests.
Writes a new record. The destination project and folder come from the active
target and cannot be set from here.
Args:
payload: Alternative call form bundling {summary, entities, content,
tags} into this one argument, as a JSON object or a JSON string.
The other arguments are ignored when it is given.
summary: The retrieval surface, required unless `payload`, up to 500
characters. Searches rank against this rather than the content, so
exact identifiers kept verbatim and the acting party named in the
first sentence are what make the record findable later.
entities: NER results [{name, type}, ...], required unless `payload`.
One canonical spelling per entity; records connect on shared names.
tags: List of short slash-paths. Reusing the closest paths from a prior
response's `suggested_tags` or `tag_tree` keeps them consistent.
Ids, hashes, and dates are soft-rejected.
content: The original text, required unless `payload`, up to 50000
characters. Longer text is split across calls, each passing the
previous `event_id` as `prev_event_id`, with its own summary.
prev_event_id: The prior call's `event_id` when this save continues it.
allow_truncation_marker: Content carrying a truncation marker left by
upstream tooling is refused with `truncation_marker_detected`, since
nothing downstream can distinguish a cut body from a whole one. Set
it True when the marker is part of what is being recorded.
assert_project: The server refuses the save if the resolved target
differs from this project name. It blocks, never redirects.
timestamp: ISO 8601; defaults to the current time.
source: Upstream origin `{provider, address, version?}` when the content
came from outside this conversation.
Returns:
`{event_id, tags, tag_tree, suggested_tags?, saved_entities,
rejected_tags?, continuation_hint, edit_command, active_target}`.
`saved_entities` and `rejected_tags` let the user correct a wrong entity
or a dropped tag through `update_memory`. `suggested_entities` is
advisory — a literal name match does not establish that it denotes the
same thing here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | List of short slash-paths. Reusing the closest paths from a prior response's `suggested_tags` or `tag_tree` keeps them consistent. Ids, hashes, and dates are soft-rejected. | |
| source | No | Upstream origin `{provider, address, version?}` when the content came from outside this conversation. | |
| content | No | The original text, required unless `payload`, up to 50000 characters. Longer text is split across calls, each passing the previous `event_id` as `prev_event_id`, with its own summary. | |
| payload | No | Alternative call form bundling {summary, entities, content, tags} into this one argument, as a JSON object or a JSON string. The other arguments are ignored when it is given. | |
| summary | No | The retrieval surface, required unless `payload`, up to 500 characters. Searches rank against this rather than the content, so exact identifiers kept verbatim and the acting party named in the first sentence are what make the record findable later. | |
| entities | No | NER results [{name, type}, ...], required unless `payload`. One canonical spelling per entity; records connect on shared names. | |
| timestamp | No | ISO 8601; defaults to the current time. | |
| prev_event_id | No | The prior call's `event_id` when this save continues it. | |
| assert_project | No | The server refuses the save if the resolved target differs from this project name. It blocks, never redirects. | |
| allow_truncation_marker | No | Content carrying a truncation marker left by upstream tooling is refused with `truncation_marker_detected`, since nothing downstream can distinguish a cut body from a whole one. Set it True when the marker is part of what is being recorded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||