save_pattern
Stores a pattern and returns it with a discovered_at timestamp. Re-saving the same ID overwrites the existing record.
Instructions
Store one pattern and return it as written, with discovered_at filled in.
The original design sketch called the return type SavedPattern; the saved model is a
Pattern (the one numenews.vector.save_pattern returns), so the tool returns that rather
than a second type saying the same thing. Re-saving the same pattern id overwrites the point
instead of adding a copy, and a timestamp already present is never rewritten. Needs Qdrant only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | Yes | ||
| numbers | Yes | ||
| news_ids | Yes | ||
| strength | Yes | ||
| discovered_at | No | ||
| interpretation | Yes |