From 7af01e35e99eb5bd65323ae502272583cde6d946 Mon Sep 17 00:00:00 2001 From: DK09876 Date: Mon, 30 Mar 2026 07:56:22 -0700 Subject: [PATCH] fix(docs): use tools=[] in BaseMemory example (#772) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The automatic memory example referenced an undefined `tools` variable. Since HindsightMemory handles retain/recall transparently, no tools are needed — use an empty list. Co-authored-by: Claude Opus 4.6 --- hindsight-docs/docs/sdks/integrations/llamaindex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hindsight-docs/docs/sdks/integrations/llamaindex.md b/hindsight-docs/docs/sdks/integrations/llamaindex.md index 3006abe6..0f95feb3 100644 --- a/hindsight-docs/docs/sdks/integrations/llamaindex.md +++ b/hindsight-docs/docs/sdks/integrations/llamaindex.md @@ -37,7 +37,7 @@ async def main(): mission="Track user preferences and project context", ) - agent = ReActAgent(tools=tools, llm=OpenAI(model="gpt-4o"), memory=memory) + agent = ReActAgent(tools=[], llm=OpenAI(model="gpt-4o"), memory=memory) response = await agent.run("Remember that I prefer dark mode") print(response)