You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class subclasses Haystack's `Toolset` but is used as an automatic
memory wrapper (auto_recall / auto_retain around an Agent), not a tool
collection. Reusing the `Toolset` name was confusing next to Haystack's
own `Toolset` abstraction — flagged by deepset DevRel in review of the
haystack-integrations gallery entry (deepset-ai/haystack-integrations#505).
Pure rename across the package, tests, README, and docs pages. The class
still subclasses `haystack.tools.Toolset`. No backward-compat alias — the
package is at 0.1.0 with no adoption yet, so the rename is clean.
Co-authored-by: DK09876 <dk09876@Dikshants-MacBook-Pro.local>
Copy file name to clipboardExpand all lines: hindsight-docs/docs-integrations/haystack.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
2
sidebar_position: 34
3
3
title: "Haystack Persistent Memory with Hindsight | Integration"
4
-
description: "Add persistent long-term memory to Haystack agents with Hindsight. Provides retain/recall/reflect Tools plus a HindsightToolset with optional auto-recall and auto-retain."
4
+
description: "Add persistent long-term memory to Haystack agents with Hindsight. Provides retain/recall/reflect Tools plus a HindsightMemoryWrapper with optional auto-recall and auto-retain."
5
5
---
6
6
7
7
# Haystack
8
8
9
9
Persistent long-term memory for [Haystack](https://haystack.deepset.ai/) agents via Hindsight. The `hindsight-haystack` package gives you two complementary patterns:
10
10
11
11
-**`create_hindsight_tools(...)`** — Returns a list of Haystack `Tool`s (`retain_memory`, `recall_memory`, `reflect_on_memory`) the model can call directly inside a turn.
12
-
-**`HindsightToolset`** — A Haystack `Toolset` that bundles the same tools and adds optional **auto-recall** (inject relevant memories into the system prompt before each turn) and **auto-retain** (store user + assistant messages after each turn).
12
+
-**`HindsightMemoryWrapper`** — A Haystack `Toolset` that bundles the same tools and adds optional **auto-recall** (inject relevant memories into the system prompt before each turn) and **auto-retain** (store user + assistant messages after each turn).
13
13
14
14
## Installation
15
15
@@ -48,14 +48,14 @@ result = agent.run(messages=[ChatMessage.from_user("Remember that I prefer dark
48
48
print(result["messages"][-1].text)
49
49
```
50
50
51
-
## Automatic Memory with HindsightToolset
51
+
## Automatic Memory with HindsightMemoryWrapper
52
52
53
53
For automatic recall and retain without relying on the agent to call tools:
54
54
55
55
```python
56
-
from hindsight_haystack importHindsightToolset
56
+
from hindsight_haystack importHindsightMemoryWrapper
Copy file name to clipboardExpand all lines: hindsight-docs/src/data/integrations.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@
223
223
{
224
224
"id": "haystack",
225
225
"name": "Haystack",
226
-
"description": "Persistent memory for Haystack agents. Provides retain/recall/reflect Tools plus a HindsightToolset with optional auto-recall and auto-retain.",
226
+
"description": "Persistent memory for Haystack agents. Provides retain/recall/reflect Tools plus a HindsightMemoryWrapper with optional auto-recall and auto-retain.",
0 commit comments