save_memory
Stores a document or scenario outcome in a vector database for later semantic retrieval, with optional JSON metadata and target collection.
Instructions
Save a new document or scenario outcome into the vector DB.
metadata may be a JSON string (e.g. '{"source": "doc1", "tags": ["a"]}')
or a JSON object — both are accepted. On parse failure an empty dict is
stored instead and a warning is returned alongside the result. If
collection is given, the memory is stored there (created automatically
if missing; default: the server-configured collection).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| metadata | No | {} | |
| collection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |